chore: .vscode/event.code-snippets
This commit is contained in:
Vendored
+21
@@ -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代码片段"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user