@web-utils/component 4.0.15 → 4.0.16

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 (169) hide show
  1. package/address-input/index.mjs +13 -15
  2. package/card/index.mjs +18 -20
  3. package/carousel/index.mjs +10 -12
  4. package/chat/index.mjs +45 -56
  5. package/chunk-file-uploader/index.mjs +36 -378
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
  8. package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
  9. package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
  10. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
  11. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
  12. package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
  13. package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
  14. package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
  15. package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
  16. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
  17. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
  18. package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
  19. package/chunks/core.0Exl13Mz.mjs +54 -0
  20. package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
  21. package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
  22. package/chunks/dictionary.DGt59Ir7.mjs +68 -0
  23. package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
  25. package/chunks/form-item.LWjePsPa.mjs +233 -0
  26. package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
  27. package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
  28. package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
  29. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  30. package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
  31. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  32. package/chunks/utils.DRcxC1Fb.mjs +60 -0
  33. package/color-picker/index.mjs +22 -101
  34. package/confirm-button/index.mjs +1 -1
  35. package/confirmable/index.mjs +1 -1
  36. package/data-box/index.mjs +12 -15
  37. package/data-card/index.mjs +10 -12
  38. package/data-card-text/index.mjs +10 -12
  39. package/data-display/index.mjs +15 -17
  40. package/data-icons/index.mjs +13 -16
  41. package/data-imgtext/index.mjs +15 -18
  42. package/data-operatext/index.mjs +14 -16
  43. package/data-panel/index.mjs +13 -16
  44. package/data-pay/index.mjs +16 -20
  45. package/data-price/index.mjs +14 -16
  46. package/data-progress/index.mjs +13 -17
  47. package/data-rotate/index.mjs +12 -15
  48. package/data-table-picker/index.mjs +15 -18
  49. package/data-tabs/index.mjs +12 -15
  50. package/dialog-form/index.mjs +16 -18
  51. package/dynamic-table/index.mjs +25 -30
  52. package/editable-progress/index.mjs +9 -11
  53. package/editable-tree/index.mjs +52 -56
  54. package/egd-collapse-item/index.mjs +9 -9
  55. package/element-dialog/index.mjs +22 -23
  56. package/element-listeners/style.css +1 -0
  57. package/element-multi-instance/style.css +1 -0
  58. package/flex-column/index.mjs +1 -1
  59. package/flex-item/index.mjs +1 -1
  60. package/flex-row/index.mjs +1 -1
  61. package/flow/index.mjs +10 -11
  62. package/flow-designer/index.mjs +699 -1973
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +9 -9
  66. package/form-block/index.mjs +32 -34
  67. package/form-cascader/index.mjs +23 -24
  68. package/form-checkbox/index.mjs +16 -17
  69. package/form-checkbox-group/index.mjs +20 -23
  70. package/form-date-picker/index.mjs +18 -20
  71. package/form-holder/index.mjs +13 -14
  72. package/form-input/index.mjs +14 -15
  73. package/form-input-cron-expression/index.mjs +19 -22
  74. package/form-input-email/index.mjs +15 -16
  75. package/form-input-id-card/index.mjs +12 -13
  76. package/form-input-number/index.mjs +16 -17
  77. package/form-input-phone-number/index.mjs +21 -22
  78. package/form-input-tag/index.mjs +14 -15
  79. package/form-input-time/index.mjs +14 -15
  80. package/form-item/index.mjs +140 -3
  81. package/form-item-group/index.mjs +28 -31
  82. package/form-radio-group/index.mjs +27 -28
  83. package/form-select/index.mjs +21 -23
  84. package/form-switch/index.mjs +16 -17
  85. package/form-table/index.mjs +16 -17
  86. package/form-table-plus/index.mjs +21 -22
  87. package/form-textarea/index.mjs +15 -16
  88. package/form-tree-select/index.mjs +14 -15
  89. package/form-tree-select-multiple/index.mjs +14 -15
  90. package/form-view/index.mjs +35 -39
  91. package/fy-array/index.mjs +33 -37
  92. package/fy-cascader/index.mjs +16 -17
  93. package/fy-checkbox/index.mjs +11 -13
  94. package/fy-code/index.mjs +10 -10
  95. package/fy-curd/index.mjs +1128 -1152
  96. package/fy-date/index.mjs +10 -11
  97. package/fy-draggable/index.mjs +9 -10
  98. package/fy-dynamic/index.mjs +22 -25
  99. package/fy-empty/index.mjs +1 -1
  100. package/fy-form/index.mjs +638 -15
  101. package/fy-form-design/index.mjs +1307 -1345
  102. package/fy-from/crud/zh.d.ts +6 -6
  103. package/fy-input/index.mjs +12 -14
  104. package/fy-input-color/index.mjs +13 -15
  105. package/fy-input-icon/index.mjs +20 -23
  106. package/fy-input-map/index.mjs +28 -31
  107. package/fy-input-number/index.mjs +9 -10
  108. package/fy-input-table/index.mjs +18 -22
  109. package/fy-input-tree/index.mjs +33 -37
  110. package/fy-progress/index.mjs +9 -10
  111. package/fy-radio/index.mjs +15 -16
  112. package/fy-rate/index.mjs +10 -11
  113. package/fy-select/index.mjs +25 -29
  114. package/fy-slider/index.mjs +11 -12
  115. package/fy-switch/index.mjs +9 -10
  116. package/fy-tabs/index.mjs +15 -17
  117. package/fy-time/index.mjs +1 -1
  118. package/fy-title/index.mjs +1 -1
  119. package/fy-tree/index.mjs +18 -24
  120. package/fy-u-editor/index.mjs +1 -1
  121. package/fy-upload/index.mjs +74 -76
  122. package/guide-steps/index.mjs +11 -13
  123. package/iframe-window/index.mjs +9 -10
  124. package/image-cropper/index.mjs +28 -30
  125. package/image-preview/index.mjs +12 -14
  126. package/index.mjs +72 -72
  127. package/input-number/index.mjs +13 -14
  128. package/input-number-range/index.mjs +11 -12
  129. package/license/index.mjs +1 -1
  130. package/login/index.mjs +21 -26
  131. package/nav-bar/index.mjs +9 -10
  132. package/notice/index.mjs +9 -10
  133. package/package.json +1 -1
  134. package/page-index/index.mjs +12 -13
  135. package/page-index-top/index.mjs +23 -28
  136. package/page-skeleton/index.mjs +14 -14
  137. package/page-skeleton-new/index.mjs +8 -9
  138. package/pageable-table/index.mjs +172 -182
  139. package/pageable-view/index.mjs +15 -16
  140. package/picker-table-view/index.mjs +49 -58
  141. package/present-view/index.mjs +35 -39
  142. package/record-video/index.mjs +1 -1
  143. package/resize-observer/index.mjs +1 -1
  144. package/search/index.mjs +20 -22
  145. package/search-popover/index.mjs +1 -1
  146. package/sign/index.mjs +1 -1
  147. package/skeleton-panel/index.mjs +9 -10
  148. package/split-pane/index.mjs +36 -37
  149. package/static-pageable-table/index.mjs +11 -13
  150. package/sub-table/index.mjs +36 -49
  151. package/sub-table-plus/index.mjs +229 -18
  152. package/swiper/index.mjs +11 -12
  153. package/table-column/index.mjs +223 -3
  154. package/table-view/index.mjs +52 -60
  155. package/tabs-view/index.mjs +17 -19
  156. package/tag-render/index.mjs +16 -18
  157. package/text-ellipsis/index.mjs +9 -10
  158. package/toolbar/index.mjs +13 -14
  159. package/toolbar-button/index.mjs +13 -14
  160. package/verify/index.mjs +1 -1
  161. package/vue-cron/index.mjs +259 -267
  162. package/watermark/index.mjs +1 -1
  163. package/web-types.json +1 -1
  164. package/x-input-tag/index.mjs +21 -24
  165. package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
  166. package/chunks/FyForm.DriwCJ7b.mjs +0 -765
  167. package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
  168. package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
  169. package/chunks/TableColumn.BzivvXMF.mjs +0 -337
