@lcap/nasl 2.20.1-beta.1 → 2.20.1-beta.3

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 (264) hide show
  1. package/docs/classes/EntityProperty.html +1 -1
  2. package/out/automate/engine/operators.d.ts +10 -1
  3. package/out/automate/engine/operators.js +14 -5
  4. package/out/automate/engine/operators.js.map +1 -1
  5. package/out/automate/engine/viewCache.d.ts +1 -0
  6. package/out/automate/template/myProcess.d.ts +1 -0
  7. package/out/automate/template/myProcess.js +9021 -9021
  8. package/out/automate/template/myProcess.js.map +1 -1
  9. package/out/bak/translator.js +3 -3
  10. package/out/bak/translator.js.map +1 -1
  11. package/out/common/BaseNode.js.map +1 -1
  12. package/out/common/Command.d.ts +1 -1
  13. package/out/common/EventEmitter.d.ts +1 -1
  14. package/out/concepts/Abort__.d.ts +25 -0
  15. package/out/concepts/Abort__.js +80 -0
  16. package/out/concepts/Abort__.js.map +1 -0
  17. package/out/concepts/Anchor__.js.map +1 -1
  18. package/out/concepts/AnonymousFunction__.js.map +1 -1
  19. package/out/concepts/App__.js.map +1 -1
  20. package/out/concepts/Argument__.js.map +1 -1
  21. package/out/concepts/Assignee__.js.map +1 -1
  22. package/out/concepts/AssignmentLine__.js.map +1 -1
  23. package/out/concepts/Assignment__.js.map +1 -1
  24. package/out/concepts/Attribute__.js.map +1 -1
  25. package/out/concepts/BatchAssignment__.js.map +1 -1
  26. package/out/concepts/BinaryExpression__.js.map +1 -1
  27. package/out/concepts/BindAttribute__.js +7 -6
  28. package/out/concepts/BindAttribute__.js.map +1 -1
  29. package/out/concepts/BindDirective__.js +7 -6
  30. package/out/concepts/BindDirective__.js.map +1 -1
  31. package/out/concepts/BindEvent__.js.map +1 -1
  32. package/out/concepts/BindStyle__.js +10 -10
  33. package/out/concepts/BindStyle__.js.map +1 -1
  34. package/out/concepts/BooleanLiteral__.js.map +1 -1
  35. package/out/concepts/CallFunction__.js.map +1 -1
  36. package/out/concepts/CallInterface__.d.ts +1 -0
  37. package/out/concepts/CallInterface__.js +32 -2
  38. package/out/concepts/CallInterface__.js.map +1 -1
  39. package/out/concepts/CallLogic__.js +3 -3
  40. package/out/concepts/CallLogic__.js.map +1 -1
  41. package/out/concepts/CallQueryComponent__.js.map +1 -1
  42. package/out/concepts/Comment__.js.map +1 -1
  43. package/out/concepts/CompletionProperty__.js.map +1 -1
  44. package/out/concepts/ConfigGroup__.js.map +1 -1
  45. package/out/concepts/ConfigPropertyValue__.js.map +1 -1
  46. package/out/concepts/ConfigProperty__.js.map +1 -1
  47. package/out/concepts/Configuration__.js.map +1 -1
  48. package/out/concepts/Constant__.js.map +1 -1
  49. package/out/concepts/DataElement__.js.map +1 -1
  50. package/out/concepts/DataSource__.js +11 -3
  51. package/out/concepts/DataSource__.js.map +1 -1
  52. package/out/concepts/DatabaseTypeAnnotation__.d.ts +31 -0
  53. package/out/concepts/DatabaseTypeAnnotation__.js +78 -0
  54. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -0
  55. package/out/concepts/Destination__.js +7 -7
  56. package/out/concepts/Destination__.js.map +1 -1
  57. package/out/concepts/End__.js.map +1 -1
  58. package/out/concepts/EntityIndex__.d.ts +1 -1
  59. package/out/concepts/EntityIndex__.js.map +1 -1
  60. package/out/concepts/EntityProperty__.d.ts +1 -1
  61. package/out/concepts/EntityProperty__.js.map +1 -1
  62. package/out/concepts/Entity__.js.map +1 -1
  63. package/out/concepts/EnumItem__.js.map +1 -1
  64. package/out/concepts/Enum__.js.map +1 -1
  65. package/out/concepts/Event__.js.map +1 -1
  66. package/out/concepts/ExternalDestination__.js.map +1 -1
  67. package/out/concepts/ForEachStatement__.js.map +1 -1
  68. package/out/concepts/FrontendLibrary__.js.map +1 -1
  69. package/out/concepts/Frontend__.js.map +1 -1
  70. package/out/concepts/Function__.js.map +1 -1
  71. package/out/concepts/Identifier__.js.map +1 -1
  72. package/out/concepts/IfStatement__.js.map +1 -1
  73. package/out/concepts/Integration__.d.ts +53 -0
  74. package/out/concepts/Integration__.js +143 -0
  75. package/out/concepts/Integration__.js.map +1 -0
  76. package/out/concepts/InterfaceParam__.js.map +1 -1
  77. package/out/concepts/Interface__.d.ts +9 -0
  78. package/out/concepts/Interface__.js +54 -0
  79. package/out/concepts/Interface__.js.map +1 -1
  80. package/out/concepts/JSBlock__.js.map +1 -1
  81. package/out/concepts/JavaLogic__.d.ts +42 -0
  82. package/out/concepts/JavaLogic__.js +122 -0
  83. package/out/concepts/JavaLogic__.js.map +1 -0
  84. package/out/concepts/LogicItem__.js.map +1 -1
  85. package/out/concepts/Logic__.js +2 -2
  86. package/out/concepts/Logic__.js.map +1 -1
  87. package/out/concepts/MatchCase__.js.map +1 -1
  88. package/out/concepts/Match__.d.ts +3 -0
  89. package/out/concepts/Match__.js +73 -2
  90. package/out/concepts/Match__.js.map +1 -1
  91. package/out/concepts/MemberExpression__.js.map +1 -1
  92. package/out/concepts/MicroApp__.d.ts +51 -0
  93. package/out/concepts/MicroApp__.js +113 -0
  94. package/out/concepts/MicroApp__.js.map +1 -0
  95. package/out/concepts/Module__.d.ts +1 -1
  96. package/out/concepts/Module__.js.map +1 -1
  97. package/out/concepts/Namespace__.js.map +1 -1
  98. package/out/concepts/NewComposite__.d.ts +1 -0
  99. package/out/concepts/NewComposite__.js +20 -2
  100. package/out/concepts/NewComposite__.js.map +1 -1
  101. package/out/concepts/NewList__.js.map +1 -1
  102. package/out/concepts/NewMap__.js.map +1 -1
  103. package/out/concepts/New__.js.map +1 -1
  104. package/out/concepts/NullLiteral__.js.map +1 -1
  105. package/out/concepts/NumericLiteral__.js.map +1 -1
  106. package/out/concepts/OqlQueryComponent__.js +2 -0
  107. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  108. package/out/concepts/Param__.js +1 -1
  109. package/out/concepts/Param__.js.map +1 -1
  110. package/out/concepts/Point__.js.map +1 -1
  111. package/out/concepts/ProcessComponent__.js.map +1 -1
  112. package/out/concepts/ProcessElement__.js.map +1 -1
  113. package/out/concepts/ProcessOutcome__.js.map +1 -1
  114. package/out/concepts/ProcessOutcomes__.js.map +1 -1
  115. package/out/concepts/Process__.js.map +1 -1
  116. package/out/concepts/QueryAggregateExpression__.js.map +1 -1
  117. package/out/concepts/QueryFieldExpression__.js.map +1 -1
  118. package/out/concepts/QueryFromExpression__.js.map +1 -1
  119. package/out/concepts/QueryGroupByExpression__.js.map +1 -1
  120. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  121. package/out/concepts/QueryLimitExpression__.js.map +1 -1
  122. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  123. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  124. package/out/concepts/Rect__.js.map +1 -1
  125. package/out/concepts/Return__.js.map +1 -1
  126. package/out/concepts/Role__.js.map +1 -1
  127. package/out/concepts/SelectMembers__.js.map +1 -1
  128. package/out/concepts/Slot__.js.map +1 -1
  129. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  130. package/out/concepts/Start__.js.map +1 -1
  131. package/out/concepts/StringInterpolation__.js.map +1 -1
  132. package/out/concepts/StringLiteral__.js.map +1 -1
  133. package/out/concepts/StructureProperty__.js.map +1 -1
  134. package/out/concepts/Structure__.js.map +1 -1
  135. package/out/concepts/SwitchCase__.js.map +1 -1
  136. package/out/concepts/SwitchStatement__.js.map +1 -1
  137. package/out/concepts/Theme__.js.map +1 -1
  138. package/out/concepts/Transactional__.js.map +1 -1
  139. package/out/concepts/TypeAnnotation__.js.map +1 -1
  140. package/out/concepts/TypeParam__.js.map +1 -1
  141. package/out/concepts/UnaryExpression__.js.map +1 -1
  142. package/out/concepts/Unparsed__.js.map +1 -1
  143. package/out/concepts/UseComponent__.js.map +1 -1
  144. package/out/concepts/ValidationRule__.js.map +1 -1
  145. package/out/concepts/Variable__.js.map +1 -1
  146. package/out/concepts/ViewBlock__.js.map +1 -1
  147. package/out/concepts/ViewComponent__.js.map +1 -1
  148. package/out/concepts/ViewElement__.d.ts +1 -0
  149. package/out/concepts/ViewElement__.js +7 -0
  150. package/out/concepts/ViewElement__.js.map +1 -1
  151. package/out/concepts/View__.js +8 -3
  152. package/out/concepts/View__.js.map +1 -1
  153. package/out/concepts/WhileStatement__.js.map +1 -1
  154. package/out/config.d.ts +1 -1
  155. package/out/decorators/index.d.ts +2 -2
  156. package/out/generator/genReleaseBody.d.ts +1 -0
  157. package/out/generator/genReleaseBody.js +1 -0
  158. package/out/generator/genReleaseBody.js.map +1 -1
  159. package/out/generator/icestark.d.ts +2 -0
  160. package/out/generator/icestark.js +48 -0
  161. package/out/generator/icestark.js.map +1 -0
  162. package/out/generator/microApp.d.ts +2 -0
  163. package/out/generator/microApp.js +35 -0
  164. package/out/generator/microApp.js.map +1 -0
  165. package/out/generator/permission.d.ts +2 -1
  166. package/out/generator/permission.js +17 -8
  167. package/out/generator/permission.js.map +1 -1
  168. package/out/generator/qiankun.d.ts +2 -0
  169. package/out/generator/qiankun.js +52 -0
  170. package/out/generator/qiankun.js.map +1 -0
  171. package/out/index.d.ts +1 -1
  172. package/out/index.js +2 -1
  173. package/out/index.js.map +1 -1
  174. package/out/manager/stepRecorder.d.ts +20 -0
  175. package/out/manager/stepRecorder.js +110 -0
  176. package/out/manager/stepRecorder.js.map +1 -0
  177. package/out/sentry/index.d.ts +29 -0
  178. package/out/sentry/index.js +111 -0
  179. package/out/sentry/index.js.map +1 -0
  180. package/out/server/getMemberIdentifier.js +3 -2
  181. package/out/server/getMemberIdentifier.js.map +1 -1
  182. package/out/server/getProcesses.d.ts +3 -3
  183. package/out/server/getScope.d.ts +1 -1
  184. package/out/server/naslServer.d.ts +1 -1
  185. package/out/server/naslServer.js +22 -5
  186. package/out/server/naslServer.js.map +1 -1
  187. package/out/service/creator/add.configs.js +2 -0
  188. package/out/service/creator/add.configs.js.map +1 -1
  189. package/out/service/creator/errHandles.js +5 -0
  190. package/out/service/creator/errHandles.js.map +1 -1
  191. package/out/service/creator/index.js +2 -0
  192. package/out/service/creator/index.js.map +1 -1
  193. package/out/service/storage/api.d.ts +18 -0
  194. package/out/service/storage/api.js +12 -0
  195. package/out/service/storage/api.js.map +1 -1
  196. package/out/service/storage/init.d.ts +41 -1
  197. package/out/service/storage/init.js +172 -42
  198. package/out/service/storage/init.js.map +1 -1
  199. package/out/service/storage/service.d.ts +9 -1
  200. package/out/service/storage/service.js +27 -1
  201. package/out/service/storage/service.js.map +1 -1
  202. package/out/templator/genCreateBlock.js +1 -1
  203. package/out/templator/genCreateBlock.js.map +1 -1
  204. package/out/templator/genCurdEditMultipleKeyBlock.js +4 -4
  205. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  206. package/out/templator/genCurdMultipleKeyBlock.js +4 -5
  207. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  208. package/out/templator/genEditTableBlock.js +2 -2
  209. package/out/templator/genEditTableBlock.js.map +1 -1
  210. package/out/templator/genSelectBlock.js +1 -1
  211. package/out/templator/genTableBlock.js +2 -2
  212. package/out/templator/genTableBlock.js.map +1 -1
  213. package/out/templator/genUpdateBlock.js +1 -1
  214. package/out/templator/genUpdateBlock.js.map +1 -1
  215. package/out/translator/index.d.ts +1 -1
  216. package/out/translator/index.js +4 -1
  217. package/out/translator/index.js.map +1 -1
  218. package/out/translator/lsp.d.ts +3 -3
  219. package/out/utils/index.d.ts +4 -4
  220. package/package.json +2 -2
  221. package/sandbox/stdlib/nasl.oql.ts +4 -0
  222. package/src/automate/engine/operators.js +13 -5
  223. package/src/automate/template/myProcess.js +11451 -11452
  224. package/src/automate/upgrader/2.20.js +1 -0
  225. package/src/bak/translator.js +3 -3
  226. package/src/concepts/BindAttribute__.ts +7 -5
  227. package/src/concepts/BindDirective__.ts +7 -5
  228. package/src/concepts/BindStyle__.ts +7 -6
  229. package/src/concepts/CallInterface__.ts +34 -20
  230. package/src/concepts/CallLogic__.ts +3 -3
  231. package/src/concepts/ConfigGroup__.ts +2 -2
  232. package/src/concepts/DataSource__.ts +11 -7
  233. package/src/concepts/Destination__.ts +7 -7
  234. package/src/concepts/Interface__.ts +59 -7
  235. package/src/concepts/Logic__.ts +2 -2
  236. package/src/concepts/Match__.ts +77 -2
  237. package/src/concepts/NewComposite__.ts +20 -2
  238. package/src/concepts/OqlQueryComponent__.ts +2 -0
  239. package/src/concepts/Param__.ts +1 -1
  240. package/src/concepts/ViewElement__.ts +9 -1
  241. package/src/concepts/View__.ts +11 -8
  242. package/src/generator/genReleaseBody.ts +2 -1
  243. package/src/generator/permission.ts +17 -7
  244. package/src/index.ts +1 -1
  245. package/src/server/getMemberIdentifier.ts +5 -2
  246. package/src/server/naslServer.ts +17 -5
  247. package/src/service/creator/add.configs.js +3 -0
  248. package/src/service/creator/errHandles.js +6 -0
  249. package/src/service/creator/index.js +3 -0
  250. package/src/service/storage/api.js +12 -0
  251. package/src/service/storage/init.ts +204 -41
  252. package/src/service/storage/service.ts +29 -1
  253. package/src/templator/genCreateBlock.ts +1 -1
  254. package/src/templator/genCurdEditMultipleKeyBlock.ts +4 -4
  255. package/src/templator/genCurdMultipleKeyBlock.ts +4 -5
  256. package/src/templator/genEditTableBlock.ts +2 -2
  257. package/src/templator/genSelectBlock.ts +1 -1
  258. package/src/templator/genTableBlock.ts +2 -2
  259. package/src/templator/genUpdateBlock.ts +1 -1
  260. package/src/translator/index.ts +3 -1
  261. package/out/automate/engine/2.14-components.d.ts +0 -1115
  262. package/out/automate/engine/2.14-components.js +0 -1087
  263. package/out/automate/engine/2.14-components.js.map +0 -1
  264. package/yarn-error.log +0 -2087
