Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend): 修复生成API文件framework判断异常的问题 #166

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db/TDesign.db
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/api/operation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default {
method: 'post',
url: '/cmp/generate-api',
data: {
commandLines: this.commandLine.map(command => command.replace('npm run api:docs', ''))
commandLines: this.commandLine.map(command => command.replace('npm run api:docs', '').replaceAll('\'', ''))
}
}).then(() => {
this.generateFilesVisible = false
Expand Down
6 changes: 2 additions & 4 deletions packages/products/tdesign-react/src/tree/tree.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ style | Object | - | 样式,Typescript:`React.CSSProperties` | N
activable | Boolean | false | \- | N
activeMultiple | Boolean | false | \- | N
actived | Array | - | Typescript:`Array<TreeNodeValue>` | N
defaultActived | Array | - | uncontrolled property。Typescript:`Array<TreeNodeValue>` | N
allowFoldNodeOnFilter | Boolean | false | \- | N
checkProps | Object | - | Typescript:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N
checkStrictly | Boolean | false | \- | N
Expand All @@ -26,7 +25,6 @@ expandMutex | Boolean | false | \- | N
expandOnClickNode | Boolean | false | \- | N
expandParent | Boolean | false | \- | N
expanded | Array | [] | Typescript:`Array<TreeNodeValue>` | N
defaultExpanded | Array | [] | uncontrolled property。Typescript:`Array<TreeNodeValue>` | N
filter | Function | - | Typescript:`(node: TreeNodeModel<T>) => boolean` | N
height | String / Number | - | table height | N
hover | Boolean | - | \- | N
Expand All @@ -42,7 +40,7 @@ scroll | Object | - | lazy load and virtual scroll。Typescript:`TScroll`。[s
transition | Boolean | true | \- | N
value | Array | [] | Typescript:`Array<TreeNodeValue>` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N
defaultValue | Array | [] | uncontrolled property。Typescript:`Array<TreeNodeValue>` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N
valueMode | String | onlyLeaf | optionsonlyLeaf/parentFirst/all | N
valueMode | String | onlyLeaf | options: onlyLeaf/parentFirst/all | N
onActive | Function | | Typescript:`(value: Array<TreeNodeValue>, context: { node: TreeNodeModel<T>; e?: MouseEvent; trigger: 'node-click' \| 'setItem' }) => void`<br/> | N
onChange | Function | | Typescript:`(value: Array<TreeNodeValue>, context: { node: TreeNodeModel<T>; e?: any; trigger: 'node-click' \| 'setItem' }) => void`<br/> | N
onClick | Function | | Typescript:`(context: { node: TreeNodeModel<T>; e: MouseEvent }) => void`<br/> | N
Expand Down Expand Up @@ -131,4 +129,4 @@ bufferSize | Number | 20 | \- | N
isFixedRowHeight | Boolean | false | \- | N
rowHeight | Number | - | \- | N
threshold | Number | 100 | \- | N
type | String | - | required。optionslazy/virtual | Y
type | String | - | required。options: lazy/virtual | Y
2 changes: 0 additions & 2 deletions packages/products/tdesign-react/src/tree/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
activable | Boolean | false | 节点是否可高亮 | N
activeMultiple | Boolean | false | 是否允许多个节点同时高亮 | N
actived | Array | - | 高亮的节点值。TS 类型:`Array<TreeNodeValue>` | N
defaultActived | Array | - | 高亮的节点值。非受控属性。TS 类型:`Array<TreeNodeValue>` | N
allowFoldNodeOnFilter | Boolean | false | 是否允许在过滤时节点折叠节点 | N
checkProps | Object | - | 透传属性到 checkbox 组件。参考 checkbox 组件 API。TS 类型:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/tree/type.ts) | N
checkStrictly | Boolean | false | 父子节点选中状态不再关联,可各自选中或取消 | N
Expand All @@ -26,7 +25,6 @@ expandMutex | Boolean | false | 同级别展开互斥,手风琴效果 | N
expandOnClickNode | Boolean | false | 是否支持点击节点也能展开收起 | N
expandParent | Boolean | false | 展开子节点时是否自动展开父节点 | N
expanded | Array | [] | 展开的节点值。TS 类型:`Array<TreeNodeValue>` | N
defaultExpanded | Array | [] | 展开的节点值。非受控属性。TS 类型:`Array<TreeNodeValue>` | N
filter | Function | - | 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型。TS 类型:`(node: TreeNodeModel<T>) => boolean` | N
height | String / Number | - | 表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight` | N
hover | Boolean | - | 节点是否有悬浮状态 | N
Expand Down
6 changes: 2 additions & 4 deletions packages/products/tdesign-vue-next/src/tree/tree.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ name | type | default | description | required
activable | Boolean | false | \- | N
activeMultiple | Boolean | false | \- | N
actived | Array | - | `v-model:actived` is supported。Typescript:`Array<TreeNodeValue>` | N
defaultActived | Array | - | uncontrolled property。Typescript:`Array<TreeNodeValue>` | N
allowFoldNodeOnFilter | Boolean | false | \- | N
checkProps | Object | - | Typescript:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N
checkStrictly | Boolean | false | \- | N
Expand All @@ -24,7 +23,6 @@ expandMutex | Boolean | false | \- | N
expandOnClickNode | Boolean | false | \- | N
expandParent | Boolean | false | \- | N
expanded | Array | [] | `v-model:expanded` is supported。Typescript:`Array<TreeNodeValue>` | N
defaultExpanded | Array | [] | uncontrolled property。Typescript:`Array<TreeNodeValue>` | N
filter | Function | - | Typescript:`(node: TreeNodeModel<T>) => boolean` | N
height | String / Number | - | table height | N
hover | Boolean | - | \- | N
Expand All @@ -40,7 +38,7 @@ scroll | Object | - | lazy load and virtual scroll。Typescript:`TScroll`。[s
transition | Boolean | true | \- | N
value | Array | [] | `v-model` and `v-model:value` is supported。Typescript:`Array<TreeNodeValue>` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N
defaultValue | Array | [] | uncontrolled property。Typescript:`Array<TreeNodeValue>` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N
valueMode | String | onlyLeaf | optionsonlyLeaf/parentFirst/all | N
valueMode | String | onlyLeaf | options: onlyLeaf/parentFirst/all | N
onActive | Function | | Typescript:`(value: Array<TreeNodeValue>, context: { node: TreeNodeModel<T>; e?: MouseEvent; trigger: 'node-click' \| 'setItem' }) => void`<br/> | N
onChange | Function | | Typescript:`(value: Array<TreeNodeValue>, context: { node: TreeNodeModel<T>; e?: any; trigger: 'node-click' \| 'setItem' }) => void`<br/> | N
onClick | Function | | Typescript:`(context: { node: TreeNodeModel<T>; e: MouseEvent }) => void`<br/> | N
Expand Down Expand Up @@ -143,4 +141,4 @@ bufferSize | Number | 20 | \- | N
isFixedRowHeight | Boolean | false | \- | N
rowHeight | Number | - | \- | N
threshold | Number | 100 | \- | N
type | String | - | required。optionslazy/virtual | Y
type | String | - | required。options: lazy/virtual | Y
2 changes: 0 additions & 2 deletions packages/products/tdesign-vue-next/src/tree/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activable | Boolean | false | 节点是否可高亮 | N
activeMultiple | Boolean | false | 是否允许多个节点同时高亮 | N
actived | Array | - | 高亮的节点值。支持语法糖 `v-model:actived`。TS 类型:`Array<TreeNodeValue>` | N
defaultActived | Array | - | 高亮的节点值。非受控属性。TS 类型:`Array<TreeNodeValue>` | N
allowFoldNodeOnFilter | Boolean | false | 是否允许在过滤时节点折叠节点 | N
checkProps | Object | - | 透传属性到 checkbox 组件。参考 checkbox 组件 API。TS 类型:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/tree/type.ts) | N
checkStrictly | Boolean | false | 父子节点选中状态不再关联,可各自选中或取消 | N
Expand All @@ -24,7 +23,6 @@ expandMutex | Boolean | false | 同级别展开互斥,手风琴效果 | N
expandOnClickNode | Boolean | false | 是否支持点击节点也能展开收起 | N
expandParent | Boolean | false | 展开子节点时是否自动展开父节点 | N
expanded | Array | [] | 展开的节点值。支持语法糖 `v-model:expanded`。TS 类型:`Array<TreeNodeValue>` | N
defaultExpanded | Array | [] | 展开的节点值。非受控属性。TS 类型:`Array<TreeNodeValue>` | N
filter | Function | - | 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型。TS 类型:`(node: TreeNodeModel<T>) => boolean` | N
height | String / Number | - | 表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight` | N
hover | Boolean | - | 节点是否有悬浮状态 | N
Expand Down
6 changes: 2 additions & 4 deletions packages/products/tdesign-vue/src/tree/tree.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ name | type | default | description | required
activable | Boolean | false | \- | N
activeMultiple | Boolean | false | \- | N
actived | Array | - | `.sync` is supported。Typescript:`Array<TreeNodeValue>` | N
defaultActived | Array | - | uncontrolled property。Typescript:`Array<TreeNodeValue>` | N
allowFoldNodeOnFilter | Boolean | false | \- | N
checkProps | Object | - | Typescript:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N
checkStrictly | Boolean | false | \- | N
Expand All @@ -24,7 +23,6 @@ expandMutex | Boolean | false | \- | N
expandOnClickNode | Boolean | false | \- | N
expandParent | Boolean | false | \- | N
expanded | Array | [] | `.sync` is supported。Typescript:`Array<TreeNodeValue>` | N
defaultExpanded | Array | [] | uncontrolled property。Typescript:`Array<TreeNodeValue>` | N
filter | Function | - | Typescript:`(node: TreeNodeModel<T>) => boolean` | N
height | String / Number | - | table height | N
hover | Boolean | - | \- | N
Expand All @@ -40,7 +38,7 @@ scroll | Object | - | lazy load and virtual scroll。Typescript:`TScroll`。[s
transition | Boolean | true | \- | N
value | Array | [] | `v-model` is supported。Typescript:`Array<TreeNodeValue>` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N
defaultValue | Array | [] | uncontrolled property。Typescript:`Array<TreeNodeValue>` `type TreeNodeValue = string \| number`。[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N
valueMode | String | onlyLeaf | optionsonlyLeaf/parentFirst/all | N
valueMode | String | onlyLeaf | options: onlyLeaf/parentFirst/all | N
onActive | Function | | Typescript:`(value: Array<TreeNodeValue>, context: { node: TreeNodeModel<T>; e?: MouseEvent; trigger: 'node-click' \| 'setItem' }) => void`<br/> | N
onChange | Function | | Typescript:`(value: Array<TreeNodeValue>, context: { node: TreeNodeModel<T>; e?: any; trigger: 'node-click' \| 'setItem' }) => void`<br/> | N
onClick | Function | | Typescript:`(context: { node: TreeNodeModel<T>; e: MouseEvent }) => void`<br/> | N
Expand Down Expand Up @@ -143,4 +141,4 @@ bufferSize | Number | 20 | \- | N
isFixedRowHeight | Boolean | false | \- | N
rowHeight | Number | - | \- | N
threshold | Number | 100 | \- | N
type | String | - | required。optionslazy/virtual | Y
type | String | - | required。options: lazy/virtual | Y
2 changes: 0 additions & 2 deletions packages/products/tdesign-vue/src/tree/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activable | Boolean | false | 节点是否可高亮 | N
activeMultiple | Boolean | false | 是否允许多个节点同时高亮 | N
actived | Array | - | 高亮的节点值。支持语法糖 `.sync`。TS 类型:`Array<TreeNodeValue>` | N
defaultActived | Array | - | 高亮的节点值。非受控属性。TS 类型:`Array<TreeNodeValue>` | N
allowFoldNodeOnFilter | Boolean | false | 是否允许在过滤时节点折叠节点 | N
checkProps | Object | - | 透传属性到 checkbox 组件。参考 checkbox 组件 API。TS 类型:`CheckboxProps`,[Checkbox API Documents](./checkbox?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/tree/type.ts) | N
checkStrictly | Boolean | false | 父子节点选中状态不再关联,可各自选中或取消 | N
Expand All @@ -24,7 +23,6 @@ expandMutex | Boolean | false | 同级别展开互斥,手风琴效果 | N
expandOnClickNode | Boolean | false | 是否支持点击节点也能展开收起 | N
expandParent | Boolean | false | 展开子节点时是否自动展开父节点 | N
expanded | Array | [] | 展开的节点值。支持语法糖 `.sync`。TS 类型:`Array<TreeNodeValue>` | N
defaultExpanded | Array | [] | 展开的节点值。非受控属性。TS 类型:`Array<TreeNodeValue>` | N
filter | Function | - | 节点过滤方法,只呈现返回值为 true 的节点,泛型 `T` 表示树节点 TS 类型。TS 类型:`(node: TreeNodeModel<T>) => boolean` | N
height | String / Number | - | 表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight` | N
hover | Boolean | - | 节点是否有悬浮状态 | N
Expand Down
Loading