import type { ButtonType } from "../button"; /** * Action cell中的事件处理 */ export type HandleAction = (data: any) => Promise; export interface CellAction { /** * action的文本 */ text: string; /** * action的类型 */ type?: ButtonType; /** * 点击处理 */ handle: HandleAction; } export type GetCellAction = (data: any) => CellAction | undefined;