@@ -4,7 +4,7 @@ import api from './api';
4
4
  const service = createService(api);
5
5
 
6
6
  export default {
7
- batchQuery({ body, headers }: { body: Array<any>, headers: Record<string, string> }) {
7
+ batchQuery({ body, headers, config }: { body: Array<any>, headers: Record<string, string>, config?: object }) {
8
8
  const appData = (window as any).appData;
9
9
 
10
10
  return service.batchQuery({
@@ -15,6 +15,7 @@ export default {
15
15
  'request-versionChangedTime': appData?.versionChangedTime || '',
16
16
  operateArea: appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
17
17
  }, headers),
18
+ config,
18
19
  });
19
20
  },
20
21
  batchAction({ body, headers }: { body: Array<any>, headers: Record<string, string> }) {
@@ -30,4 +31,31 @@ export default {
30
31
  }, headers),
31
32
  });
32
33
  },
34
+ batchInstruct({ body, headers }: { body: Array<any>, headers: Record<string, string> }) {
35
+ const appData = (window as any).appData;
36
+
37
+ return service.batchInstruct({
38
+ body,
39
+ headers: Object.assign({
40
+ appId: appData?.appId,
41
+ 'request-appBaseVersion': (window as any).appData?.baseVersion || '',
42
+ 'request-versionChangedTime': (window as any).appData?.versionChangedTime || '',
43
+ operateArea: (window as any).appData?.branchStatus === 'merging' ? 'merge_conflict' : '',
44
+ }, headers),
45
+ config: {
46
+ timeout: 1000 * 60,
47
+ },
48
+ });
49
+ },
50
+ saveFrontendNasl({ body }: { body: any }) {
51
+ const appData = (window as any).appData;
52
+
53
+ return service.saveFrontendNasl({
54
+ body,
55
+ headers: {
56
+ appId: appData?.appId,
57
+ skipVersionCheck: true,
58
+ },
59
+ });
60
+ }
33
61
  };
