✨(component): 更新 table 文档
This commit is contained in:
@@ -339,10 +339,10 @@ const radioProps = props.getRadioProps(props.data, props.index);
|
||||
@click="handleExpand"
|
||||
></lay-icon>
|
||||
|
||||
<lay-radio
|
||||
v-model="tableSelectedKey"
|
||||
v-bind="radioProps"
|
||||
:value="data[id]"
|
||||
<lay-radio
|
||||
v-model="tableSelectedKey"
|
||||
v-bind="radioProps"
|
||||
:value="data[id]"
|
||||
/>
|
||||
</td>
|
||||
</template>
|
||||
|
||||
@@ -74,7 +74,7 @@ const props = withDefaults(defineProps<LayTableProps>(), {
|
||||
expandKeys: () => [],
|
||||
loading: false,
|
||||
getCheckboxProps: () => {},
|
||||
getRadioProps: () => {}
|
||||
getRadioProps: () => {},
|
||||
});
|
||||
|
||||
const tableId = uuidv4();
|
||||
@@ -477,7 +477,7 @@ const slotsData = ref<string[]>([]);
|
||||
props.columns.map((value: any) => {
|
||||
if (value.customSlot) {
|
||||
slotsData.value.push(value.customSlot);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const currentIndentSize = ref(0);
|
||||
|
||||
Reference in New Issue
Block a user