ludu-admin-vue3/src/types/table.d.ts

43 lines
788 B
TypeScript

export type TableColumn = {
field: string
label?: string
children?: TableColumn[]
} & Recordable
export type VxeTableColumn = {
field: string
title?: string
children?: TableColumn[]
} & Recordable
export type TableSlotDefault = {
row: Recordable
column: TableColumn
$index: number
} & Recordable
export interface Pagination {
small?: boolean
background?: boolean
pageSize?: number
defaultPageSize?: number
total?: number
pageCount?: number
pagerCount?: number
currentPage?: number
defaultCurrentPage?: number
layout?: string
pageSizes?: number[]
popperClass?: string
prevText?: string
nextText?: string
disabled?: boolean
hideOnSinglePage?: boolean
}
export interface TableSetPropsType {
field: string
path: string
value: any
}