@@ -49,7 +49,7 @@ export function genCreateFormTemplate(entity: Entity, nameGroup: NameGroup, sele
49
49
  const selectNameGroup = selectNameGroupMap.get(key);
50
50
  formItem += `
51
51
  <u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
52
- text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pageable="true" :remote-paging="true" v-model="${vModel}">
52
+ text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
53
53
  </u-select>
54
54
  `;
55
55
  } else
@@ -31,7 +31,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
31
31
 
32
32
  return `
33
33
  <u-linear-layout justify="space-between">
34
- <u-form layout="inline" label-size="auto">
34
+ <u-form layout="inline">
35
35
  ${properties
36
36
  .map((property) => {
37
37
  const vModel = `${nameGroup.viewVariableFilter}.${property.name}`;
@@ -53,7 +53,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
53
53
  const selectNameGroup = selectNameGroupMap.get(key);
54
54
  formItem += `
55
55
  <u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
56
- text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pageable="true" :remote-paging="true" v-model="${vModel}">
56
+ text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
57
57
  </u-select>
58
58
  `;
59
59
  } else
@@ -97,7 +97,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
97
97
  })
98
98
  .join('')}
99
99
 
100
- <u-form-item layout="center">
100
+ <u-form-item layout="center" label-size="auto">
101
101
  <u-button color="primary" @click="${nameGroup.viewLogicReload}">查询</u-button>
102
102
  </u-form-item>
103
103
  </u-form>
@@ -152,7 +152,7 @@ function genSaveModalTemplate(entity: Entity, nameGroup: NameGroup, selectNameGr
152
152
  const selectNameGroup = selectNameGroupMap.get(key);
153
153
  formItem += `
