@web-utils/component 5.0.0-beta03 → 5.0.0-beta04

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 (390) hide show
  1. package/chunks/DialogForm.BzmXN481.mjs +37816 -0
  2. package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
  3. package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
  4. package/chunks/FyButton.DGd1yE_h.mjs +27 -0
  5. package/chunks/{FyCurd.DqJuCLNW.mjs → FyCurd.DmIW6Tjw.mjs} +490 -483
  6. package/chunks/{FyForm.CgyGhetD.mjs → FyForm.Dh77gj0Z.mjs} +149 -149
  7. package/chunks/{FyUEditor.uvZS8UgS.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
  8. package/chunks/{FyUpload.DoBEuYcC.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
  9. package/chunks/{MonacoEditor.Bq9d6JSz.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
  10. package/chunks/dataformat.BpAzVPYN.mjs +165 -0
  11. package/chunks/{dic.NZCGhtA7.mjs → dic.N2PNjL8o.mjs} +1 -1
  12. package/chunks/{event.CmOTnori.mjs → event.BevSLXu4.mjs} +8 -9
  13. package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
  14. package/dialog/index.d.ts +14 -0
  15. package/dialog/props.d.ts +101 -0
  16. package/dialog-form/index.mjs +2 -145
  17. package/element-dialog/index.mjs +1 -1
  18. package/element-dialog/style.css +1 -1
  19. package/fy-array/index.mjs +7 -7
  20. package/fy-button/index.mjs +2 -0
  21. package/fy-button/style.css +1 -0
  22. package/fy-cascader/index.mjs +2 -2
  23. package/fy-checkbox/index.mjs +2 -2
  24. package/fy-curd/index.mjs +1 -1
  25. package/fy-curd/style.css +1 -1
  26. package/fy-date/index.mjs +2 -2
  27. package/fy-date/style.css +1 -1
  28. package/fy-dynamic/index.mjs +15 -15
  29. package/fy-empty/index.mjs +4 -4
  30. package/fy-form/index.mjs +1 -1
  31. package/fy-input/index.mjs +3 -3
  32. package/fy-input-color/index.mjs +2 -2
  33. package/fy-input-map/index.mjs +36 -34
  34. package/fy-input-number/index.mjs +2 -2
  35. package/fy-input-table/index.mjs +40 -38
  36. package/fy-input-tree/index.mjs +17 -17
  37. package/fy-radio/index.mjs +2 -2
  38. package/fy-rate/index.mjs +2 -2
  39. package/fy-select/index.mjs +29 -29
  40. package/fy-slider/index.mjs +5 -5
  41. package/fy-switch/index.mjs +2 -2
  42. package/fy-tabs/index.mjs +1 -1
  43. package/fy-time/index.mjs +7 -7
  44. package/fy-title/index.mjs +2 -2
  45. package/fy-tree/index.mjs +76 -74
  46. package/fy-u-editor/index.mjs +1 -1
  47. package/fy-upload/index.mjs +1 -1
  48. package/icon-temp/index.mjs +1 -1
  49. package/index.d.ts +2 -141
  50. package/index.mjs +31 -178
  51. package/monaco-editor/index.mjs +1 -1
  52. package/package.json +4 -4
  53. package/web-types.json +2431 -20044
  54. package/address-input/index.mjs +0 -76
  55. package/address-input/style.css +0 -1
  56. package/affix/index.mjs +0 -72
  57. package/affix/style.css +0 -1
  58. package/aside-menu/index.mjs +0 -20
  59. package/aside-menu/style.css +0 -1
  60. package/avatar/index.mjs +0 -94
  61. package/avatar/style.css +0 -1
  62. package/awesome-button/index.mjs +0 -49
  63. package/base.css +0 -1
  64. package/capsule-tab/index.mjs +0 -27
  65. package/capsule-tab/style.css +0 -1
  66. package/card/index.mjs +0 -86
  67. package/card/style.css +0 -1
  68. package/carousel/index.mjs +0 -46
  69. package/carousel/style.css +0 -1
  70. package/chat/index.mjs +0 -432
  71. package/chat/style.css +0 -1
  72. package/chunk-file-uploader/index.mjs +0 -2
  73. package/chunk-file-uploader/style.css +0 -1
  74. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
  75. package/chunks/EditableTree.CV8b95tW.mjs +0 -639
  76. package/chunks/ElementBaseInfo.lW0iwU10.mjs +0 -208
  77. package/chunks/ElementDialog.DWhAJsUn.mjs +0 -520
  78. package/chunks/ElementForm.C7yebHWH.mjs +0 -600
  79. package/chunks/ElementListeners.B_SjC8dp.mjs +0 -635
  80. package/chunks/ElementMultiInstance.Xw27Z5mm.mjs +0 -289
  81. package/chunks/ElementOtherConfig.DnNmAhKn.mjs +0 -50
  82. package/chunks/ElementProperties.DKr9JE_O.mjs +0 -187
  83. package/chunks/ElementTaskConfig.CPjsXlpS.mjs +0 -442
  84. package/chunks/FlowCondition.BA7GF34X.mjs +0 -193
  85. package/chunks/FlowDesigner.DH1ypcUw.mjs +0 -5100
  86. package/chunks/FormBlock.D6kZl7sm.mjs +0 -117
  87. package/chunks/FormCascader.BXL8lKww.mjs +0 -1229
  88. package/chunks/FormInputTime.DzTPiDNh.mjs +0 -1775
  89. package/chunks/FormItem.B8iPLduv.mjs +0 -89
  90. package/chunks/FormItemGroup.CCGqEapT.mjs +0 -154
  91. package/chunks/FormSelect.t0jbTL_K.mjs +0 -1475
  92. package/chunks/FormSwitch.uoFQ-xp_.mjs +0 -298
  93. package/chunks/FormTemp.CeHtEZQe.mjs +0 -144
  94. package/chunks/FyFormDesign.DIIK7mXK.mjs +0 -5521
  95. package/chunks/ImagePreview.DDFrZgo5.mjs +0 -649
  96. package/chunks/Keyboard.DBspwbYo.mjs +0 -379
  97. package/chunks/PageableTable.DR-REJN5.mjs +0 -659
  98. package/chunks/RecordVideo.CKTY-gk9.mjs +0 -116
  99. package/chunks/SignalAndMessage.CL2u19it.mjs +0 -189
  100. package/chunks/SplitPane.DNNid7WB.mjs +0 -219
  101. package/chunks/TableColumn.Cq9Bvevm.mjs +0 -186
  102. package/chunks/TableView.DMWMaGLA.mjs +0 -477
  103. package/chunks/Toolbar.DytZ6fO0.mjs +0 -219
  104. package/chunks/ToolbarButton.AlTszc53.mjs +0 -107
  105. package/chunks/UserTaskListeners.Qfm8hKWP.mjs +0 -581
  106. package/chunks/VueCron.BmPnLuu3.mjs +0 -1787
  107. package/chunks/VueTreeSelect.GHx4Z2lG.mjs +0 -1877
  108. package/chunks/button.gVyl7Y__.mjs +0 -927
  109. package/chunks/checkbox.AmhCpaBZ.mjs +0 -438
  110. package/chunks/chunk.A6TnG60p.mjs +0 -13
  111. package/chunks/confirmable-mixin.BZtxXY0h.mjs +0 -273
  112. package/chunks/constants.Dw7hXt67.mjs +0 -4
  113. package/chunks/core.Blrh_Fjl.mjs +0 -51
  114. package/chunks/dataformat.F7GtAoiN.mjs +0 -144
  115. package/chunks/dictionary.BqVLM7Lf.mjs +0 -87
  116. package/chunks/dictionary.DXYdZefs.mjs +0 -19
  117. package/chunks/event.ZRs4J5TN.mjs +0 -4
  118. package/chunks/focus-trap.CuUc8N2C.mjs +0 -211
  119. package/chunks/form-input.DdSb45Tz.mjs +0 -34
  120. package/chunks/form-item.fYYCXvCs.mjs +0 -716
  121. package/chunks/form-pick.BEC7lrNH.mjs +0 -7
  122. package/chunks/form-validate.JFOV_f-C.mjs +0 -11
  123. package/chunks/icon.AJYLfX1m.mjs +0 -26
  124. package/chunks/icon.niAg1zTC.mjs +0 -251
  125. package/chunks/init.CtUEiRbU.mjs +0 -115
  126. package/chunks/input.B_wW4aF-.mjs +0 -548
  127. package/chunks/install.BJl2MN77.mjs +0 -73
  128. package/chunks/message-box.wGWcYSSd.mjs +0 -463
  129. package/chunks/message.DnTACuzV.mjs +0 -401
  130. package/chunks/overlay.Rhu_rfhx.mjs +0 -122
  131. package/chunks/photo-swipe.BvBJGc5x.mjs +0 -55
  132. package/chunks/radio.BMkZBhl5.mjs +0 -274
  133. package/chunks/scroll.BJIpzi2Q.mjs +0 -28
  134. package/chunks/scrollbar.CvxOszy3.mjs +0 -345
  135. package/chunks/slot.CZCo32Cw.mjs +0 -25
  136. package/chunks/style.CraPDfJA.mjs +0 -325
  137. package/chunks/sub-table-plus-props.DvS8aKT4.mjs +0 -28
  138. package/chunks/tab-mixin.C9DSz8xu.mjs +0 -70
  139. package/chunks/tag.B6yUaGj-.mjs +0 -141
  140. package/chunks/teleport.87mkIv8m.mjs +0 -22
  141. package/chunks/tooltip.Dzjs7LZ8.mjs +0 -1926
  142. package/chunks/typescript.D0a40c7B.mjs +0 -4
  143. package/chunks/use-aria.B9uqqWAE.mjs +0 -17
  144. package/chunks/use-composition.BMPJBvYs.mjs +0 -47
  145. package/chunks/use-deprecated.vx6LTDA_.mjs +0 -12
  146. package/chunks/use-empty-values.CxYKjLV9.mjs +0 -81
  147. package/chunks/use-form-item.DMDTkMq9.mjs +0 -48
  148. package/chunks/use-global-config.Dkt91Ob3.mjs +0 -57
  149. package/chunks/use-id.CyzdvfQn.mjs +0 -15
  150. package/chunks/use-locale.CBoQRFjH.mjs +0 -188
  151. package/chunks/use-size.CoorvF12.mjs +0 -18
  152. package/chunks/util.fjuzrmWz.mjs +0 -103
  153. package/chunks/utilSelf.Bv7FtUNb.mjs +0 -46
  154. package/chunks/utils.C37EhJ-u.mjs +0 -60
  155. package/chunks/utils.C8RvIGLM.mjs +0 -14
  156. package/chunks/validator.Drv0r2Nb.mjs +0 -5
  157. package/chunks/vnode.raM3wMJz.mjs +0 -14
  158. package/code-mirror-editor/index.mjs +0 -99
  159. package/code-mirror-editor/style.css +0 -1
  160. package/comment/index.mjs +0 -62
  161. package/comment/style.css +0 -1
  162. package/configComponents.d.ts +0 -29
  163. package/configComponents.mjs +0 -42
  164. package/confirm-button/index.mjs +0 -35
  165. package/confirmable/index.mjs +0 -8
  166. package/context-menu/index.mjs +0 -196
  167. package/context-menu/style.css +0 -1
  168. package/count-up/index.mjs +0 -99
  169. package/custom-scrollbar/index.mjs +0 -93
  170. package/data-box/index.mjs +0 -64
  171. package/data-box/style.css +0 -1
  172. package/data-card/index.mjs +0 -60
  173. package/data-card/style.css +0 -1
  174. package/data-card-text/index.mjs +0 -64
  175. package/data-card-text/style.css +0 -1
  176. package/data-display/index.mjs +0 -71
  177. package/data-display/style.css +0 -1
  178. package/data-icons/index.mjs +0 -70
  179. package/data-icons/style.css +0 -1
  180. package/data-imgtext/index.mjs +0 -67
  181. package/data-imgtext/style.css +0 -1
  182. package/data-operatext/index.mjs +0 -51
  183. package/data-operatext/style.css +0 -1
  184. package/data-panel/index.mjs +0 -57
  185. package/data-panel/style.css +0 -1
  186. package/data-pay/index.mjs +0 -105
  187. package/data-pay/style.css +0 -1
  188. package/data-price/index.mjs +0 -48
  189. package/data-price/style.css +0 -1
  190. package/data-progress/index.mjs +0 -67
  191. package/data-progress/style.css +0 -1
  192. package/data-rotate/index.mjs +0 -61
  193. package/data-rotate/style.css +0 -1
  194. package/data-table-picker/index.mjs +0 -116
  195. package/data-tabs/index.mjs +0 -67
  196. package/data-tabs/style.css +0 -1
  197. package/dynamic-table/index.mjs +0 -165
  198. package/dynamic-table/style.css +0 -1
  199. package/e-charts/index.mjs +0 -176
  200. package/e-charts/style.css +0 -1
  201. package/easy-popup/index.mjs +0 -92
  202. package/easy-popup/style.css +0 -1
  203. package/editable-progress/index.mjs +0 -113
  204. package/editable-progress/style.css +0 -1
  205. package/editable-tree/index.mjs +0 -2
  206. package/editable-tree/style.css +0 -1
  207. package/element-listeners/style.css +0 -1
  208. package/element-multi-instance/style.css +0 -1
  209. package/ellipsis/index.mjs +0 -124
  210. package/ellipsis/style.css +0 -1
  211. package/empty-view/index.mjs +0 -46
  212. package/empty-view/style.css +0 -1
  213. package/error-view/index.mjs +0 -37
  214. package/error-view/style.css +0 -1
  215. package/flex-column/index.mjs +0 -35
  216. package/flex-item/index.mjs +0 -61
  217. package/flex-row/index.mjs +0 -34
  218. package/flex-scroller/index.mjs +0 -29
  219. package/flex-scroller/style.css +0 -1
  220. package/flow/index.mjs +0 -240
  221. package/flow/style.css +0 -1
  222. package/flow-designer/index.mjs +0 -2
  223. package/flow-designer/style.css +0 -1
  224. package/flow-node/index.mjs +0 -56
  225. package/flow-viewer/index.mjs +0 -160
  226. package/flow-viewer/style.css +0 -1
  227. package/form-block/index.mjs +0 -2
  228. package/form-block/style.css +0 -1
  229. package/form-button/index.mjs +0 -36
  230. package/form-card/index.mjs +0 -14
  231. package/form-cascader/index.mjs +0 -2
  232. package/form-checkbox/index.mjs +0 -90
  233. package/form-checkbox-group/index.mjs +0 -162
  234. package/form-checkbox-group/style.css +0 -1
  235. package/form-date-picker/index.mjs +0 -156
  236. package/form-holder/index.mjs +0 -134
  237. package/form-holder/style.css +0 -1
  238. package/form-input/index.mjs +0 -114
  239. package/form-input-cron-expression/index.mjs +0 -98
  240. package/form-input-cron-expression/style.css +0 -1
  241. package/form-input-email/index.mjs +0 -66
  242. package/form-input-id-card/index.mjs +0 -74
  243. package/form-input-phone-number/index.mjs +0 -73
  244. package/form-input-tag/index.mjs +0 -89
  245. package/form-input-time/index.mjs +0 -2
  246. package/form-item/index.mjs +0 -2
  247. package/form-item/style.css +0 -1
  248. package/form-item-config-provider/index.mjs +0 -47
  249. package/form-item-group/index.mjs +0 -2
  250. package/form-item-group/style.css +0 -1
  251. package/form-radio-group/index.mjs +0 -162
  252. package/form-radio-group/style.css +0 -1
  253. package/form-select/index.mjs +0 -2
  254. package/form-select/style.css +0 -1
  255. package/form-switch/index.mjs +0 -2
  256. package/form-table/index.mjs +0 -132
  257. package/form-table-plus/index.mjs +0 -165
  258. package/form-textarea/index.mjs +0 -91
  259. package/form-tree-select/index.mjs +0 -90
  260. package/form-tree-select/style.css +0 -1
  261. package/form-tree-select-multiple/index.mjs +0 -93
  262. package/form-view/index.mjs +0 -280
  263. package/form-view/style.css +0 -1
  264. package/fy-article/index.mjs +0 -73
  265. package/fy-article/style.css +0 -1
  266. package/fy-code/index.mjs +0 -48
  267. package/fy-draggable/index.mjs +0 -323
  268. package/fy-draggable/style.css +0 -1
  269. package/fy-form-design/index.mjs +0 -2
  270. package/fy-form-design/style.css +0 -1
  271. package/fy-input-icon/index.mjs +0 -134
  272. package/fy-input-icon/style.css +0 -1
  273. package/fy-progress/index.mjs +0 -36
  274. package/guide-steps/index.mjs +0 -73
  275. package/guide-steps/style.css +0 -1
  276. package/helper-function.d.ts +0 -5
  277. package/helper-function.mjs +0 -58
  278. package/highlight-j-s/index.mjs +0 -51
  279. package/highlight-j-s/style.css +0 -1
  280. package/icon-card/index.mjs +0 -34
  281. package/icon-card/style.css +0 -1
  282. package/iframe-window/index.mjs +0 -40
  283. package/iframe-window/style.css +0 -1
  284. package/image-cropper/index.mjs +0 -152
  285. package/image-cropper/style.css +0 -1
  286. package/image-preview/index.mjs +0 -2
  287. package/image-preview/style.css +0 -1
  288. package/image-viewer/index.mjs +0 -70
  289. package/image-viewer/style.css +0 -1
  290. package/input-number-range/index.mjs +0 -76
  291. package/input-number-range/style.css +0 -1
  292. package/j-s-x-component/index.mjs +0 -14
  293. package/keyboard/index.mjs +0 -2
  294. package/keyboard/style.css +0 -1
  295. package/license/index.mjs +0 -106
  296. package/loading-view/index.mjs +0 -39
  297. package/loading-view/style.css +0 -1
  298. package/name-avatar/index.mjs +0 -61
  299. package/name-avatar/style.css +0 -1
  300. package/nav-bar/index.mjs +0 -34
  301. package/nav-bar/style.css +0 -1
  302. package/not-implement/index.mjs +0 -10
  303. package/not-implement/style.css +0 -1
  304. package/notice/index.mjs +0 -97
  305. package/notice/style.css +0 -1
  306. package/page/index.mjs +0 -19
  307. package/page/style.css +0 -1
  308. package/page-header/index.mjs +0 -27
  309. package/page-header/style.css +0 -1
  310. package/page-index/index.mjs +0 -121
  311. package/page-index/style.css +0 -1
  312. package/page-index-top/index.mjs +0 -80
  313. package/page-skeleton/index.mjs +0 -49
  314. package/page-skeleton/style.css +0 -1
  315. package/page-skeleton-new/index.mjs +0 -79
  316. package/page-skeleton-new/style.css +0 -1
  317. package/pageable-table/index.mjs +0 -2
  318. package/pageable-table/style.css +0 -1
  319. package/pageable-view/index.mjs +0 -280
  320. package/pageable-view/style.css +0 -1
  321. package/photo-swipe/index.d.ts +0 -8
  322. package/photo-swipe/index.mjs +0 -33
  323. package/picker-table-view/index.mjs +0 -221
  324. package/present-view/index.mjs +0 -271
  325. package/present-view/style.css +0 -1
  326. package/queue/index.mjs +0 -46
  327. package/queue/style.css +0 -1
  328. package/record-video/index.mjs +0 -2
  329. package/record-video/style.css +0 -1
  330. package/resize-observer/index.mjs +0 -45
  331. package/resize-observer/style.css +0 -1
  332. package/search/index.mjs +0 -116
  333. package/search/style.css +0 -1
  334. package/sign/index.mjs +0 -104
  335. package/sign/style.css +0 -1
  336. package/sign-panel/index.mjs +0 -183
  337. package/sign-panel/style.css +0 -1
  338. package/skeleton/index.mjs +0 -51
  339. package/skeleton/style.css +0 -1
  340. package/skeleton-panel/index.mjs +0 -34
  341. package/skeleton-panel/style.css +0 -1
  342. package/split-pane/index.mjs +0 -3
  343. package/split-pane/style.css +0 -1
  344. package/stateful/index.mjs +0 -71
  345. package/stateful/style.css +0 -1
  346. package/static-pageable-table/index.mjs +0 -69
  347. package/static-pageable-table/style.css +0 -1
  348. package/sub-table/index.mjs +0 -505
  349. package/sub-table/style.css +0 -1
  350. package/sub-table-plus/index.mjs +0 -590
  351. package/sub-table-plus/style.css +0 -1
  352. package/swiper/index.mjs +0 -128
  353. package/swiper/style.css +0 -1
  354. package/tab/index.mjs +0 -117
  355. package/tab/style.css +0 -1
  356. package/tab-item/index.mjs +0 -49
  357. package/table-column/index.mjs +0 -2
  358. package/table-column/style.css +0 -1
  359. package/table-view/index.mjs +0 -3
  360. package/table-view/style.css +0 -1
  361. package/tabs-view/index.mjs +0 -109
  362. package/tabs-view/style.css +0 -1
  363. package/tag-render/index.mjs +0 -84
  364. package/tag-render/style.css +0 -1
  365. package/text-ellipsis/index.mjs +0 -95
  366. package/text-ellipsis/style.css +0 -1
  367. package/toolbar/index.mjs +0 -2
  368. package/toolbar/style.css +0 -1
  369. package/toolbar-button/index.mjs +0 -2
  370. package/verify/index.mjs +0 -58
  371. package/verify/style.css +0 -1
  372. package/video/index.d.ts +0 -10
  373. package/vue-cron/index.mjs +0 -2
  374. package/vue-cron/style.css +0 -1
  375. package/vue-qr-code/index.mjs +0 -32
  376. package/vue-quill-editor/index.mjs +0 -127
  377. package/vue-quill-editor/style.css +0 -1
  378. package/vue-tags-input/index.mjs +0 -348
  379. package/vue-tags-input/style.css +0 -1
  380. package/vue-tree-select/index.mjs +0 -2
  381. package/vue-tree-select/style.css +0 -1
  382. package/vue-video-player/index.mjs +0 -136
  383. package/vue-video-player/style.css +0 -1
  384. package/watermark/index.mjs +0 -47
  385. package/watermark/style.css +0 -1
  386. package/x-input-tag/index.mjs +0 -142
  387. package/x-input-tag/style.css +0 -1
  388. /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
  389. /package/chunks/{packages.CONbEH13.mjs → packages.W76nKiMk.mjs} +0 -0
  390. /package/chunks/{permission.8WDtOmzA.mjs → permission.ZYdXiCsn.mjs} +0 -0
@@ -1,442 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
2
- import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, guardReactiveProps as c, normalizeProps as l, openBlock as u, renderList as d, resolveComponent as f, resolveDynamicComponent as p, vShow as m, withCtx as h, withDirectives as g, withModifiers as _ } from "vue";
3
- //#region src/components/bpmn-process-designer/components/penal/task/task-components/UserTask.vue
4
- var v = {
5
- name: "UserTask",
6
- props: {
7
- id: String,
8
- element: Object,
9
- bpmnInstances: Object
10
- },
11
- data() {
12
- return {
13
- defaultTaskForm: {
14
- assignee: "",
15
- candidateUsers: [],
16
- candidateGroups: [],
17
- dueDate: "",
18
- followUpDate: "",
19
- priority: ""
20
- },
21
- userTaskForm: {},
22
- mockData: [
23
- 1,
24
- 2,
25
- 3,
26
- 4,
27
- 5,
28
- 6,
29
- 7,
30
- 8,
31
- 9,
32
- 10
33
- ]
34
- };
35
- },
36
- watch: { id: {
37
- immediate: !0,
38
- handler() {
39
- this.$nextTick(() => this.resetTaskForm());
40
- }
41
- } },
42
- methods: {
43
- resetTaskForm() {
44
- let { businessObject: e } = this.element;
45
- for (let t in this.defaultTaskForm) {
46
- let n;
47
- n = ["candidateUsers", "candidateGroups"].includes(t) ? e[t] ? e[t].split(",") : [] : e[t] || this.defaultTaskForm[t], this.userTaskForm[t] = n;
48
- }
49
- },
50
- updateElementTask(e) {
51
- let t = {};
52
- e === "candidateUsers" || e === "candidateGroups" ? t[e] = this.userTaskForm[e] && this.userTaskForm[e].length ? this.userTaskForm[e].join() : null : t[e] = this.userTaskForm[e] || null, this.bpmnInstances.modeling.updateProperties(this.element, t);
53
- }
54
- }
55
- }, y = { style: { "margin-top": "16px" } };
56
- function b(e, r, a, o, c, l) {
57
- let p = f("ElOption"), m = f("ElSelect"), g = f("ElFormItem"), _ = f("ElInput");
58
- return u(), i("div", y, [
59
- s(g, { label: "处理用户" }, {
60
- default: h(() => [s(m, {
61
- modelValue: c.userTaskForm.assignee,
62
- "onUpdate:modelValue": r[0] || (r[0] = (e) => c.userTaskForm.assignee = e),
63
- onChange: r[1] || (r[1] = (e) => l.updateElementTask("assignee"))
64
- }, {
65
- default: h(() => [(u(!0), i(t, null, d(c.mockData, (e) => (u(), n(p, {
66
- key: `ass-${e}`,
67
- label: `用户${e}`,
68
- value: `user${e}`
69
- }, null, 8, ["label", "value"]))), 128))]),
70
- _: 1
71
- }, 8, ["modelValue"])]),
72
- _: 1
73
- }),
74
- s(g, { label: "候选用户" }, {
75
- default: h(() => [s(m, {
76
- modelValue: c.userTaskForm.candidateUsers,
77
- "onUpdate:modelValue": r[2] || (r[2] = (e) => c.userTaskForm.candidateUsers = e),
78
- multiple: "",
79
- "collapse-tags": "",
80
- onChange: r[3] || (r[3] = (e) => l.updateElementTask("candidateUsers"))
81
- }, {
82
- default: h(() => [(u(!0), i(t, null, d(c.mockData, (e) => (u(), n(p, {
83
- key: `user-${e}`,
84
- label: `用户${e}`,
85
- value: `user${e}`
86
- }, null, 8, ["label", "value"]))), 128))]),
87
- _: 1
88
- }, 8, ["modelValue"])]),
89
- _: 1
90
- }),
91
- s(g, { label: "候选分组" }, {
92
- default: h(() => [s(m, {
93
- modelValue: c.userTaskForm.candidateGroups,
94
- "onUpdate:modelValue": r[4] || (r[4] = (e) => c.userTaskForm.candidateGroups = e),
95
- multiple: "",
96
- "collapse-tags": "",
97
- onChange: r[5] || (r[5] = (e) => l.updateElementTask("candidateGroups"))
98
- }, {
99
- default: h(() => [(u(!0), i(t, null, d(c.mockData, (e) => (u(), n(p, {
100
- key: `ass-${e}`,
101
- label: `分组${e}`,
102
- value: `group${e}`
103
- }, null, 8, ["label", "value"]))), 128))]),
104
- _: 1
105
- }, 8, ["modelValue"])]),
106
- _: 1
107
- }),
108
- s(g, { label: "到期时间" }, {
109
- default: h(() => [s(_, {
110
- modelValue: c.userTaskForm.dueDate,
111
- "onUpdate:modelValue": r[6] || (r[6] = (e) => c.userTaskForm.dueDate = e),
112
- clearable: "",
113
- onChange: r[7] || (r[7] = (e) => l.updateElementTask("dueDate"))
114
- }, null, 8, ["modelValue"])]),
115
- _: 1
116
- }),
117
- s(g, { label: "跟踪时间" }, {
118
- default: h(() => [s(_, {
119
- modelValue: c.userTaskForm.followUpDate,
120
- "onUpdate:modelValue": r[8] || (r[8] = (e) => c.userTaskForm.followUpDate = e),
121
- clearable: "",
122
- onChange: r[9] || (r[9] = (e) => l.updateElementTask("followUpDate"))
123
- }, null, 8, ["modelValue"])]),
124
- _: 1
125
- }),
126
- s(g, { label: "优先级" }, {
127
- default: h(() => [s(_, {
128
- modelValue: c.userTaskForm.priority,
129
- "onUpdate:modelValue": r[10] || (r[10] = (e) => c.userTaskForm.priority = e),
130
- clearable: "",
131
- onChange: r[11] || (r[11] = (e) => l.updateElementTask("priority"))
132
- }, null, 8, ["modelValue"])]),
133
- _: 1
134
- })
135
- ]);
136
- }
137
- var x = /* @__PURE__ */ e(v, [["render", b]]), S = {
138
- name: "ScriptTask",
139
- props: {
140
- id: String,
141
- element: Object,
142
- bpmnInstances: Object
143
- },
144
- data() {
145
- return {
146
- defaultTaskForm: {
147
- scriptFormat: "",
148
- script: "",
149
- resource: "",
150
- resultVariable: ""
151
- },
152
- scriptTaskForm: {}
153
- };
154
- },
155
- watch: { id: {
156
- immediate: !0,
157
- handler() {
158
- this.$nextTick(() => this.resetTaskForm());
159
- }
160
- } },
161
- methods: {
162
- resetTaskForm() {
163
- for (let t in this.defaultTaskForm) {
164
- var e;
165
- let n = ((e = this.element) == null ? void 0 : e.businessObject[t]) || this.defaultTaskForm[t];
166
- this.scriptTaskForm[t] = n;
167
- }
168
- this.scriptTaskForm.scriptType = this.scriptTaskForm.script ? "inline" : "external";
169
- },
170
- updateElementTask() {
171
- let e = Object.create(null);
172
- e.scriptFormat = this.scriptTaskForm.scriptFormat || null, e.resultVariable = this.scriptTaskForm.resultVariable || null, this.scriptTaskForm.scriptType === "inline" ? (e.script = this.scriptTaskForm.script || null, e.resource = null) : (e.resource = this.scriptTaskForm.resource || null, e.script = null), this.bpmnInstances.modeling.updateProperties(this.element, e);
173
- }
174
- }
175
- }, C = { style: { "margin-top": "16px" } };
176
- function w(e, t, n, r, a, o) {
177
- let c = f("ElInput"), l = f("ElFormItem"), d = f("ElOption"), p = f("ElSelect");
178
- return u(), i("div", C, [
179
- s(l, { label: "脚本格式" }, {
180
- default: h(() => [s(c, {
181
- modelValue: a.scriptTaskForm.scriptFormat,
182
- "onUpdate:modelValue": t[0] || (t[0] = (e) => a.scriptTaskForm.scriptFormat = e),
183
- clearable: "",
184
- onInput: t[1] || (t[1] = (e) => o.updateElementTask()),
185
- onChange: t[2] || (t[2] = (e) => o.updateElementTask())
186
- }, null, 8, ["modelValue"])]),
187
- _: 1
188
- }),
189
- s(l, { label: "脚本类型" }, {
190
- default: h(() => [s(p, {
191
- modelValue: a.scriptTaskForm.scriptType,
192
- "onUpdate:modelValue": t[3] || (t[3] = (e) => a.scriptTaskForm.scriptType = e)
193
- }, {
194
- default: h(() => [s(d, {
195
- label: "内联脚本",
196
- value: "inline"
197
- }), s(d, {
198
- label: "外部资源",
199
- value: "external"
200
- })]),
201
- _: 1
202
- }, 8, ["modelValue"])]),
203
- _: 1
204
- }),
205
- g(s(l, { label: "脚本" }, {
206
- default: h(() => [s(c, {
207
- modelValue: a.scriptTaskForm.script,
208
- "onUpdate:modelValue": t[4] || (t[4] = (e) => a.scriptTaskForm.script = e),
209
- type: "textarea",
210
- resize: "vertical",
211
- autosize: {
212
- minRows: 2,
213
- maxRows: 4
214
- },
215
- clearable: "",
216
- onInput: t[5] || (t[5] = (e) => o.updateElementTask()),
217
- onChange: t[6] || (t[6] = (e) => o.updateElementTask())
218
- }, null, 8, ["modelValue"])]),
219
- _: 1
220
- }, 512), [[m, a.scriptTaskForm.scriptType === "inline"]]),
221
- g(s(l, { label: "资源地址" }, {
222
- default: h(() => [s(c, {
223
- modelValue: a.scriptTaskForm.resource,
224
- "onUpdate:modelValue": t[7] || (t[7] = (e) => a.scriptTaskForm.resource = e),
225
- clearable: "",
226
- onInput: t[8] || (t[8] = (e) => o.updateElementTask()),
227
- onChange: t[9] || (t[9] = (e) => o.updateElementTask())
228
- }, null, 8, ["modelValue"])]),
229
- _: 1
230
- }, 512), [[m, a.scriptTaskForm.scriptType === "external"]]),
231
- s(l, { label: "结果变量" }, {
232
- default: h(() => [s(c, {
233
- modelValue: a.scriptTaskForm.resultVariable,
234
- "onUpdate:modelValue": t[10] || (t[10] = (e) => a.scriptTaskForm.resultVariable = e),
235
- clearable: "",
236
- onInput: t[11] || (t[11] = (e) => o.updateElementTask()),
237
- onChange: t[12] || (t[12] = (e) => o.updateElementTask())
238
- }, null, 8, ["modelValue"])]),
239
- _: 1
240
- })
241
- ]);
242
- }
243
- var T = /* @__PURE__ */ e(S, [["render", w]]), E = {
244
- name: "ReceiveTask",
245
- props: {
246
- id: String,
247
- element: Object,
248
- bpmnInstances: Object
249
- },
250
- data() {
251
- return {
252
- bindMessageId: "",
253
- newMessageForm: {},
254
- messageMap: {},
255
- messageModelVisible: !1
256
- };
257
- },
258
- watch: { id: {
259
- immediate: !0,
260
- handler() {
261
- this.$nextTick(() => this.getBindMessage());
262
- }
263
- } },
264
- created() {
265
- this.bpmnMessageRefsMap = Object.create(null), this.bpmnRootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.bpmnRootElements.filter((e) => e.$type === "bpmn:Message").forEach((e) => {
266
- this.bpmnMessageRefsMap[e.id] = e, this.messageMap[e.id] = e.name;
267
- }), this.messageMap[-1] = "无";
268
- },
269
- methods: {
270
- getBindMessage() {
271
- var e;
272
- this.bindMessageId = ((e = this.element.businessObject) == null || (e = e.messageRef) == null ? void 0 : e.id) || "-1";
273
- },
274
- openMessageModel() {
275
- this.messageModelVisible = !0, this.newMessageForm = {};
276
- },
277
- createNewMessage() {
278
- if (this.messageMap[this.newMessageForm.id]) {
279
- this.$message.error("该消息已存在,请修改id后重新保存");
280
- return;
281
- }
282
- let e = this.bpmnInstances.moddle.create("bpmn:Message", this.newMessageForm);
283
- this.bpmnRootElements.push(e), this.messageMap[this.newMessageForm.id] = this.newMessageForm.name, this.bpmnMessageRefsMap[this.newMessageForm.id] = e, this.messageModelVisible = !1;
284
- },
285
- updateTaskMessage(e) {
286
- e === "-1" ? this.bpmnInstances.modeling.updateProperties(this.element, { messageRef: null }) : this.bpmnInstances.modeling.updateProperties(this.element, { messageRef: this.bpmnMessageRefsMap[e] });
287
- }
288
- }
289
- }, D = { style: { "margin-top": "16px" } }, O = { style: {
290
- display: "flex",
291
- "flex-wrap": "nowrap",
292
- "align-items": "center",
293
- "justify-content": "space-between"
294
- } };
295
- function k(e, r, c, l, p, m) {
296
- let g = f("ElOption"), v = f("ElSelect"), y = f("ElButton"), b = f("ElFormItem"), x = f("ElInput"), S = f("ElForm"), C = f("ElementDialog");
297
- return u(), i("div", D, [s(b, { label: "消息实例" }, {
298
- default: h(() => [a("div", O, [s(v, {
299
- modelValue: p.bindMessageId,
300
- "onUpdate:modelValue": r[0] || (r[0] = (e) => p.bindMessageId = e),
301
- onChange: m.updateTaskMessage
302
- }, {
303
- default: h(() => [(u(!0), i(t, null, d(Object.keys(p.messageMap), (e) => (u(), n(g, {
304
- key: e,
305
- value: e,
306
- label: p.messageMap[e]
307
- }, null, 8, ["value", "label"]))), 128))]),
308
- _: 1
309
- }, 8, ["modelValue", "onChange"]), s(y, {
310
- type: "primary",
311
- icon: "el-icon-plus",
312
- style: { "margin-left": "8px" },
313
- onClick: m.openMessageModel
314
- }, null, 8, ["onClick"])])]),
315
- _: 1
316
- }), s(C, {
317
- visible: p.messageModelVisible,
318
- "onUpdate:visible": r[4] || (r[4] = (e) => p.messageModelVisible = e),
319
- class: "flow-dialog",
320
- "close-on-click-modal": !1,
321
- title: "创建新消息",
322
- width: "400px",
323
- "append-to-body": "",
324
- "destroy-on-close": ""
325
- }, {
326
- footer: h(() => [s(y, {
327
- type: "primary",
328
- onClick: m.createNewMessage
329
- }, {
330
- default: h(() => [...r[5] || (r[5] = [o("确 认", -1)])]),
331
- _: 1
332
- }, 8, ["onClick"])]),
333
- default: h(() => [s(S, {
334
- model: p.newMessageForm,
335
- "label-width": "90px",
336
- onSubmit: r[3] || (r[3] = _(() => {}, ["prevent"]))
337
- }, {
338
- default: h(() => [s(b, { label: "消息ID" }, {
339
- default: h(() => [s(x, {
340
- modelValue: p.newMessageForm.id,
341
- "onUpdate:modelValue": r[1] || (r[1] = (e) => p.newMessageForm.id = e),
342
- clearable: ""
343
- }, null, 8, ["modelValue"])]),
344
- _: 1
345
- }), s(b, { label: "消息名称" }, {
346
- default: h(() => [s(x, {
347
- modelValue: p.newMessageForm.name,
348
- "onUpdate:modelValue": r[2] || (r[2] = (e) => p.newMessageForm.name = e),
349
- clearable: ""
350
- }, null, 8, ["modelValue"])]),
351
- _: 1
352
- })]),
353
- _: 1
354
- }, 8, ["model"])]),
355
- _: 1
356
- }, 8, ["visible"])]);
357
- }
358
- //#endregion
359
- //#region src/components/bpmn-process-designer/components/penal/task/ElementTaskConfig.vue
360
- var A = {
361
- name: "ElementTaskConfig",
362
- components: {
363
- UserTask: x,
364
- ScriptTask: T,
365
- ReceiveTask: /* @__PURE__ */ e(E, [["render", k]])
366
- },
367
- props: {
368
- id: String,
369
- element: Object,
370
- bpmnInstances: Object,
371
- type: String
372
- },
373
- data() {
374
- return {
375
- taskConfigForm: {
376
- asyncAfter: !1,
377
- asyncBefore: !1,
378
- exclusive: !1
379
- },
380
- witchTaskComponent: "",
381
- installedComponent: {
382
- UserTask: "UserTask",
383
- ScriptTask: "ScriptTask",
384
- ReceiveTask: "ReceiveTask"
385
- }
386
- };
387
- },
388
- watch: {
389
- id: {
390
- immediate: !0,
391
- handler() {
392
- var e, t, n;
393
- this.taskConfigForm.asyncBefore = (e = this.element) == null || (e = e.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (t = this.element) == null || (t = t.businessObject) == null ? void 0 : t.asyncAfter, this.taskConfigForm.exclusive = (n = this.element) == null || (n = n.businessObject) == null ? void 0 : n.exclusive;
394
- }
395
- },
396
- type: {
397
- immediate: !0,
398
- handler() {
399
- this.witchTaskComponent = this.installedComponent[this.type];
400
- }
401
- }
402
- },
403
- methods: { changeTaskAsync() {
404
- !this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, { ...this.taskConfigForm });
405
- } }
406
- }, j = { class: "panel-tab__content" };
407
- function M(e, t, a, o, d, m) {
408
- let g = f("ElCheckbox"), v = f("ElFormItem"), y = f("ElForm");
409
- return u(), i("div", j, [s(y, {
410
- "label-width": "90px",
411
- onSubmit: t[3] || (t[3] = _(() => {}, ["prevent"]))
412
- }, {
413
- default: h(() => [s(v, { label: "异步延续" }, {
414
- default: h(() => [
415
- s(g, {
416
- modelValue: d.taskConfigForm.asyncBefore,
417
- "onUpdate:modelValue": t[0] || (t[0] = (e) => d.taskConfigForm.asyncBefore = e),
418
- label: "异步前",
419
- onChange: m.changeTaskAsync
420
- }, null, 8, ["modelValue", "onChange"]),
421
- s(g, {
422
- modelValue: d.taskConfigForm.asyncAfter,
423
- "onUpdate:modelValue": t[1] || (t[1] = (e) => d.taskConfigForm.asyncAfter = e),
424
- label: "异步后",
425
- onChange: m.changeTaskAsync
426
- }, null, 8, ["modelValue", "onChange"]),
427
- d.taskConfigForm.asyncAfter || d.taskConfigForm.asyncBefore ? (u(), n(g, {
428
- key: 0,
429
- modelValue: d.taskConfigForm.exclusive,
430
- "onUpdate:modelValue": t[2] || (t[2] = (e) => d.taskConfigForm.exclusive = e),
431
- label: "排除",
432
- onChange: m.changeTaskAsync
433
- }, null, 8, ["modelValue", "onChange"])) : r("v-if", !0)
434
- ]),
435
- _: 1
436
- }), (u(), n(p(d.witchTaskComponent), l(c(e.$props)), null, 16))]),
437
- _: 1
438
- })]);
439
- }
440
- var N = /* @__PURE__ */ e(A, [["render", M]]);
441
- //#endregion
442
- export { N as default };
@@ -1,193 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
2
- import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, openBlock as o, resolveComponent as s, withCtx as c, withModifiers as l } from "vue";
3
- //#region src/components/bpmn-process-designer/components/penal/flow-condition/FlowCondition.vue
4
- var u = {
5
- name: "FlowCondition",
6
- props: {
7
- id: String,
8
- element: Object,
9
- bpmnInstances: Object
10
- },
11
- data() {
12
- return { flowConditionForm: {} };
13
- },
14
- watch: { id: {
15
- immediate: !0,
16
- async handler() {
17
- await this.$nextTick(), this.resetFlowCondition();
18
- }
19
- } },
20
- beforeUnmount() {
21
- this.bpmnElementSource = null, this.bpmnElementSourceRef = null;
22
- },
23
- methods: {
24
- resetFlowCondition() {
25
- if (this.bpmnElementSource = this.element.source, this.bpmnElementSourceRef = this.element.businessObject.sourceRef, this.bpmnElementSourceRef && this.bpmnElementSourceRef.default && this.bpmnElementSourceRef.default.id === this.element.id) this.flowConditionForm = { type: "default" };
26
- else if (!this.element.businessObject.conditionExpression) this.flowConditionForm = { type: "normal" };
27
- else {
28
- let e = this.element.businessObject.conditionExpression;
29
- if (this.flowConditionForm = {
30
- ...e,
31
- type: "condition"
32
- }, this.flowConditionForm.resource) {
33
- this.flowConditionForm.conditionType = "script", this.flowConditionForm.scriptType = "externalScript";
34
- return;
35
- }
36
- if (e.language) {
37
- this.flowConditionForm.conditionType = "script", this.flowConditionForm.scriptType = "inlineScript";
38
- return;
39
- }
40
- this.flowConditionForm.conditionType = "expression";
41
- }
42
- },
43
- updateFlowType(e) {
44
- if (e === "condition") {
45
- this.flowConditionRef = this.bpmnInstances.moddle.create("bpmn:FormalExpression"), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: this.flowConditionRef });
46
- return;
47
- }
48
- if (e === "default") {
49
- this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: null }), this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, { default: this.element });
50
- return;
51
- }
52
- this.bpmnElementSourceRef.default && this.bpmnElementSourceRef.default.id === this.element.id && this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, { default: null }), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: null });
53
- },
54
- updateFlowCondition() {
55
- let { conditionType: e, scriptType: t, body: n, resource: r, language: i } = this.flowConditionForm, a;
56
- e === "expression" ? a = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: n }) : t === "inlineScript" ? (a = this.bpmnInstances.moddle.create("bpmn:FormalExpression", {
57
- body: n,
58
- language: i
59
- }), this.flowConditionForm.resource = "") : (this.flowConditionForm.body = "", a = this.bpmnInstances.moddle.create("bpmn:FormalExpression", {
60
- resource: r,
61
- language: i
62
- })), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: a });
63
- }
64
- }
65
- }, d = { class: "panel-tab__content" };
66
- function f(e, u, f, p, m, h) {
67
- let g = s("ElOption"), _ = s("ElSelect"), v = s("ElFormItem"), y = s("ElInput"), b = s("ElForm");
68
- return o(), i("div", d, [a(b, {
69
- model: m.flowConditionForm,
70
- "label-width": "90px",
71
- onSubmit: u[7] || (u[7] = l(() => {}, ["prevent"]))
72
- }, {
73
- default: c(() => [
74
- a(v, { label: "流转类型" }, {
75
- default: c(() => [a(_, {
76
- modelValue: m.flowConditionForm.type,
77
- "onUpdate:modelValue": u[0] || (u[0] = (e) => m.flowConditionForm.type = e),
78
- onChange: h.updateFlowType
79
- }, {
80
- default: c(() => [
81
- a(g, {
82
- label: "普通流转路径",
83
- value: "normal"
84
- }),
85
- a(g, {
86
- label: "默认流转路径",
87
- value: "default"
88
- }),
89
- a(g, {
90
- label: "条件流转路径",
91
- value: "condition"
92
- })
93
- ]),
94
- _: 1
95
- }, 8, ["modelValue", "onChange"])]),
96
- _: 1
97
- }),
98
- m.flowConditionForm.type === "condition" ? (o(), n(v, {
99
- key: "condition",
100
- label: "条件格式"
101
- }, {
102
- default: c(() => [a(_, {
103
- modelValue: m.flowConditionForm.conditionType,
104
- "onUpdate:modelValue": u[1] || (u[1] = (e) => m.flowConditionForm.conditionType = e)
105
- }, {
106
- default: c(() => [a(g, {
107
- label: "表达式",
108
- value: "expression"
109
- }), a(g, {
110
- label: "脚本",
111
- value: "script"
112
- })]),
113
- _: 1
114
- }, 8, ["modelValue"])]),
115
- _: 1
116
- })) : r("v-if", !0),
117
- m.flowConditionForm.conditionType && m.flowConditionForm.conditionType === "expression" ? (o(), n(v, {
118
- key: "express",
119
- label: "表达式"
120
- }, {
121
- default: c(() => [a(y, {
122
- modelValue: m.flowConditionForm.body,
123
- "onUpdate:modelValue": u[2] || (u[2] = (e) => m.flowConditionForm.body = e),
124
- clearable: "",
125
- onChange: h.updateFlowCondition
126
- }, null, 8, ["modelValue", "onChange"])]),
127
- _: 1
128
- })) : r("v-if", !0),
129
- m.flowConditionForm.conditionType && m.flowConditionForm.conditionType === "script" ? (o(), i(t, { key: 2 }, [
130
- a(v, {
131
- key: "language",
132
- label: "脚本语言"
133
- }, {
134
- default: c(() => [a(y, {
135
- modelValue: m.flowConditionForm.language,
136
- "onUpdate:modelValue": u[3] || (u[3] = (e) => m.flowConditionForm.language = e),
137
- clearable: "",
138
- onChange: h.updateFlowCondition
139
- }, null, 8, ["modelValue", "onChange"])]),
140
- _: 1
141
- }),
142
- a(v, {
143
- key: "scriptType",
144
- label: "脚本类型"
145
- }, {
146
- default: c(() => [a(_, {
147
- modelValue: m.flowConditionForm.scriptType,
148
- "onUpdate:modelValue": u[4] || (u[4] = (e) => m.flowConditionForm.scriptType = e)
149
- }, {
150
- default: c(() => [a(g, {
151
- label: "内联脚本",
152
- value: "inlineScript"
153
- }), a(g, {
154
- label: "外部脚本",
155
- value: "externalScript"
156
- })]),
157
- _: 1
158
- }, 8, ["modelValue"])]),
159
- _: 1
160
- }),
161
- m.flowConditionForm.scriptType === "inlineScript" ? (o(), n(v, {
162
- key: "body",
163
- label: "脚本"
164
- }, {
165
- default: c(() => [a(y, {
166
- modelValue: m.flowConditionForm.body,
167
- "onUpdate:modelValue": u[5] || (u[5] = (e) => m.flowConditionForm.body = e),
168
- type: "textarea",
169
- clearable: "",
170
- onChange: h.updateFlowCondition
171
- }, null, 8, ["modelValue", "onChange"])]),
172
- _: 1
173
- })) : r("v-if", !0),
174
- m.flowConditionForm.scriptType === "externalScript" ? (o(), n(v, {
175
- key: "resource",
176
- label: "资源地址"
177
- }, {
178
- default: c(() => [a(y, {
179
- modelValue: m.flowConditionForm.resource,
180
- "onUpdate:modelValue": u[6] || (u[6] = (e) => m.flowConditionForm.resource = e),
181
- clearable: "",
182
- onChange: h.updateFlowCondition
183
- }, null, 8, ["modelValue", "onChange"])]),
184
- _: 1
185
- })) : r("v-if", !0)
186
- ], 64)) : r("v-if", !0)
187
- ]),
188
- _: 1
189
- }, 8, ["model"])]);
190
- }
191
- var p = /* @__PURE__ */ e(u, [["render", f]]);
192
- //#endregion
193
- export { p as default };