@@ -0,0 +1,181 @@
1
+ import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const a = {
3
+ name: "ElementMultiInstance",
4
+ inject: {
5
+ prefix: "prefix"
6
+ },
7
+ props: {
8
+ id: String,
9
+ element: Object,
10
+ bpmnInstances: Object
11
+ },
12
+ data() {
13
+ return {
14
+ loopCharacteristics: "",
15
+ // 默认配置,用来覆盖原始不存在的选项,避免报错
16
+ defaultLoopInstanceForm: {
17
+ completionCondition: "",
18
+ loopCardinality: "",
19
+ extensionElements: [],
20
+ asyncAfter: !1,
21
+ asyncBefore: !1,
22
+ exclusive: !1
23
+ },
24
+ loopInstanceForm: {}
25
+ };
26
+ },
27
+ watch: {
28
+ id: {
29
+ immediate: !0,
30
+ handler() {
31
+ const { businessObject: o } = this.element;
32
+ this.getElementLoop(o);
33
+ }
34
+ }
35
+ },
36
+ beforeDestroy() {
37
+ this.multiLoopInstance = null;
38
+ },
39
+ methods: {
40
+ getElementLoop(o) {
41
+ var t, e, n, s;
42
+ if (!o.loopCharacteristics) {
43
+ this.loopCharacteristics = "Null", this.loopInstanceForm = {};
44
+ return;
45
+ }
46
+ if (o.loopCharacteristics.$type === "bpmn:StandardLoopCharacteristics") {
47
+ this.loopCharacteristics = "StandardLoop", this.loopInstanceForm = {};
48
+ return;
49
+ }
50
+ o.loopCharacteristics.isSequential ? this.loopCharacteristics = "SequentialMultiInstance" : this.loopCharacteristics = "ParallelMultiInstance", this.loopInstanceForm = {
51
+ ...this.defaultLoopInstanceForm,
52
+ ...o.loopCharacteristics,
53
+ completionCondition: ((e = (t = o.loopCharacteristics) == null ? void 0 : t.completionCondition) == null ? void 0 : e.body) ?? "",
54
+ loopCardinality: ((s = (n = o.loopCharacteristics) == null ? void 0 : n.loopCardinality) == null ? void 0 : s.body) ?? ""
55
+ }, this.multiLoopInstance = this.element.businessObject.loopCharacteristics, o.loopCharacteristics.extensionElements && o.loopCharacteristics.extensionElements.values && o.loopCharacteristics.extensionElements.values.length && this.$set(this.loopInstanceForm, "timeCycle", o.loopCharacteristics.extensionElements.values[0].body);
56
+ },
57
+ changeLoopCharacteristicsType(o) {
58
+ if (o === "Null") {
59
+ this.bpmnInstances.modeling.updateProperties(this.element, { loopCharacteristics: null });
60
+ return;
61
+ }
62
+ if (o === "StandardLoop") {
63
+ const t = this.bpmnInstances.moddle.create("bpmn:StandardLoopCharacteristics");
64
+ this.bpmnInstances.modeling.updateProperties(this.element, {
65
+ loopCharacteristics: t
66
+ }), this.multiLoopInstance = null;
67
+ return;
68
+ }
69
+ o === "SequentialMultiInstance" ? this.multiLoopInstance = this.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics", {
70
+ isSequential: !0
71
+ }) : this.multiLoopInstance = this.bpmnInstances.moddle.create("bpmn:MultiInstanceLoopCharacteristics"), this.bpmnInstances.modeling.updateProperties(this.element, {
72
+ loopCharacteristics: this.multiLoopInstance
73
+ });
74
+ },
75
+ // 循环基数
76
+ updateLoopCardinality(o) {
77
+ let t = null;
78
+ o && o.length && (t = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o })), this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
79
+ loopCardinality: t
80
+ });
81
+ },
82
+ // 完成条件
83
+ updateLoopCondition(o) {
84
+ let t = null;
85
+ o && o.length && (t = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o })), this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
86
+ completionCondition: t
87
+ });
88
+ },
89
+ // 重试周期
90
+ updateLoopTimeCycle(o) {
91
+ const t = this.bpmnInstances.moddle.create("bpmn:ExtensionElements", {
92
+ values: [
93
+ this.bpmnInstances.moddle.create(`${this.prefix}:FailedJobRetryTimeCycle`, {
94
+ body: o
95
+ })
96
+ ]
97
+ });
98
+ this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
99
+ extensionElements: t
100
+ });
101
+ },
102
+ // 直接更新的基础信息
103
+ updateLoopBase() {
104
+ this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, {
105
+ collection: this.loopInstanceForm.collection || null,
106
+ elementVariable: this.loopInstanceForm.elementVariable || null
107
+ });
108
+ },
109
+ // 各异步状态
110
+ updateLoopAsync(o) {
111
+ const { asyncBefore: t, asyncAfter: e } = this.loopInstanceForm;
112
+ let n = /* @__PURE__ */ Object.create(null);
113
+ !t && !e ? (this.$set(this.loopInstanceForm, "exclusive", !1), n = { asyncBefore: !1, asyncAfter: !1, exclusive: !1, extensionElements: null }) : n[o] = this.loopInstanceForm[o], this.bpmnInstances.modeling.updateModdleProperties(this.element, this.multiLoopInstance, n);
114
+ }
115
+ }
116
+ };
117
+ var i = function() {
118
+ var t = this, e = t._self._c;
119
+ return e("div", { staticClass: "panel-tab__content element-multi-instance" }, [e("ElForm", { attrs: { size: "mini", "label-width": "100px" }, nativeOn: { submit: function(n) {
120
+ n.preventDefault();
121
+ } } }, [e("ElFormItem", { attrs: { label: "回路特性" }, scopedSlots: t._u([{ key: "label", fn: function() {
122
+ return [t._v(" 回路特性 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
123
+ return [e("ul", [e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("并行")]), t._v(" 一次性创建所有任务实例")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("串行")]), t._v(" 完成一个任务实例再创建一个任务实例,直到环节完成")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("循环事件")]), t._v(" 未知")])])];
124
+ }, proxy: !0 }]) }, [e("i", { staticClass: "el-icon-info" })])];
125
+ }, proxy: !0 }]) }, [e("ElSelect", { on: { change: t.changeLoopCharacteristicsType }, model: { value: t.loopCharacteristics, callback: function(n) {
126
+ t.loopCharacteristics = n;
127
+ }, expression: "loopCharacteristics" } }, [e("ElOption", { attrs: { label: "并行", value: "ParallelMultiInstance" } }), e("ElOption", { attrs: { label: "串行", value: "SequentialMultiInstance" } }), e("ElOption", { attrs: { label: "循环事件", value: "StandardLoop" } }), e("ElOption", { attrs: { label: "无", value: "Null" } })], 1)], 1), t.loopCharacteristics === "ParallelMultiInstance" || t.loopCharacteristics === "SequentialMultiInstance" ? [e("ElFormItem", { key: "loopCardinality", attrs: { label: "循环基数" }, scopedSlots: t._u([{ key: "label", fn: function() {
128
+ return [t._v(" 循环基数 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
129
+ return [e("div", [t._v("与任务实例数相对,可不填")])];
130
+ }, proxy: !0 }], null, !1, 3306633709) }, [e("i", { staticClass: "el-icon-info" })])];
131
+ }, proxy: !0 }], null, !1, 3757615878) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopCardinality }, model: { value: t.loopInstanceForm.loopCardinality, callback: function(n) {
132
+ t.$set(t.loopInstanceForm, "loopCardinality", n);
133
+ }, expression: "loopInstanceForm.loopCardinality" } })], 1), e("ElFormItem", { key: "collection", attrs: { label: "集合名称", required: "" }, scopedSlots: t._u([{ key: "label", fn: function() {
134
+ return [t._v(" 集合变量 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
135
+ return [e("p", [t._v("流程变量名,设置为 "), e("span", { staticClass: "flow-tips-keyword" }, [t._v("${handlers}")]), t._v(" 就行")])];
136
+ }, proxy: !0 }], null, !1, 2769289721) }, [e("i", { staticClass: "el-icon-info" })])];
137
+ }, proxy: !0 }], null, !1, 3139340263) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopBase }, model: { value: t.loopInstanceForm.collection, callback: function(n) {
138
+ t.$set(t.loopInstanceForm, "collection", n);
139
+ }, expression: "loopInstanceForm.collection" } })], 1), e("ElFormItem", { key: "elementVariable", attrs: { label: "元素名称", required: "" }, scopedSlots: t._u([{ key: "label", fn: function() {
140
+ return [t._v(" 元素变量 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
141
+ return [e("p", [t._v(" 流程变量名,设置为 "), e("span", { staticClass: "flow-tips-keyword" }, [t._v("handler")]), t._v(' 就行,注意与"'), e("span", { staticClass: "flow-tips-keyword" }, [t._v("处理人")]), t._v('"中的"'), e("span", { staticClass: "flow-tips-keyword" }, [t._v("分配人员")]), t._v('"值保持一致 ')])];
142
+ }, proxy: !0 }], null, !1, 952223137) }, [e("i", { staticClass: "el-icon-info" })])];
143
+ }, proxy: !0 }], null, !1, 1907746023) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopBase }, model: { value: t.loopInstanceForm.elementVariable, callback: function(n) {
144
+ t.$set(t.loopInstanceForm, "elementVariable", n);
145
+ }, expression: "loopInstanceForm.elementVariable" } })], 1), e("ElFormItem", { key: "completionCondition", attrs: { label: "完成条件" }, scopedSlots: t._u([{ key: "label", fn: function() {
146
+ return [t._v(" 完成条件 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
147
+ return [e("p", { staticClass: "flow-tips-title" }, [t._v("特殊流程变量:")]), e("ul", [e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("nrOfInstances")]), t._v(" 总实例数")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("nrOfCompletedInstances")]), t._v(" 已完成的实例数")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("nrOfActiveInstances")]), t._v(" 未完成实例数")])]), e("p", { staticClass: "flow-tips-title" }, [t._v("示例:")]), e("ul", [e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("${nrOfCompletedInstances/nrOfInstances >= 1}")]), t._v(":所有实例完成结束该环节 ")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("${nrOfCompletedInstances/nrOfInstances >= 0.5}")]), t._v(":50%实例完成结束该环节 ")]), e("li", { staticClass: "flow-tips-list-item" }, [e("span", { staticClass: "flow-tips-keyword" }, [t._v("${nrOfCompletedInstances >= 1}")]), t._v(":有一个实例完成结束该环节")])]), e("p", { staticClass: "flow-tips-title" }, [t._v("不填要等所有实例完成才会结束该环节")])];
148
+ }, proxy: !0 }], null, !1, 2952075778) }, [e("i", { staticClass: "el-icon-info" })])];
149
+ }, proxy: !0 }], null, !1, 2319413861) }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopCondition }, model: { value: t.loopInstanceForm.completionCondition, callback: function(n) {
150
+ t.$set(t.loopInstanceForm, "completionCondition", n);
151
+ }, expression: "loopInstanceForm.completionCondition" } })], 1), e("ElFormItem", { key: "async", attrs: { label: "异步状态" }, scopedSlots: t._u([{ key: "label", fn: function() {
152
+ return [t._v(" 异步状态 "), e("ElTooltip", { attrs: { effect: "light" }, scopedSlots: t._u([{ key: "content", fn: function() {
153
+ return [e("div", [t._v("目前没用到")])];
154
+ }, proxy: !0 }], null, !1, 1935913218) }, [e("i", { staticClass: "el-icon-info" })])];
155
+ }, proxy: !0 }], null, !1, 474663414) }, [e("ElCheckbox", { attrs: { label: "异步前" }, on: { change: function(n) {
156
+ return t.updateLoopAsync("asyncBefore");
157
+ } }, model: { value: t.loopInstanceForm.asyncBefore, callback: function(n) {
158
+ t.$set(t.loopInstanceForm, "asyncBefore", n);
159
+ }, expression: "loopInstanceForm.asyncBefore" } }), e("ElCheckbox", { attrs: { label: "异步后" }, on: { change: function(n) {
160
+ return t.updateLoopAsync("asyncAfter");
161
+ } }, model: { value: t.loopInstanceForm.asyncAfter, callback: function(n) {
162
+ t.$set(t.loopInstanceForm, "asyncAfter", n);
163
+ }, expression: "loopInstanceForm.asyncAfter" } }), t.loopInstanceForm.asyncAfter || t.loopInstanceForm.asyncBefore ? e("ElCheckbox", { attrs: { label: "排除" }, on: { change: function(n) {
164
+ return t.updateLoopAsync("exclusive");
165
+ } }, model: { value: t.loopInstanceForm.exclusive, callback: function(n) {
166
+ t.$set(t.loopInstanceForm, "exclusive", n);
167
+ }, expression: "loopInstanceForm.exclusive" } }) : t._e()], 1), t.loopInstanceForm.asyncAfter || t.loopInstanceForm.asyncBefore ? e("ElFormItem", { key: "timeCycle", attrs: { label: "重试周期", prop: "timeCycle" } }, [e("ElInput", { attrs: { clearable: "" }, on: { change: t.updateLoopTimeCycle }, model: { value: t.loopInstanceForm.timeCycle, callback: function(n) {
168
+ t.$set(t.loopInstanceForm, "timeCycle", n);
169
+ }, expression: "loopInstanceForm.timeCycle" } })], 1) : t._e()] : t._e()], 2)], 1);
170
+ }, c = [], r = /* @__PURE__ */ l(
171
+ a,
172
+ i,
173
+ c,
174
+ !1,
175
+ null,
176
+ null
177
+ );
178
+ const m = r.exports;
179
+ export {
180
+ m as default
181
+ };
@@ -0,0 +1,60 @@
1
+ import { isBlank as i } from "@web-utils/core";
2
+ import { n as o } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const a = {
4
+ name: "ElementOtherConfig",
5
+ props: {
6
+ id: String,
7
+ element: Object,
8
+ bpmnInstances: Object
9
+ },
10
+ data() {
11
+ return {
12
+ documentation: ""
13
+ };
14
+ },
15
+ watch: {
16
+ id: {
17
+ immediate: !0,
18
+ handler() {
19
+ if (i(this.element))
20
+ this.documentation = "";
21
+ else {
22
+ const {
23
+ businessObject: { documentation: e }
24
+ } = this.element;
25
+ this.documentation = (e == null ? void 0 : e[0].text) || "";
26
+ }
27
+ }
28
+ }
29
+ },
30
+ methods: {
31
+ updateDocumentation() {
32
+ const { modeling: e } = this.bpmnInstances, {
33
+ businessObject: { documentation: t }
34
+ } = this.element;
35
+ if (t != null && t.length)
36
+ t[0].set("text", this.documentation), e.updateProperties(this.element, { documentation: t });
37
+ else {
38
+ const { bpmnFactory: n } = this.bpmnInstances, s = n.create("bpmn:Documentation", { text: this.documentation });
39
+ e.updateProperties(this.element, { documentation: [s] });
40
+ }
41
+ }
42
+ }
43
+ };
44
+ var c = function() {
45
+ var t = this, n = t._self._c;
46
+ return n("div", { staticClass: "panel-tab__content" }, [n("div", { staticClass: "element-property input-property" }, [n("div", { staticClass: "element-property__label" }, [t._v("元素文档:")]), n("div", { staticClass: "element-property__value" }, [n("ElInput", { attrs: { type: "textarea", size: "mini", resize: "vertical", autosize: { minRows: 2, maxRows: 4 } }, on: { input: t.updateDocumentation }, model: { value: t.documentation, callback: function(s) {
47
+ t.documentation = s;
48
+ }, expression: "documentation" } })], 1)])]);
49
+ }, m = [], r = /* @__PURE__ */ o(
50
+ a,
51
+ c,
52
+ m,
53
+ !1,
54
+ null,
55
+ null
56
+ );
57
+ const u = r.exports;
58
+ export {
59
+ u as default
60
+ };
@@ -0,0 +1,112 @@
1
+ import { fastClone as n } from "@web-utils/core";
2
+ import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const p = {
4
+ name: "ElementProperties",
5
+ inject: {
6
+ prefix: "prefix",
7
+ width: "width"
8
+ },
9
+ props: {
10
+ id: String,
11
+ element: Object,
12
+ bpmnInstances: Object
13
+ },
14
+ data() {
15
+ return {
16
+ elementPropertyList: [],
17
+ propertyForm: {},
18
+ editingPropertyIndex: -1,
19
+ propertyFormModelVisible: !1
20
+ };
21
+ },
22
+ watch: {
23
+ id: {
24
+ immediate: !0,
25
+ handler(i) {
26
+ i != null && i.length && this.resetAttributesList();
27
+ }
28
+ }
29
+ },
30
+ methods: {
31
+ resetAttributesList() {
32
+ var i, t, e;
33
+ this.otherExtensionList = [], this.bpmnElementProperties = ((e = (t = (i = this.element.businessObject) == null ? void 0 : i.extensionElements) == null ? void 0 : t.values) == null ? void 0 : e.filter((r) => (r.$type !== `${this.prefix}:Properties` && this.otherExtensionList.push(r), r.$type === `${this.prefix}:Properties`))) ?? [], this.bpmnElementPropertyList = this.bpmnElementProperties.reduce((r, s) => r.concat(s.values), []), this.elementPropertyList = n(this.bpmnElementPropertyList ?? []);
34
+ },
35
+ openAttributesForm(i, t) {
36
+ this.editingPropertyIndex = t, this.propertyForm = t === -1 ? {} : n(i), this.propertyFormModelVisible = !0, this.$nextTick(() => {
37
+ this.$refs.attributeFormRef && this.$refs.attributeFormRef.clearValidate();
38
+ });
39
+ },
40
+ removeAttributes(i, t) {
41
+ this.$confirm("确认移除该属性吗?", "提示", {
42
+ confirmButtonText: "确 认",
43
+ cancelButtonText: "取 消"
44
+ }).then(() => {
45
+ this.elementPropertyList.splice(t, 1), this.bpmnElementPropertyList.splice(t, 1);
46
+ const e = this.bpmnInstances.moddle.create(`${this.prefix}:Properties`, {
47
+ values: this.bpmnElementPropertyList
48
+ });
49
+ this.updateElementExtensions(e), this.resetAttributesList();
50
+ }).catch(() => {
51
+ });
52
+ },
53
+ saveAttribute() {
54
+ const { name: i, value: t } = this.propertyForm;
55
+ if (this.editingPropertyIndex !== -1)
56
+ this.bpmnInstances.modeling.updateModdleProperties(this.element, this.bpmnElementPropertyList[this.editingPropertyIndex], {
57
+ name: i,
58
+ value: t
59
+ });
60
+ else {
61
+ const e = this.bpmnInstances.moddle.create(`${this.prefix}:Property`, { name: i, value: t }), r = this.bpmnInstances.moddle.create(`${this.prefix}:Properties`, {
62
+ values: this.bpmnElementPropertyList.concat([e])
63
+ });
64
+ this.updateElementExtensions(r);
65
+ }
66
+ this.propertyFormModelVisible = !1, this.resetAttributesList();
67
+ },
68
+ updateElementExtensions(i) {
69
+ const t = this.bpmnInstances.moddle.create("bpmn:ExtensionElements", {
70
+ values: this.otherExtensionList.concat([i])
71
+ });
72
+ this.bpmnInstances.modeling.updateProperties(this.element, {
73
+ extensionElements: t
74
+ });
75
+ }
76
+ }
77
+ };
78
+ var a = function() {
79
+ var t = this, e = t._self._c;
80
+ return e("div", { staticClass: "panel-tab__content" }, [e("ElTable", { attrs: { data: t.elementPropertyList, size: "mini", "max-height": "240", border: "", fit: "" } }, [e("ElTableColumn", { attrs: { label: "序号", width: "50px", type: "index" } }), e("ElTableColumn", { attrs: { label: "属性名", prop: "name", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "属性值", prop: "value", "min-width": "100px", "show-overflow-tooltip": "" } }), e("ElTableColumn", { attrs: { label: "操作", width: "90px" }, scopedSlots: t._u([{ key: "default", fn: function({ row: r, $index: s }) {
81
+ return [e("ElButton", { attrs: { size: "mini", type: "text" }, on: { click: function(o) {
82
+ return t.openAttributesForm(r, s);
83
+ } } }, [t._v("编辑")]), e("ElDivider", { attrs: { direction: "vertical" } }), e("ElButton", { staticStyle: { color: "#ff4d4f" }, attrs: { size: "mini", type: "text" }, on: { click: function(o) {
84
+ return t.removeAttributes(r, s);
85
+ } } }, [t._v("移除")])];
86
+ } }]) })], 1), e("div", { staticClass: "element-drawer__button" }, [e("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: function(r) {
87
+ return t.openAttributesForm(null, -1);
88
+ } } }, [t._v("添加属性")])], 1), e("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: t.propertyFormModelVisible, title: "属性配置", width: "600px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(r) {
89
+ t.propertyFormModelVisible = r;
90
+ } }, scopedSlots: t._u([{ key: "footer", fn: function() {
91
+ return [e("ElButton", { attrs: { size: "mini" }, on: { click: function(r) {
92
+ t.propertyFormModelVisible = !1;
93
+ } } }, [t._v("取 消")]), e("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: t.saveAttribute } }, [t._v("确 定")])];
94
+ }, proxy: !0 }]) }, [e("ElForm", { ref: "attributeFormRef", attrs: { model: t.propertyForm, "label-width": "80px", size: "mini" }, nativeOn: { submit: function(r) {
95
+ r.preventDefault();
96
+ } } }, [e("ElFormItem", { attrs: { label: "属性名:", prop: "name" } }, [e("ElInput", { attrs: { clearable: "" }, model: { value: t.propertyForm.name, callback: function(r) {
97
+ t.$set(t.propertyForm, "name", r);
98
+ }, expression: "propertyForm.name" } })], 1), e("ElFormItem", { attrs: { label: "属性值:", prop: "value" } }, [e("ElInput", { attrs: { clearable: "" }, model: { value: t.propertyForm.value, callback: function(r) {
99
+ t.$set(t.propertyForm, "value", r);
100
+ }, expression: "propertyForm.value" } })], 1)], 1)], 1)], 1);
101
+ }, m = [], c = /* @__PURE__ */ l(
102
+ p,
103
+ a,
104
+ m,
105
+ !1,
106
+ null,
107
+ null
108
+ );
109
+ const b = c.exports;
110
+ export {
111
+ b as default
112
+ };
@@ -1,13 +1,5 @@
1
- import c from "element-ui/lib/checkbox";
2
- import n from "element-ui/lib/form-item";
3
- import d from "element-ui/lib/form";
4
- import r from "element-ui/lib/input";
5
- import i from "element-ui/lib/option";
6
- import o from "element-ui/lib/select";
7
- import { n as l } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
- import u from "element-ui/lib/button";
9
- import f from "../element-dialog/index.mjs";
10
- const k = {
1
+ import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const o = {
11
3
  name: "UserTask",
12
4
  props: {
13
5
  id: String,
@@ -50,48 +42,48 @@ const k = {
50
42
  }
51
43
  }
52
44
  };
53
- var h = function() {
45
+ var l = function() {
54
46
  var e = this, t = e._self._c;
55
- return t("div", { staticStyle: { "margin-top": "16px" } }, [t(n, { attrs: { label: "处理用户" } }, [t(o, { on: { change: function(s) {
47
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "处理用户" } }, [t("ElSelect", { on: { change: function(s) {
56
48
  return e.updateElementTask("assignee");
57
49
  } }, model: { value: e.userTaskForm.assignee, callback: function(s) {
58
50
  e.$set(e.userTaskForm, "assignee", s);
59
51
  }, expression: "userTaskForm.assignee" } }, e._l(e.mockData, function(s) {
60
- return t(i, { key: `ass-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
61
- }), 1)], 1), t(n, { attrs: { label: "候选用户" } }, [t(o, { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
52
+ return t("ElOption", { key: `ass-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
53
+ }), 1)], 1), t("ElFormItem", { attrs: { label: "候选用户" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
62
54
  return e.updateElementTask("candidateUsers");
63
55
  } }, model: { value: e.userTaskForm.candidateUsers, callback: function(s) {
64
56
  e.$set(e.userTaskForm, "candidateUsers", s);
65
57
  }, expression: "userTaskForm.candidateUsers" } }, e._l(e.mockData, function(s) {
66
- return t(i, { key: `user-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
67
- }), 1)], 1), t(n, { attrs: { label: "候选分组" } }, [t(o, { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
58
+ return t("ElOption", { key: `user-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
59
+ }), 1)], 1), t("ElFormItem", { attrs: { label: "候选分组" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
68
60
  return e.updateElementTask("candidateGroups");
69
61
  } }, model: { value: e.userTaskForm.candidateGroups, callback: function(s) {
70
62
  e.$set(e.userTaskForm, "candidateGroups", s);
71
63
  }, expression: "userTaskForm.candidateGroups" } }, e._l(e.mockData, function(s) {
72
- return t(i, { key: `ass-${s}`, attrs: { label: `分组${s}`, value: `group${s}` } });
73
- }), 1)], 1), t(n, { attrs: { label: "到期时间" } }, [t(r, { attrs: { clearable: "" }, on: { change: function(s) {
64
+ return t("ElOption", { key: `ass-${s}`, attrs: { label: `分组${s}`, value: `group${s}` } });
65
+ }), 1)], 1), t("ElFormItem", { attrs: { label: "到期时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
74
66
  return e.updateElementTask("dueDate");
75
67
  } }, model: { value: e.userTaskForm.dueDate, callback: function(s) {
76
68
  e.$set(e.userTaskForm, "dueDate", s);
77
- }, expression: "userTaskForm.dueDate" } })], 1), t(n, { attrs: { label: "跟踪时间" } }, [t(r, { attrs: { clearable: "" }, on: { change: function(s) {
69
+ }, expression: "userTaskForm.dueDate" } })], 1), t("ElFormItem", { attrs: { label: "跟踪时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
78
70
  return e.updateElementTask("followUpDate");
79
71
  } }, model: { value: e.userTaskForm.followUpDate, callback: function(s) {
80
72
  e.$set(e.userTaskForm, "followUpDate", s);
81
- }, expression: "userTaskForm.followUpDate" } })], 1), t(n, { attrs: { label: "优先级" } }, [t(r, { attrs: { clearable: "" }, on: { change: function(s) {
73
+ }, expression: "userTaskForm.followUpDate" } })], 1), t("ElFormItem", { attrs: { label: "优先级" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
82
74
  return e.updateElementTask("priority");
83
75
  } }, model: { value: e.userTaskForm.priority, callback: function(s) {
84
76
  e.$set(e.userTaskForm, "priority", s);
85
77
  }, expression: "userTaskForm.priority" } })], 1)], 1);
