diff --git a/package/component/src/component/table/TableRow.vue b/package/component/src/component/table/TableRow.vue index 77b791a6..eb6f83d4 100644 --- a/package/component/src/component/table/TableRow.vue +++ b/package/component/src/component/table/TableRow.vue @@ -339,10 +339,10 @@ const radioProps = props.getRadioProps(props.data, props.index); @click="handleExpand" > - diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index 1b4e227a..3be0d862 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -74,7 +74,7 @@ const props = withDefaults(defineProps(), { expandKeys: () => [], loading: false, getCheckboxProps: () => {}, - getRadioProps: () => {} + getRadioProps: () => {}, }); const tableId = uuidv4(); @@ -477,7 +477,7 @@ const slotsData = ref([]); props.columns.map((value: any) => { if (value.customSlot) { slotsData.value.push(value.customSlot); - } + } }); const currentIndentSize = ref(0); diff --git a/package/document-component/src/document/zh-CN/components/table.md b/package/document-component/src/document/zh-CN/components/table.md index a9836ab6..d7d877cb 100644 --- a/package/document-component/src/document/zh-CN/components/table.md +++ b/package/document-component/src/document/zh-CN/components/table.md @@ -1440,6 +1440,8 @@ export default { | default-expand-all | 默认展开所有列 | `boolean` | `false` | `true` `false` | | expand-keys | 展开的列 | `array` | `[]` | -- | | span-method | 合并算法 | `function` | -- | -- | +| getCheckboxProps | 多选行属性 | `function` | -- | -- | +| getRadioProps | 单选行属性 | `function` | -- | -- | :::