UNPKG

xdesign-vue-next

Version:

XDesign Component for vue-next

25 lines (24 loc) 1.04 kB
import { PrimaryTableProps } from '../interface'; import { PrimaryTableRowEditContext, TableRowData, TableErrorListMap, ErrorListObjectType } from '../type'; import { OnEditableChangeContext } from '../editable-cell'; export interface TablePromiseErrorData { errors: ErrorListObjectType<TableRowData>[]; errorMap: TableErrorListMap; } export default function useRowEdit(props: PrimaryTableProps): { errorListMap: import("vue").Ref<TableErrorListMap>; editableKeysMap: import("vue").ComputedRef<{ [key: string]: boolean; [key: number]: boolean; }>; validateTableData: () => Promise<{ result: TableErrorListMap; }>; validateRowData: (rowValue: any) => Promise<{ trigger: import("../type").TableValidateTrigger; result: ErrorListObjectType<TableRowData>[]; }>; onRuleChange: (context: PrimaryTableRowEditContext<TableRowData>) => void; clearValidateData: () => void; onPrimaryTableCellEditChange: (params: OnEditableChangeContext<TableRowData>) => void; };