@lcap/nasl 2.13.0-beta.1 → 2.13.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/out/bak/translator.js +1 -6
  2. package/out/bak/translator.js.map +1 -1
  3. package/out/common/BaseNode.js +1 -1
  4. package/out/common/BaseNode.js.map +1 -1
  5. package/out/concepts/BindAttribute__.d.ts +65 -12
  6. package/out/concepts/BindAttribute__.js +72 -7
  7. package/out/concepts/BindAttribute__.js.map +1 -1
  8. package/out/concepts/BindDirective__.d.ts +55 -0
  9. package/out/concepts/BindDirective__.js +69 -0
  10. package/out/concepts/BindDirective__.js.map +1 -1
  11. package/out/concepts/BindEvent__.d.ts +2 -94
  12. package/out/concepts/BindEvent__.js +55 -347
  13. package/out/concepts/BindEvent__.js.map +1 -1
  14. package/out/concepts/CallQueryComponent__.d.ts +102 -26
  15. package/out/concepts/CallQueryComponent__.js +104 -28
  16. package/out/concepts/CallQueryComponent__.js.map +1 -1
  17. package/out/concepts/CompletionProperty__.d.ts +1 -0
  18. package/out/concepts/CompletionProperty__.js +1 -0
  19. package/out/concepts/CompletionProperty__.js.map +1 -1
  20. package/out/concepts/Destination__.d.ts +1 -0
  21. package/out/concepts/Destination__.js +5 -1
  22. package/out/concepts/Destination__.js.map +1 -1
  23. package/out/concepts/Function__.d.ts +1 -2
  24. package/out/concepts/Function__.js +28 -0
  25. package/out/concepts/Function__.js.map +1 -1
  26. package/out/concepts/Logic__.d.ts +1 -7
  27. package/out/concepts/Logic__.js +10 -76
  28. package/out/concepts/Logic__.js.map +1 -1
  29. package/out/concepts/Param__.d.ts +0 -1
  30. package/out/concepts/Param__.js +0 -6
  31. package/out/concepts/Param__.js.map +1 -1
  32. package/out/concepts/ProcessElement__.d.ts +0 -86
  33. package/out/concepts/ProcessElement__.js +0 -130
  34. package/out/concepts/ProcessElement__.js.map +1 -1
  35. package/out/concepts/Process__.d.ts +0 -93
  36. package/out/concepts/Process__.js +0 -141
  37. package/out/concepts/Process__.js.map +1 -1
  38. package/out/concepts/ViewElement__.d.ts +8 -0
  39. package/out/concepts/ViewElement__.js +35 -47
  40. package/out/concepts/ViewElement__.js.map +1 -1
  41. package/out/concepts/View__.d.ts +8 -9
  42. package/out/concepts/View__.js +26 -72
  43. package/out/concepts/View__.js.map +1 -1
  44. package/out/concepts/basics/stdlib/nasl.ui.js +0 -4
  45. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  46. package/out/index.d.ts +1 -1
  47. package/out/index.js +3 -1
  48. package/out/index.js.map +1 -1
  49. package/out/server/createUiTs.d.ts +0 -9
  50. package/out/server/createUiTs.js +1 -28
  51. package/out/server/createUiTs.js.map +1 -1
  52. package/out/server/getMemberIdentifier.d.ts +1 -16
  53. package/out/server/getMemberIdentifier.js +29 -94
  54. package/out/server/getMemberIdentifier.js.map +1 -1
  55. package/out/server/getProcesses.d.ts +3 -3
  56. package/out/server/getProcesses.js +27 -28
  57. package/out/server/getProcesses.js.map +1 -1
  58. package/out/server/index.js +0 -3
  59. package/out/server/index.js.map +1 -1
  60. package/out/server/naslServer.js +7 -19
  61. package/out/server/naslServer.js.map +1 -1
  62. package/out/server/translator.js +5 -13
  63. package/out/server/translator.js.map +1 -1
  64. package/out/service/storage/init.d.ts +8 -0
  65. package/out/service/storage/init.js +5 -7
  66. package/out/service/storage/init.js.map +1 -1
  67. package/out/service/storage/service.d.ts +11 -2
  68. package/out/service/storage/service.js +26 -1
  69. package/out/service/storage/service.js.map +1 -1
  70. package/out/templator/genCurdEditMultipleKeyBlock.js +2 -4
  71. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  72. package/out/templator/genCurdMultipleKeyBlock.d.ts +0 -11
  73. package/out/templator/genCurdMultipleKeyBlock.js +19 -29
  74. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  75. package/out/templator/genEditTableBlock.js +30 -2
  76. package/out/templator/genEditTableBlock.js.map +1 -1
  77. package/out/templator/genGridViewBlock.js +15 -1
  78. package/out/templator/genGridViewBlock.js.map +1 -1
  79. package/out/templator/genTableBlock.js +15 -1
  80. package/out/templator/genTableBlock.js.map +1 -1
  81. package/package.json +1 -1
  82. package/src/bak/translator.js +1 -8
  83. package/src/common/BaseNode.ts +1 -1
  84. package/src/concepts/BindAttribute__.ts +153 -19
  85. package/src/concepts/BindDirective__.ts +139 -0
  86. package/src/concepts/BindEvent__.ts +57 -422
  87. package/src/concepts/CallQueryComponent__.ts +253 -56
  88. package/src/concepts/CompletionProperty__.ts +1 -0
  89. package/src/concepts/Destination__.ts +6 -1
  90. package/src/concepts/Function__.ts +1 -15
  91. package/src/concepts/Logic__.ts +11 -77
  92. package/src/concepts/Param__.ts +0 -6
  93. package/src/concepts/ProcessElement__.ts +1 -227
  94. package/src/concepts/Process__.ts +1 -237
  95. package/src/concepts/ViewElement__.ts +36 -48
  96. package/src/concepts/View__.ts +27 -72
  97. package/src/concepts/basics/stdlib/nasl.ui.ts +0 -4
  98. package/src/index.ts +1 -1
  99. package/src/server/createUiTs.ts +2 -26
  100. package/src/server/getMemberIdentifier.ts +28 -88
  101. package/src/server/getProcesses.ts +30 -31
  102. package/src/server/index.ts +0 -4
  103. package/src/server/naslServer.ts +7 -20
  104. package/src/server/translator.ts +6 -13
  105. package/src/service/storage/init.ts +5 -6
  106. package/src/service/storage/service.ts +28 -1
  107. package/src/templator/genCurdEditMultipleKeyBlock.ts +2 -5
  108. package/src/templator/genCurdMultipleKeyBlock.ts +16 -27
  109. package/src/templator/genEditTableBlock.ts +27 -0
  110. package/src/templator/genGridViewBlock.ts +13 -0
  111. package/src/templator/genTableBlock.ts +13 -0
  112. package/src/server/events.yaml +0 -89
