Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
PDieE committed Aug 25, 2022
1 parent 2749d10 commit 43a0aab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/table/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ export interface TableEditableCellConfig<T extends TableRowData = TableRowData>
/**
* 校验规则
*/
rules?: TableEditableCellRules<T>;
rules?: FormRule[];
/**
* 是否显示编辑图标
* @default true
Expand Down Expand Up @@ -1056,5 +1056,3 @@ export interface TableEditableCellPropsParams<T> extends PrimaryTableCellParams<
export interface TablePlainObject {
[key: string]: any;
}

export type TableEditableCellRules<T> = FormRule[] | ((params: TableEditableCellPropsParams<T>) => FormRule[]);

0 comments on commit 43a0aab

Please sign in to comment.