154
154
  <u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.load}"
155
- text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pageable="true" :remote-paging="true" v-model="${vModel}">
155
+ text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
156
156
  </u-select>
157
157
  `;
158
158
  } else
@@ -22,7 +22,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
22
22
  const properties = entity.properties.filter(filterProperty('inFilter'));
23
23
  return `
24
24
  <u-linear-layout justify="space-between">
25
- <u-form layout="inline" label-size="auto">
25
+ <u-form layout="inline">
26
26
  ${properties
27
27
  .map((property) => {
28
28
  const vModel = `${nameGroup.viewVariableFilter}.${property.name}`;
@@ -47,7 +47,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
47
47
  const selectNameGroup = selectNameGroupMap.get(key);
48
48
  formItem += `
49
49
  <u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
50
- text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pageable="true" :remote-paging="true" v-model="${vModel}">
50
+ text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
51
51
  </u-select>
52
52
  `;
53
53
  } else
@@ -91,7 +91,7 @@ function genFilterTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroup
91
91
  })
92
92
  .join('')}
93
93
 
94
- <u-form-item layout="center">
94
+ <u-form-item layout="center" label-size="auto">
95
95
  <u-button color="primary" @click="${nameGroup.viewLogicReload}">查询</u-button>
96
96
  </u-form-item>
