fix: 修复 GiTable 插槽类型不完全问题(同步 GiDemo 更新)

This commit is contained in:
2024-12-09 21:47:08 +08:00
parent 4dbe91821a
commit 4b5536a0b2

View File

@@ -29,8 +29,7 @@
</a-tooltip> </a-tooltip>
<template #content> <template #content>
<a-doption v-for="item in sizeList" :key="item.value" :value="item.value" :active="item.value === size"> <a-doption v-for="item in sizeList" :key="item.value" :value="item.value" :active="item.value === size">
{{ {{ item.label }}
item.label }}
</a-doption> </a-doption>
</template> </template>
</a-dropdown> </a-dropdown>
@@ -125,6 +124,10 @@ defineSlots<{
'expand-row': (props: { record: T }) => void 'expand-row': (props: { record: T }) => void
'expand-icon': (props: { record: T, expanded?: boolean }) => void 'expand-icon': (props: { record: T, expanded?: boolean }) => void
'columns': () => void 'columns': () => void
'custom-title': () => void
'top': () => void
'toolbar-left': () => void
'toolbar-right': () => void
[propsName: string]: (props: { key: string, record: T, column: TableColumnData, rowIndex: number }) => void [propsName: string]: (props: { key: string, record: T, column: TableColumnData, rowIndex: number }) => void
}>() }>()