@@ -233,6 +233,11 @@ const TS_RULES: Array<{
233
233
  re: /No value exists in scope for the shorthand property '__(?:outOfProcess)__'. Either declare one or provide an initializer./,
234
234
  result: '节点未关联到流程图',
235
235
  },
236
+ {
237
+ re: /'(.+?)' is declared but its value is never read/,
238
+ result: "已添加'$1',但从来没有使用过。",
239
+ transforms: [transformType, transformType],
240
+ },
236
241
  {
237
242
  re: /'(.+?)' has no exported member(?: named)? '(.+?)'/,
238
243
  result: '找不到$1 $2。',
@@ -296,10 +301,6 @@ const TS_RULES: Array<{
296
301
  result: '当前内容中有重复的 $1,可能会影响使用。',
297
302
  transforms: [outOriginalvalue],
298
303
  },
299
- {
300
- re: /'\$LogicEmpty' is declared but its value is never read./,
301
- result: '逻辑为空,请编辑内容',
302
- },
303
304
  ];
304
305
 
305
306
  const POST_RULES: Array<{
@@ -498,20 +499,12 @@ export function naslNodeTranslateMessage(minRange: MinRange, tsErrorDetail: Diag
498
499
  str = (node.parentNode as any).constructor.nodeTitle + ':' + str;
499
500
  tsErrorDetail.message = str;
500
501
  }
501
- if (/'\$LogicEmpty' is declared but its value is never read./.exec(text)) {
502
- if (node instanceof Logic) {
503
- node.isSmpty = true;
504
- }
505
- }
502
+
506
503
  for (const rule of POST_RULES) {
507
504
  if (rule.re.test(tsErrorDetail.message))
508
505
  tsErrorDetail.message = tsErrorDetail.message.replace(rule.re, rule.result);
509
506
  }
510
507
  node.tsErrorDetail = tsErrorDetail;
511
- // 如果logic中有报错就把标识置为true
512
- if ((node as any).logic) {
513
- (node as any).logic.haveError = true;
514
- }
515
508
  return {
516
509
  node,
517
510
  ...tsErrorDetail,
@@ -10,6 +10,9 @@ import * as fs from 'fs-extra';
10
10
  import * as jsoner from './jsoner';
11
11
  /// #endif
12
12
 
13
+ export const batchQuery = storageService.batchQuery;
14
+ export const batchAction = storageService.batchAction;
15
+
13
16
  function getLogic(key: string, app: any, diffLogicList: string[]) {
14
17
  if (!diffLogicList.includes(key)) {
15
18
  diffLogicList.push(key);
@@ -217,9 +220,7 @@ async function doAction(app: any, actionItem: any) {
217
220
  headers: {
218
221
  appId: app.id,
219
222
  ChangedNASLType,
220
- 'request-appBaseVersion': (window as any).appData?.baseVersion || '',
221
- 'request-versionChangedTime': (window as any).appData?.versionChangedTime || '',
222
- operateArea: (window as any).appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
223
+ // 其他封装在 storageService 里了
223
224
  },
224
225
  });
225
226
  } catch (error) {
@@ -387,9 +388,7 @@ export async function loadApp(appId?: string) {
387
388
  ],
388
389
  headers: {
389
390
  appId,
390
- 'request-appBaseVersion': (window as any).appData?.baseVersion || '',
391
- 'request-versionChangedTime': (window as any).appData?.versionChangedTime || '',
392
- operateArea: (window as any).appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
391
+ // 其他封装在 storageService 里了
393
392
  },
394
393
  });
395
394
  // const data = res?.data?.result;
@@ -3,4 +3,31 @@ import api from './api';
3
3
 
4
4
  const service = createService(api);
5
5
 
6
- export default service;
6
+ export default {
7
+ batchQuery({ body, headers }: { body: Array<any>, headers: Record<string, string> }) {
8
+ const appData = (window as any).appData;
9
+
10
+ return service.batchQuery({
11
+ body,
12
+ headers: Object.assign({
13
+ appId: appData?.appId,
14
+ 'request-appBaseVersion': appData?.baseVersion || '',
15
+ 'request-versionChangedTime': appData?.versionChangedTime || '',
16
+ operateArea: appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
17
+ }, headers),
18
+ });
19
+ },
20
+ batchAction({ body, headers }: { body: Array<any>, headers: Record<string, string> }) {
21
+ const appData = (window as any).appData;
22
+
23
+ return service.batchAction({
24
+ body,
25
+ headers: Object.assign({
26
+ appId: appData?.appId,
27
+ 'request-appBaseVersion': (window as any).appData?.baseVersion || '',
28
+ 'request-versionChangedTime': (window as any).appData?.versionChangedTime || '',
29
+ operateArea: (window as any).appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
30
+ }, headers),
31
+ });
32
+ },
33
+ };
@@ -22,7 +22,6 @@ import {
22
22
  genEditQueryStructure,
23
23
  genQueryStructure,
24
24
  genLogicParam,
25
- genReloadLogic,
26
25
  } from '.';
27
26
 
28
27
  function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroupMap: Map<string, NameGroup>) {
@@ -98,7 +97,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
98
97
  .join('')}
