|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
import { computed, inject, ref, toRaw, unref, useAttrs, useSlots, watchEffect } from 'vue' |
|
|
|
|
import { Table } from 'ant-design-vue' |
|
|
|
|
import { omit } from 'lodash-es' |
|
|
|
|
import type { BasicTableProps, ColumnChangeParam, InnerHandlers, SizeType, SlotBodyCellProps, TableActionType } from './types/table' |
|
|
|
|
import type { BasicTableProps, ColumnChangeParam, InnerHandlers, SizeType, SlotBodyCellProps, TableActionType, TableSlotNames } from './types/table' |
|
|
|
|
import HeaderCell from './components/HeaderCell.vue' |
|
|
|
|
import ExpandIcon from './components/ExpandIcon.vue' |
|
|
|
|
import { usePagination } from './hooks/usePagination' |
|
|
|
@ -319,7 +319,7 @@ else {
|
|
|
|
|
@change="handleTableChange" |
|
|
|
|
@resize-column="setColumnWidth" |
|
|
|
|
> |
|
|
|
|
<template v-for="item in Object.keys($slots)" #[item]="data" :key="item"> |
|
|
|
|
<template v-for="item in (Object.keys($slots) as TableSlotNames[])" #[item]="data" :key="item"> |
|
|
|
|
<!-- eslint-disable-next-line vue/no-extra-parens --> |
|
|
|
|
<slot :name="item" v-bind="((data || {}) as SlotBodyCellProps<T>)" /> |
|
|
|
|
</template> |
|
|
|
|