feat: type抽离

This commit is contained in:
hongxinzz
2022-10-09 17:12:03 +08:00
parent a62929a8da
commit 8b4fa1aa21
62 changed files with 223 additions and 172 deletions

View File

@@ -1,5 +1,6 @@
import Table from './src/Table.vue'
import { ElTable } from 'element-plus'
import { TableSetPropsType } from '@/types/table'
export interface TableExpose {
setProps: (props: Recordable) => void

View File

@@ -6,6 +6,7 @@ import { setIndex } from './helper'
import { getSlot } from '@/utils/tsxHelper'
import type { TableProps } from './types'
import { set } from 'lodash-es'
import { TableColumn, TableSlotDefault, Pagination, TableSetPropsType } from '../../../types/table'
export default defineComponent({
name: 'Table',

View File

@@ -1,3 +1,5 @@
import { Pagination, TableColumn } from '@/types/table'
export type TableProps = {
pageSize?: number
currentPage?: number