99
98
 
100
99
  <u-form-item>
101
- <u-button color="primary" @click="${nameGroup.viewLogicReload}">查询</u-button>
100
+ <u-button color="primary" @click="$refs.${nameGroup.viewElementMainView}.reload()">查询</u-button>
102
101
  </u-form-item>
103
102
  </u-form>
104
103
 
@@ -356,7 +355,6 @@ export function genCurdEditMultipleKeyBlock(entity: Entity, view: View) {
356
355
  nameGroup.viewLogicCreate = view.getLogicUniqueName('create');
357
356
  nameGroup.viewLogicSubmit = view.getLogicUniqueName('submit');
358
357
  nameGroup.viewLogicBlurUpdate = view.getLogicUniqueName('blurUpdate');
359
- nameGroup.viewLogicReload = view.getLogicUniqueName('reload');
360
358
  nameGroup.viewVariableEntity = view.getVariableUniqueName(utils.firstLowerCase(entity.name));
361
359
  nameGroup.viewVariableInput = view.getVariableUniqueName('input');
362
360
  nameGroup.viewVariableFilter = view.getVariableUniqueName('filter');
@@ -444,8 +442,7 @@ export function genCurdEditMultipleKeyBlock(entity: Entity, view: View) {
444
442
  ${JSON.stringify(genInitLogic(nameGroup))},
445
443
  ${JSON.stringify(genCreateLogic(nameGroup))},
446
444
  ${JSON.stringify(genSubmitLogic(entity, nameGroup))},
447
- ${JSON.stringify(genBlurUpdateLogic(entity, nameGroup))},
448
- ${JSON.stringify(genReloadLogic(nameGroup))}
445
+ ${JSON.stringify(genBlurUpdateLogic(entity, nameGroup))}
449
446
  ${newLoadSelectLogics.map((logic) => ',' + JSON.stringify(logic)).join('\n')}
450
447
  ],
451
448
  "viewBindEvents": [
@@ -92,7 +92,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
92
92
  .join('')}
93
93
 
94
94
  <u-form-item>
95
- <u-button color="primary" @click="${nameGroup.viewLogicReload}">查询</u-button>
95
+ <u-button color="primary" @click="$refs.${nameGroup.viewElementMainView}.reload()">查询</u-button>
96
96
  </u-form-item>
97
97
  </u-form>
98
98
 
@@ -355,6 +355,19 @@ function genModifyLogic(entity: Entity, nameGroup: NameGroup) {
355
355
  name: nameGroup.viewLogicModify,
356
356
  description: '',
357
357
  params: [
358
+ NaslNode.Param({
359
+ name: 'event',
360
+ typeAnnotation: NaslCoreTypeAnnotation.String,
361
+ }),
362
+ NaslNode.Param({
363
+ name: 'scope',
364
+ typeAnnotation: NaslUITypeAnnotation.ScopeOf([
365
+ NaslTypeAnnotation.Reference({
366
+ typeNamespace: `${moduleNamespace}.structures`,
367
+ typeName: nameGroup.structure,
368
+ }),
369
+ ]),
370
+ }),
358
371
  ],
359
372
  returns: [] as any[],
360
373
  variables: [] as any[],
@@ -416,7 +429,6 @@ export function genCurdMultipleKeyBlock(entity: Entity, view: View) {
416
429
  nameGroup.viewLogicCreate = view.getLogicUniqueName('create');
417
430
  nameGroup.viewLogicModify = view.getLogicUniqueName('modify');
418
431
  nameGroup.viewLogicSubmit = view.getLogicUniqueName('submit');
419
- nameGroup.viewLogicReload = view.getLogicUniqueName('reload');
420
432
  nameGroup.viewVariableEntity = view.getVariableUniqueName(utils.firstLowerCase(entity.name));
421
433
  nameGroup.viewVariableInput = view.getVariableUniqueName('input');
422
434
  nameGroup.viewVariableFilter = view.getVariableUniqueName('filter');
@@ -505,8 +517,7 @@ export function genCurdMultipleKeyBlock(entity: Entity, view: View) {
505
517
  ${JSON.stringify(genInitLogic(nameGroup))},
506
518
  ${JSON.stringify(genCreateLogic(nameGroup))},
507
519
  ${JSON.stringify(genModifyLogic(entity, nameGroup))},
508
- ${JSON.stringify(genSubmitLogic(entity, nameGroup))},
509
- ${JSON.stringify(genReloadLogic(nameGroup))}
520
+ ${JSON.stringify(genSubmitLogic(entity, nameGroup))}
510
521
  ${newLoadSelectLogics.map((logic) => ',' + JSON.stringify(logic)).join('\n')}
511
522
  ],
512
523
  "viewBindEvents": [
@@ -541,7 +552,6 @@ export function genGridViewMultipleKeyBlock(entity: Entity, view: View) {
541
552
  nameGroup.viewLogicCreate = view.getLogicUniqueName('create');
542
553
  nameGroup.viewLogicModify = view.getLogicUniqueName('modify');
543
554
  nameGroup.viewLogicSubmit = view.getLogicUniqueName('submit');
544
- nameGroup.viewLogicReload = view.getLogicUniqueName('reload');
545
555
  nameGroup.viewVariableEntity = view.getVariableUniqueName(utils.firstLowerCase(entity.name));
546
556
  nameGroup.viewVariableInput = view.getVariableUniqueName('input');
547
557
  nameGroup.viewVariableFilter = view.getVariableUniqueName('filter');
@@ -634,8 +644,7 @@ export function genGridViewMultipleKeyBlock(entity: Entity, view: View) {
634
644
  ${JSON.stringify(genInitLogic(nameGroup))},
635
645
  ${JSON.stringify(genCreateLogic(nameGroup))},
636
646
  ${JSON.stringify(genModifyLogic(entity, nameGroup))},
637
- ${JSON.stringify(genSubmitLogic(entity, nameGroup))},
638
- ${JSON.stringify(genReloadLogic(nameGroup))}
647
+ ${JSON.stringify(genSubmitLogic(entity, nameGroup))}
639
648
  ${newLoadSelectLogics.map((logic) => ',' + JSON.stringify(logic)).join('\n')}
640
649
  ],
641
650
  "viewBindEvents": [
@@ -653,23 +662,3 @@ export function genGridViewMultipleKeyBlock(entity: Entity, view: View) {
653
662
  </definition>
654
663
  `;
655
664
  }
656
-
657
- export function genReloadLogic(nameGroup: NameGroup) {
658
- return NaslNode.Logic({
659
- name: nameGroup.viewLogicReload,
660
- params: [] as any[],
661
- returns: [] as any[],
662
- variables: [
663
- NaslNode.Variable({
664
- name: 'validateResult',
665
- typeAnnotation: NaslUITypeAnnotation.ValidateEvent,
666
- }),
667
- ],
668
- body: [
669
- NaslLogicItem.Start,
670
- genCallComponentLogic(nameGroup.viewElementMainView, 'reload'),
671
- NaslLogicItem.End,
672
- ],
673
- playground: [],
674
- });
675
- }
@@ -205,6 +205,19 @@ export function genEditTableRemoveLogic(entity: Entity, nameGroup: NameGroup) {
205
205
  return NaslNode.Logic({
206
206
  name: nameGroup.viewLogicRemove,
207
207
  params: [
208
+ NaslNode.Param({
209
+ name: 'event',
210
+ typeAnnotation: NaslCoreTypeAnnotation.String,
211
+ }),
212
+ NaslNode.Param({
213
+ name: 'scope',
214
+ typeAnnotation: NaslUITypeAnnotation.ScopeOf([
215
+ NaslTypeAnnotation.Reference({
216
+ typeNamespace: `${moduleNamespace}.structures`,
217
+ typeName: nameGroup.structure,
218
+ }),
219
+ ]),
220
+ }),
208
221
  ],
209
222
  returns: [] as Array<any>,
210
223
  variables: [] as Array<any>,
@@ -238,6 +251,20 @@ export function genBlurUpdateLogic(entity: Entity, nameGroup: NameGroup) {
238
251
  return NaslNode.Logic({
239
252
  name: nameGroup.viewLogicBlurUpdate,
240
253
  params: [
254
+ NaslNode.Param({
255
+ name: 'event',
256
+ typeAnnotation: NaslCoreTypeAnnotation.String,
257
+
258
+ }),
259
+ NaslNode.Param({
260
+ name: 'scope',
261
+ typeAnnotation: NaslUITypeAnnotation.ScopeOf([
262
+ NaslTypeAnnotation.Reference({
263
+ typeNamespace: `${moduleNamespace}.structures`,
264
+ typeName: nameGroup.structure,
265
+ }),
266
+ ]),
267
+ }),
241
268
  ],
242
269
  returns: [] as Array<any>,
243
270
  body: [
@@ -212,6 +212,19 @@ export function genGridViewRemoveLogic(entity: Entity, nameGroup: NameGroup) {
212
212
  return NaslNode.Logic({
213
213
  name: nameGroup.viewLogicRemove,
214
214
  params: [
215
+ NaslNode.Param({
216
+ name: 'event',
217
+ typeAnnotation: NaslCoreTypeAnnotation.String,
218
+ }),
219
+ NaslNode.Param({
220
+ name: 'scope',
221
+ typeAnnotation: NaslUITypeAnnotation.ScopeOf([
222
+ NaslTypeAnnotation.Reference({
223
+ typeNamespace: `${moduleNamespace}.structures`,
224
+ typeName: nameGroup.structure,
225
+ }),
226
+ ]),
227
+ }),
215
228
  ],
216
229
  returns: [] as any[],
217
230
  variables: [] as any[],
@@ -150,6 +150,19 @@ export function genTableRemoveLogic(entity: Entity, nameGroup: NameGroup) {
150
150
  return NaslNode.Logic({
151
151
  name: nameGroup.viewLogicRemove,
152
152
  params: [
153
+ NaslNode.Param({
154
+ name: 'event',
155
+ typeAnnotation: NaslCoreTypeAnnotation.String,
156
+ }),
157
+ NaslNode.Param({
158
+ name: 'scope',
159
+ typeAnnotation: NaslUITypeAnnotation.ScopeOf([
160
+ NaslTypeAnnotation.Reference({
161
+ typeNamespace: `${moduleNamespace}.structures`,
162
+ typeName: nameGroup.structure,
163
+ }),
164
+ ]),
165
+ }),
153
166
  ],
154
167
  returns: [] as any[],
155
168
  variables: [] as any[],
@@ -1,89 +0,0 @@
1
- - name: click
2
- title: 点击
3
- description: 在元素上按下并释放任意鼠标按钮时触发。
4
- params:
5
- - name: $event
6
- type: MouseEvent
7
- description: 鼠标事件对象
8
- schema:
9
- $ref: "#/systemTypes/MouseEvent"
10
- - name: dblclick
11
- title: 双击
12
- description: 在元素上双击鼠标按钮时触发。
13
- params:
14
- - name: $event
15
- type: MouseEvent
16
- description: 鼠标事件对象
17
- schema:
18
- $ref: "#/systemTypes/MouseEvent"
19
- - name: contextmenu
20
- title: 右键点击
21
- description: 在右键菜单显示前触发。
22
- params:
23
- - name: $event
24
- type: MouseEvent
25
- description: 鼠标事件对象
26
- schema:
27
- $ref: "#/systemTypes/MouseEvent"
28
- - name: mousedown
29
- title: 鼠标按下
30
- description: 在元素上按下任意鼠标按钮时触发。
31
- params:
32
- - name: $event
33
- type: MouseEvent
34
- description: 鼠标事件对象
35
- schema:
36
- $ref: "#/systemTypes/MouseEvent"
37
- - name: mouseup
38
- title: 鼠标释放
39
- description: 在元素上释放任意鼠标按钮时触发。
40
- params:
41
- - name: $event
42
- type: MouseEvent
43
- description: 鼠标事件对象
44
- schema:
45
- $ref: "#/systemTypes/MouseEvent"
46
- - name: mouseenter
47
- title: 鼠标移入
48
- description: 鼠标移入元素时触发。
49
- params:
50
- - name: $event
51
- type: MouseEvent
52
- description: 鼠标事件对象
53
- schema:
54
- $ref: "#/systemTypes/MouseEvent"
55
- - name: mouseleave
56
- title: 鼠标移出
57
- description: 鼠标移出元素时触发。
58
- params:
59
- - name: $event
60
- type: MouseEvent
61
- description: 鼠标事件对象
62
- schema:
63
- $ref: "#/systemTypes/MouseEvent"
64
- - name: focus
65
- title: 获得焦点
66
- description: 获得焦点时触发。
67
- params:
68
- - name: $event
69
- type: FocusEvent
70
- description: 焦点事件对象
71
- schema:
72
- $ref: "#/systemTypes/FocusEvent"
73
- - name: blur
74
- title: 失去焦点
75
- description: 失去焦点时触发。
76
- params:
77
- - name: $event
78
- type: FocusEvent
79
- description: 焦点事件对象
80
- schema:
81
- $ref: "#/systemTypes/FocusEvent"
82
- - name: created
83
- title: 进入时
84
- - name: mounted
85
- title: 进入后
86
- - name: updated
87
- title: 更新时
88
- - name: destroyed
89
- title: 离开时