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,