✨(component): 更新 table 文档
This commit is contained in:
parent
9ddf369176
commit
2c5c265542
@ -339,10 +339,10 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
|||||||
@click="handleExpand"
|
@click="handleExpand"
|
||||||
></lay-icon>
|
></lay-icon>
|
||||||
|
|
||||||
<lay-radio
|
<lay-radio
|
||||||
v-model="tableSelectedKey"
|
v-model="tableSelectedKey"
|
||||||
v-bind="radioProps"
|
v-bind="radioProps"
|
||||||
:value="data[id]"
|
:value="data[id]"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
</template>
|
</template>
|
||||||
|
@ -74,7 +74,7 @@ const props = withDefaults(defineProps<LayTableProps>(), {
|
|||||||
expandKeys: () => [],
|
expandKeys: () => [],
|
||||||
loading: false,
|
loading: false,
|
||||||
getCheckboxProps: () => {},
|
getCheckboxProps: () => {},
|
||||||
getRadioProps: () => {}
|
getRadioProps: () => {},
|
||||||
});
|
});
|
||||||
|
|
||||||
const tableId = uuidv4();
|
const tableId = uuidv4();
|
||||||
@ -477,7 +477,7 @@ const slotsData = ref<string[]>([]);
|
|||||||
props.columns.map((value: any) => {
|
props.columns.map((value: any) => {
|
||||||
if (value.customSlot) {
|
if (value.customSlot) {
|
||||||
slotsData.value.push(value.customSlot);
|
slotsData.value.push(value.customSlot);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentIndentSize = ref(0);
|
const currentIndentSize = ref(0);
|
||||||
|
@ -1440,6 +1440,8 @@ export default {
|
|||||||
| default-expand-all | 默认展开所有列 | `boolean` | `false` | `true` `false` |
|
| default-expand-all | 默认展开所有列 | `boolean` | `false` | `true` `false` |
|
||||||
| expand-keys | 展开的列 | `array` | `[]` | -- |
|
| expand-keys | 展开的列 | `array` | `[]` | -- |
|
||||||
| span-method | 合并算法 | `function` | -- | -- |
|
| span-method | 合并算法 | `function` | -- | -- |
|
||||||
|
| getCheckboxProps | 多选行属性 | `function` | -- | -- |
|
||||||
|
| getRadioProps | 单选行属性 | `function` | -- | -- |
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user