feat: Add Table component and add useTable hook

This commit is contained in:
陈凯龙
2022-02-09 16:19:21 +08:00
parent b271e13227
commit 17e8e7cda9
10 changed files with 387 additions and 69 deletions

View File

@@ -1,6 +1,7 @@
declare type TableColumn = {
field: string
label?: string
children?: TableColumn[]
} & Recordable
declare type TableSlotDefault = {
@@ -27,3 +28,9 @@ declare interface Pagination {
disabled?: boolean
hideOnSinglePage?: boolean
}
declare interface TableSetPropsType {
field: string
path: string
value: any
}