|
@@ -1,18 +1,18 @@
|
|
|
-import type { VNodeChild } from 'vue'
|
|
|
-import type { PaginationProps } from './pagination'
|
|
|
-import type { FormProps } from '/@/components/Form'
|
|
|
+import type { VNodeChild } from 'vue';
|
|
|
+import type { PaginationProps } from './pagination';
|
|
|
+import type { FormProps } from '/@/components/Form';
|
|
|
import type {
|
|
|
ColumnProps,
|
|
|
- TableRowSelection as ITableRowSelection
|
|
|
-} from 'ant-design-vue/lib/table/interface'
|
|
|
+ TableRowSelection as ITableRowSelection,
|
|
|
+} from 'ant-design-vue/lib/table/interface';
|
|
|
|
|
|
-import { ComponentType } from './componentType'
|
|
|
-import { VueNode } from '/@/utils/propTypes'
|
|
|
+import { ComponentType } from './componentType';
|
|
|
+import { VueNode } from '/@/utils/propTypes';
|
|
|
|
|
|
-export declare type SortOrder = 'ascend' | 'descend'
|
|
|
+export declare type SortOrder = 'ascend' | 'descend';
|
|
|
|
|
|
export interface TableCurrentDataSource<T = Recordable> {
|
|
|
- currentDataSource: T[]
|
|
|
+ currentDataSource: T[];
|
|
|
}
|
|
|
|
|
|
export interface TableRowSelection<T = any> extends ITableRowSelection {
|
|
@@ -20,278 +20,278 @@ export interface TableRowSelection<T = any> extends ITableRowSelection {
|
|
|
* Callback executed when selected rows change
|
|
|
* @type Function
|
|
|
*/
|
|
|
- onChange?: (selectedRowKeys: string[] | number[], selectedRows: T[]) => any
|
|
|
+ onChange?: (selectedRowKeys: string[] | number[], selectedRows: T[]) => any;
|
|
|
|
|
|
/**
|
|
|
* Callback executed when select/deselect one row
|
|
|
* @type FunctionT
|
|
|
*/
|
|
|
- onSelect?: (record: T, selected: boolean, selectedRows: Object[], nativeEvent: Event) => any
|
|
|
+ onSelect?: (record: T, selected: boolean, selectedRows: Object[], nativeEvent: Event) => any;
|
|
|
|
|
|
/**
|
|
|
* Callback executed when select/deselect all rows
|
|
|
* @type Function
|
|
|
*/
|
|
|
- onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => any
|
|
|
+ onSelectAll?: (selected: boolean, selectedRows: T[], changeRows: T[]) => any;
|
|
|
|
|
|
/**
|
|
|
* Callback executed when row selection is inverted
|
|
|
* @type Function
|
|
|
*/
|
|
|
- onSelectInvert?: (selectedRows: string[] | number[]) => any
|
|
|
+ onSelectInvert?: (selectedRows: string[] | number[]) => any;
|
|
|
}
|
|
|
|
|
|
export interface TableCustomRecord<T> {
|
|
|
- record?: T
|
|
|
- index?: number
|
|
|
+ record?: T;
|
|
|
+ index?: number;
|
|
|
}
|
|
|
|
|
|
export interface ExpandedRowRenderRecord<T> extends TableCustomRecord<T> {
|
|
|
- indent?: number
|
|
|
- expanded?: boolean
|
|
|
+ indent?: number;
|
|
|
+ expanded?: boolean;
|
|
|
}
|
|
|
export interface ColumnFilterItem {
|
|
|
- text?: string
|
|
|
- value?: string
|
|
|
- children?: any
|
|
|
+ text?: string;
|
|
|
+ value?: string;
|
|
|
+ children?: any;
|
|
|
}
|
|
|
|
|
|
export interface TableCustomRecord<T = Recordable> {
|
|
|
- record?: T
|
|
|
- index?: number
|
|
|
+ record?: T;
|
|
|
+ index?: number;
|
|
|
}
|
|
|
|
|
|
export interface SorterResult {
|
|
|
- column: ColumnProps
|
|
|
- order: SortOrder
|
|
|
- field: string
|
|
|
- columnKey: string
|
|
|
+ column: ColumnProps;
|
|
|
+ order: SortOrder;
|
|
|
+ field: string;
|
|
|
+ columnKey: string;
|
|
|
}
|
|
|
|
|
|
export interface FetchParams {
|
|
|
- searchInfo?: Recordable
|
|
|
- page?: number
|
|
|
- sortInfo?: Recordable
|
|
|
- filterInfo?: Recordable
|
|
|
+ searchInfo?: Recordable;
|
|
|
+ page?: number;
|
|
|
+ sortInfo?: Recordable;
|
|
|
+ filterInfo?: Recordable;
|
|
|
}
|
|
|
|
|
|
export interface GetColumnsParams {
|
|
|
- ignoreIndex?: boolean
|
|
|
- ignoreAction?: boolean
|
|
|
- sort?: boolean
|
|
|
+ ignoreIndex?: boolean;
|
|
|
+ ignoreAction?: boolean;
|
|
|
+ sort?: boolean;
|
|
|
}
|
|
|
|
|
|
-export type SizeType = 'default' | 'middle' | 'small' | 'large'
|
|
|
+export type SizeType = 'default' | 'middle' | 'small' | 'large';
|
|
|
|
|
|
export interface TableActionType {
|
|
|
- reload: (opt?: FetchParams) => Promise<void>
|
|
|
- getSelectRows: <T = Recordable>() => T[]
|
|
|
- clearSelectedRowKeys: () => void
|
|
|
- expandAll: () => void
|
|
|
- collapseAll: () => void
|
|
|
- getSelectRowKeys: () => string[]
|
|
|
- deleteSelectRowByKey: (key: string) => void
|
|
|
- setPagination: (info: Partial<PaginationProps>) => void
|
|
|
- setTableData: <T = Recordable>(values: T[]) => void
|
|
|
- getColumns: (opt?: GetColumnsParams) => BasicColumn[]
|
|
|
- setColumns: (columns: BasicColumn[] | string[]) => void
|
|
|
- getDataSource: <T = Recordable>() => T[]
|
|
|
- setLoading: (loading: boolean) => void
|
|
|
- setProps: (props: Partial<BasicTableProps>) => void
|
|
|
- redoHeight: () => void
|
|
|
- setSelectedRowKeys: (rowKeys: string[] | number[]) => void
|
|
|
- getPaginationRef: () => PaginationProps | boolean
|
|
|
- getSize: () => SizeType
|
|
|
- getRowSelection: () => TableRowSelection<Recordable>
|
|
|
- getCacheColumns: () => BasicColumn[]
|
|
|
- emit?: EmitType
|
|
|
- updateTableData: (index: number, key: string, value: any) => Recordable
|
|
|
- setShowPagination: (show: boolean) => Promise<void>
|
|
|
- getShowPagination: () => boolean
|
|
|
- setCacheColumnsByField?: (dataIndex: string | undefined, value: BasicColumn) => void
|
|
|
+ reload: (opt?: FetchParams) => Promise<void>;
|
|
|
+ getSelectRows: <T = Recordable>() => T[];
|
|
|
+ clearSelectedRowKeys: () => void;
|
|
|
+ expandAll: () => void;
|
|
|
+ collapseAll: () => void;
|
|
|
+ getSelectRowKeys: () => string[];
|
|
|
+ deleteSelectRowByKey: (key: string) => void;
|
|
|
+ setPagination: (info: Partial<PaginationProps>) => void;
|
|
|
+ setTableData: <T = Recordable>(values: T[]) => void;
|
|
|
+ getColumns: (opt?: GetColumnsParams) => BasicColumn[];
|
|
|
+ setColumns: (columns: BasicColumn[] | string[]) => void;
|
|
|
+ getDataSource: <T = Recordable>() => T[];
|
|
|
+ setLoading: (loading: boolean) => void;
|
|
|
+ setProps: (props: Partial<BasicTableProps>) => void;
|
|
|
+ redoHeight: () => void;
|
|
|
+ setSelectedRowKeys: (rowKeys: string[] | number[]) => void;
|
|
|
+ getPaginationRef: () => PaginationProps | boolean;
|
|
|
+ getSize: () => SizeType;
|
|
|
+ getRowSelection: () => TableRowSelection<Recordable>;
|
|
|
+ getCacheColumns: () => BasicColumn[];
|
|
|
+ emit?: EmitType;
|
|
|
+ updateTableData: (index: number, key: string, value: any) => Recordable;
|
|
|
+ setShowPagination: (show: boolean) => Promise<void>;
|
|
|
+ getShowPagination: () => boolean;
|
|
|
+ setCacheColumnsByField?: (dataIndex: string | undefined, value: BasicColumn) => void;
|
|
|
}
|
|
|
|
|
|
export interface FetchSetting {
|
|
|
// 请求接口当前页数
|
|
|
- pageField: string
|
|
|
+ pageField: string;
|
|
|
// 每页显示多少条
|
|
|
- sizeField: string
|
|
|
+ sizeField: string;
|
|
|
// 请求结果列表字段 支持 a.b.c
|
|
|
- listField: string
|
|
|
+ listField: string;
|
|
|
// 请求结果总数字段 支持 a.b.c
|
|
|
- totalField: string
|
|
|
+ totalField: string;
|
|
|
}
|
|
|
|
|
|
export interface TableSetting {
|
|
|
- redo?: boolean
|
|
|
- size?: boolean
|
|
|
- setting?: boolean
|
|
|
- fullScreen?: boolean
|
|
|
+ redo?: boolean;
|
|
|
+ size?: boolean;
|
|
|
+ setting?: boolean;
|
|
|
+ fullScreen?: boolean;
|
|
|
}
|
|
|
|
|
|
export interface BasicTableProps<T = any> {
|
|
|
// 点击行选中
|
|
|
- clickToRowSelect?: boolean
|
|
|
- isTreeTable?: boolean
|
|
|
+ clickToRowSelect?: boolean;
|
|
|
+ isTreeTable?: boolean;
|
|
|
// 自定义排序方法
|
|
|
- sortFn?: (sortInfo: SorterResult) => any
|
|
|
+ sortFn?: (sortInfo: SorterResult) => any;
|
|
|
// 排序方法
|
|
|
- filterFn?: (data: Partial<Recordable<string[]>>) => any
|
|
|
+ filterFn?: (data: Partial<Recordable<string[]>>) => any;
|
|
|
// 取消表格的默认padding
|
|
|
- inset?: boolean
|
|
|
+ inset?: boolean;
|
|
|
// 显示表格设置
|
|
|
- showTableSetting?: boolean
|
|
|
- tableSetting?: TableSetting
|
|
|
+ showTableSetting?: boolean;
|
|
|
+ tableSetting?: TableSetting;
|
|
|
// 斑马纹
|
|
|
- striped?: boolean
|
|
|
+ striped?: boolean;
|
|
|
// 是否自动生成key
|
|
|
- autoCreateKey?: boolean
|
|
|
+ autoCreateKey?: boolean;
|
|
|
// 计算合计行的方法
|
|
|
- summaryFunc?: (...arg: any) => Recordable[]
|
|
|
+ summaryFunc?: (...arg: any) => Recordable[];
|
|
|
// 自定义合计表格内容
|
|
|
- summaryData?: Recordable[]
|
|
|
+ summaryData?: Recordable[];
|
|
|
// 是否显示合计行
|
|
|
- showSummary?: boolean
|
|
|
+ showSummary?: boolean;
|
|
|
// 是否可拖拽列
|
|
|
- canColDrag?: boolean
|
|
|
+ canColDrag?: boolean;
|
|
|
// 接口请求对象
|
|
|
- api?: (...arg: any) => Promise<any>
|
|
|
+ api?: (...arg: any) => Promise<any>;
|
|
|
// 请求之前处理参数
|
|
|
- beforeFetch?: Fn
|
|
|
+ beforeFetch?: Fn;
|
|
|
// 自定义处理接口返回参数
|
|
|
- afterFetch?: Fn
|
|
|
+ afterFetch?: Fn;
|
|
|
// 查询条件请求之前处理
|
|
|
- handleSearchInfoFn?: Fn
|
|
|
+ handleSearchInfoFn?: Fn;
|
|
|
// 请求接口配置
|
|
|
- fetchSetting?: FetchSetting
|
|
|
+ fetchSetting?: FetchSetting;
|
|
|
// 立即请求接口
|
|
|
- immediate?: boolean
|
|
|
+ immediate?: boolean;
|
|
|
// 在开起搜索表单的时候,如果没有数据是否显示表格
|
|
|
- emptyDataIsShowTable?: boolean
|
|
|
+ emptyDataIsShowTable?: boolean;
|
|
|
// 额外的请求参数
|
|
|
- searchInfo?: Recordable
|
|
|
+ searchInfo?: Recordable;
|
|
|
// 使用搜索表单
|
|
|
- useSearchForm?: boolean
|
|
|
+ useSearchForm?: boolean;
|
|
|
// 表单配置
|
|
|
- formConfig?: Partial<FormProps>
|
|
|
+ formConfig?: Partial<FormProps>;
|
|
|
// 列配置
|
|
|
- columns: BasicColumn[]
|
|
|
+ columns: BasicColumn[];
|
|
|
// 是否显示序号列
|
|
|
- showIndexColumn?: boolean
|
|
|
+ showIndexColumn?: boolean;
|
|
|
// 序号列配置
|
|
|
- indexColumnProps?: BasicColumn
|
|
|
- actionColumn?: BasicColumn
|
|
|
+ indexColumnProps?: BasicColumn;
|
|
|
+ actionColumn?: BasicColumn;
|
|
|
// 文本超过宽度是否显示。。。
|
|
|
- ellipsis?: boolean
|
|
|
+ ellipsis?: boolean;
|
|
|
// 是否可以自适应高度
|
|
|
- canResize?: boolean
|
|
|
+ canResize?: boolean;
|
|
|
// 自适应高度偏移, 计算结果-偏移量
|
|
|
- resizeHeightOffset?: number
|
|
|
+ resizeHeightOffset?: number;
|
|
|
|
|
|
// 在分页改变的时候清空选项
|
|
|
- clearSelectOnPageChange?: boolean
|
|
|
+ clearSelectOnPageChange?: boolean;
|
|
|
//
|
|
|
- rowKey?: string | ((record: Recordable) => string)
|
|
|
+ rowKey?: string | ((record: Recordable) => string);
|
|
|
// 数据
|
|
|
- dataSource?: Recordable[]
|
|
|
+ dataSource?: Recordable[];
|
|
|
// 标题右侧提示
|
|
|
- titleHelpMessage?: string | string[]
|
|
|
+ titleHelpMessage?: string | string[];
|
|
|
// 表格滚动最大高度
|
|
|
- maxHeight?: number
|
|
|
+ maxHeight?: number;
|
|
|
// 是否显示边框
|
|
|
- bordered?: boolean
|
|
|
+ bordered?: boolean;
|
|
|
// 分页配置
|
|
|
- pagination?: PaginationProps | boolean
|
|
|
+ pagination?: PaginationProps | boolean;
|
|
|
// loading加载
|
|
|
- loading?: boolean
|
|
|
+ loading?: boolean;
|
|
|
|
|
|
/**
|
|
|
* The column contains children to display
|
|
|
* @default 'children'
|
|
|
* @type string | string[]
|
|
|
*/
|
|
|
- childrenColumnName?: string
|
|
|
+ childrenColumnName?: string;
|
|
|
|
|
|
/**
|
|
|
* Override default table elements
|
|
|
* @type object
|
|
|
*/
|
|
|
- components?: object
|
|
|
+ components?: object;
|
|
|
|
|
|
/**
|
|
|
* Expand all rows initially
|
|
|
* @default false
|
|
|
* @type boolean
|
|
|
*/
|
|
|
- defaultExpandAllRows?: boolean
|
|
|
+ defaultExpandAllRows?: boolean;
|
|
|
|
|
|
/**
|
|
|
* Initial expanded row keys
|
|
|
* @type string[]
|
|
|
*/
|
|
|
- defaultExpandedRowKeys?: string[]
|
|
|
+ defaultExpandedRowKeys?: string[];
|
|
|
|
|
|
/**
|
|
|
* Current expanded row keys
|
|
|
* @type string[]
|
|
|
*/
|
|
|
- expandedRowKeys?: string[]
|
|
|
+ expandedRowKeys?: string[];
|
|
|
|
|
|
/**
|
|
|
* Expanded container render for each row
|
|
|
* @type Function
|
|
|
*/
|
|
|
- expandedRowRender?: (record?: ExpandedRowRenderRecord<T>) => VNodeChild | JSX.Element
|
|
|
+ expandedRowRender?: (record?: ExpandedRowRenderRecord<T>) => VNodeChild | JSX.Element;
|
|
|
|
|
|
/**
|
|
|
* Customize row expand Icon.
|
|
|
* @type Function | VNodeChild
|
|
|
*/
|
|
|
- expandIcon?: Function | VNodeChild | JSX.Element
|
|
|
+ expandIcon?: Function | VNodeChild | JSX.Element;
|
|
|
|
|
|
/**
|
|
|
* Whether to expand row by clicking anywhere in the whole row
|
|
|
* @default false
|
|
|
* @type boolean
|
|
|
*/
|
|
|
- expandRowByClick?: boolean
|
|
|
+ expandRowByClick?: boolean;
|
|
|
|
|
|
/**
|
|
|
* The index of `expandIcon` which column will be inserted when `expandIconAsCell` is false. default 0
|
|
|
*/
|
|
|
- expandIconColumnIndex?: number
|
|
|
+ expandIconColumnIndex?: number;
|
|
|
|
|
|
/**
|
|
|
* Table footer renderer
|
|
|
* @type Function | VNodeChild
|
|
|
*/
|
|
|
- footer?: Function | VNodeChild | JSX.Element
|
|
|
+ footer?: Function | VNodeChild | JSX.Element;
|
|
|
|
|
|
/**
|
|
|
* Indent size in pixels of tree data
|
|
|
* @default 15
|
|
|
* @type number
|
|
|
*/
|
|
|
- indentSize?: number
|
|
|
+ indentSize?: number;
|
|
|
|
|
|
/**
|
|
|
* i18n text including filter, sort, empty text, etc
|
|
|
* @default { filterConfirm: 'Ok', filterReset: 'Reset', emptyText: 'No Data' }
|
|
|
* @type object
|
|
|
*/
|
|
|
- locale?: object
|
|
|
+ locale?: object;
|
|
|
|
|
|
/**
|
|
|
* Row's className
|
|
|
* @type Function
|
|
|
*/
|
|
|
- rowClassName?: (record: TableCustomRecord<T>) => string
|
|
|
+ rowClassName?: (record: TableCustomRecord<T>) => string;
|
|
|
|
|
|
/**
|
|
|
* Row selection config
|
|
|
* @type object
|
|
|
*/
|
|
|
- rowSelection?: TableRowSelection
|
|
|
+ rowSelection?: TableRowSelection;
|
|
|
|
|
|
/**
|
|
|
* Set horizontal or vertical scrolling, can also be used to specify the width and height of the scroll area.
|
|
@@ -299,39 +299,39 @@ export interface BasicTableProps<T = any> {
|
|
|
* you need to add style .ant-table td { white-space: nowrap; }.
|
|
|
* @type object
|
|
|
*/
|
|
|
- scroll?: { x?: number | true; y?: number }
|
|
|
+ scroll?: { x?: number | true; y?: number };
|
|
|
|
|
|
/**
|
|
|
* Whether to show table header
|
|
|
* @default true
|
|
|
* @type boolean
|
|
|
*/
|
|
|
- showHeader?: boolean
|
|
|
+ showHeader?: boolean;
|
|
|
|
|
|
/**
|
|
|
* Size of table
|
|
|
* @default 'default'
|
|
|
* @type string
|
|
|
*/
|
|
|
- size?: SizeType
|
|
|
+ size?: SizeType;
|
|
|
|
|
|
/**
|
|
|
* Table title renderer
|
|
|
* @type Function | ScopedSlot
|
|
|
*/
|
|
|
- title?: VNodeChild | JSX.Element | string | ((data: Recordable) => string)
|
|
|
+ title?: VNodeChild | JSX.Element | string | ((data: Recordable) => string);
|
|
|
|
|
|
/**
|
|
|
* Set props on per header row
|
|
|
* @type Function
|
|
|
*/
|
|
|
- customHeaderRow?: (column: ColumnProps, index: number) => object
|
|
|
+ customHeaderRow?: (column: ColumnProps, index: number) => object;
|
|
|
|
|
|
/**
|
|
|
* Set props on per row
|
|
|
* @type Function
|
|
|
*/
|
|
|
- customRow?: (record: T, index: number) => object
|
|
|
+ customRow?: (record: T, index: number) => object;
|
|
|
|
|
|
/**
|
|
|
* `table-layout` attribute of table element
|
|
@@ -340,14 +340,14 @@ export interface BasicTableProps<T = any> {
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout
|
|
|
* @version 1.5.0
|
|
|
*/
|
|
|
- tableLayout?: 'auto' | 'fixed' | string
|
|
|
+ tableLayout?: 'auto' | 'fixed' | string;
|
|
|
|
|
|
/**
|
|
|
* the render container of dropdowns in table
|
|
|
* @param triggerNode
|
|
|
* @version 1.5.0
|
|
|
*/
|
|
|
- getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement
|
|
|
+ getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
|
|
|
|
|
|
/**
|
|
|
* Data can be changed again before rendering.
|
|
@@ -356,7 +356,7 @@ export interface BasicTableProps<T = any> {
|
|
|
*
|
|
|
* @version 1.5.4
|
|
|
*/
|
|
|
- transformCellText?: Function
|
|
|
+ transformCellText?: Function;
|
|
|
|
|
|
/**
|
|
|
* Callback executed when pagination, filters or sorter is changed
|
|
@@ -365,7 +365,7 @@ export interface BasicTableProps<T = any> {
|
|
|
* @param sorter
|
|
|
* @param currentDataSource
|
|
|
*/
|
|
|
- onChange?: (pagination: any, filters: any, sorter: any, extra: any) => void
|
|
|
+ onChange?: (pagination: any, filters: any, sorter: any, extra: any) => void;
|
|
|
|
|
|
/**
|
|
|
* Callback executed when the row expand icon is clicked
|
|
@@ -373,52 +373,52 @@ export interface BasicTableProps<T = any> {
|
|
|
* @param expanded
|
|
|
* @param record
|
|
|
*/
|
|
|
- onExpand?: (expande: boolean, record: T) => void
|
|
|
+ onExpand?: (expande: boolean, record: T) => void;
|
|
|
|
|
|
/**
|
|
|
* Callback executed when the expanded rows change
|
|
|
* @param expandedRows
|
|
|
*/
|
|
|
- onExpandedRowsChange?: (expandedRows: string[] | number[]) => void
|
|
|
+ onExpandedRowsChange?: (expandedRows: string[] | number[]) => void;
|
|
|
}
|
|
|
|
|
|
export type CellFormat =
|
|
|
| string
|
|
|
| ((text: string, record: Recordable, index: number) => string | number)
|
|
|
- | Map<string | number, any>
|
|
|
+ | Map<string | number, any>;
|
|
|
|
|
|
// @ts-ignore
|
|
|
export interface BasicColumn extends ColumnProps {
|
|
|
- children?: BasicColumn[]
|
|
|
+ children?: BasicColumn[];
|
|
|
filters?: {
|
|
|
- text: string
|
|
|
- value: string
|
|
|
+ text: string;
|
|
|
+ value: string;
|
|
|
children?:
|
|
|
| unknown[]
|
|
|
- | (((props: Record<string, unknown>) => unknown[]) & (() => unknown[]) & (() => unknown[]))
|
|
|
- }[]
|
|
|
+ | (((props: Record<string, unknown>) => unknown[]) & (() => unknown[]) & (() => unknown[]));
|
|
|
+ }[];
|
|
|
|
|
|
//
|
|
|
- flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION'
|
|
|
- customTitle?: VueNode
|
|
|
+ flag?: 'INDEX' | 'DEFAULT' | 'CHECKBOX' | 'RADIO' | 'ACTION';
|
|
|
+ customTitle?: VueNode;
|
|
|
|
|
|
- slots?: Indexable
|
|
|
+ slots?: Recordable;
|
|
|
|
|
|
// Whether to hide the column by default, it can be displayed in the column configuration
|
|
|
- defaultHidden?: boolean
|
|
|
+ defaultHidden?: boolean;
|
|
|
|
|
|
// Help text for table column header
|
|
|
- helpMessage?: string | string[]
|
|
|
+ helpMessage?: string | string[];
|
|
|
|
|
|
- format?: CellFormat
|
|
|
+ format?: CellFormat;
|
|
|
|
|
|
// Editable
|
|
|
- edit?: boolean
|
|
|
- editRow?: boolean
|
|
|
- editable?: boolean
|
|
|
- editComponent?: ComponentType
|
|
|
- editComponentProps?: Recordable
|
|
|
- editRule?: boolean | ((text: string, record: Recordable) => Promise<string>)
|
|
|
- editValueMap?: (value: any) => string
|
|
|
- onEditRow?: () => void
|
|
|
+ edit?: boolean;
|
|
|
+ editRow?: boolean;
|
|
|
+ editable?: boolean;
|
|
|
+ editComponent?: ComponentType;
|
|
|
+ editComponentProps?: Recordable;
|
|
|
+ editRule?: boolean | ((text: string, record: Recordable) => Promise<string>);
|
|
|
+ editValueMap?: (value: any) => string;
|
|
|
+ onEditRow?: () => void;
|
|
|
}
|