Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley-0808 committed Jan 21, 2025
1 parent b616871 commit 30c0daa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/products/tdesign-react/src/table/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,10 @@ export interface PrimaryTableInstanceFunctions<T extends TableRowData = TableRow
* 校验行信息,校验完成后,会触发事件 `onRowValidate`。参数 `rowValue` 表示行唯一标识的值
*/
validateRowData: (rowValue: any) => Promise<{ trigger: TableValidateTrigger; result: ErrorListObjectType<T>[] }>;
/**
* 校验表格可编辑单元格数据,校验完成后,会触发事件 `onValidate`
*/
validateTableCellData: () => Promise<{ result: TableErrorListMap }>;
/**
* 校验表格全部数据,校验完成后,会触发事件 `onValidate`
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/products/tdesign-vue-next/src/table/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ export interface PrimaryTableInstanceFunctions<T extends TableRowData = TableRow
* 校验行信息,校验完成后,会触发事件 `onRowValidate`。参数 `rowValue` 表示行唯一标识的值
*/
validateRowData: (rowValue: any) => Promise<{ trigger: TableValidateTrigger; result: ErrorListObjectType<T>[] }>;
/**
* 校验表格可编辑单元格数据,校验完成后,会触发事件 `onValidate`
*/
validateTableCellData: () => Promise<{ result: TableErrorListMap }>;
/**
* 校验表格全部数据,校验完成后,会触发事件 `onValidate`
*/
Expand Down
4 changes: 4 additions & 0 deletions packages/products/tdesign-vue/src/table/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,10 @@ export interface PrimaryTableInstanceFunctions<T extends TableRowData = TableRow
* 校验行信息,校验完成后,会触发事件 `onRowValidate`。参数 `rowValue` 表示行唯一标识的值
*/
validateRowData: (rowValue: any) => Promise<{ trigger: TableValidateTrigger; result: ErrorListObjectType<T>[] }>;
/**
* 校验表格可编辑单元格数据,校验完成后,会触发事件 `onValidate`
*/
validateTableCellData: () => Promise<{ result: TableErrorListMap }>;
/**
* 校验表格全部数据,校验完成后,会触发事件 `onValidate`
*/
Expand Down

0 comments on commit 30c0daa

Please sign in to comment.