Skip to content

Commit f366d64

Browse files
authored
docs(data-table): fix disabled prop type, closes #6899
1 parent 88981a1 commit f366d64

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/data-table/demos/enUS/index.demo-entry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export-csv.vue
137137
| defaultFilterOptionValue | `string \| number \| null` | `null` | The default active filter option value in uncontrolled manner. (works when not using multiple filters). | |
138138
| defaultFilterOptionValues | `Array<string \| number>` | `[]` | The default active filter option values in uncontrolled manner. (works when there are multiple filters). | |
139139
| defaultSortOrder | `'descend' \| 'ascend' \| false` | `false` | The default sort order of the table in uncontrolled manner. | |
140-
| disabled | `(rowData: object, rowIndex: number) => boolean` | `() => false` | Whether the row is checkable. | |
140+
| disabled | `(rowData: object) => boolean` | `() => false` | Whether the row is checkable. | |
141141
| ellipsis | `boolean \| EllipsisProps` | `false` | Ellipsis options when content overflows. | |
142142
| ellipsis-component | `'ellipsis' \| 'performant-ellipsis'` | `'ellipsis'` | Component for rendering text ellipsis. It works when `ellipsis` is `EllipsisProps`. If it's `'ellipsis'`, table will use regular `n-ellipsis` component to render text ellipsis. If it's `'performant-ellipsis'`, table will use `n-performant-ellipsis` to render text ellipsis. In the later situation, rendering speed will be much faster but component inside table cell would be unmounted & remounted. | 2.35.0 |
143143
| expandable | `(rowData: object) => boolean` | `undefined` | Whethe the row is expandable. Only works when `type` is `'expand'`. | |

src/data-table/demos/zhCN/index.demo-entry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ rtl-debug.vue
148148
| defaultFilterOptionValue | `string \| number \| null` | `null` | 非受控状态下默认的过滤器选项值(过滤器单选时生效) | |
149149
| defaultFilterOptionValues | `Array<string \| number>` | `[]` | 非受控状态下默认的过滤器选项值(过滤器多选时生效) | |
150150
| defaultSortOrder | `'descend' \| 'ascend' \| false` | `false` | 非受控状态下表格默认的排序方式 | |
151-
| disabled | `(rowData: object, rowIndex: number) => boolean` | `undefined` | 是否禁用 | |
151+
| disabled | `(rowData: object) => boolean` | `undefined` | 是否禁用 | |
152152
| ellipsis | `boolean \| EllipsisProps` | `false` | 文本溢出的设置 | |
153153
| ellipsis-component | `'ellipsis' \| 'performant-ellipsis'` | `'ellipsis'` | 渲染文本溢出时使用的组件,在 `ellipsis` 属性为 `EllipsisProps` 时生效。若为 `'ellipsis'` 则使用常规的 `n-ellipsis` 组件渲染,若为 `'performant-ellipsis'` 则使用 `n-performant-ellipsis` 渲染,这种情况下会有更高的渲染性能,但是每个折叠的单元格中的组件有可能被重新卸载和挂载 | 2.35.0 |
154154
| expandable | `(rowData: object) => boolean` | `undefined` | 行是否可展开,仅在 `type``'expand'` 时生效 | |

0 commit comments

Comments
 (0)