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

Refactor Table with Composition API and Some New Features #468

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
bd986b6
feat(table): initial table
chaishi Mar 19, 2022
a6588d8
feat(table): base-table finished
chaishi Mar 19, 2022
89a472a
feat(primary-table): finished
chaishi Mar 20, 2022
f6cc38f
fix(table): affix: onFixedChange
chaishi Mar 20, 2022
dfa3c9d
feat(table): unit tests
chaishi Mar 21, 2022
f589997
Merge remote-tracking branch 'upstream/develop' into 20220319_feature…
chaishi Mar 21, 2022
07fd77f
style(table): fix lint error
chaishi Mar 21, 2022
a5b1ced
docs(tabl): bufferSize 10
chaishi Mar 21, 2022
a72eb4a
fix(table): first level tree-col ellipsis
chaishi Mar 21, 2022
6ee487a
docs(table): improve
chaishi Mar 21, 2022
2614fc6
feat(table): export refreshTable; add fullHeight
chaishi Mar 23, 2022
1601d2e
feat: merge from upstream/develop
chaishi Mar 23, 2022
db6aa1d
fix(table): 父元素为 display: none 时,也需正常渲染表格内容
chaishi Mar 23, 2022
558b180
test(table): update snapshots
chaishi Mar 23, 2022
95819e5
fix(table): global config
chaishi Mar 24, 2022
fda3d88
refactor(table): typo error
chaishi Mar 26, 2022
d12997d
refactor(table): rename, spell, test
chaishi Mar 27, 2022
0f44cf6
refactor(table): pagination
chaishi Mar 27, 2022
5c8b328
test(table): update snapshots
chaishi Mar 27, 2022
2b48157
chore(table): typo error & update base demo
chaishi Mar 27, 2022
0123796
fix(table): custom footer
chaishi Mar 27, 2022
f6a8b3a
fix(table): ts lint
chaishi Mar 28, 2022
078db4c
feat: merge from upstream/develop
chaishi Mar 28, 2022
ae6f7c1
feat(table): some feature
chaishi Mar 29, 2022
f354411
feat(table): add displayColumns and onDisplayColumnsChange
chaishi Mar 29, 2022
565be3a
feat(table): some features and bugs
chaishi Apr 2, 2022
e208307
feat(table): some features
chaishi Apr 3, 2022
0ef3a58
feat: merge from upstream/develop
chaishi Apr 3, 2022
410a40b
feat(table): drag-sort
chaishi Apr 3, 2022
75d27ab
style(calendar): typo error
chaishi Apr 3, 2022
abe043b
feat(table): drag-col-sort
chaishi Apr 3, 2022
c77497b
feat(tabl): remove dragSort=drag-col
chaishi Apr 3, 2022
9c1973f
feat(table): 全面支持表格内部文本语言配置
chaishi Apr 4, 2022
7270d78
docs(config-provder): udpate docs
chaishi Apr 5, 2022
0e5783c
feat(config-provider): global
chaishi Apr 5, 2022
9892e8c
feat(table): some features
chaishi Apr 5, 2022
cfdcd2a
fix(table): eslint error
chaishi Apr 5, 2022
b871534
fix(table): rowClassName
chaishi Apr 5, 2022
87e2a33
refactor(table): 懒加载代码整理
chaishi Apr 6, 2022
3bf96ac
feat(table): width 延时获取
chaishi Apr 6, 2022
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
10 changes: 5 additions & 5 deletions examples/checkbox/checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
checkAll | Boolean | false | 用于标识是否为「全选选项」。单独使用无效,需在 CheckboxGroup 中使用 | N
checked | Boolean | false | 是否选中。支持语法糖 `v-model` 或 `v-model:checked` | N
defaultChecked | Boolean | false | 是否选中。非受控属性 | N
default | String / Slot / Function | - | 复选框内容,同 label。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
default | String / Slot / Function | - | 多选框内容,同 label。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
disabled | Boolean | undefined | 是否禁用组件 | N
indeterminate | Boolean | false | 是否为半选 | N
label | String / Slot / Function | - | 主文案。TS 类型:`string | TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
name | String | - | HTML 元素原生属性 | N
readonly | Boolean | false | 组件是否只读 | N
value | String / Number | - | 复选框的值。TS 类型:`string | number` | N
readonly | Boolean | false | 只读状态 | N
value | String / Number | - | 多选框的值。TS 类型:`string | number` | N
onChange | Function | | TS 类型:`(checked: boolean, context: { e: Event }) => void`<br/>值变化时触发 | N

### Checkbox Events
Expand All @@ -33,10 +33,10 @@ name | String | - | 统一设置内部复选框 HTML 属性 | N
options | Array | [] | 以配置形式设置子元素。示例1:`['北京', '上海']` ,示例2: `[{ label: '全选', checkAll: true }, { label: '上海', value: 'shanghai' }]`。checkAll 值为 true 表示当前选项为「全选选项」。TS 类型:`Array<CheckboxOption>` `type CheckboxOption = string | number | CheckboxOptionObj` `interface CheckboxOptionObj { label?: string | TNode; value?: string | number; disabled?: boolean; name?: string; checkAll?: true }`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts)。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/checkbox/type.ts) | N
value | Array | [] | 选中值。支持语法糖 `v-model` 或 `v-model:value`。TS 类型:`CheckboxGroupValue` `type CheckboxGroupValue = Array<string | number>`。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/checkbox/type.ts) | N
defaultValue | Array | [] | 选中值。非受控属性。TS 类型:`CheckboxGroupValue` `type CheckboxGroupValue = Array<string | number>`。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/checkbox/type.ts) | N
onChange | Function | | TS 类型:`(value: CheckboxGroupValue, context: CheckboxGroupChangeContext) => void`<br/>值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/checkbox/type.ts)。<br/>`interface CheckboxGroupChangeContext { e: Event; current: CheckboxOption | TdCheckboxProps; type: 'check' | 'uncheck' }`<br/> | N
onChange | Function | | TS 类型:`(value: CheckboxGroupValue, context: CheckboxGroupChangeContext) => void`<br/>值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/checkbox/type.ts)。<br/>`interface CheckboxGroupChangeContext { e: Event; current: string | number; option: CheckboxOption | TdCheckboxProps; type: 'check' | 'uncheck' }`<br/> | N

### CheckboxGroup Events

名称 | 参数 | 描述
-- | -- | --
change | `(value: CheckboxGroupValue, context: CheckboxGroupChangeContext)` | 值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/checkbox/type.ts)。<br/>`interface CheckboxGroupChangeContext { e: Event; current: CheckboxOption | TdCheckboxProps; type: 'check' | 'uncheck' }`<br/>
change | `(value: CheckboxGroupValue, context: CheckboxGroupChangeContext)` | 值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/checkbox/type.ts)。<br/>`interface CheckboxGroupChangeContext { e: Event; current: string | number; option: CheckboxOption | TdCheckboxProps; type: 'check' | 'uncheck' }`<br/>
Loading