@web-utils/component 2.0.13 → 2.2.0
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/address-input/index.mjs +113 -0
- package/address-input/style.css +1 -0
- package/affix/index.mjs +102 -0
- package/affix/style.css +1 -0
- package/aside-menu/index.mjs +58 -0
- package/aside-menu/style.css +1 -0
- package/avatar/index.mjs +106 -0
- package/avatar/style.css +1 -0
- package/awesome-button/index.mjs +112 -0
- package/base.css +1 -0
- package/capsule-tab/index.mjs +52 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.mjs +126 -0
- package/card/style.css +1 -0
- package/carousel/index.mjs +70 -0
- package/carousel/style.css +1 -0
- package/chat/index.mjs +576 -0
- package/chat/style.css +1 -0
- package/chunk-file-uploader/index.mjs +121 -0
- package/chunk-file-uploader/style.css +1 -0
- package/chunks/FormTemp.FX8xmbVB.mjs +165 -0
- package/chunks/confirmable-mixin.rTUMhoRH.mjs +106 -0
- package/chunks/dataformat.X_61lMA7.mjs +158 -0
- package/chunks/dic.6tk91Dmq.mjs +130 -0
- package/chunks/event.NHA7rYFE.mjs +236 -0
- package/chunks/form-input-mixin.IKogWBfn.mjs +24 -0
- package/chunks/form-item-mixin.BilKDUlK.mjs +140 -0
- package/{dist/chunks/822300f3.js → chunks/form-pick-mixin.y-qhZJi6.mjs} +3 -3
- package/chunks/index.LGsb2aDq.mjs +185 -0
- package/chunks/init.Ac4dKUJB.mjs +122 -0
- package/{dist/chunks/44b78389.js → chunks/input-number-mixin.GE2zr_3s.mjs} +8 -8
- package/chunks/json-beautifier.fUZFSW5j.mjs +126 -0
- package/chunks/packages.v6r2Hr7E.mjs +58 -0
- package/chunks/permission.E9kZbW48.mjs +16 -0
- package/chunks/slot.j1uMmBnG.mjs +27 -0
- package/chunks/tab-mixin.tM9jcRT8.mjs +81 -0
- package/chunks/util.C2Bhx22L.mjs +259 -0
- package/chunks/vueComponentNormalizer.JwmUNtgn.mjs +32 -0
- package/code-mirror-editor/index.mjs +313 -0
- package/code-mirror-editor/style.css +1 -0
- package/color-picker/index.mjs +128 -0
- package/comment/index.mjs +90 -0
- package/comment/style.css +1 -0
- package/confirm-button/index.mjs +57 -0
- package/confirmable/index.mjs +28 -0
- package/context-menu/index.mjs +255 -0
- package/context-menu/style.css +1 -0
- package/count-up/index.mjs +131 -0
- package/custom-scrollbar/index.mjs +116 -0
- package/data-box/index.mjs +97 -0
- package/data-box/style.css +1 -0
- package/data-card/index.mjs +98 -0
- package/data-card/style.css +1 -0
- package/data-cardtext/index.mjs +82 -0
- package/data-cardtext/style.css +1 -0
- package/data-display/index.mjs +97 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.mjs +104 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.mjs +106 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.mjs +99 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.mjs +93 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.mjs +152 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.mjs +84 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.mjs +97 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.mjs +96 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.mjs +137 -0
- package/data-tabs/index.mjs +94 -0
- package/data-tabs/style.css +1 -0
- package/dialog-form/index.mjs +148 -0
- package/dialog-form/style.css +1 -0
- package/dynamic-table/index.mjs +195 -0
- package/dynamic-table/style.css +1 -0
- package/e-charts/index.mjs +216 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.mjs +136 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.mjs +141 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.mjs +844 -0
- package/editable-tree/style.css +1 -0
- package/egd-collapse/index.mjs +79 -0
- package/egd-collapse-item/index.mjs +134 -0
- package/element-dialog/index.mjs +296 -0
- package/element-dialog/style.css +1 -0
- package/empty-view/index.mjs +69 -0
- package/empty-view/style.css +1 -0
- package/error-view/index.mjs +61 -0
- package/error-view/style.css +1 -0
- package/flex-column/index.mjs +62 -0
- package/flex-item/index.mjs +81 -0
- package/flex-row/index.mjs +62 -0
- package/flex-scroller/index.mjs +47 -0
- package/flex-scroller/style.css +1 -0
- package/flow/index.mjs +277 -0
- package/flow/style.css +1 -0
- package/flow-designer/index.mjs +10184 -0
- package/flow-designer/style.css +1 -0
- package/flow-node/index.mjs +102 -0
- package/flow-viewer/index.mjs +209 -0
- package/flow-viewer/style.css +1 -0
- package/form-block/index.mjs +156 -0
- package/form-block/style.css +1 -0
- package/form-button/index.mjs +58 -0
- package/form-cascader/index.mjs +163 -0
- package/form-checkbox-group/index.mjs +203 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.mjs +191 -0
- package/form-holder/index.mjs +129 -0
- package/form-input/index.mjs +117 -0
- package/form-input-email/index.mjs +108 -0
- package/form-input-id-card/index.mjs +115 -0
- package/form-input-number/index.mjs +134 -0
- package/form-input-number/style.css +1 -0
- package/form-input-phone-number/index.mjs +109 -0
- package/form-input-tag/index.mjs +108 -0
- package/form-input-time/index.mjs +135 -0
- package/form-item/index.mjs +147 -0
- package/form-item/style.css +1 -0
- package/form-item-config-provider/index.mjs +63 -0
- package/form-item-group/index.mjs +169 -0
- package/form-item-group/style.css +1 -0
- package/form-radio-group/index.mjs +181 -0
- package/form-radio-group/style.css +1 -0
- package/form-select/index.mjs +165 -0
- package/form-switch/index.mjs +108 -0
- package/form-textarea/index.mjs +113 -0
- package/form-view/index.mjs +371 -0
- package/form-view/style.css +1 -0
- package/fy-array/index.mjs +158 -0
- package/fy-array/style.css +1 -0
- package/fy-article/index.mjs +93 -0
- package/fy-article/style.css +1 -0
- package/fy-cascader/index.mjs +132 -0
- package/fy-checkbox/index.mjs +117 -0
- package/fy-checkbox/style.css +1 -0
- package/fy-code/index.mjs +66 -0
- package/fy-curd/index.mjs +3119 -0
- package/fy-curd/style.css +1 -0
- package/fy-date/index.mjs +84 -0
- package/fy-date/style.css +1 -0
- package/fy-draggable/index.mjs +382 -0
- package/fy-draggable/style.css +1 -0
- package/fy-dynamic/index.mjs +337 -0
- package/fy-dynamic/style.css +1 -0
- package/fy-empty/index.mjs +59 -0
- package/fy-empty/style.css +1 -0
- package/fy-form/index.mjs +993 -0
- package/fy-form/style.css +1 -0
- package/fy-form-design/index.mjs +7483 -0
- package/fy-form-design/style.css +1 -0
- package/fy-input/index.mjs +171 -0
- package/fy-input-color/index.mjs +101 -0
- package/fy-input-icon/index.mjs +169 -0
- package/fy-input-icon/style.css +1 -0
- package/fy-input-map/index.mjs +279 -0
- package/fy-input-map/style.css +1 -0
- package/fy-input-number/index.mjs +87 -0
- package/fy-input-table/index.mjs +172 -0
- package/fy-input-table/style.css +1 -0
- package/fy-input-tree/index.mjs +267 -0
- package/fy-input-tree/style.css +1 -0
- package/fy-progress/index.mjs +60 -0
- package/fy-radio/index.mjs +70 -0
- package/fy-radio/style.css +1 -0
- package/fy-rate/index.mjs +106 -0
- package/fy-rate/style.css +1 -0
- package/fy-select/index.mjs +225 -0
- package/fy-select/style.css +1 -0
- package/fy-slider/index.mjs +79 -0
- package/fy-switch/index.mjs +74 -0
- package/fy-tabs/index.mjs +92 -0
- package/fy-time/index.mjs +95 -0
- package/fy-title/index.mjs +40 -0
- package/fy-title/style.css +1 -0
- package/fy-tree/index.mjs +433 -0
- package/fy-tree/style.css +1 -0
- package/fy-u-editor/index.mjs +398 -0
- package/fy-u-editor/style.css +1 -0
- package/fy-upload/index.mjs +592 -0
- package/fy-upload/style.css +1 -0
- package/guide-steps/index.mjs +94 -0
- package/guide-steps/style.css +1 -0
- package/highlight-j-s/index.mjs +76 -0
- package/highlight-j-s/style.css +1 -0
- package/icon-card/index.mjs +62 -0
- package/icon-card/style.css +1 -0
- package/icon-temp/index.mjs +50 -0
- package/icon-temp/style.css +1 -0
- package/iframe-window/index.mjs +61 -0
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.mjs +249 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.mjs +260 -0
- package/image-preview/style.css +1 -0
- package/image-viewer/index.mjs +95 -0
- package/image-viewer/style.css +1 -0
- package/index.mjs +627 -0
- package/input-number/index.mjs +274 -0
- package/input-number/style.css +1 -0
- package/input-number-range/index.mjs +110 -0
- package/input-number-range/style.css +1 -0
- package/{dist/components/j-s-x-component/index.js → j-s-x-component/index.mjs} +4 -4
- package/keep-view-alive/index.mjs +123 -0
- package/keyboard/index.mjs +384 -0
- package/keyboard/style.css +1 -0
- package/license/index.mjs +134 -0
- package/loading-view/index.mjs +61 -0
- package/loading-view/style.css +1 -0
- package/login/index.mjs +250 -0
- package/login/style.css +1 -0
- package/monaco-editor/index.mjs +197 -0
- package/name-avatar/index.mjs +66 -0
- package/name-avatar/style.css +1 -0
- package/nav-bar/index.mjs +52 -0
- package/nav-bar/style.css +1 -0
- package/not-implement/index.mjs +35 -0
- package/not-implement/style.css +1 -0
- package/notice/index.mjs +143 -0
- package/notice/style.css +1 -0
- package/package.json +41 -148
- package/page/index.mjs +40 -0
- package/page/style.css +1 -0
- package/page-header/index.mjs +56 -0
- package/page-header/style.css +1 -0
- package/page-index/index.mjs +175 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.mjs +141 -0
- package/page-skeleton/index.mjs +67 -0
- package/page-skeleton/style.css +1 -0
- package/page-skeleton-new/index.mjs +98 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.mjs +478 -0
- package/pageable-table/style.css +1 -0
- package/pageable-view/index.mjs +378 -0
- package/pageable-view/style.css +1 -0
- package/photo-swipe/index.mjs +129 -0
- package/present-view/index.mjs +365 -0
- package/present-view/style.css +1 -0
- package/queue/index.mjs +71 -0
- package/queue/style.css +1 -0
- package/record-video/index.mjs +173 -0
- package/record-video/style.css +1 -0
- package/resize-observer/index.mjs +62 -0
- package/resize-observer/style.css +1 -0
- package/search/index.mjs +143 -0
- package/search/style.css +1 -0
- package/search-popover/index.mjs +412 -0
- package/search-popover/style.css +1 -0
- package/sign/index.mjs +132 -0
- package/sign/style.css +1 -0
- package/sign-panel/index.mjs +255 -0
- package/sign-panel/style.css +1 -0
- package/skeleton/index.mjs +82 -0
- package/skeleton/style.css +1 -0
- package/split-pane/index.mjs +306 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.mjs +84 -0
- package/stateful/style.css +1 -0
- package/static-pageable-table/index.mjs +92 -0
- package/static-pageable-table/style.css +1 -0
- package/swiper/index.mjs +183 -0
- package/swiper/style.css +1 -0
- package/tab/index.mjs +147 -0
- package/tab/style.css +1 -0
- package/tab-item/index.mjs +73 -0
- package/table-column/index.mjs +102 -0
- package/table-view/index.mjs +390 -0
- package/table-view/style.css +1 -0
- package/tag-render/index.mjs +116 -0
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.mjs +108 -0
- package/text-ellipsis/style.css +1 -0
- package/{dist/components/tinymce-wrapper/index.js → tinymce-editor/index.mjs} +479 -133
- package/tinymce-editor/style.css +1 -0
- package/toolbar/index.mjs +217 -0
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.mjs +108 -0
- package/toolbar-button/style.css +1 -0
- package/verify/index.mjs +80 -0
- package/verify/style.css +1 -0
- package/vue-cron/index.mjs +1410 -0
- package/vue-cron/style.css +1 -0
- package/vue-qr-code/index.mjs +83 -0
- package/vue-quill-editor/index.mjs +117 -0
- package/vue-quill-editor/style.css +1 -0
- package/vue-tags-input/index.mjs +553 -0
- package/vue-tags-input/style.css +1 -0
- package/vue-tree-select/index.mjs +2881 -0
- package/vue-tree-select/style.css +1 -0
- package/vue-video-player/index.mjs +192 -0
- package/vue-video-player/style.css +1 -0
- package/watermark/index.mjs +95 -0
- package/watermark/style.css +1 -0
- package/web-types.json +14033 -2752
- package/x-input-tag/index.mjs +203 -0
- package/x-input-tag/style.css +1 -0
- package/README.md +0 -27
- package/dist/chunks/3d28cc08.js +0 -57
- package/dist/chunks/5d33812d.js +0 -147
- package/dist/chunks/9d848bf6.js +0 -99
- package/dist/chunks/a0bb327b.js +0 -96
- package/dist/chunks/a8891d2c.js +0 -30
- package/dist/chunks/c69d5628.js +0 -248
- package/dist/chunks/de9fe802.js +0 -24
- package/dist/chunks/e1939731.js +0 -17
- package/dist/components/address-input/index.js +0 -126
- package/dist/components/address-input/style.css +0 -15
- package/dist/components/aside-menu/index.js +0 -64
- package/dist/components/aside-menu/style.css +0 -9
- package/dist/components/awesome-button/index.js +0 -85
- package/dist/components/base.css +0 -66
- package/dist/components/capsule-tab/index.js +0 -58
- package/dist/components/capsule-tab/style.css +0 -32
- package/dist/components/chunk-file-uploader/index.js +0 -153
- package/dist/components/chunk-file-uploader/style.css +0 -4
- package/dist/components/chunk-file-uploader-button/index.js +0 -66
- package/dist/components/chunk-file-uploader-button/style.css +0 -17
- package/dist/components/chunk-file-uploader-drop/index.js +0 -79
- package/dist/components/chunk-file-uploader-drop/style.css +0 -12
- package/dist/components/chunk-file-uploader-file/index.js +0 -388
- package/dist/components/chunk-file-uploader-file/style.css +0 -125
- package/dist/components/chunk-file-uploader-files/index.js +0 -55
- package/dist/components/chunk-file-uploader-files/style.css +0 -9
- package/dist/components/chunk-file-uploader-list/index.js +0 -56
- package/dist/components/chunk-file-uploader-list/style.css +0 -9
- package/dist/components/chunk-file-uploader-un-support/index.js +0 -59
- package/dist/components/chunk-file-uploader-un-support/style.css +0 -6
- package/dist/components/code-mirror-editor/index.js +0 -338
- package/dist/components/code-mirror-editor/style.css +0 -17
- package/dist/components/color-picker/index.js +0 -129
- package/dist/components/confirm-button/index.js +0 -59
- package/dist/components/confirmable/index.js +0 -29
- package/dist/components/context-menu/index.js +0 -265
- package/dist/components/context-menu/style.css +0 -88
- package/dist/components/custom-scrollbar/index.js +0 -167
- package/dist/components/data-table-picker/index.js +0 -156
- package/dist/components/dynamic-table/index.js +0 -219
- package/dist/components/dynamic-table/style.css +0 -30
- package/dist/components/e-charts/index.js +0 -310
- package/dist/components/e-charts/style.css +0 -10
- package/dist/components/editable-progress/index.js +0 -174
- package/dist/components/editable-progress/style.css +0 -37
- package/dist/components/editable-tree/index.js +0 -1004
- package/dist/components/editable-tree/style.css +0 -82
- package/dist/components/egd-collapse/index.js +0 -92
- package/dist/components/egd-collapse-item/index.js +0 -148
- package/dist/components/element-dialog/index.js +0 -295
- package/dist/components/element-dialog/style.css +0 -102
- package/dist/components/empty-view/index.js +0 -75
- package/dist/components/empty-view/style.css +0 -17
- package/dist/components/error-view/index.js +0 -67
- package/dist/components/error-view/style.css +0 -17
- package/dist/components/flex-column/index.js +0 -65
- package/dist/components/flex-item/index.js +0 -94
- package/dist/components/flex-row/index.js +0 -65
- package/dist/components/flex-scroller/index.js +0 -53
- package/dist/components/flex-scroller/style.css +0 -20
- package/dist/components/form-button/index.js +0 -84
- package/dist/components/form-cascader/index.js +0 -161
- package/dist/components/form-checkbox-group/index.js +0 -217
- package/dist/components/form-checkbox-group/style.css +0 -51
- package/dist/components/form-date-picker/index.js +0 -244
- package/dist/components/form-holder/index.js +0 -97
- package/dist/components/form-input/index.js +0 -112
- package/dist/components/form-input-email/index.js +0 -109
- package/dist/components/form-input-id-card/index.js +0 -110
- package/dist/components/form-input-number/index.js +0 -130
- package/dist/components/form-input-number/style.css +0 -12
- package/dist/components/form-input-phone-number/index.js +0 -104
- package/dist/components/form-input-time/index.js +0 -130
- package/dist/components/form-item/index.js +0 -162
- package/dist/components/form-item/style.css +0 -11
- package/dist/components/form-item-config-provider/index.js +0 -64
- package/dist/components/form-item-group/index.js +0 -195
- package/dist/components/form-item-group/style.css +0 -30
- package/dist/components/form-radio-group/index.js +0 -189
- package/dist/components/form-radio-group/style.css +0 -53
- package/dist/components/form-select/index.js +0 -169
- package/dist/components/form-switch/index.js +0 -103
- package/dist/components/form-textarea/index.js +0 -108
- package/dist/components/form-view/index.js +0 -410
- package/dist/components/form-view/style.css +0 -158
- package/dist/components/guide-steps/index.js +0 -108
- package/dist/components/guide-steps/style.css +0 -34
- package/dist/components/icon-card/index.js +0 -68
- package/dist/components/icon-card/style.css +0 -56
- package/dist/components/iframe-window/index.js +0 -67
- package/dist/components/iframe-window/style.css +0 -20
- package/dist/components/image-viewer/index.js +0 -113
- package/dist/components/image-viewer/style.css +0 -21
- package/dist/components/input-number/index.js +0 -340
- package/dist/components/input-number/style.css +0 -15
- package/dist/components/input-number-range/index.js +0 -122
- package/dist/components/input-number-range/style.css +0 -12
- package/dist/components/keep-view-alive/index.js +0 -166
- package/dist/components/loading-view/index.js +0 -67
- package/dist/components/loading-view/style.css +0 -17
- package/dist/components/nav-bar/index.js +0 -62
- package/dist/components/nav-bar/style.css +0 -17
- package/dist/components/not-implement/index.js +0 -43
- package/dist/components/not-implement/style.css +0 -15
- package/dist/components/page/index.js +0 -46
- package/dist/components/page/style.css +0 -12
- package/dist/components/page-header/index.js +0 -62
- package/dist/components/page-header/style.css +0 -14
- package/dist/components/page-index/index.js +0 -172
- package/dist/components/page-index/style.css +0 -23
- package/dist/components/page-index-top/index.js +0 -134
- package/dist/components/page-skeleton/index.js +0 -62
- package/dist/components/page-skeleton/style.css +0 -23
- package/dist/components/page-skeleton-new/index.js +0 -104
- package/dist/components/page-skeleton-new/style.css +0 -42
- package/dist/components/pageable-table/index.js +0 -496
- package/dist/components/pageable-table/style.css +0 -72
- package/dist/components/pageable-view/index.js +0 -398
- package/dist/components/pageable-view/style.css +0 -69
- package/dist/components/photo-swipe/index.js +0 -228
- package/dist/components/photo-swipe/style.css +0 -20
- package/dist/components/resize-observer/index.js +0 -96
- package/dist/components/resize-observer/style.css +0 -31
- package/dist/components/search-popover/index.js +0 -449
- package/dist/components/search-popover/style.css +0 -93
- package/dist/components/sign-panel/index.js +0 -292
- package/dist/components/sign-panel/style.css +0 -97
- package/dist/components/split-pane/index.js +0 -270
- package/dist/components/split-pane/style.css +0 -100
- package/dist/components/stateful/index.js +0 -87
- package/dist/components/stateful/style.css +0 -33
- package/dist/components/static-pageable-table/index.js +0 -99
- package/dist/components/static-pageable-table/style.css +0 -9
- package/dist/components/swiper/index.js +0 -223
- package/dist/components/swiper/style.css +0 -43
- package/dist/components/tab/index.js +0 -163
- package/dist/components/tab/style.css +0 -122
- package/dist/components/tab-item/index.js +0 -78
- package/dist/components/table-column/index.js +0 -91
- package/dist/components/table-view/index.js +0 -434
- package/dist/components/table-view/style.css +0 -95
- package/dist/components/tag-render/index.js +0 -111
- package/dist/components/tag-render/style.css +0 -33
- package/dist/components/tinymce-editor/index.js +0 -189
- package/dist/components/tinymce-editor/style.css +0 -43
- package/dist/components/tinymce-wrapper/style.css +0 -36
- package/dist/components/toolbar/index.js +0 -238
- package/dist/components/toolbar/style.css +0 -39
- package/dist/components/toolbar-button/index.js +0 -97
- package/dist/components/toolbar-button/style.css +0 -21
- package/dist/components/trigger/index.js +0 -78
- package/dist/components/vue-tags-input/index.js +0 -559
- package/dist/components/vue-tags-input/style.css +0 -682
- package/dist/components/watermark/index.js +0 -75
- package/dist/components/watermark/style.css +0 -11
- package/dist/components/x-dialog/index.js +0 -199
- package/dist/components/x-dialog/style.css +0 -15
- package/dist/index.css +0 -2972
- package/dist/index.es.js +0 -15689
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.process-panel__container{box-sizing:border-box;border-left:1px solid #eee;max-height:100%;padding:0 8px;transition:width .25s ease-in;overflow-x:hidden;overflow-y:auto;box-shadow:0 0 8px #ccc}.process-panel__container.hide:hover{background-color:#e8f4ff}.process-panel__container.show{overflow-x:auto}.process-panel__container .open-properties-handel{color:#606266;text-align:center;cursor:pointer;font-size:20px}.process-panel__container .open-properties-handel:hover{color:#1682e6}.process-panel__container .element-property{align-items:flex-start;width:100%;margin:8px 0;display:flex}.process-panel__container .element-property .element-property__label{box-sizing:border-box;text-align:right;width:90px;padding-right:12px;font-size:14px;line-height:32px;display:block;overflow:hidden}.process-panel__container .element-property .element-property__value{flex:1;line-height:32px}.process-panel__container .element-property .el-form-item{width:100%;margin-bottom:0;padding-bottom:18px}.process-panel__container .list-property{flex-direction:column}.process-panel__container .list-property .element-listener-item{grid-column-gap:8px;grid-template-columns:16px auto 32px 32px;width:100%;display:inline-grid}.process-panel__container .list-property .element-listener-item+.element-listener-item{margin-top:8px}.process-panel__container .el-collapse-item__content{padding-bottom:0}.process-panel__container .el-input.is-disabled .el-input__inner{color:#999}.process-panel__container .el-form-item.el-form-item--mini{margin-bottom:0}.process-panel__container .el-form-item.el-form-item--mini+.el-form-item{margin-top:16px}.panel-tab__title{padding:0 8px;font-size:1.1em;font-weight:600;line-height:1.2em}.panel-tab__title i{margin-right:8px;font-size:1.2em}.panel-tab__content{box-sizing:border-box;border-top:1px solid #eee;width:100%;padding:8px 16px}.panel-tab__content .panel-tab__content--title{justify-content:space-between;padding-bottom:8px;display:flex}.panel-tab__content .panel-tab__content--title span{text-align:left;flex:1}.listener-filed__title{justify-content:space-between;align-items:center;width:100%;margin-top:0;display:inline-flex}.listener-filed__title span{text-align:left;width:200px;font-size:14px}.listener-filed__title i{margin-right:8px}.element-drawer__button{justify-content:space-around;width:100%;margin-top:8px;display:inline-flex}.element-drawer__button>.el-button{width:100%}.flow-drawer .el-drawer__body{padding:10px}.my-process-designer{box-sizing:border-box;flex-direction:column;flex:1;width:100%;height:100%;display:flex}.my-process-designer .bts-toggle-mode{display:none}.my-process-designer .djs-palette.open .djs-palette-entries div[class^=bpmn-icon-]:before,.my-process-designer .djs-palette.open .djs-palette-entries div[class*=bpmn-icon-]:before{line-height:unset}.my-process-designer .djs-palette.open .djs-palette-entries div.entry{position:relative}.my-process-designer .djs-palette.open .djs-palette-entries div.entry:hover:after{z-index:100;box-sizing:border-box;font-variant:normal;text-transform:none;-webkit-text-decoration:inherit;text-decoration:inherit;vertical-align:text-bottom;content:attr(title);background:#fafafa;border:1px solid #ccc;border-radius:4px;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:0 16px;font-size:.5em;display:inline-block;position:absolute;top:0;bottom:0;right:-10px;overflow:hidden;transform:translate(100%);box-shadow:0 0 6px #eee}.my-process-designer .my-process-designer__header{width:100%;min-height:36px}.my-process-designer .my-process-designer__header .el-button{text-align:center}.my-process-designer .my-process-designer__header .el-button-group{margin:4px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button{text-align:left;width:100%;padding-left:8px;padding-right:8px}.my-process-designer .my-process-designer__header .el-tooltip__popper .el-button:hover{color:#fff;background:rgba(64,158,255,.8)}.my-process-designer .my-process-designer__header .align{position:relative}.my-process-designer .my-process-designer__header .align i:after{content:"|";position:absolute;transform:rotate(90deg)translate(200%,60%)}.my-process-designer .my-process-designer__header .align.align-left i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-right i{transform:rotate(-90deg)}.my-process-designer .my-process-designer__header .align.align-top i{transform:rotate(180deg)}.my-process-designer .my-process-designer__header .align.align-bottom i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-center i{transform:rotate(90deg)}.my-process-designer .my-process-designer__header .align.align-center i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__header .align.align-middle i{transform:rotate(0)}.my-process-designer .my-process-designer__header .align.align-middle i:after{transform:rotate(90deg)translateY(60%)}.my-process-designer .my-process-designer__container{flex:1;width:100%;display:inline-flex}.my-process-designer .my-process-designer__container .my-process-designer__canvas{flex:1;height:100%;position:relative}.my-process-designer .my-process-designer__container .my-process-designer__canvas div.toggle-mode{display:none}.my-process-designer .my-process-designer__container .my-process-designer__property-panel{z-index:10;height:100%;overflow-x:scroll;overflow-y:auto}.my-process-designer .my-process-designer__container .my-process-designer__property-panel *{box-sizing:border-box}.flow-designer{background-color:#fff;width:100%;height:100%;display:flex}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { s as n } from "../chunks/util.C2Bhx22L.mjs";
|
|
2
|
+
import { n as r } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
|
+
var l = function() {
|
|
4
|
+
var e = this, o = e.$createElement, t = e._self._c || o;
|
|
5
|
+
return t("div", {
|
|
6
|
+
ref: "node",
|
|
7
|
+
style: e.flowNodeContainer,
|
|
8
|
+
attrs: {
|
|
9
|
+
left: e.node.left,
|
|
10
|
+
top: e.node.top,
|
|
11
|
+
disabled: "",
|
|
12
|
+
mask: !1
|
|
13
|
+
},
|
|
14
|
+
on: {
|
|
15
|
+
mouseenter: e.showDelete,
|
|
16
|
+
mouseleave: e.hideDelete,
|
|
17
|
+
mouseup: e.changeNodeSite
|
|
18
|
+
}
|
|
19
|
+
}, [t("div", {
|
|
20
|
+
class: ["avue-flow__node", {
|
|
21
|
+
active: e.active === e.node.id
|
|
22
|
+
}]
|
|
23
|
+
}, [t("div", {
|
|
24
|
+
staticClass: "avue-flow__node-header"
|
|
25
|
+
}, [t("i", {
|
|
26
|
+
staticClass: "el-icon-rank",
|
|
27
|
+
class: e.b("node-drag")
|
|
28
|
+
}), e._t("header", null, {
|
|
29
|
+
node: e.node
|
|
30
|
+
})], 2), t("div", {
|
|
31
|
+
staticClass: "avue-flow__node-body"
|
|
32
|
+
}, [e._t("default", null, {
|
|
33
|
+
node: e.node
|
|
34
|
+
})], 2)])]);
|
|
35
|
+
}, a = [];
|
|
36
|
+
const i = {
|
|
37
|
+
name: "FlowNode",
|
|
38
|
+
props: {
|
|
39
|
+
active: [String, Number],
|
|
40
|
+
index: [String, Number],
|
|
41
|
+
node: Object
|
|
42
|
+
},
|
|
43
|
+
data() {
|
|
44
|
+
return {
|
|
45
|
+
// 控制节点操作显示
|
|
46
|
+
mouseEnter: !1
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
computed: {
|
|
50
|
+
// 节点容器样式
|
|
51
|
+
flowNodeContainer: {
|
|
52
|
+
get() {
|
|
53
|
+
return {
|
|
54
|
+
position: "absolute",
|
|
55
|
+
width: "200px",
|
|
56
|
+
top: n(this.node.top),
|
|
57
|
+
left: n(this.node.left),
|
|
58
|
+
boxShadow: this.mouseEnter ? "#66a6e0 0px 0px 12px 0px" : "",
|
|
59
|
+
backgroundColor: "transparent"
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
// 鼠标进入
|
|
66
|
+
showDelete() {
|
|
67
|
+
this.mouseEnter = !0;
|
|
68
|
+
},
|
|
69
|
+
// 鼠标离开
|
|
70
|
+
hideDelete() {
|
|
71
|
+
this.mouseEnter = !1;
|
|
72
|
+
},
|
|
73
|
+
// 鼠标移动后抬起
|
|
74
|
+
changeNodeSite() {
|
|
75
|
+
this.node.left === this.$refs.node.style.left && this.node.top === this.$refs.node.style.top || this.$emit("changeNodeSite", {
|
|
76
|
+
index: this.index,
|
|
77
|
+
left: Number(this.$refs.node.style.left.replace("px", "")),
|
|
78
|
+
top: Number(this.$refs.node.style.top.replace("px", ""))
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}, s = {};
|
|
83
|
+
var d = /* @__PURE__ */ r(
|
|
84
|
+
i,
|
|
85
|
+
l,
|
|
86
|
+
a,
|
|
87
|
+
!1,
|
|
88
|
+
u,
|
|
89
|
+
null,
|
|
90
|
+
null,
|
|
91
|
+
null
|
|
92
|
+
);
|
|
93
|
+
function u(e) {
|
|
94
|
+
for (let o in s)
|
|
95
|
+
this[o] = s[o];
|
|
96
|
+
}
|
|
97
|
+
const p = /* @__PURE__ */ function() {
|
|
98
|
+
return d.exports;
|
|
99
|
+
}();
|
|
100
|
+
export {
|
|
101
|
+
p as default
|
|
102
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
var b = Object.defineProperty, x = Object.defineProperties;
|
|
2
|
+
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
|
+
var V = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var u = (e, i, t) => i in e ? b(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, w = (e, i) => {
|
|
6
|
+
for (var t in i || (i = {}))
|
|
7
|
+
V.call(i, t) && u(e, t, i[t]);
|
|
8
|
+
if (g)
|
|
9
|
+
for (var t of g(i))
|
|
10
|
+
E.call(i, t) && u(e, t, i[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, y = (e, i) => x(e, M(i));
|
|
13
|
+
var v = (e, i, t) => new Promise((s, n) => {
|
|
14
|
+
var l = (r) => {
|
|
15
|
+
try {
|
|
16
|
+
a(t.next(r));
|
|
17
|
+
} catch (o) {
|
|
18
|
+
n(o);
|
|
19
|
+
}
|
|
20
|
+
}, h = (r) => {
|
|
21
|
+
try {
|
|
22
|
+
a(t.throw(r));
|
|
23
|
+
} catch (o) {
|
|
24
|
+
n(o);
|
|
25
|
+
}
|
|
26
|
+
}, a = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(l, h);
|
|
27
|
+
a((t = t.apply(e, i)).next());
|
|
28
|
+
});
|
|
29
|
+
import $ from "bpmn-js/lib/NavigatedViewer";
|
|
30
|
+
import d from "diagram-js/lib/navigation/zoomscroll/ZoomScroll";
|
|
31
|
+
import { create as c, attr as p, append as m } from "tiny-svg";
|
|
32
|
+
import { query as A } from "min-dom";
|
|
33
|
+
import S from "@web-utils/component/easy-popup";
|
|
34
|
+
import "@web-utils/component/easy-popup/style.css";
|
|
35
|
+
import { n as F } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
36
|
+
var B = function() {
|
|
37
|
+
var e = this, i = e.$createElement, t = e._self._c || i;
|
|
38
|
+
return t("div", {
|
|
39
|
+
ref: "container",
|
|
40
|
+
staticClass: "flow-viewer flow-background-image",
|
|
41
|
+
style: {
|
|
42
|
+
"--highlight-color": e.highlightColor
|
|
43
|
+
}
|
|
44
|
+
}, [t("EasyPopup", {
|
|
45
|
+
ref: "popup",
|
|
46
|
+
attrs: {
|
|
47
|
+
"append-to-body": "",
|
|
48
|
+
"flex-column": "",
|
|
49
|
+
offset: {
|
|
50
|
+
x: 6,
|
|
51
|
+
y: 6
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}, [e._t("default", function() {
|
|
55
|
+
return [e._v(" " + e._s(e.element) + " ")];
|
|
56
|
+
}, {
|
|
57
|
+
element: e.element
|
|
58
|
+
})], 2)], 1);
|
|
59
|
+
}, C = [];
|
|
60
|
+
const f = d.prototype._handleWheel, P = {
|
|
61
|
+
__init__: ["zoomScroll"],
|
|
62
|
+
zoomScroll: ["type", d]
|
|
63
|
+
}, W = {
|
|
64
|
+
name: "FlowViewer",
|
|
65
|
+
components: {
|
|
66
|
+
EasyPopup: S
|
|
67
|
+
},
|
|
68
|
+
props: {
|
|
69
|
+
xml: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: !0
|
|
72
|
+
},
|
|
73
|
+
options: {
|
|
74
|
+
type: Object
|
|
75
|
+
},
|
|
76
|
+
activities: {
|
|
77
|
+
type: Array,
|
|
78
|
+
default: () => []
|
|
79
|
+
},
|
|
80
|
+
historicActivities: {
|
|
81
|
+
type: Array,
|
|
82
|
+
default: () => []
|
|
83
|
+
},
|
|
84
|
+
highlightColor: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: "rgb(0 190 0 / 100%)"
|
|
87
|
+
},
|
|
88
|
+
ctrlKey: Boolean,
|
|
89
|
+
nodePopup: Boolean,
|
|
90
|
+
events: Array
|
|
91
|
+
},
|
|
92
|
+
data() {
|
|
93
|
+
return {
|
|
94
|
+
element: null
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
watch: {
|
|
98
|
+
xml(e) {
|
|
99
|
+
var i;
|
|
100
|
+
(i = this.bpmnViewer) == null || i.importXML(e);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
mounted() {
|
|
104
|
+
d.prototype._handleWheel = this.ctrlKey ? f : function(e) {
|
|
105
|
+
const { target: i, deltaMode: t, clientX: s, clientY: n, deltaX: l, deltaY: h } = e;
|
|
106
|
+
f.call(this, {
|
|
107
|
+
target: i,
|
|
108
|
+
deltaMode: t,
|
|
109
|
+
clientX: s,
|
|
110
|
+
clientY: n,
|
|
111
|
+
deltaX: l,
|
|
112
|
+
deltaY: h,
|
|
113
|
+
preventDefault() {
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
},
|
|
116
|
+
ctrlKey: !0
|
|
117
|
+
});
|
|
118
|
+
}, this.bpmnViewer = new $(y(w({}, this.options), {
|
|
119
|
+
container: this.$refs.container,
|
|
120
|
+
additionalModules: [P]
|
|
121
|
+
})), this.bpmnViewer.on("import.done", (e) => {
|
|
122
|
+
const i = e.error, t = e.warnings;
|
|
123
|
+
i ? this.$emit("error", i) : this.$emit("shown", t), this.canvas = this.bpmnViewer.get("canvas"), this.fitViewportCenter(), this.elementRegistry = this.bpmnViewer.get("elementRegistry");
|
|
124
|
+
const s = this.bpmnViewer.get("eventBus");
|
|
125
|
+
this.events && this.events.forEach((o) => {
|
|
126
|
+
s.on(o, (k) => {
|
|
127
|
+
this.$emit(o.replace(".", "-"), k.element);
|
|
128
|
+
});
|
|
129
|
+
}), this.nodePopup && s.on("element.mousemove", (o) => {
|
|
130
|
+
o.element.type === "bpmn:UserTask" && requestAnimationFrame(() => v(this, null, function* () {
|
|
131
|
+
this.element = o.element, yield this.$nextTick(), this.$refs.popup.show(o.originalEvent);
|
|
132
|
+
}));
|
|
133
|
+
}), this.nodePopup && s.on("element.out", () => {
|
|
134
|
+
this.$refs.popup.hide(), this.element = {};
|
|
135
|
+
}), this.highlightFlow(this.historicActivities, this.activities);
|
|
136
|
+
const n = c("marker");
|
|
137
|
+
p(n, {
|
|
138
|
+
id: "sequenceflow-arrow-green",
|
|
139
|
+
viewBox: "0 0 20 20",
|
|
140
|
+
refX: "11",
|
|
141
|
+
refY: "10",
|
|
142
|
+
markerWidth: "10",
|
|
143
|
+
markerHeight: "10",
|
|
144
|
+
orient: "auto"
|
|
145
|
+
});
|
|
146
|
+
const l = c("path");
|
|
147
|
+
p(l, {
|
|
148
|
+
d: "M 1 5 L 11 10 L 1 15 Z",
|
|
149
|
+
style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 1px; fill: var(--highlight-color);"
|
|
150
|
+
}), m(n, l);
|
|
151
|
+
const h = c("marker");
|
|
152
|
+
p(h, {
|
|
153
|
+
id: "conditional-default-flow-marker-green",
|
|
154
|
+
viewBox: "0 0 20 20",
|
|
155
|
+
refX: "0",
|
|
156
|
+
refY: "10",
|
|
157
|
+
markerWidth: "10",
|
|
158
|
+
markerHeight: "10",
|
|
159
|
+
orient: "auto"
|
|
160
|
+
});
|
|
161
|
+
const a = c("path");
|
|
162
|
+
p(a, {
|
|
163
|
+
d: "M 6 4 L 10 16",
|
|
164
|
+
style: "stroke-linecap: round; stroke-linejoin: round; stroke: var(--highlight-color); stroke-width: 2px; fill: var(--highlight-color);"
|
|
165
|
+
}), m(h, a);
|
|
166
|
+
const r = A("defs", this.$el);
|
|
167
|
+
m(r, n), m(r, h);
|
|
168
|
+
}), this.bpmnViewer.importXML(this.xml), this.$watch(() => ({
|
|
169
|
+
activities: this.activities,
|
|
170
|
+
historicActivities: this.historicActivities
|
|
171
|
+
}), ({ activities: e, historicActivities: i }) => {
|
|
172
|
+
this.highlightFlow(i, e);
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
beforeDestroy() {
|
|
176
|
+
var e;
|
|
177
|
+
d.prototype._handleWheel = f, (e = this.bpmnViewer) == null || e.destroy();
|
|
178
|
+
},
|
|
179
|
+
methods: {
|
|
180
|
+
fitViewportCenter(e = "center") {
|
|
181
|
+
this.canvas.zoom("fit-viewport", e);
|
|
182
|
+
},
|
|
183
|
+
highlightFlow(e, i) {
|
|
184
|
+
this.elementRegistry.getAll().forEach((t) => {
|
|
185
|
+
["bpmn:StartEvent", "bpmn:UserTask", "bpmn:ExclusiveGateway", "bpmn:ParallelGateway", "bpmn:EndEvent"].includes(t.type) && (e.includes(t.id) && !i.includes(t.id) ? this.canvas.addMarker(t, "highlight") : this.canvas.removeMarker(t, "highlight")), t.type === "bpmn:SequenceFlow" && (e.includes(t.id) ? this.canvas.addMarker(t, "highlight-line") : this.canvas.removeMarker(t, "highlight-line")), t.type === "bpmn:UserTask" && (i.includes(t.id) ? this.canvas.addMarker(t, "highlight-current") : this.canvas.removeMarker(t, "highlight-current"));
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}, _ = {};
|
|
190
|
+
var X = /* @__PURE__ */ F(
|
|
191
|
+
W,
|
|
192
|
+
B,
|
|
193
|
+
C,
|
|
194
|
+
!1,
|
|
195
|
+
q,
|
|
196
|
+
null,
|
|
197
|
+
null,
|
|
198
|
+
null
|
|
199
|
+
);
|
|
200
|
+
function q(e) {
|
|
201
|
+
for (let i in _)
|
|
202
|
+
this[i] = _[i];
|
|
203
|
+
}
|
|
204
|
+
const U = /* @__PURE__ */ function() {
|
|
205
|
+
return X.exports;
|
|
206
|
+
}();
|
|
207
|
+
export {
|
|
208
|
+
U as default
|
|
209
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.flow-viewer{width:100%;height:400px}.flow-viewer .highlight g.djs-visual rect,.flow-viewer .highlight g.djs-visual circle,.flow-viewer .highlight g.djs-visual polygon,.flow-viewer .highlight g.djs-visual path{stroke:var(--highlight-color)!important}.flow-viewer .highlight g.djs-visual polygon+path{fill:var(--highlight-color)!important}@keyframes dashoffset{to{stroke-dashoffset:100%}}.flow-viewer .highlight-current g.djs-visual rect{stroke-dasharray:8;animation:40s linear infinite forwards dashoffset;fill:#fbe9d1!important;stroke:#d67e7d!important}.flow-viewer .highlight-line g.djs-visual path{stroke:var(--highlight-color)!important;stroke-width:2px!important;marker-end:url(#sequenceflow-arrow-green)!important}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { n } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
2
|
+
const l = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth", "hideRequiredAsterisk", "$emit", "validate", "clearValidate"], d = ["$emit", "validate", "clearValidate"], c = {
|
|
3
|
+
name: "FormBlock",
|
|
4
|
+
inject: {
|
|
5
|
+
elForm: {
|
|
6
|
+
default: {}
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
provide() {
|
|
10
|
+
return {
|
|
11
|
+
elForm: this.formConfig
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
active: Boolean,
|
|
17
|
+
enabled: Boolean,
|
|
18
|
+
disabled: Boolean,
|
|
19
|
+
wrapRow: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !0
|
|
22
|
+
},
|
|
23
|
+
gutter: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 20
|
|
26
|
+
},
|
|
27
|
+
collapse: Boolean
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
const e = {};
|
|
31
|
+
return l.forEach((t) => {
|
|
32
|
+
e[t] = null;
|
|
33
|
+
}), {
|
|
34
|
+
expand: !0,
|
|
35
|
+
formConfig: e
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
formCfg() {
|
|
40
|
+
const e = {
|
|
41
|
+
enabled: this.enabled,
|
|
42
|
+
forbidden: this.disabled
|
|
43
|
+
};
|
|
44
|
+
return l.forEach((t) => {
|
|
45
|
+
e[t] = this.elForm[t];
|
|
46
|
+
}), e;
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
watch: {
|
|
50
|
+
collapse: {
|
|
51
|
+
immediate: !0,
|
|
52
|
+
handler(e) {
|
|
53
|
+
this.expand = !e;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
formCfg: {
|
|
57
|
+
immediate: !0,
|
|
58
|
+
handler() {
|
|
59
|
+
this.formConfig.disabled = this.available(), l.forEach((e) => {
|
|
60
|
+
var t;
|
|
61
|
+
e !== "disabled" && (d.includes(e) ? this.formConfig[e] = (t = this.elForm[e]) == null ? void 0 : t.bind(this.elForm) : this.formConfig[e] = this.elForm[e]);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
mounted() {
|
|
67
|
+
this.dispatch("FormView", "FormView.addTab", [this]);
|
|
68
|
+
},
|
|
69
|
+
beforeDestroy() {
|
|
70
|
+
this.dispatch("FormView", "FormView.removeTab", [this]);
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
available() {
|
|
74
|
+
return this.disabled ? this.disabled : this.enabled ? !this.enabled : this.elForm.disabled;
|
|
75
|
+
},
|
|
76
|
+
dispatch(e, t, a) {
|
|
77
|
+
let i = this.$parent || this.$root, o = i.$options.name;
|
|
78
|
+
for (; i && (!o || o !== e); )
|
|
79
|
+
i = i.$parent, i && (o = i.$options.name);
|
|
80
|
+
i && i.$emit.apply(i, [t].concat(a));
|
|
81
|
+
},
|
|
82
|
+
renderDefault() {
|
|
83
|
+
const e = this.$createElement, {
|
|
84
|
+
wrapRow: t,
|
|
85
|
+
gutter: a,
|
|
86
|
+
formConfig: i,
|
|
87
|
+
$scopedSlots: o
|
|
88
|
+
} = this;
|
|
89
|
+
return t ? e("ElRow", {
|
|
90
|
+
attrs: {
|
|
91
|
+
gutter: a
|
|
92
|
+
}
|
|
93
|
+
}, [o.default({
|
|
94
|
+
disabled: i.disabled
|
|
95
|
+
})]) : o.default({
|
|
96
|
+
disabled: i.disabled
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
toggle() {
|
|
100
|
+
this.expand = !this.expand;
|
|
101
|
+
},
|
|
102
|
+
open() {
|
|
103
|
+
this.expand = !0;
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
render() {
|
|
107
|
+
const e = arguments[0], {
|
|
108
|
+
renderDefault: t,
|
|
109
|
+
blockTitle: a,
|
|
110
|
+
active: i,
|
|
111
|
+
expand: o,
|
|
112
|
+
toggle: r
|
|
113
|
+
} = this;
|
|
114
|
+
return e("div", {
|
|
115
|
+
class: ["form-block", {
|
|
116
|
+
"default-active": i
|
|
117
|
+
}]
|
|
118
|
+
}, [e("div", {
|
|
119
|
+
class: "form-block-title",
|
|
120
|
+
on: {
|
|
121
|
+
click: r
|
|
122
|
+
}
|
|
123
|
+
}, [e("span", {
|
|
124
|
+
class: "flex-item"
|
|
125
|
+
}, [a]), " ", e("i", {
|
|
126
|
+
class: o ? "el-icon-arrow-down" : "el-icon-arrow-right"
|
|
127
|
+
})]), e("ElCollapseTransition", [e("div", {
|
|
128
|
+
directives: [{
|
|
129
|
+
name: "show",
|
|
130
|
+
value: o
|
|
131
|
+
}]
|
|
132
|
+
}, [t()])])]);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
let m, h;
|
|
136
|
+
const s = {};
|
|
137
|
+
var f = /* @__PURE__ */ n(
|
|
138
|
+
c,
|
|
139
|
+
m,
|
|
140
|
+
h,
|
|
141
|
+
!1,
|
|
142
|
+
u,
|
|
143
|
+
null,
|
|
144
|
+
null,
|
|
145
|
+
null
|
|
146
|
+
);
|
|
147
|
+
function u(e) {
|
|
148
|
+
for (let t in s)
|
|
149
|
+
this[t] = s[t];
|
|
150
|
+
}
|
|
151
|
+
const b = /* @__PURE__ */ function() {
|
|
152
|
+
return f.exports;
|
|
153
|
+
}();
|
|
154
|
+
export {
|
|
155
|
+
b as default
|
|
156
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-block{background-color:#fff;padding-bottom:10px}.form-block-title{color:#333;cursor:pointer;background-color:#f3f5fb;flex-direction:row;align-items:center;height:30px;margin:0 0 10px;padding:0 10px;font-size:14px;font-weight:700;line-height:30px;display:flex}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import n from "@web-utils/component/confirmable";
|
|
2
|
+
import { n as o } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
3
|
+
const r = {
|
|
4
|
+
props: {
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "danger"
|
|
8
|
+
},
|
|
9
|
+
size: String,
|
|
10
|
+
icon: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
nativeType: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "button"
|
|
17
|
+
},
|
|
18
|
+
loading: Boolean,
|
|
19
|
+
disabled: Boolean,
|
|
20
|
+
plain: Boolean,
|
|
21
|
+
autofocus: Boolean,
|
|
22
|
+
round: Boolean,
|
|
23
|
+
confirmable: Boolean,
|
|
24
|
+
text: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
tag: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "AwesomeButton"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, l = {
|
|
34
|
+
name: "FormButton",
|
|
35
|
+
mixins: [n, r]
|
|
36
|
+
};
|
|
37
|
+
let a, i;
|
|
38
|
+
const e = {};
|
|
39
|
+
var u = /* @__PURE__ */ o(
|
|
40
|
+
l,
|
|
41
|
+
a,
|
|
42
|
+
i,
|
|
43
|
+
!1,
|
|
44
|
+
s,
|
|
45
|
+
null,
|
|
46
|
+
null,
|
|
47
|
+
null
|
|
48
|
+
);
|
|
49
|
+
function s(p) {
|
|
50
|
+
for (let t in e)
|
|
51
|
+
this[t] = e[t];
|
|
52
|
+
}
|
|
53
|
+
const m = /* @__PURE__ */ function() {
|
|
54
|
+
return u.exports;
|
|
55
|
+
}();
|
|
56
|
+
export {
|
|
57
|
+
m as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var n = Object.getOwnPropertySymbols;
|
|
3
|
+
var c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var o = (e, t, r) => t in e ? u(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t) => {
|
|
5
|
+
for (var r in t || (t = {}))
|
|
6
|
+
c.call(t, r) && o(e, r, t[r]);
|
|
7
|
+
if (n)
|
|
8
|
+
for (var r of n(t))
|
|
9
|
+
d.call(t, r) && o(e, r, t[r]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
import { f as m } from "../chunks/form-input-mixin.IKogWBfn.mjs";
|
|
13
|
+
import { f } from "../chunks/form-pick-mixin.y-qhZJi6.mjs";
|
|
14
|
+
import s from "element-ui/lib/cascader";
|
|
15
|
+
import { d as h, n as y } from "../chunks/index.LGsb2aDq.mjs";
|
|
16
|
+
import { findTreeChildren as v, setParent as _ } from "@web-utils/core";
|
|
17
|
+
import { cloneDeep as b } from "@web-utils/integrations/lodash";
|
|
18
|
+
import { n as S } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
|
|
19
|
+
var k = function() {
|
|
20
|
+
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
21
|
+
return r("FormItem", e._b({
|
|
22
|
+
attrs: {
|
|
23
|
+
rules: e.computeRules,
|
|
24
|
+
disabled: e.inputDisabled
|
|
25
|
+
},
|
|
26
|
+
scopedSlots: e._u([{
|
|
27
|
+
key: "default",
|
|
28
|
+
fn: function() {
|
|
29
|
+
return [e._t("default", function() {
|
|
30
|
+
return [r("ElCascader", e._g(e._b({
|
|
31
|
+
class: {
|
|
32
|
+
"is-readonly": e.readonly
|
|
33
|
+
},
|
|
34
|
+
staticStyle: {
|
|
35
|
+
width: "100%"
|
|
36
|
+
},
|
|
37
|
+
attrs: {
|
|
38
|
+
value: e.inputVal,
|
|
39
|
+
"show-all-levels": e.showAllLevels,
|
|
40
|
+
separator: e.separator,
|
|
41
|
+
readonly: e.readonly,
|
|
42
|
+
options: e.innerOptions,
|
|
43
|
+
props: {
|
|
44
|
+
checkStrictly: e.checkStrictly,
|
|
45
|
+
label: e.labelKey,
|
|
46
|
+
value: e.valueKey
|
|
47
|
+
},
|
|
48
|
+
disabled: e.inputDisabled,
|
|
49
|
+
placeholder: e.computePlaceholder
|
|
50
|
+
},
|
|
51
|
+
on: {
|
|
52
|
+
input: e.emitInput
|
|
53
|
+
}
|
|
54
|
+
}, "ElCascader", e.inputProps, !1), e.listeners))];
|
|
55
|
+
})];
|
|
56
|
+
},
|
|
57
|
+
proxy: !0
|
|
58
|
+
}, {
|
|
59
|
+
key: "error",
|
|
60
|
+
fn: function(i) {
|
|
61
|
+
var p = i.error;
|
|
62
|
+
return [e._t("error", null, {
|
|
63
|
+
error: p
|
|
64
|
+
})];
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
key: "label",
|
|
68
|
+
fn: function() {
|
|
69
|
+
return [e._t("label")];
|
|
70
|
+
},
|
|
71
|
+
proxy: !0
|
|
72
|
+
}], null, !0)
|
|
73
|
+
}, "FormItem", e.formItemProps, !1));
|
|
74
|
+
}, x = [];
|
|
75
|
+
const P = Object.keys(s.props || s.default.props).filter((e) => !["value", "placeholder", "disabled", "options", "showAllLevels", "show-all-levels", "separator"].includes(e)), w = {
|
|
76
|
+
name: "FormCascader",
|
|
77
|
+
mixins: [m, f],
|
|
78
|
+
props: {
|
|
79
|
+
value: {
|
|
80
|
+
type: [String, Number]
|
|
81
|
+
},
|
|
82
|
+
options: {
|
|
83
|
+
type: Array,
|
|
84
|
+
default: () => []
|
|
85
|
+
},
|
|
86
|
+
showAllLevels: Boolean,
|
|
87
|
+
separator: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "/"
|
|
90
|
+
},
|
|
91
|
+
last: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !0
|
|
94
|
+
},
|
|
95
|
+
checkStrictly: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: !0
|
|
98
|
+
},
|
|
99
|
+
labelKey: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "label"
|
|
102
|
+
},
|
|
103
|
+
valueKey: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "value"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
data() {
|
|
109
|
+
return {
|
|
110
|
+
innerOptions: []
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
computed: {
|
|
114
|
+
inputProps() {
|
|
115
|
+
return h(l(l({}, y(this.$attrs)), this.$props), P);
|
|
116
|
+
},
|
|
117
|
+
inputVal() {
|
|
118
|
+
let [e] = v(this.innerOptions, (r) => r[this.valueKey] === this.value);
|
|
119
|
+
const t = [];
|
|
120
|
+
for (; e; )
|
|
121
|
+
t.push(e[this.valueKey]), e = e.parent;
|
|
122
|
+
return t.reverse();
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
watch: {
|
|
126
|
+
options: {
|
|
127
|
+
immediate: !0,
|
|
128
|
+
handler(e) {
|
|
129
|
+
if (e) {
|
|
130
|
+
const t = b(e);
|
|
131
|
+
_(t), this.innerOptions = t;
|
|
132
|
+
} else
|
|
133
|
+
this.innerOptions = [];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
methods: {
|
|
138
|
+
emitInput(e) {
|
|
139
|
+
const t = this.last ? e[e.length - 1] : e;
|
|
140
|
+
this.$emit("input", t);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}, a = {};
|
|
144
|
+
var C = /* @__PURE__ */ S(
|
|
145
|
+
w,
|
|
146
|
+
k,
|
|
147
|
+
x,
|
|
148
|
+
!1,
|
|
149
|
+
K,
|
|
150
|
+
null,
|
|
151
|
+
null,
|
|
152
|
+
null
|
|
153
|
+
);
|
|
154
|
+
function K(e) {
|
|
155
|
+
for (let t in a)
|
|
156
|
+
this[t] = a[t];
|
|
157
|
+
}
|
|
158
|
+
const E = /* @__PURE__ */ function() {
|
|
159
|
+
return C.exports;
|
|
160
|
+
}();
|
|
161
|
+
export {
|
|
162
|
+
E as default
|
|
163
|
+
};
|