Skip to content

Commit

Permalink
feat(yunti-ui): add onClick event for ProCard
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Jul 12, 2024
1 parent 664b50c commit a8e8dc5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a8e8dc5

Please sign in to comment.