import type { ButtonProps } from "ant-design-vue"; import type { TableColumnType } from "ant-design-vue"; import { VNode } from "vue"; export interface CTableColumn extends TableColumnType { hidden?: boolean; disabled?: boolean; slotName?: String; } /** * @description 表格头部 操作按钮 */ export interface CTableAction extends ButtonProps { title?: string; key: string; permission?: string; } /** * @description 条件 render */ export interface ICellActionRender { (dataItem: any): boolean; } export interface ICellActionDisable { (dataItem: any): boolean; } export declare interface CTableCellAction { title: string; key: string; permission?: string; description?: string; icon?: string | VNode; ifRender?: ICellActionRender; handleDisable?: ICellActionDisable; }