86
- }, g = [], b = /* @__PURE__ */ l(
87
- k,
88
- h,
89
- g,
78
+ }, c = [], m = /* @__PURE__ */ n(
79
+ o,
80
+ l,
81
+ c,
90
82
  !1,
91
83
  null,
92
84
  null
93
85
  );
94
- const T = b.exports, F = {
86
+ const p = m.exports, u = {
95
87
  name: "ScriptTask",
96
88
  props: {
97
89
  id: String,
@@ -132,44 +124,44 @@ const T = b.exports, F = {
132
124
  }
133
125
  }
134
126
  };
135
- var _ = function() {
127
+ var d = function() {
136
128
  var e = this, t = e._self._c;
137
- return t("div", { staticStyle: { "margin-top": "16px" } }, [t(n, { attrs: { label: "脚本格式" } }, [t(r, { attrs: { clearable: "" }, on: { input: function(s) {
129
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "脚本格式" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
138
130
  return e.updateElementTask();
139
131
  }, change: function(s) {
140
132
  return e.updateElementTask();
141
133
  } }, model: { value: e.scriptTaskForm.scriptFormat, callback: function(s) {
142
134
  e.$set(e.scriptTaskForm, "scriptFormat", s);
143
- }, expression: "scriptTaskForm.scriptFormat" } })], 1), t(n, { attrs: { label: "脚本类型" } }, [t(o, { model: { value: e.scriptTaskForm.scriptType, callback: function(s) {
135
+ }, expression: "scriptTaskForm.scriptFormat" } })], 1), t("ElFormItem", { attrs: { label: "脚本类型" } }, [t("ElSelect", { model: { value: e.scriptTaskForm.scriptType, callback: function(s) {
144
136
  e.$set(e.scriptTaskForm, "scriptType", s);
145
- }, expression: "scriptTaskForm.scriptType" } }, [t(i, { attrs: { label: "内联脚本", value: "inline" } }), t(i, { attrs: { label: "外部资源", value: "external" } })], 1)], 1), t(n, { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "inline", expression: "scriptTaskForm.scriptType === 'inline'" }], attrs: { label: "脚本" } }, [t(r, { attrs: { type: "textarea", resize: "vertical", autosize: { minRows: 2, maxRows: 4 }, clearable: "" }, on: { input: function(s) {
137
+ }, expression: "scriptTaskForm.scriptType" } }, [t("ElOption", { attrs: { label: "内联脚本", value: "inline" } }), t("ElOption", { attrs: { label: "外部资源", value: "external" } })], 1)], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "inline", expression: "scriptTaskForm.scriptType === 'inline'" }], attrs: { label: "脚本" } }, [t("ElInput", { attrs: { type: "textarea", resize: "vertical", autosize: { minRows: 2, maxRows: 4 }, clearable: "" }, on: { input: function(s) {
146
138
  return e.updateElementTask();
147
139
  }, change: function(s) {
148
140
  return e.updateElementTask();
149
141
  } }, model: { value: e.scriptTaskForm.script, callback: function(s) {
150
142
  e.$set(e.scriptTaskForm, "script", s);
151
- }, expression: "scriptTaskForm.script" } })], 1), t(n, { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "external", expression: "scriptTaskForm.scriptType === 'external'" }], attrs: { label: "资源地址" } }, [t(r, { attrs: { clearable: "" }, on: { input: function(s) {
143
+ }, expression: "scriptTaskForm.script" } })], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "external", expression: "scriptTaskForm.scriptType === 'external'" }], attrs: { label: "资源地址" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
152
144
  return e.updateElementTask();
153
145
  }, change: function(s) {
154
146
  return e.updateElementTask();
155
147
  } }, model: { value: e.scriptTaskForm.resource, callback: function(s) {
156
148
  e.$set(e.scriptTaskForm, "resource", s);
157
- }, expression: "scriptTaskForm.resource" } })], 1), t(n, { attrs: { label: "结果变量" } }, [t(r, { attrs: { clearable: "" }, on: { input: function(s) {
149
+ }, expression: "scriptTaskForm.resource" } })], 1), t("ElFormItem", { attrs: { label: "结果变量" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
158
150
  return e.updateElementTask();
159
151
  }, change: function(s) {
160
152
  return e.updateElementTask();
161
153
  } }, model: { value: e.scriptTaskForm.resultVariable, callback: function(s) {
162
154
  e.$set(e.scriptTaskForm, "resultVariable", s);
163
155
  }, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
164
- }, v = [], $ = /* @__PURE__ */ l(
165
- F,
166
- _,
167
- v,
156
+ }, f = [], k = /* @__PURE__ */ n(
157
+ u,
158
+ d,
159
+ f,
168
160
  !1,
169
161
  null,
170
162
  null
171
163
  );
172
- const y = $.exports, M = {
164
+ const h = k.exports, b = {
173
165
  name: "ReceiveTask",
174
166
  props: {
175
167
  id: String,
@@ -222,34 +214,34 @@ const y = $.exports, M = {
222
214
  }
223
215
  }
224
216
  };
225
- var x = function() {
217
+ var F = function() {
226
218
  var e = this, t = e._self._c;
227
- return t("div", { staticStyle: { "margin-top": "16px" } }, [t(n, { attrs: { label: "消息实例" } }, [t("div", { staticStyle: { display: "flex", "flex-wrap": "nowrap", "align-items": "center", "justify-content": "space-between" } }, [t(o, { on: { change: e.updateTaskMessage }, model: { value: e.bindMessageId, callback: function(s) {
219
+ return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "消息实例" } }, [t("div", { staticStyle: { display: "flex", "flex-wrap": "nowrap", "align-items": "center", "justify-content": "space-between" } }, [t("ElSelect", { on: { change: e.updateTaskMessage }, model: { value: e.bindMessageId, callback: function(s) {
228
220
  e.bindMessageId = s;
229
221
  }, expression: "bindMessageId" } }, e._l(Object.keys(e.messageMap), function(s) {
230
- return t(i, { key: s, attrs: { value: s, label: e.messageMap[s] } });
231
- }), 1), t(u, { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t(f, { staticClass: "flow-dialog", attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(s) {
222
+ return t("ElOption", { key: s, attrs: { value: s, label: e.messageMap[s] } });
223
+ }), 1), t("ElButton", { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(s) {
232
224
  e.messageModelVisible = s;
233
225
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
234
- return [t(u, { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
235
- }, proxy: !0 }]) }, [t(d, { attrs: { model: e.newMessageForm, size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
226
+ return [t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
227
+ }, proxy: !0 }]) }, [t("ElForm", { attrs: { model: e.newMessageForm, size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
236
228
  s.preventDefault();
237
- } } }, [t(n, { attrs: { label: "消息ID" } }, [t(r, { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(s) {
229
+ } } }, [t("ElFormItem", { attrs: { label: "消息ID" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(s) {
238
230
  e.$set(e.newMessageForm, "id", s);
239
- }, expression: "newMessageForm.id" } })], 1), t(n, { attrs: { label: "消息名称" } }, [t(r, { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(s) {
231
+ }, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(s) {
240
232
  e.$set(e.newMessageForm, "name", s);
241
233
  }, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
242
- }, w = [], C = /* @__PURE__ */ l(
243
- M,
244
- x,
245
- w,
234
+ }, g = [], T = /* @__PURE__ */ n(
235
+ b,
236
+ F,
237
+ g,
246
238
  !1,
247
239
  null,
248
240
  null
249
241
  );
250
- const E = C.exports, R = {
242
+ const v = T.exports, E = {
251
243
  name: "ElementTaskConfig",
252
- components: { UserTask: T, ScriptTask: y, ReceiveTask: E },
244
+ components: { UserTask: p, ScriptTask: h, ReceiveTask: v },
253
245
  props: {
254
246
  id: String,
255
247
  element: Object,
@@ -281,8 +273,8 @@ const E = C.exports, R = {
281
273
  id: {
282
274
  immediate: !0,
283
275
  handler() {
284
- var a, e, t, s, m, p;
285
- this.taskConfigForm.asyncBefore = (e = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (s = (t = this.element) == null ? void 0 : t.businessObject) == null ? void 0 : s.asyncAfter, this.taskConfigForm.exclusive = (p = (m = this.element) == null ? void 0 : m.businessObject) == null ? void 0 : p.exclusive;
276
+ var a, e, t, s, r, i;
277
+ this.taskConfigForm.asyncBefore = (e = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (s = (t = this.element) == null ? void 0 : t.businessObject) == null ? void 0 : s.asyncAfter, this.taskConfigForm.exclusive = (i = (r = this.element) == null ? void 0 : r.businessObject) == null ? void 0 : i.exclusive;
286
278
  }
287
279
  },
288
280
  type: {
@@ -300,26 +292,26 @@ const E = C.exports, R = {
300
292
  }
301
293
  }
302
294
  };
303
- var j = function() {
295
+ var _ = function() {
304
296
  var e = this, t = e._self._c;
305
- return t("div", { staticClass: "panel-tab__content" }, [t(d, { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
297
+ return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
306
298
  s.preventDefault();
307
- } } }, [t(n, { attrs: { label: "异步延续" } }, [t(c, { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(s) {
299
+ } } }, [t("ElFormItem", { attrs: { label: "异步延续" } }, [t("ElCheckbox", { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(s) {
308
300
  e.$set(e.taskConfigForm, "asyncBefore", s);
309
- }, expression: "taskConfigForm.asyncBefore" } }), t(c, { attrs: { label: "异步后" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncAfter, callback: function(s) {
301
+ }, expression: "taskConfigForm.asyncBefore" } }), t("ElCheckbox", { attrs: { label: "异步后" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncAfter, callback: function(s) {
310
302
  e.$set(e.taskConfigForm, "asyncAfter", s);
311
- }, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t(c, { attrs: { label: "排除" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.exclusive, callback: function(s) {
303
+ }, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t("ElCheckbox", { attrs: { label: "排除" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.exclusive, callback: function(s) {
312
304
  e.$set(e.taskConfigForm, "exclusive", s);
313
305
  }, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), t(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
314
- }, O = [], D = /* @__PURE__ */ l(
315
- R,
316
- j,
317
- O,
306
+ }, $ = [], y = /* @__PURE__ */ n(
307
+ E,
308
+ _,
309
+ $,
318
310
  !1,
319
311
  null,
320
312
  null
321
313
  );
322
- const N = D.exports;
314
+ const M = y.exports;
323
315
  export {
324
- N as default
316
+ M as default
325
317
  };