@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.
- package/chunks/DialogForm.BzmXN481.mjs +37816 -0
- package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
- package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
- package/chunks/FyButton.DGd1yE_h.mjs +27 -0
- package/chunks/{FyCurd.DqJuCLNW.mjs → FyCurd.DmIW6Tjw.mjs} +490 -483
- package/chunks/{FyForm.CgyGhetD.mjs → FyForm.Dh77gj0Z.mjs} +149 -149
- package/chunks/{FyUEditor.uvZS8UgS.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
- package/chunks/{FyUpload.DoBEuYcC.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
- package/chunks/{MonacoEditor.Bq9d6JSz.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
- package/chunks/dataformat.BpAzVPYN.mjs +165 -0
- package/chunks/{dic.NZCGhtA7.mjs → dic.N2PNjL8o.mjs} +1 -1
- package/chunks/{event.CmOTnori.mjs → event.BevSLXu4.mjs} +8 -9
- package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
- package/dialog/index.d.ts +14 -0
- package/dialog/props.d.ts +101 -0
- package/dialog-form/index.mjs +2 -145
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/fy-array/index.mjs +7 -7
- package/fy-button/index.mjs +2 -0
- package/fy-button/style.css +1 -0
- package/fy-cascader/index.mjs +2 -2
- package/fy-checkbox/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +2 -2
- package/fy-date/style.css +1 -1
- package/fy-dynamic/index.mjs +15 -15
- package/fy-empty/index.mjs +4 -4
- package/fy-form/index.mjs +1 -1
- package/fy-input/index.mjs +3 -3
- package/fy-input-color/index.mjs +2 -2
- package/fy-input-map/index.mjs +36 -34
- package/fy-input-number/index.mjs +2 -2
- package/fy-input-table/index.mjs +40 -38
- package/fy-input-tree/index.mjs +17 -17
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +29 -29
- package/fy-slider/index.mjs +5 -5
- package/fy-switch/index.mjs +2 -2
- package/fy-tabs/index.mjs +1 -1
- package/fy-time/index.mjs +7 -7
- package/fy-title/index.mjs +2 -2
- package/fy-tree/index.mjs +76 -74
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/icon-temp/index.mjs +1 -1
- package/index.d.ts +2 -141
- package/index.mjs +31 -178
- package/monaco-editor/index.mjs +1 -1
- package/package.json +4 -4
- package/web-types.json +2431 -20044
- package/address-input/index.mjs +0 -76
- package/address-input/style.css +0 -1
- package/affix/index.mjs +0 -72
- package/affix/style.css +0 -1
- package/aside-menu/index.mjs +0 -20
- package/aside-menu/style.css +0 -1
- package/avatar/index.mjs +0 -94
- package/avatar/style.css +0 -1
- package/awesome-button/index.mjs +0 -49
- package/base.css +0 -1
- package/capsule-tab/index.mjs +0 -27
- package/capsule-tab/style.css +0 -1
- package/card/index.mjs +0 -86
- package/card/style.css +0 -1
- package/carousel/index.mjs +0 -46
- package/carousel/style.css +0 -1
- package/chat/index.mjs +0 -432
- package/chat/style.css +0 -1
- package/chunk-file-uploader/index.mjs +0 -2
- package/chunk-file-uploader/style.css +0 -1
- package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
- package/chunks/EditableTree.CV8b95tW.mjs +0 -639
- package/chunks/ElementBaseInfo.lW0iwU10.mjs +0 -208
- package/chunks/ElementDialog.DWhAJsUn.mjs +0 -520
- package/chunks/ElementForm.C7yebHWH.mjs +0 -600
- package/chunks/ElementListeners.B_SjC8dp.mjs +0 -635
- package/chunks/ElementMultiInstance.Xw27Z5mm.mjs +0 -289
- package/chunks/ElementOtherConfig.DnNmAhKn.mjs +0 -50
- package/chunks/ElementProperties.DKr9JE_O.mjs +0 -187
- package/chunks/ElementTaskConfig.CPjsXlpS.mjs +0 -442
- package/chunks/FlowCondition.BA7GF34X.mjs +0 -193
- package/chunks/FlowDesigner.DH1ypcUw.mjs +0 -5100
- package/chunks/FormBlock.D6kZl7sm.mjs +0 -117
- package/chunks/FormCascader.BXL8lKww.mjs +0 -1229
- package/chunks/FormInputTime.DzTPiDNh.mjs +0 -1775
- package/chunks/FormItem.B8iPLduv.mjs +0 -89
- package/chunks/FormItemGroup.CCGqEapT.mjs +0 -154
- package/chunks/FormSelect.t0jbTL_K.mjs +0 -1475
- package/chunks/FormSwitch.uoFQ-xp_.mjs +0 -298
- package/chunks/FormTemp.CeHtEZQe.mjs +0 -144
- package/chunks/FyFormDesign.DIIK7mXK.mjs +0 -5521
- package/chunks/ImagePreview.DDFrZgo5.mjs +0 -649
- package/chunks/Keyboard.DBspwbYo.mjs +0 -379
- package/chunks/PageableTable.DR-REJN5.mjs +0 -659
- package/chunks/RecordVideo.CKTY-gk9.mjs +0 -116
- package/chunks/SignalAndMessage.CL2u19it.mjs +0 -189
- package/chunks/SplitPane.DNNid7WB.mjs +0 -219
- package/chunks/TableColumn.Cq9Bvevm.mjs +0 -186
- package/chunks/TableView.DMWMaGLA.mjs +0 -477
- package/chunks/Toolbar.DytZ6fO0.mjs +0 -219
- package/chunks/ToolbarButton.AlTszc53.mjs +0 -107
- package/chunks/UserTaskListeners.Qfm8hKWP.mjs +0 -581
- package/chunks/VueCron.BmPnLuu3.mjs +0 -1787
- package/chunks/VueTreeSelect.GHx4Z2lG.mjs +0 -1877
- package/chunks/button.gVyl7Y__.mjs +0 -927
- package/chunks/checkbox.AmhCpaBZ.mjs +0 -438
- package/chunks/chunk.A6TnG60p.mjs +0 -13
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +0 -273
- package/chunks/constants.Dw7hXt67.mjs +0 -4
- package/chunks/core.Blrh_Fjl.mjs +0 -51
- package/chunks/dataformat.F7GtAoiN.mjs +0 -144
- package/chunks/dictionary.BqVLM7Lf.mjs +0 -87
- package/chunks/dictionary.DXYdZefs.mjs +0 -19
- package/chunks/event.ZRs4J5TN.mjs +0 -4
- package/chunks/focus-trap.CuUc8N2C.mjs +0 -211
- package/chunks/form-input.DdSb45Tz.mjs +0 -34
- package/chunks/form-item.fYYCXvCs.mjs +0 -716
- package/chunks/form-pick.BEC7lrNH.mjs +0 -7
- package/chunks/form-validate.JFOV_f-C.mjs +0 -11
- package/chunks/icon.AJYLfX1m.mjs +0 -26
- package/chunks/icon.niAg1zTC.mjs +0 -251
- package/chunks/init.CtUEiRbU.mjs +0 -115
- package/chunks/input.B_wW4aF-.mjs +0 -548
- package/chunks/install.BJl2MN77.mjs +0 -73
- package/chunks/message-box.wGWcYSSd.mjs +0 -463
- package/chunks/message.DnTACuzV.mjs +0 -401
- package/chunks/overlay.Rhu_rfhx.mjs +0 -122
- package/chunks/photo-swipe.BvBJGc5x.mjs +0 -55
- package/chunks/radio.BMkZBhl5.mjs +0 -274
- package/chunks/scroll.BJIpzi2Q.mjs +0 -28
- package/chunks/scrollbar.CvxOszy3.mjs +0 -345
- package/chunks/slot.CZCo32Cw.mjs +0 -25
- package/chunks/style.CraPDfJA.mjs +0 -325
- package/chunks/sub-table-plus-props.DvS8aKT4.mjs +0 -28
- package/chunks/tab-mixin.C9DSz8xu.mjs +0 -70
- package/chunks/tag.B6yUaGj-.mjs +0 -141
- package/chunks/teleport.87mkIv8m.mjs +0 -22
- package/chunks/tooltip.Dzjs7LZ8.mjs +0 -1926
- package/chunks/typescript.D0a40c7B.mjs +0 -4
- package/chunks/use-aria.B9uqqWAE.mjs +0 -17
- package/chunks/use-composition.BMPJBvYs.mjs +0 -47
- package/chunks/use-deprecated.vx6LTDA_.mjs +0 -12
- package/chunks/use-empty-values.CxYKjLV9.mjs +0 -81
- package/chunks/use-form-item.DMDTkMq9.mjs +0 -48
- package/chunks/use-global-config.Dkt91Ob3.mjs +0 -57
- package/chunks/use-id.CyzdvfQn.mjs +0 -15
- package/chunks/use-locale.CBoQRFjH.mjs +0 -188
- package/chunks/use-size.CoorvF12.mjs +0 -18
- package/chunks/util.fjuzrmWz.mjs +0 -103
- package/chunks/utilSelf.Bv7FtUNb.mjs +0 -46
- package/chunks/utils.C37EhJ-u.mjs +0 -60
- package/chunks/utils.C8RvIGLM.mjs +0 -14
- package/chunks/validator.Drv0r2Nb.mjs +0 -5
- package/chunks/vnode.raM3wMJz.mjs +0 -14
- package/code-mirror-editor/index.mjs +0 -99
- package/code-mirror-editor/style.css +0 -1
- package/comment/index.mjs +0 -62
- package/comment/style.css +0 -1
- package/configComponents.d.ts +0 -29
- package/configComponents.mjs +0 -42
- package/confirm-button/index.mjs +0 -35
- package/confirmable/index.mjs +0 -8
- package/context-menu/index.mjs +0 -196
- package/context-menu/style.css +0 -1
- package/count-up/index.mjs +0 -99
- package/custom-scrollbar/index.mjs +0 -93
- package/data-box/index.mjs +0 -64
- package/data-box/style.css +0 -1
- package/data-card/index.mjs +0 -60
- package/data-card/style.css +0 -1
- package/data-card-text/index.mjs +0 -64
- package/data-card-text/style.css +0 -1
- package/data-display/index.mjs +0 -71
- package/data-display/style.css +0 -1
- package/data-icons/index.mjs +0 -70
- package/data-icons/style.css +0 -1
- package/data-imgtext/index.mjs +0 -67
- package/data-imgtext/style.css +0 -1
- package/data-operatext/index.mjs +0 -51
- package/data-operatext/style.css +0 -1
- package/data-panel/index.mjs +0 -57
- package/data-panel/style.css +0 -1
- package/data-pay/index.mjs +0 -105
- package/data-pay/style.css +0 -1
- package/data-price/index.mjs +0 -48
- package/data-price/style.css +0 -1
- package/data-progress/index.mjs +0 -67
- package/data-progress/style.css +0 -1
- package/data-rotate/index.mjs +0 -61
- package/data-rotate/style.css +0 -1
- package/data-table-picker/index.mjs +0 -116
- package/data-tabs/index.mjs +0 -67
- package/data-tabs/style.css +0 -1
- package/dynamic-table/index.mjs +0 -165
- package/dynamic-table/style.css +0 -1
- package/e-charts/index.mjs +0 -176
- package/e-charts/style.css +0 -1
- package/easy-popup/index.mjs +0 -92
- package/easy-popup/style.css +0 -1
- package/editable-progress/index.mjs +0 -113
- package/editable-progress/style.css +0 -1
- package/editable-tree/index.mjs +0 -2
- package/editable-tree/style.css +0 -1
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
- package/ellipsis/index.mjs +0 -124
- package/ellipsis/style.css +0 -1
- package/empty-view/index.mjs +0 -46
- package/empty-view/style.css +0 -1
- package/error-view/index.mjs +0 -37
- package/error-view/style.css +0 -1
- package/flex-column/index.mjs +0 -35
- package/flex-item/index.mjs +0 -61
- package/flex-row/index.mjs +0 -34
- package/flex-scroller/index.mjs +0 -29
- package/flex-scroller/style.css +0 -1
- package/flow/index.mjs +0 -240
- package/flow/style.css +0 -1
- package/flow-designer/index.mjs +0 -2
- package/flow-designer/style.css +0 -1
- package/flow-node/index.mjs +0 -56
- package/flow-viewer/index.mjs +0 -160
- package/flow-viewer/style.css +0 -1
- package/form-block/index.mjs +0 -2
- package/form-block/style.css +0 -1
- package/form-button/index.mjs +0 -36
- package/form-card/index.mjs +0 -14
- package/form-cascader/index.mjs +0 -2
- package/form-checkbox/index.mjs +0 -90
- package/form-checkbox-group/index.mjs +0 -162
- package/form-checkbox-group/style.css +0 -1
- package/form-date-picker/index.mjs +0 -156
- package/form-holder/index.mjs +0 -134
- package/form-holder/style.css +0 -1
- package/form-input/index.mjs +0 -114
- package/form-input-cron-expression/index.mjs +0 -98
- package/form-input-cron-expression/style.css +0 -1
- package/form-input-email/index.mjs +0 -66
- package/form-input-id-card/index.mjs +0 -74
- package/form-input-phone-number/index.mjs +0 -73
- package/form-input-tag/index.mjs +0 -89
- package/form-input-time/index.mjs +0 -2
- package/form-item/index.mjs +0 -2
- package/form-item/style.css +0 -1
- package/form-item-config-provider/index.mjs +0 -47
- package/form-item-group/index.mjs +0 -2
- package/form-item-group/style.css +0 -1
- package/form-radio-group/index.mjs +0 -162
- package/form-radio-group/style.css +0 -1
- package/form-select/index.mjs +0 -2
- package/form-select/style.css +0 -1
- package/form-switch/index.mjs +0 -2
- package/form-table/index.mjs +0 -132
- package/form-table-plus/index.mjs +0 -165
- package/form-textarea/index.mjs +0 -91
- package/form-tree-select/index.mjs +0 -90
- package/form-tree-select/style.css +0 -1
- package/form-tree-select-multiple/index.mjs +0 -93
- package/form-view/index.mjs +0 -280
- package/form-view/style.css +0 -1
- package/fy-article/index.mjs +0 -73
- package/fy-article/style.css +0 -1
- package/fy-code/index.mjs +0 -48
- package/fy-draggable/index.mjs +0 -323
- package/fy-draggable/style.css +0 -1
- package/fy-form-design/index.mjs +0 -2
- package/fy-form-design/style.css +0 -1
- package/fy-input-icon/index.mjs +0 -134
- package/fy-input-icon/style.css +0 -1
- package/fy-progress/index.mjs +0 -36
- package/guide-steps/index.mjs +0 -73
- package/guide-steps/style.css +0 -1
- package/helper-function.d.ts +0 -5
- package/helper-function.mjs +0 -58
- package/highlight-j-s/index.mjs +0 -51
- package/highlight-j-s/style.css +0 -1
- package/icon-card/index.mjs +0 -34
- package/icon-card/style.css +0 -1
- package/iframe-window/index.mjs +0 -40
- package/iframe-window/style.css +0 -1
- package/image-cropper/index.mjs +0 -152
- package/image-cropper/style.css +0 -1
- package/image-preview/index.mjs +0 -2
- package/image-preview/style.css +0 -1
- package/image-viewer/index.mjs +0 -70
- package/image-viewer/style.css +0 -1
- package/input-number-range/index.mjs +0 -76
- package/input-number-range/style.css +0 -1
- package/j-s-x-component/index.mjs +0 -14
- package/keyboard/index.mjs +0 -2
- package/keyboard/style.css +0 -1
- package/license/index.mjs +0 -106
- package/loading-view/index.mjs +0 -39
- package/loading-view/style.css +0 -1
- package/name-avatar/index.mjs +0 -61
- package/name-avatar/style.css +0 -1
- package/nav-bar/index.mjs +0 -34
- package/nav-bar/style.css +0 -1
- package/not-implement/index.mjs +0 -10
- package/not-implement/style.css +0 -1
- package/notice/index.mjs +0 -97
- package/notice/style.css +0 -1
- package/page/index.mjs +0 -19
- package/page/style.css +0 -1
- package/page-header/index.mjs +0 -27
- package/page-header/style.css +0 -1
- package/page-index/index.mjs +0 -121
- package/page-index/style.css +0 -1
- package/page-index-top/index.mjs +0 -80
- package/page-skeleton/index.mjs +0 -49
- package/page-skeleton/style.css +0 -1
- package/page-skeleton-new/index.mjs +0 -79
- package/page-skeleton-new/style.css +0 -1
- package/pageable-table/index.mjs +0 -2
- package/pageable-table/style.css +0 -1
- package/pageable-view/index.mjs +0 -280
- package/pageable-view/style.css +0 -1
- package/photo-swipe/index.d.ts +0 -8
- package/photo-swipe/index.mjs +0 -33
- package/picker-table-view/index.mjs +0 -221
- package/present-view/index.mjs +0 -271
- package/present-view/style.css +0 -1
- package/queue/index.mjs +0 -46
- package/queue/style.css +0 -1
- package/record-video/index.mjs +0 -2
- package/record-video/style.css +0 -1
- package/resize-observer/index.mjs +0 -45
- package/resize-observer/style.css +0 -1
- package/search/index.mjs +0 -116
- package/search/style.css +0 -1
- package/sign/index.mjs +0 -104
- package/sign/style.css +0 -1
- package/sign-panel/index.mjs +0 -183
- package/sign-panel/style.css +0 -1
- package/skeleton/index.mjs +0 -51
- package/skeleton/style.css +0 -1
- package/skeleton-panel/index.mjs +0 -34
- package/skeleton-panel/style.css +0 -1
- package/split-pane/index.mjs +0 -3
- package/split-pane/style.css +0 -1
- package/stateful/index.mjs +0 -71
- package/stateful/style.css +0 -1
- package/static-pageable-table/index.mjs +0 -69
- package/static-pageable-table/style.css +0 -1
- package/sub-table/index.mjs +0 -505
- package/sub-table/style.css +0 -1
- package/sub-table-plus/index.mjs +0 -590
- package/sub-table-plus/style.css +0 -1
- package/swiper/index.mjs +0 -128
- package/swiper/style.css +0 -1
- package/tab/index.mjs +0 -117
- package/tab/style.css +0 -1
- package/tab-item/index.mjs +0 -49
- package/table-column/index.mjs +0 -2
- package/table-column/style.css +0 -1
- package/table-view/index.mjs +0 -3
- package/table-view/style.css +0 -1
- package/tabs-view/index.mjs +0 -109
- package/tabs-view/style.css +0 -1
- package/tag-render/index.mjs +0 -84
- package/tag-render/style.css +0 -1
- package/text-ellipsis/index.mjs +0 -95
- package/text-ellipsis/style.css +0 -1
- package/toolbar/index.mjs +0 -2
- package/toolbar/style.css +0 -1
- package/toolbar-button/index.mjs +0 -2
- package/verify/index.mjs +0 -58
- package/verify/style.css +0 -1
- package/video/index.d.ts +0 -10
- package/vue-cron/index.mjs +0 -2
- package/vue-cron/style.css +0 -1
- package/vue-qr-code/index.mjs +0 -32
- package/vue-quill-editor/index.mjs +0 -127
- package/vue-quill-editor/style.css +0 -1
- package/vue-tags-input/index.mjs +0 -348
- package/vue-tags-input/style.css +0 -1
- package/vue-tree-select/index.mjs +0 -2
- package/vue-tree-select/style.css +0 -1
- package/vue-video-player/index.mjs +0 -136
- package/vue-video-player/style.css +0 -1
- package/watermark/index.mjs +0 -47
- package/watermark/style.css +0 -1
- package/x-input-tag/index.mjs +0 -142
- package/x-input-tag/style.css +0 -1
- /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
- /package/chunks/{packages.CONbEH13.mjs → packages.W76nKiMk.mjs} +0 -0
- /package/chunks/{permission.8WDtOmzA.mjs → permission.ZYdXiCsn.mjs} +0 -0
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import "./chunk.A6TnG60p.mjs";
|
|
2
|
-
import { hasAuthority as e } from "../configComponents.mjs";
|
|
3
|
-
import { t } from "./message.DnTACuzV.mjs";
|
|
4
|
-
import { t as n } from "./message-box.wGWcYSSd.mjs";
|
|
5
|
-
import { computed as r, createVNode as i, defineComponent as a, getCurrentInstance as o, inject as s, ref as c, resolveComponent as l } from "vue";
|
|
6
|
-
import { isArray as u, isFunction as d } from "@web-utils/core";
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/components/toolbar/ToolbarButton.vue
|
|
9
|
-
var f = /* @__PURE__ */ a({
|
|
10
|
-
name: "ToolbarButton",
|
|
11
|
-
inheritAttrs: !1,
|
|
12
|
-
props: {
|
|
13
|
-
label: String,
|
|
14
|
-
icon: String,
|
|
15
|
-
type: String,
|
|
16
|
-
size: { type: String },
|
|
17
|
-
loadable: Boolean,
|
|
18
|
-
disabled: Boolean,
|
|
19
|
-
footer: Boolean,
|
|
20
|
-
circle: Boolean,
|
|
21
|
-
plain: Boolean,
|
|
22
|
-
round: Boolean,
|
|
23
|
-
primary: Boolean,
|
|
24
|
-
warning: Boolean,
|
|
25
|
-
nativeType: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: "button"
|
|
28
|
-
},
|
|
29
|
-
privilege: String,
|
|
30
|
-
condition: { type: [
|
|
31
|
-
Array,
|
|
32
|
-
Function,
|
|
33
|
-
Boolean
|
|
34
|
-
] },
|
|
35
|
-
conditionTips: String,
|
|
36
|
-
confirm: Boolean,
|
|
37
|
-
confirmTips: String,
|
|
38
|
-
beforeExecute: Function,
|
|
39
|
-
afterExecute: Function,
|
|
40
|
-
route: [String, Object],
|
|
41
|
-
title: String,
|
|
42
|
-
cancelButtonText: String,
|
|
43
|
-
confirmButtonText: String
|
|
44
|
-
},
|
|
45
|
-
setup(a, { attrs: f, slots: p }) {
|
|
46
|
-
let m = o(), h = s("toolbar", ""), g = c(!1), _ = r(() => a.privilege ? e(a.privilege) : !0), v = async (e) => {
|
|
47
|
-
try {
|
|
48
|
-
if (d(a.beforeExecute) && await a.beforeExecute() === !1) return;
|
|
49
|
-
if (a.conditionTips) {
|
|
50
|
-
let e;
|
|
51
|
-
if (e = u(a.condition) ? a.condition.length <= 0 : d(a.condition) ? !a.condition() : !a.condition, e) {
|
|
52
|
-
t.warning(a.conditionTips);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (a.confirm || a.confirmTips) try {
|
|
57
|
-
await n.confirm(a.confirmTips || "你确定要删除该记录吗?", "系统提示", {
|
|
58
|
-
type: "warning",
|
|
59
|
-
distinguishCancelAndClose: !0,
|
|
60
|
-
cancelButtonText: a.cancelButtonText,
|
|
61
|
-
confirmButtonText: a.confirmButtonText
|
|
62
|
-
});
|
|
63
|
-
} catch (e) {
|
|
64
|
-
if (e === "cancel") {
|
|
65
|
-
let { onCancel: t } = f;
|
|
66
|
-
d(t) && await t(e);
|
|
67
|
-
} else if (e === "close") {
|
|
68
|
-
let { onClose: t } = f;
|
|
69
|
-
d(t) && await t(e);
|
|
70
|
-
}
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
g.value = !0;
|
|
74
|
-
let i;
|
|
75
|
-
if (a.route) {
|
|
76
|
-
var r;
|
|
77
|
-
await ((r = m.proxy.$router) == null ? void 0 : r.push(a.route));
|
|
78
|
-
} else {
|
|
79
|
-
let { onClick: t } = f;
|
|
80
|
-
if (d(t)) try {
|
|
81
|
-
i = await t(e);
|
|
82
|
-
} catch {}
|
|
83
|
-
}
|
|
84
|
-
g.value = !1, d(a.afterExecute) && await a.afterExecute(i);
|
|
85
|
-
} catch {}
|
|
86
|
-
};
|
|
87
|
-
return () => _.value ? i(l("ElButton"), {
|
|
88
|
-
title: a.footer || h.footer ? null : a.title,
|
|
89
|
-
disabled: a.disabled || g.value,
|
|
90
|
-
plain: a.plain,
|
|
91
|
-
size: a.size,
|
|
92
|
-
nativeType: a.nativeType,
|
|
93
|
-
circle: a.circle,
|
|
94
|
-
loading: a.loadable ? g.value : !1,
|
|
95
|
-
type: a.primary ? "primary" : a.warning ? "warning" : a.type,
|
|
96
|
-
round: a.round,
|
|
97
|
-
class: f.class,
|
|
98
|
-
style: f.style,
|
|
99
|
-
onClick: v
|
|
100
|
-
}, {
|
|
101
|
-
default: !a.circle && (a.label || p.default) ? () => p.default ? p.default() : a.label : null,
|
|
102
|
-
icon: a.icon ? () => i("i", { class: a.icon }, null) : null
|
|
103
|
-
}) : null;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
//#endregion
|
|
107
|
-
export { f as t };
|
|
@@ -1,581 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
2
|
-
import { r as t, t as n } from "./utils.C37EhJ-u.mjs";
|
|
3
|
-
import { a as r, i, n as a, r as o, t as s } from "./utilSelf.Bv7FtUNb.mjs";
|
|
4
|
-
import { Fragment as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, openBlock as h, renderList as g, resolveComponent as _, withCtx as v, withModifiers as y } from "vue";
|
|
5
|
-
import { fastClone as b } from "@web-utils/core";
|
|
6
|
-
//#region src/components/bpmn-process-designer/components/penal/listeners/UserTaskListeners.vue
|
|
7
|
-
var x = {
|
|
8
|
-
name: "UserTaskListeners",
|
|
9
|
-
inject: {
|
|
10
|
-
prefix: "prefix",
|
|
11
|
-
width: "width"
|
|
12
|
-
},
|
|
13
|
-
props: {
|
|
14
|
-
id: String,
|
|
15
|
-
element: Object,
|
|
16
|
-
bpmnInstances: Object
|
|
17
|
-
},
|
|
18
|
-
data() {
|
|
19
|
-
return {
|
|
20
|
-
elementListenersList: [],
|
|
21
|
-
listenerEventTypeObject: s,
|
|
22
|
-
listenerTypeObject: r,
|
|
23
|
-
listenerFormModelVisible: !1,
|
|
24
|
-
listenerForm: {},
|
|
25
|
-
fieldTypeObject: a,
|
|
26
|
-
fieldsListOfListener: [],
|
|
27
|
-
listenerFieldFormModelVisible: !1,
|
|
28
|
-
editingListenerIndex: -1,
|
|
29
|
-
editingListenerFieldIndex: -1,
|
|
30
|
-
listenerFieldForm: {}
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
watch: { id: {
|
|
34
|
-
immediate: !0,
|
|
35
|
-
async handler(e) {
|
|
36
|
-
e && (await this.$nextTick(), this.resetListenersList());
|
|
37
|
-
}
|
|
38
|
-
} },
|
|
39
|
-
methods: {
|
|
40
|
-
resetListenersList() {
|
|
41
|
-
var e;
|
|
42
|
-
this.otherExtensionList = [], this.bpmnElementListeners = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type === `${this.prefix}:TaskListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((e) => i(e));
|
|
43
|
-
},
|
|
44
|
-
async openListenerForm(e, t) {
|
|
45
|
-
var n;
|
|
46
|
-
e ? (this.listenerForm = o(e), this.editingListenerIndex = t) : (this.listenerForm = {}, this.editingListenerIndex = -1), e && e.fields ? this.fieldsListOfListener = e.fields.map((e) => ({
|
|
47
|
-
...e,
|
|
48
|
-
fieldType: e.string ? "string" : "expression"
|
|
49
|
-
})) : (this.fieldsListOfListener = [], this.listenerForm.fields = []), this.listenerFormModelVisible = !0, await this.$nextTick(), (n = this.$refs.listenerFormRef) == null || n.clearValidate();
|
|
50
|
-
},
|
|
51
|
-
async removeListener(e, n) {
|
|
52
|
-
try {
|
|
53
|
-
await this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(n, 1), this.elementListenersList.splice(n, 1), t(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
54
|
-
} catch {}
|
|
55
|
-
},
|
|
56
|
-
async saveListenerConfig() {
|
|
57
|
-
var e;
|
|
58
|
-
if (!await this.$refs.listenerFormRef.validate()) return;
|
|
59
|
-
let r = n(this.bpmnInstances, this.listenerForm, !0, this.prefix);
|
|
60
|
-
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(r), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, r), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type !== `${this.prefix}:TaskListener`)) ?? [], t(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
61
|
-
},
|
|
62
|
-
async openListenerFieldForm(e, t) {
|
|
63
|
-
var n;
|
|
64
|
-
this.listenerFieldForm = e ? b(e) : {}, this.editingListenerFieldIndex = e ? t : -1, this.listenerFieldFormModelVisible = !0, await this.$nextTick(), (n = this.$refs.listenerFieldFormRef) == null || n.clearValidate();
|
|
65
|
-
},
|
|
66
|
-
async saveListenerFiled() {
|
|
67
|
-
await this.$refs.listenerFieldFormRef.validate() && (this.editingListenerFieldIndex === -1 ? (this.fieldsListOfListener.push(this.listenerFieldForm), this.listenerForm.fields.push(this.listenerFieldForm)) : (this.fieldsListOfListener.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm), this.listenerForm.fields.splice(this.editingListenerFieldIndex, 1, this.listenerFieldForm)), this.listenerFieldFormModelVisible = !1, await this.$nextTick(), this.listenerFieldForm = {});
|
|
68
|
-
},
|
|
69
|
-
async removeListenerField(e, t) {
|
|
70
|
-
try {
|
|
71
|
-
await this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(t, 1), this.listenerForm.fields.splice(t, 1);
|
|
72
|
-
} catch {}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}, S = { class: "panel-tab__content" }, C = { class: "element-drawer__button" }, w = {
|
|
76
|
-
class: "listener-filed__title",
|
|
77
|
-
style: { "padding-bottom": "6px" }
|
|
78
|
-
}, T = { class: "element-drawer__button" };
|
|
79
|
-
function E(e, t, n, r, i, a) {
|
|
80
|
-
let o = _("ElTableColumn"), s = _("ElButton"), b = _("ElDivider"), x = _("ElTable"), E = _("ElOption"), D = _("ElSelect"), O = _("ElFormItem"), k = _("ElInput"), A = _("ElForm"), j = _("ElDrawer"), M = _("ElementDialog");
|
|
81
|
-
return h(), d("div", S, [
|
|
82
|
-
m(x, {
|
|
83
|
-
data: i.elementListenersList,
|
|
84
|
-
border: ""
|
|
85
|
-
}, {
|
|
86
|
-
default: v(() => [
|
|
87
|
-
m(o, {
|
|
88
|
-
label: "序号",
|
|
89
|
-
width: "50px",
|
|
90
|
-
type: "index"
|
|
91
|
-
}),
|
|
92
|
-
m(o, {
|
|
93
|
-
label: "事件类型",
|
|
94
|
-
"min-width": "80px",
|
|
95
|
-
"show-overflow-tooltip": "",
|
|
96
|
-
formatter: (e) => i.listenerEventTypeObject[e.event]
|
|
97
|
-
}, null, 8, ["formatter"]),
|
|
98
|
-
m(o, {
|
|
99
|
-
label: "事件id",
|
|
100
|
-
"min-width": "80px",
|
|
101
|
-
prop: "id",
|
|
102
|
-
"show-overflow-tooltip": ""
|
|
103
|
-
}),
|
|
104
|
-
m(o, {
|
|
105
|
-
label: "监听器类型",
|
|
106
|
-
"min-width": "80px",
|
|
107
|
-
"show-overflow-tooltip": "",
|
|
108
|
-
formatter: (e) => i.listenerTypeObject[e.listenerType]
|
|
109
|
-
}, null, 8, ["formatter"]),
|
|
110
|
-
m(o, {
|
|
111
|
-
label: "操作",
|
|
112
|
-
width: "90px"
|
|
113
|
-
}, {
|
|
114
|
-
default: v(({ row: e, $index: n }) => [
|
|
115
|
-
m(s, {
|
|
116
|
-
text: "",
|
|
117
|
-
onClick: (t) => a.openListenerForm(e, n)
|
|
118
|
-
}, {
|
|
119
|
-
default: v(() => [...t[24] || (t[24] = [p("编辑", -1)])]),
|
|
120
|
-
_: 1
|
|
121
|
-
}, 8, ["onClick"]),
|
|
122
|
-
m(b, { direction: "vertical" }),
|
|
123
|
-
m(s, {
|
|
124
|
-
text: "",
|
|
125
|
-
style: { color: "#ff4d4f" },
|
|
126
|
-
onClick: (t) => a.removeListener(e, n)
|
|
127
|
-
}, {
|
|
128
|
-
default: v(() => [...t[25] || (t[25] = [p("移除", -1)])]),
|
|
129
|
-
_: 1
|
|
130
|
-
}, 8, ["onClick"])
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
})
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}, 8, ["data"]),
|
|
137
|
-
f("div", C, [m(s, {
|
|
138
|
-
type: "primary",
|
|
139
|
-
icon: "el-icon-plus",
|
|
140
|
-
onClick: t[0] || (t[0] = (e) => a.openListenerForm(null))
|
|
141
|
-
}, {
|
|
142
|
-
default: v(() => [...t[26] || (t[26] = [p("添加监听器", -1)])]),
|
|
143
|
-
_: 1
|
|
144
|
-
})]),
|
|
145
|
-
u(" 监听器 编辑/创建 部分 "),
|
|
146
|
-
m(j, {
|
|
147
|
-
visible: i.listenerFormModelVisible,
|
|
148
|
-
"onUpdate:visible": t[16] || (t[16] = (e) => i.listenerFormModelVisible = e),
|
|
149
|
-
class: "flow-drawer",
|
|
150
|
-
title: "任务监听器",
|
|
151
|
-
size: `${a.width}px`,
|
|
152
|
-
"wrapper-closable": !1,
|
|
153
|
-
"append-to-body": "",
|
|
154
|
-
"destroy-on-close": ""
|
|
155
|
-
}, {
|
|
156
|
-
default: v(() => [
|
|
157
|
-
m(A, {
|
|
158
|
-
ref: "listenerFormRef",
|
|
159
|
-
model: i.listenerForm,
|
|
160
|
-
"label-width": "96px",
|
|
161
|
-
onSubmit: t[13] || (t[13] = y(() => {}, ["prevent"]))
|
|
162
|
-
}, {
|
|
163
|
-
default: v(() => [
|
|
164
|
-
m(O, {
|
|
165
|
-
label: "事件类型",
|
|
166
|
-
prop: "event",
|
|
167
|
-
rules: {
|
|
168
|
-
required: !0,
|
|
169
|
-
trigger: ["blur", "change"]
|
|
170
|
-
}
|
|
171
|
-
}, {
|
|
172
|
-
default: v(() => [m(D, {
|
|
173
|
-
modelValue: i.listenerForm.event,
|
|
174
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => i.listenerForm.event = e)
|
|
175
|
-
}, {
|
|
176
|
-
default: v(() => [(h(!0), d(c, null, g(Object.keys(i.listenerEventTypeObject), (e) => (h(), l(E, {
|
|
177
|
-
key: e,
|
|
178
|
-
label: i.listenerEventTypeObject[e],
|
|
179
|
-
value: e
|
|
180
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
181
|
-
_: 1
|
|
182
|
-
}, 8, ["modelValue"])]),
|
|
183
|
-
_: 1
|
|
184
|
-
}),
|
|
185
|
-
m(O, {
|
|
186
|
-
label: "监听器ID",
|
|
187
|
-
prop: "id",
|
|
188
|
-
rules: {
|
|
189
|
-
required: !0,
|
|
190
|
-
trigger: ["blur", "change"]
|
|
191
|
-
}
|
|
192
|
-
}, {
|
|
193
|
-
default: v(() => [m(k, {
|
|
194
|
-
modelValue: i.listenerForm.id,
|
|
195
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.listenerForm.id = e),
|
|
196
|
-
clearable: ""
|
|
197
|
-
}, null, 8, ["modelValue"])]),
|
|
198
|
-
_: 1
|
|
199
|
-
}),
|
|
200
|
-
m(O, {
|
|
201
|
-
label: "监听器类型",
|
|
202
|
-
prop: "listenerType",
|
|
203
|
-
rules: {
|
|
204
|
-
required: !0,
|
|
205
|
-
trigger: ["blur", "change"]
|
|
206
|
-
}
|
|
207
|
-
}, {
|
|
208
|
-
default: v(() => [m(D, {
|
|
209
|
-
modelValue: i.listenerForm.listenerType,
|
|
210
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => i.listenerForm.listenerType = e)
|
|
211
|
-
}, {
|
|
212
|
-
default: v(() => [(h(!0), d(c, null, g(Object.keys(i.listenerTypeObject), (e) => (h(), l(E, {
|
|
213
|
-
key: e,
|
|
214
|
-
label: i.listenerTypeObject[e],
|
|
215
|
-
value: e
|
|
216
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
217
|
-
_: 1
|
|
218
|
-
}, 8, ["modelValue"])]),
|
|
219
|
-
_: 1
|
|
220
|
-
}),
|
|
221
|
-
i.listenerForm.listenerType === "classListener" ? (h(), l(O, {
|
|
222
|
-
key: "listener-class",
|
|
223
|
-
label: "Java类",
|
|
224
|
-
prop: "class",
|
|
225
|
-
rules: {
|
|
226
|
-
required: !0,
|
|
227
|
-
trigger: ["blur", "change"]
|
|
228
|
-
}
|
|
229
|
-
}, {
|
|
230
|
-
default: v(() => [m(k, {
|
|
231
|
-
modelValue: i.listenerForm.class,
|
|
232
|
-
"onUpdate:modelValue": t[4] || (t[4] = (e) => i.listenerForm.class = e),
|
|
233
|
-
clearable: ""
|
|
234
|
-
}, null, 8, ["modelValue"])]),
|
|
235
|
-
_: 1
|
|
236
|
-
})) : u("v-if", !0),
|
|
237
|
-
i.listenerForm.listenerType === "expressionListener" ? (h(), l(O, {
|
|
238
|
-
key: "listener-expression",
|
|
239
|
-
label: "表达式",
|
|
240
|
-
prop: "expression",
|
|
241
|
-
rules: {
|
|
242
|
-
required: !0,
|
|
243
|
-
trigger: ["blur", "change"]
|
|
244
|
-
}
|
|
245
|
-
}, {
|
|
246
|
-
default: v(() => [m(k, {
|
|
247
|
-
modelValue: i.listenerForm.expression,
|
|
248
|
-
"onUpdate:modelValue": t[5] || (t[5] = (e) => i.listenerForm.expression = e),
|
|
249
|
-
clearable: ""
|
|
250
|
-
}, null, 8, ["modelValue"])]),
|
|
251
|
-
_: 1
|
|
252
|
-
})) : u("v-if", !0),
|
|
253
|
-
i.listenerForm.listenerType === "delegateExpressionListener" ? (h(), l(O, {
|
|
254
|
-
key: "listener-delegate",
|
|
255
|
-
label: "代理表达式",
|
|
256
|
-
prop: "delegateExpression",
|
|
257
|
-
rules: {
|
|
258
|
-
required: !0,
|
|
259
|
-
trigger: ["blur", "change"]
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
|
-
default: v(() => [m(k, {
|
|
263
|
-
modelValue: i.listenerForm.delegateExpression,
|
|
264
|
-
"onUpdate:modelValue": t[6] || (t[6] = (e) => i.listenerForm.delegateExpression = e),
|
|
265
|
-
clearable: ""
|
|
266
|
-
}, null, 8, ["modelValue"])]),
|
|
267
|
-
_: 1
|
|
268
|
-
})) : u("v-if", !0),
|
|
269
|
-
i.listenerForm.listenerType === "scriptListener" ? (h(), d(c, { key: 3 }, [
|
|
270
|
-
m(O, {
|
|
271
|
-
key: "listener-script-format",
|
|
272
|
-
label: "脚本格式",
|
|
273
|
-
prop: "scriptFormat",
|
|
274
|
-
rules: {
|
|
275
|
-
required: !0,
|
|
276
|
-
trigger: ["blur", "change"],
|
|
277
|
-
message: "请填写脚本格式"
|
|
278
|
-
}
|
|
279
|
-
}, {
|
|
280
|
-
default: v(() => [m(k, {
|
|
281
|
-
modelValue: i.listenerForm.scriptFormat,
|
|
282
|
-
"onUpdate:modelValue": t[7] || (t[7] = (e) => i.listenerForm.scriptFormat = e),
|
|
283
|
-
clearable: ""
|
|
284
|
-
}, null, 8, ["modelValue"])]),
|
|
285
|
-
_: 1
|
|
286
|
-
}),
|
|
287
|
-
m(O, {
|
|
288
|
-
key: "listener-script-type",
|
|
289
|
-
label: "脚本类型",
|
|
290
|
-
prop: "scriptType",
|
|
291
|
-
rules: {
|
|
292
|
-
required: !0,
|
|
293
|
-
trigger: ["blur", "change"],
|
|
294
|
-
message: "请选择脚本类型"
|
|
295
|
-
}
|
|
296
|
-
}, {
|
|
297
|
-
default: v(() => [m(D, {
|
|
298
|
-
modelValue: i.listenerForm.scriptType,
|
|
299
|
-
"onUpdate:modelValue": t[8] || (t[8] = (e) => i.listenerForm.scriptType = e)
|
|
300
|
-
}, {
|
|
301
|
-
default: v(() => [m(E, {
|
|
302
|
-
label: "内联脚本",
|
|
303
|
-
value: "inlineScript"
|
|
304
|
-
}), m(E, {
|
|
305
|
-
label: "外部脚本",
|
|
306
|
-
value: "externalScript"
|
|
307
|
-
})]),
|
|
308
|
-
_: 1
|
|
309
|
-
}, 8, ["modelValue"])]),
|
|
310
|
-
_: 1
|
|
311
|
-
}),
|
|
312
|
-
i.listenerForm.scriptType === "inlineScript" ? (h(), l(O, {
|
|
313
|
-
key: "listener-script",
|
|
314
|
-
label: "脚本内容",
|
|
315
|
-
prop: "value",
|
|
316
|
-
rules: {
|
|
317
|
-
required: !0,
|
|
318
|
-
trigger: ["blur", "change"],
|
|
319
|
-
message: "请填写脚本内容"
|
|
320
|
-
}
|
|
321
|
-
}, {
|
|
322
|
-
default: v(() => [m(k, {
|
|
323
|
-
modelValue: i.listenerForm.value,
|
|
324
|
-
"onUpdate:modelValue": t[9] || (t[9] = (e) => i.listenerForm.value = e),
|
|
325
|
-
clearable: ""
|
|
326
|
-
}, null, 8, ["modelValue"])]),
|
|
327
|
-
_: 1
|
|
328
|
-
})) : u("v-if", !0),
|
|
329
|
-
i.listenerForm.scriptType === "externalScript" ? (h(), l(O, {
|
|
330
|
-
key: "listener-resource",
|
|
331
|
-
label: "资源地址",
|
|
332
|
-
prop: "resource",
|
|
333
|
-
rules: {
|
|
334
|
-
required: !0,
|
|
335
|
-
trigger: ["blur", "change"],
|
|
336
|
-
message: "请填写资源地址"
|
|
337
|
-
}
|
|
338
|
-
}, {
|
|
339
|
-
default: v(() => [m(k, {
|
|
340
|
-
modelValue: i.listenerForm.resource,
|
|
341
|
-
"onUpdate:modelValue": t[10] || (t[10] = (e) => i.listenerForm.resource = e),
|
|
342
|
-
clearable: ""
|
|
343
|
-
}, null, 8, ["modelValue"])]),
|
|
344
|
-
_: 1
|
|
345
|
-
})) : u("v-if", !0)
|
|
346
|
-
], 64)) : u("v-if", !0),
|
|
347
|
-
i.listenerForm.event === "timeout" ? (h(), d(c, { key: 4 }, [m(O, {
|
|
348
|
-
key: "eventDefinitionType",
|
|
349
|
-
label: "定时器类型",
|
|
350
|
-
prop: "eventDefinitionType"
|
|
351
|
-
}, {
|
|
352
|
-
default: v(() => [m(D, {
|
|
353
|
-
modelValue: i.listenerForm.eventDefinitionType,
|
|
354
|
-
"onUpdate:modelValue": t[11] || (t[11] = (e) => i.listenerForm.eventDefinitionType = e)
|
|
355
|
-
}, {
|
|
356
|
-
default: v(() => [
|
|
357
|
-
m(E, {
|
|
358
|
-
label: "日期",
|
|
359
|
-
value: "date"
|
|
360
|
-
}),
|
|
361
|
-
m(E, {
|
|
362
|
-
label: "持续时长",
|
|
363
|
-
value: "duration"
|
|
364
|
-
}),
|
|
365
|
-
m(E, {
|
|
366
|
-
label: "循环",
|
|
367
|
-
value: "cycle"
|
|
368
|
-
}),
|
|
369
|
-
m(E, {
|
|
370
|
-
label: "无",
|
|
371
|
-
value: "null"
|
|
372
|
-
})
|
|
373
|
-
]),
|
|
374
|
-
_: 1
|
|
375
|
-
}, 8, ["modelValue"])]),
|
|
376
|
-
_: 1
|
|
377
|
-
}), i.listenerForm.eventDefinitionType && i.listenerForm.eventDefinitionType !== "null" ? (h(), l(O, {
|
|
378
|
-
key: "eventTimeDefinitions",
|
|
379
|
-
label: "定时器",
|
|
380
|
-
prop: "eventTimeDefinitions",
|
|
381
|
-
rules: {
|
|
382
|
-
required: !0,
|
|
383
|
-
trigger: ["blur", "change"],
|
|
384
|
-
message: "请填写定时器配置"
|
|
385
|
-
}
|
|
386
|
-
}, {
|
|
387
|
-
default: v(() => [m(k, {
|
|
388
|
-
modelValue: i.listenerForm.eventTimeDefinitions,
|
|
389
|
-
"onUpdate:modelValue": t[12] || (t[12] = (e) => i.listenerForm.eventTimeDefinitions = e),
|
|
390
|
-
clearable: ""
|
|
391
|
-
}, null, 8, ["modelValue"])]),
|
|
392
|
-
_: 1
|
|
393
|
-
})) : u("v-if", !0)], 64)) : u("v-if", !0)
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
}, 8, ["model"]),
|
|
397
|
-
m(b),
|
|
398
|
-
f("p", w, [t[28] || (t[28] = f("span", null, [f("i", { class: "el-icon-menu" }), p("注入字段:")], -1)), m(s, {
|
|
399
|
-
type: "primary",
|
|
400
|
-
style: { "margin-left": "auto" },
|
|
401
|
-
onClick: t[14] || (t[14] = (e) => a.openListenerFieldForm(null))
|
|
402
|
-
}, {
|
|
403
|
-
default: v(() => [...t[27] || (t[27] = [p("添加字段", -1)])]),
|
|
404
|
-
_: 1
|
|
405
|
-
})]),
|
|
406
|
-
m(x, {
|
|
407
|
-
data: i.fieldsListOfListener,
|
|
408
|
-
"max-height": "240",
|
|
409
|
-
border: "",
|
|
410
|
-
fit: "",
|
|
411
|
-
style: { flex: "none" }
|
|
412
|
-
}, {
|
|
413
|
-
default: v(() => [
|
|
414
|
-
m(o, {
|
|
415
|
-
label: "序号",
|
|
416
|
-
width: "50px",
|
|
417
|
-
type: "index"
|
|
418
|
-
}),
|
|
419
|
-
m(o, {
|
|
420
|
-
label: "字段名称",
|
|
421
|
-
"min-width": "100px",
|
|
422
|
-
prop: "name"
|
|
423
|
-
}),
|
|
424
|
-
m(o, {
|
|
425
|
-
label: "字段类型",
|
|
426
|
-
"min-width": "80px",
|
|
427
|
-
"show-overflow-tooltip": "",
|
|
428
|
-
formatter: (e) => i.fieldTypeObject[e.fieldType]
|
|
429
|
-
}, null, 8, ["formatter"]),
|
|
430
|
-
m(o, {
|
|
431
|
-
label: "字段值/表达式",
|
|
432
|
-
"min-width": "100px",
|
|
433
|
-
"show-overflow-tooltip": "",
|
|
434
|
-
formatter: (e) => e.string || e.expression
|
|
435
|
-
}, null, 8, ["formatter"]),
|
|
436
|
-
m(o, {
|
|
437
|
-
label: "操作",
|
|
438
|
-
width: "100px"
|
|
439
|
-
}, {
|
|
440
|
-
default: v(({ row: e, $index: n }) => [
|
|
441
|
-
m(s, {
|
|
442
|
-
text: "",
|
|
443
|
-
onClick: (t) => a.openListenerFieldForm(e, n)
|
|
444
|
-
}, {
|
|
445
|
-
default: v(() => [...t[29] || (t[29] = [p("编辑", -1)])]),
|
|
446
|
-
_: 1
|
|
447
|
-
}, 8, ["onClick"]),
|
|
448
|
-
m(b, { direction: "vertical" }),
|
|
449
|
-
m(s, {
|
|
450
|
-
text: "",
|
|
451
|
-
style: { color: "#ff4d4f" },
|
|
452
|
-
onClick: (t) => a.removeListenerField(e, n)
|
|
453
|
-
}, {
|
|
454
|
-
default: v(() => [...t[30] || (t[30] = [p(" 移除 ", -1)])]),
|
|
455
|
-
_: 1
|
|
456
|
-
}, 8, ["onClick"])
|
|
457
|
-
]),
|
|
458
|
-
_: 1
|
|
459
|
-
})
|
|
460
|
-
]),
|
|
461
|
-
_: 1
|
|
462
|
-
}, 8, ["data"]),
|
|
463
|
-
f("div", T, [m(s, { onClick: t[15] || (t[15] = (e) => i.listenerFormModelVisible = !1) }, {
|
|
464
|
-
default: v(() => [...t[31] || (t[31] = [p("取 消", -1)])]),
|
|
465
|
-
_: 1
|
|
466
|
-
}), m(s, {
|
|
467
|
-
type: "primary",
|
|
468
|
-
onClick: a.saveListenerConfig
|
|
469
|
-
}, {
|
|
470
|
-
default: v(() => [...t[32] || (t[32] = [p("保 存", -1)])]),
|
|
471
|
-
_: 1
|
|
472
|
-
}, 8, ["onClick"])])
|
|
473
|
-
]),
|
|
474
|
-
_: 1
|
|
475
|
-
}, 8, ["visible", "size"]),
|
|
476
|
-
u(" 注入西段 编辑/创建 部分 "),
|
|
477
|
-
m(M, {
|
|
478
|
-
visible: i.listenerFieldFormModelVisible,
|
|
479
|
-
"onUpdate:visible": t[23] || (t[23] = (e) => i.listenerFieldFormModelVisible = e),
|
|
480
|
-
title: "字段配置",
|
|
481
|
-
class: "flow-dialog",
|
|
482
|
-
width: "600px",
|
|
483
|
-
"append-to-body": "",
|
|
484
|
-
"destroy-on-close": ""
|
|
485
|
-
}, {
|
|
486
|
-
footer: v(() => [m(s, { onClick: t[22] || (t[22] = (e) => i.listenerFieldFormModelVisible = !1) }, {
|
|
487
|
-
default: v(() => [...t[33] || (t[33] = [p("取 消", -1)])]),
|
|
488
|
-
_: 1
|
|
489
|
-
}), m(s, {
|
|
490
|
-
type: "primary",
|
|
491
|
-
onClick: a.saveListenerFiled
|
|
492
|
-
}, {
|
|
493
|
-
default: v(() => [...t[34] || (t[34] = [p("确 定", -1)])]),
|
|
494
|
-
_: 1
|
|
495
|
-
}, 8, ["onClick"])]),
|
|
496
|
-
default: v(() => [m(A, {
|
|
497
|
-
ref: "listenerFieldFormRef",
|
|
498
|
-
model: i.listenerFieldForm,
|
|
499
|
-
"label-width": "96px",
|
|
500
|
-
style: { height: "136px" },
|
|
501
|
-
onSubmit: t[21] || (t[21] = y(() => {}, ["prevent"]))
|
|
502
|
-
}, {
|
|
503
|
-
default: v(() => [
|
|
504
|
-
m(O, {
|
|
505
|
-
label: "字段名称:",
|
|
506
|
-
prop: "name",
|
|
507
|
-
rules: {
|
|
508
|
-
required: !0,
|
|
509
|
-
trigger: ["blur", "change"]
|
|
510
|
-
}
|
|
511
|
-
}, {
|
|
512
|
-
default: v(() => [m(k, {
|
|
513
|
-
modelValue: i.listenerFieldForm.name,
|
|
514
|
-
"onUpdate:modelValue": t[17] || (t[17] = (e) => i.listenerFieldForm.name = e),
|
|
515
|
-
clearable: ""
|
|
516
|
-
}, null, 8, ["modelValue"])]),
|
|
517
|
-
_: 1
|
|
518
|
-
}),
|
|
519
|
-
m(O, {
|
|
520
|
-
label: "字段类型:",
|
|
521
|
-
prop: "fieldType",
|
|
522
|
-
rules: {
|
|
523
|
-
required: !0,
|
|
524
|
-
trigger: ["blur", "change"]
|
|
525
|
-
}
|
|
526
|
-
}, {
|
|
527
|
-
default: v(() => [m(D, {
|
|
528
|
-
modelValue: i.listenerFieldForm.fieldType,
|
|
529
|
-
"onUpdate:modelValue": t[18] || (t[18] = (e) => i.listenerFieldForm.fieldType = e)
|
|
530
|
-
}, {
|
|
531
|
-
default: v(() => [(h(!0), d(c, null, g(Object.keys(i.fieldTypeObject), (e) => (h(), l(E, {
|
|
532
|
-
key: e,
|
|
533
|
-
label: i.fieldTypeObject[e],
|
|
534
|
-
value: e
|
|
535
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
536
|
-
_: 1
|
|
537
|
-
}, 8, ["modelValue"])]),
|
|
538
|
-
_: 1
|
|
539
|
-
}),
|
|
540
|
-
i.listenerFieldForm.fieldType === "string" ? (h(), l(O, {
|
|
541
|
-
key: "field-string",
|
|
542
|
-
label: "字段值:",
|
|
543
|
-
prop: "string",
|
|
544
|
-
rules: {
|
|
545
|
-
required: !0,
|
|
546
|
-
trigger: ["blur", "change"]
|
|
547
|
-
}
|
|
548
|
-
}, {
|
|
549
|
-
default: v(() => [m(k, {
|
|
550
|
-
modelValue: i.listenerFieldForm.string,
|
|
551
|
-
"onUpdate:modelValue": t[19] || (t[19] = (e) => i.listenerFieldForm.string = e),
|
|
552
|
-
clearable: ""
|
|
553
|
-
}, null, 8, ["modelValue"])]),
|
|
554
|
-
_: 1
|
|
555
|
-
})) : u("v-if", !0),
|
|
556
|
-
i.listenerFieldForm.fieldType === "expression" ? (h(), l(O, {
|
|
557
|
-
key: "field-expression",
|
|
558
|
-
label: "表达式:",
|
|
559
|
-
prop: "expression",
|
|
560
|
-
rules: {
|
|
561
|
-
required: !0,
|
|
562
|
-
trigger: ["blur", "change"]
|
|
563
|
-
}
|
|
564
|
-
}, {
|
|
565
|
-
default: v(() => [m(k, {
|
|
566
|
-
modelValue: i.listenerFieldForm.expression,
|
|
567
|
-
"onUpdate:modelValue": t[20] || (t[20] = (e) => i.listenerFieldForm.expression = e),
|
|
568
|
-
clearable: ""
|
|
569
|
-
}, null, 8, ["modelValue"])]),
|
|
570
|
-
_: 1
|
|
571
|
-
})) : u("v-if", !0)
|
|
572
|
-
]),
|
|
573
|
-
_: 1
|
|
574
|
-
}, 8, ["model"])]),
|
|
575
|
-
_: 1
|
|
576
|
-
}, 8, ["visible"])
|
|
577
|
-
]);
|
|
578
|
-
}
|
|
579
|
-
var D = /* @__PURE__ */ e(x, [["render", E]]);
|
|
580
|
-
//#endregion
|
|
581
|
-
export { D as default };
|