97
97
  </u-form>
@@ -148,8 +148,7 @@ function genSaveModalTemplate(entity: Entity, nameGroup: NameGroup, selectNameGr
148
148
  text-field="${lowerEntityName}.${displayedProperty.name}"
149
149
  value-field="${lowerEntityName}.${relationProperty.name}"
150
150
  :data-source="${selectNameGroup.viewLogicLoad}"
151
- :pageable="true"
152
- :remote-paging="true"
151
+ :pagination="true"
153
152
  ${property.primaryKey ? `:disabled="${nameGroup.viewVariableIsUpdate}"` : ''}
154
153
  v-model="${vModel}">
155
154
  </u-select>
@@ -49,7 +49,7 @@ export function genEditTableColumnTemplate(entity: Entity, property: EntityPrope
49
49
  formItem += `
50
50
  <u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
51
51
  :autofocus="true" :opened="true" append-to="body" @blur="${nameGroup.viewLogicBlurUpdate}" @select="${nameGroup.viewLogicBlurUpdate}"
52
- text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pageable="true" :remote-paging="true" :value.sync="${valueExpression}">
52
+ text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" :value.sync="${valueExpression}">
53
53
  </u-select>
54
54
  `;
55
55
  } else
@@ -111,7 +111,7 @@ export function genEditTableTemplate(entity: Entity, nameGroup: NameGroup, selec
111
111
 
112
112
  return `<u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" data-schema="${nameGroup.structure}"
113
113
  value-field="${nameGroup.viewVariableEntity}.id"
114
- :pageable="true" :remote-paging="true" :show-sizer="true" :default-column-width="300" editable>
114
+ :pagination="true" :show-sizer="true" :default-column-width="300" editable>
115
115
  <u-table-view-column type="index" width="60"><template #title><u-text text="序号"></u-text></template><template #cell="current"></template></u-table-view-column>
116
116
 
117
117
  ${properties.map((property) => genEditTableColumnTemplate(entity, property, nameGroup, selectNameGroupMap) + '\n').join('')}
@@ -16,7 +16,7 @@ import {
16
16
  export function genSelectTemplate(property: EntityProperty, nameGroup: NameGroup) {
17
17
  return `<u-select clearable placeholder="请选择" ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" data-schema="${nameGroup.structure}"
18
18
  text-field="${nameGroup.lowerEntity}.${property.name}"
19
- value-field="${nameGroup.lowerEntity}.id" :pageable="true" :remote-paging="true">
19
+ value-field="${nameGroup.lowerEntity}.id" :pagination="true">
20
20
  </u-select>`;
21
21
  }
22
22
 
@@ -63,7 +63,7 @@ export function genTableTemplate(entity: Entity, nameGroup: NameGroup, modifyabl
63
63
 
64
64
  return `<u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" data-schema="${nameGroup.structure}"
65
65
  value-field="${nameGroup.viewVariableEntity}.id"
66
- :pageable="true" :remote-paging="true" :show-sizer="true">
66
+ :pagination="true" :show-sizer="true">
67
67
  <u-table-view-column type="index" width="60"><template #title><u-text text="序号"></u-text></template><template #cell="current"></template></u-table-view-column>
68
68
 
69
69
  ${properties.map((property) => genTableColumnTemplate(property, currentName) + '\n').join('')}
@@ -258,7 +258,7 @@ export function genTableColumnBlock(property: EntityProperty, oldNode: ViewEleme
258
258
 
259
259
  return `
260
260
  <template>
261
- <u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" :pageable="true" :remote-paging="true" :show-sizer="true" data-schema="${nameGroup.structure}">
261
+ <u-table-view ref="${nameGroup.viewElementMainView}" :data-source="${nameGroup.viewLogicLoad}" :pagination="true" :show-sizer="true" data-schema="${nameGroup.structure}">
262
262
  ${properties.map((property) => genTableColumnTemplate(property) + '\n').join('')}
263
263
  </u-table-view>
264
264
  </template>
@@ -49,7 +49,7 @@ export function genUpdateFormTemplate(entity: Entity, nameGroup: NameGroup, sele
49
49
  const selectNameGroup = selectNameGroupMap.get(key);
50
50
  formItem += `
51
51
  <u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroup.viewLogicLoad}"
52
- text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pageable="true" :remote-paging="true" v-model="${vModel}">
52
+ text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pagination="true" v-model="${vModel}">
53
53
  </u-select>
54
54
  `;
55
55
  } else
@@ -89,7 +89,9 @@ export function withSourceMap() {
89
89
  descriptor.value = function (this: BaseNode, state?: TranslatorState, ...args: any[]) {
90
90
  // 重新生成ts代码就先把类型清除掉
91
91
  // 注意排查错误的时候,调用了这个方法,就会把节点上缓存的__TypeAnnotation清除
92
- this.__isCorrectTypeAnnotation = false;
92
+ try {
93
+ this.__isCorrectTypeAnnotation = false;
94
+ } catch (err) {}
93
95
  if (!state) {
94
96
  // 没有状态不生成 SourceMap
95
97
  return oldMethod.call(this);