From a8e8dc5fea1cd0df988f96ee74e37e0e5ddaa884 Mon Sep 17 00:00:00 2001 From: Carrotzpc Date: Fri, 12 Jul 2024 17:25:50 +0800 Subject: [PATCH] feat(yunti-ui): add onClick event for ProCard --- .../lowcode/ProCard/meta/card.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/yunti-ui-lowcode-materials/lowcode/ProCard/meta/card.ts b/packages/yunti-ui-lowcode-materials/lowcode/ProCard/meta/card.ts index 463b574..e5d340d 100644 --- a/packages/yunti-ui-lowcode-materials/lowcode/ProCard/meta/card.ts +++ b/packages/yunti-ui-lowcode-materials/lowcode/ProCard/meta/card.ts @@ -51,7 +51,14 @@ export const ProCardMeta: IPublicTypeComponentMetadata = { loop: false, condition: true, style: true, - events: [], + events: [ + { + name: 'onClick', + description: '点击卡片时的回调', + template: + "onClick(e, ${extParams}){\n // 点击卡片时的回调 \n console.log('onChange', e);\n }\n", + }, + ], }, component: { isContainer: true,