chore: .vscode/event.code-snippets

This commit is contained in:
2026-07-01 17:55:05 +08:00
parent 91a65f41e6
commit dcbab284db
+21
View File
@@ -0,0 +1,21 @@
{
"event": {
"prefix": "event",
"body": [
"import { CoolEvent, Event } from '@cool-midway/core';",
"",
"/**",
" * 接收事件",
" */",
"@CoolEvent()",
"export class xxxEvent {",
" @Event('updateUser')",
" async updateUser(msg, a) {",
" console.log('ImEvent', 'updateUser', msg, a);",
" }",
"}",
""
],
"description": "cool-admin event代码片段"
}
}