From 833431ace23923f7ba44f95887243c09d6e7506e Mon Sep 17 00:00:00 2001 From: likunming Date: Thu, 28 Nov 2024 11:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/platform/components/grid/ts/Init.ts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/io.sc.platform.core.frontend/src/platform/components/grid/ts/Init.ts b/io.sc.platform.core.frontend/src/platform/components/grid/ts/Init.ts index b1f43958..cb500f54 100644 --- a/io.sc.platform.core.frontend/src/platform/components/grid/ts/Init.ts +++ b/io.sc.platform.core.frontend/src/platform/components/grid/ts/Init.ts @@ -58,6 +58,7 @@ export class Init { return []; }, }, + selectableIf: { type: Function, default: undefined }, // 数据行可选规则函数,不配置都可选,配置后根据返回的布尔结果判定是否可选 appendRows: { // 表格追加行,添加到当前表格数据行尾,可添加多行,支持跨行跨列配置,用于添加合计或者额外信息。 type: Array, @@ -161,6 +162,31 @@ export class Init { default: undefined, }, // 作为form中的组件使用----end + onRowClick: { + type: Function, + default: undefined, + }, + /** + * 用户自定义双击函数 + */ + onRowDbClick: { + type: Function, + default: undefined, + }, + /** + * 用户自定义数据勾选函数 + */ + onUpdateTicked: { + type: Function, + default: undefined, + }, + /** + * 用户自定义拖拽回调函数 + */ + onAfterDragAndDrop: { + type: Function, + default: undefined, + }, }; }