2023-02-11 00:44:00 +08:00
|
|
|
export type TableColumn = {
|
|
|
|
field: string
|
|
|
|
label?: string
|
2023-06-21 15:27:35 +08:00
|
|
|
width?: number | string
|
|
|
|
fixed?: 'left' | 'right'
|
2023-02-11 00:44:00 +08:00
|
|
|
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
|
|
|
|
}
|