Skip to content

Commit

Permalink
perf(baTable):优化表格的 props 继承的类型的定义
Browse files Browse the repository at this point in the history
  • Loading branch information
build-admin committed Jun 28, 2024
1 parent 7ff2948 commit f6603f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ import type baTableClass from '/@/utils/baTable'
const config = useConfig()
const tableRef = ref<TableInstance>()
const baTable = inject('baTable') as baTableClass
type ElTableProps = Partial<InstanceType<typeof ElTable>['$props']>
interface Props extends /* @vue-ignore */ Partial<InstanceType<typeof ElTable>> {
interface Props extends /* @vue-ignore */ ElTableProps {
pagination?: boolean
}
const props = withDefaults(defineProps<Props>(), {
Expand Down

0 comments on commit f6603f0

Please sign in to comment.