feat: Add Table component and add useTable hook
This commit is contained in:
7
types/componentType/table.d.ts
vendored
7
types/componentType/table.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user