@web-utils/form-ui 1.0.0-beta8 → 1.0.0-beta80
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.d.ts +52 -0
- package/address-input/index.mjs +2 -0
- package/address-input/style.css +1 -0
- package/affix/index.d.ts +30 -0
- package/affix/index.mjs +48 -0
- package/affix/style.css +1 -0
- package/api/index.d.ts +66 -0
- package/api/index.mjs +42 -0
- package/awesome-button/index.d.ts +60 -0
- package/awesome-button/index.mjs +49 -0
- package/base.css +1 -1
- package/capsule-tab/index.d.ts +30 -0
- package/capsule-tab/index.mjs +2 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.d.ts +41 -0
- package/card/index.mjs +90 -0
- package/card/style.css +1 -0
- package/chunks/22GsbC-1.mjs +32 -0
- package/chunks/6dNVtIN32.mjs +89 -0
- package/chunks/6eDDQWcr.mjs +69 -0
- package/chunks/B1MSrc6f.mjs +8 -0
- package/chunks/B1luuf_A2.mjs +111 -0
- package/chunks/B4GsYMXo.mjs +39 -0
- package/chunks/B5c0s3IR.mjs +449 -0
- package/chunks/BAG_R87k2.mjs +60 -0
- package/chunks/BEghYt1s2.mjs +31 -0
- package/chunks/BM5LdxU72.mjs +95 -0
- package/chunks/BQytQPLa.mjs +780 -0
- package/chunks/BVUClQOx.mjs +26 -0
- package/chunks/BWTQ3qdg.mjs +68 -0
- package/chunks/BhHMGhJ8.mjs +109 -0
- package/chunks/Bo8lYN4n2.mjs +27 -0
- package/chunks/Bs926z902.mjs +200 -0
- package/chunks/BsqIRxSS.mjs +67 -0
- package/chunks/Bu1M7um22.mjs +87 -0
- package/chunks/Bvn6wnku.mjs +99 -0
- package/chunks/BwL9Xz1F.mjs +46 -0
- package/chunks/C-iN5MJZ.mjs +57 -0
- package/chunks/C-zPVdz-.mjs +198 -0
- package/chunks/C8h_P_kl2.mjs +206 -0
- package/chunks/CGmbnjKL.mjs +26 -0
- package/chunks/CHmZyvFr.mjs +63 -0
- package/chunks/CLn5E7NV.mjs +17 -0
- package/chunks/COA3tHyu2.mjs +34 -0
- package/chunks/CTYReSXN.mjs +37 -0
- package/chunks/CUaecRXx.mjs +4794 -0
- package/chunks/C_QfuxeQ.mjs +98 -0
- package/chunks/Cb7kjZa-.mjs +661 -0
- package/chunks/ChP-pNSi2.mjs +145 -0
- package/chunks/CiMBKxeJ.mjs +61 -0
- package/chunks/CkLpOk7H.mjs +155 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/Co0M4G3P.mjs +30 -0
- package/chunks/Ctx93AFS.mjs +54 -0
- package/chunks/D6mInNk02.mjs +419 -0
- package/chunks/DCqyZyF6.mjs +52 -0
- package/chunks/DH-B0Lkz2.mjs +34 -0
- package/chunks/DQMWqQFe2.mjs +42 -0
- package/chunks/D_q3C3v4.mjs +595 -0
- package/chunks/DbcxJ45j.mjs +298 -0
- package/chunks/DcgE9SF_2.mjs +29 -0
- package/chunks/DdACGFy3.mjs +90 -0
- package/chunks/DgH_4qOn2.mjs +210 -0
- package/chunks/Dkw6LNCq2.mjs +379 -0
- package/chunks/Dodxnwze.mjs +60 -0
- package/chunks/DokYQ49m.mjs +29 -0
- package/chunks/DxeRdYI82.mjs +108 -0
- package/chunks/Dz_TTgwF2.mjs +515 -0
- package/chunks/FZqu01np2.mjs +1354 -0
- package/chunks/KOJEsarR2.mjs +217 -0
- package/chunks/PEU1JRcN2.mjs +64 -0
- package/chunks/SInS7QSL.mjs +17 -0
- package/chunks/V-Js6hNd.mjs +179 -0
- package/chunks/X-ckP2Hj.mjs +40 -0
- package/chunks/Zdhb_SRi2.mjs +63 -0
- package/chunks/eX0Esdvw2.mjs +25 -0
- package/chunks/hBvPGqka.mjs +26 -0
- package/chunks/mnqSaATq.mjs +184 -0
- package/chunks/mqi8hesW2.mjs +613 -0
- package/chunks/oXiNltCq.mjs +30 -0
- package/chunks/sTTHpRrx.mjs +50 -0
- package/chunks/shY1VkIE2.mjs +29 -0
- package/chunks/tSaeUhnr.mjs +58 -0
- package/chunks/tVHVSu5h.mjs +1798 -0
- package/chunks/tfaGdZX2.mjs +647 -0
- package/chunks/tqW2DSco.mjs +199 -0
- package/chunks/tzjUpVIj.mjs +37 -0
- package/code-mirror-editor/index.d.ts +50 -0
- package/code-mirror-editor/index.mjs +99 -0
- package/code-mirror-editor/style.css +1 -0
- package/confirm-button/index.d.ts +122 -0
- package/confirm-button/index.mjs +35 -0
- package/confirmable/index.d.ts +93 -0
- package/confirmable/index.mjs +8 -0
- package/constants/index.d.ts +73 -0
- package/constants/index.mjs +4 -0
- package/context-menu/index.d.ts +183 -0
- package/context-menu/index.mjs +196 -0
- package/context-menu/style.css +1 -0
- package/count-up/index.d.ts +70 -0
- package/count-up/index.mjs +94 -0
- package/custom-scrollbar/index.d.ts +49 -0
- package/custom-scrollbar/index.mjs +93 -0
- package/data-box/index.d.ts +30 -0
- package/data-box/index.mjs +2 -0
- package/data-box/style.css +1 -0
- package/data-card/index.d.ts +20 -0
- package/data-card/index.mjs +64 -0
- package/data-card/style.css +1 -0
- package/data-card-text/index.d.ts +21 -0
- package/data-card-text/index.mjs +68 -0
- package/data-card-text/style.css +1 -0
- package/data-display/index.d.ts +20 -0
- package/data-display/index.mjs +74 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.d.ts +21 -0
- package/data-icons/index.mjs +75 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.d.ts +18 -0
- package/data-imgtext/index.mjs +72 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.d.ts +17 -0
- package/data-operatext/index.mjs +55 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.d.ts +19 -0
- package/data-panel/index.mjs +62 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.d.ts +19 -0
- package/data-pay/index.mjs +111 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.d.ts +17 -0
- package/data-price/index.mjs +52 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.d.ts +19 -0
- package/data-progress/index.mjs +73 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.d.ts +21 -0
- package/data-rotate/index.mjs +2 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.d.ts +61 -0
- package/data-table-picker/index.mjs +120 -0
- package/data-tabs/index.d.ts +21 -0
- package/data-tabs/index.mjs +2 -0
- package/data-tabs/style.css +1 -0
- package/dict-render/index.d.ts +28 -0
- package/dict-render/index.mjs +2 -0
- package/e-charts/index.d.ts +79 -0
- package/e-charts/index.mjs +179 -0
- package/e-charts/style.css +1 -0
- package/easy-popup/index.d.ts +114 -0
- package/easy-popup/index.mjs +92 -0
- package/easy-popup/style.css +1 -0
- package/editable-progress/index.d.ts +68 -0
- package/editable-progress/index.mjs +121 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.d.ts +281 -0
- package/editable-tree/index.mjs +596 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +341 -18
- package/element-dialog/index.mjs +2 -91
- package/element-dialog/style.css +1 -1
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/element-resize-observer/index.d.ts +8 -0
- package/element-resize-observer/index.mjs +40 -0
- package/element-resize-observer/style.css +1 -0
- package/empty-view/index.d.ts +2 -2
- package/empty-view/index.mjs +1 -1
- package/error-view/index.d.ts +25 -0
- package/error-view/index.mjs +37 -0
- package/error-view/style.css +1 -0
- package/flex-box/index.d.ts +44 -0
- package/flex-box/index.mjs +2 -0
- package/flex-column/index.d.ts +41 -0
- package/flex-column/index.mjs +2 -0
- package/flex-item/index.d.ts +77 -0
- package/flex-item/index.mjs +2 -0
- package/flex-row/index.d.ts +41 -0
- package/flex-row/index.mjs +2 -0
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroll-area/index.mjs +1 -1
- package/flex-scroller/index.d.ts +26 -0
- package/flex-scroller/index.mjs +29 -0
- package/flex-scroller/style.css +1 -0
- package/flow-designer/index.d.ts +286 -0
- package/flow-designer/index.mjs +2 -0
- package/flow-designer/style.css +1 -0
- package/flow-viewer/index.d.ts +62 -0
- package/flow-viewer/index.mjs +159 -0
- package/flow-viewer/style.css +1 -0
- package/form-advice/index.mjs +13 -12
- package/form-button/index.d.ts +123 -0
- package/form-button/index.mjs +36 -0
- package/form-card/index.d.ts +14 -0
- package/form-card/index.mjs +18 -0
- package/form-cascader/index.d.ts +478 -0
- package/form-cascader/index.mjs +2 -0
- package/form-checkbox/index.d.ts +237 -30
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +373 -0
- package/form-checkbox-group/index.mjs +2 -0
- package/form-checkbox-group/style.css +1 -0
- package/form-date-picker/index.d.ts +375 -29
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +89 -22
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +137 -23
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +282 -50
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +223 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +296 -25
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +296 -25
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +237 -29
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +296 -25
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +269 -1
- package/form-input-tag/index.mjs +1 -3
- package/form-input-time/index.d.ts +440 -1
- package/form-input-time/index.mjs +1 -3
- package/form-item-config-provider/index.d.ts +23 -3
- package/form-item-config-provider/index.mjs +7 -7
- package/form-item-group/index.d.ts +91 -17
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +133 -18
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +295 -28
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +244 -24
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +2 -2
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +527 -28
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +273 -26
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +264 -26
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +287 -0
- package/form-table/index.mjs +2 -0
- package/form-table-plus/index.d.ts +266 -0
- package/form-table-plus/index.mjs +2 -0
- package/form-text/index.d.ts +157 -23
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +351 -0
- package/form-textarea/index.mjs +2 -0
- package/form-time-select/index.d.ts +325 -0
- package/form-time-select/index.mjs +2 -0
- package/form-tree-select/index.d.ts +715 -0
- package/form-tree-select/index.mjs +2 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.d.ts +717 -0
- package/form-tree-select-multiple/index.mjs +2 -0
- package/form-view/index.d.ts +225 -1
- package/form-view/index.mjs +280 -6
- package/form-view/style.css +1 -0
- package/guide-steps/index.d.ts +31 -0
- package/guide-steps/index.mjs +77 -0
- package/guide-steps/style.css +1 -0
- package/helper/dictionary.d.ts +29 -0
- package/helper/dictionary.mjs +97 -0
- package/helper/form-item.d.ts +17 -0
- package/helper/form-item.mjs +27 -0
- package/helper/input.d.ts +49 -0
- package/helper/input.mjs +2 -0
- package/helper/sub-table-plus.d.ts +98 -0
- package/helper/sub-table-plus.mjs +4 -0
- package/highlight-j-s/index.d.ts +18 -0
- package/highlight-j-s/index.mjs +51 -0
- package/highlight-j-s/style.css +1 -0
- package/hook/useDictionary.d.ts +60 -0
- package/hook/useDictionary.mjs +15 -0
- package/hook/useVisibilityChange.d.ts +4 -0
- package/hook/useVisibilityChange.mjs +14 -0
- package/iframe-window/index.d.ts +9 -0
- package/iframe-window/index.mjs +37 -0
- package/iframe-window/style.css +1 -0
- package/image-cropper/index.d.ts +365 -0
- package/image-cropper/index.mjs +156 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.d.ts +61 -0
- package/image-preview/index.mjs +201 -0
- package/image-preview/style.css +1 -0
- package/image-viewer/index.d.ts +25 -0
- package/image-viewer/index.mjs +70 -0
- package/image-viewer/style.css +1 -0
- package/index.css +2 -0
- package/index.d.ts +120 -36
- package/index.mjs +122 -62
- package/input-number-range/index.d.ts +41 -0
- package/input-number-range/index.mjs +77 -0
- package/input-number-range/style.css +1 -0
- package/keyboard/index.d.ts +64 -0
- package/keyboard/index.mjs +2 -0
- package/keyboard/style.css +1 -0
- package/loading-view/index.d.ts +65 -0
- package/loading-view/index.mjs +39 -0
- package/loading-view/style.css +1 -0
- package/name-avatar/index.d.ts +62 -0
- package/name-avatar/index.mjs +61 -0
- package/name-avatar/style.css +1 -0
- package/nav-bar/index.d.ts +21 -0
- package/nav-bar/index.mjs +37 -0
- package/nav-bar/style.css +1 -0
- package/package.json +29 -7
- package/page/index.d.ts +21 -0
- package/page/index.mjs +17 -0
- package/page/style.css +1 -0
- package/page-header/index.d.ts +27 -0
- package/page-header/index.mjs +25 -0
- package/page-header/style.css +1 -0
- package/page-index/index.d.ts +82 -0
- package/page-index/index.mjs +124 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.d.ts +38 -0
- package/page-index-top/index.mjs +87 -0
- package/page-skeleton/index.d.ts +30 -0
- package/page-skeleton/index.mjs +44 -0
- package/page-skeleton/style.css +1 -0
- package/page-skeleton-new/index.d.ts +34 -0
- package/page-skeleton-new/index.mjs +80 -0
- package/page-skeleton-new/style.css +1 -0
- package/pageable-table/index.d.ts +400 -0
- package/pageable-table/index.mjs +2 -0
- package/pageable-table/style.css +1 -0
- package/photo-swipe/index.d.ts +18 -0
- package/photo-swipe/index.mjs +2 -0
- package/props/cascader.d.ts +326 -0
- package/props/cascader.mjs +145 -0
- package/props/checkbox-group.d.ts +213 -0
- package/props/checkbox-group.mjs +83 -0
- package/props/checkbox.d.ts +205 -0
- package/props/checkbox.mjs +74 -0
- package/props/col.d.ts +74 -0
- package/props/col.mjs +32 -0
- package/props/common.d.ts +114 -0
- package/props/common.mjs +18 -0
- package/props/date.d.ts +336 -0
- package/props/date.mjs +158 -0
- package/props/form-item.d.ts +144 -0
- package/props/form-item.mjs +73 -0
- package/props/form.d.ts +157 -0
- package/props/form.mjs +89 -0
- package/props/image.d.ts +102 -0
- package/props/image.mjs +10 -0
- package/props/input-cron.d.ts +102 -0
- package/props/input-cron.mjs +16 -0
- package/props/input-number.d.ts +216 -0
- package/props/input-number.mjs +72 -0
- package/props/input-tag.d.ts +123 -0
- package/props/input-tag.mjs +33 -0
- package/props/input.d.ts +299 -0
- package/props/input.mjs +97 -0
- package/props/radio-group.d.ts +205 -0
- package/props/radio-group.mjs +84 -0
- package/props/rate.d.ts +211 -0
- package/props/rate.mjs +66 -0
- package/props/select.d.ts +450 -0
- package/props/select.mjs +218 -0
- package/props/slide.d.ts +235 -0
- package/props/slide.mjs +72 -0
- package/props/switch.d.ts +229 -0
- package/props/switch.mjs +80 -0
- package/props/text.d.ts +127 -0
- package/props/text.mjs +22 -0
- package/props/textarea.d.ts +266 -0
- package/props/textarea.mjs +82 -0
- package/props/time-select.d.ts +216 -0
- package/props/time-select.mjs +67 -0
- package/props/time.d.ts +304 -0
- package/props/time.mjs +138 -0
- package/props/tree-select-multiple.d.ts +324 -0
- package/props/tree-select-multiple.mjs +16 -0
- package/props/tree-select.d.ts +326 -0
- package/props/tree-select.mjs +25 -0
- package/props/tree.d.ts +76 -0
- package/props/tree.mjs +75 -0
- package/props/vue-tree-select.d.ts +458 -0
- package/props/vue-tree-select.mjs +213 -0
- package/resolver/components.d.ts +2 -0
- package/resolver/components.mjs +4 -0
- package/resolver/index.mjs +29 -0
- package/sign-panel/index.d.ts +85 -0
- package/sign-panel/index.mjs +183 -0
- package/sign-panel/style.css +1 -0
- package/skeleton-panel/index.d.ts +27 -0
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.d.ts +106 -0
- package/split-pane/index.mjs +2 -0
- package/split-pane/style.css +1 -0
- package/stateful/index.d.ts +92 -0
- package/stateful/index.mjs +67 -0
- package/stateful/style.css +1 -0
- package/sub-table/index.d.ts +109 -0
- package/sub-table/index.mjs +2 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.d.ts +109 -0
- package/sub-table-plus/index.mjs +2 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.d.ts +27 -0
- package/swiper/index.mjs +126 -0
- package/swiper/style.css +1 -0
- package/table-column/index.d.ts +163 -0
- package/table-column/index.mjs +2 -0
- package/table-column/style.css +1 -0
- package/table-column-def/index.d.ts +97 -0
- package/table-column-def/index.mjs +11 -0
- package/table-view/index.d.ts +345 -1
- package/table-view/index.mjs +472 -6
- package/table-view/style.css +1 -0
- package/tag-render/index.d.ts +48 -0
- package/tag-render/index.mjs +86 -0
- package/tag-render/style.css +1 -0
- package/text-ellipsis/index.d.ts +111 -0
- package/text-ellipsis/index.mjs +124 -0
- package/text-ellipsis/style.css +1 -0
- package/toolbar/index.d.ts +128 -1
- package/toolbar/index.mjs +1 -8
- package/toolbar/style.css +1 -0
- package/toolbar-button/index.d.ts +188 -1
- package/toolbar-button/index.mjs +1 -8
- package/toolbar-button/style.css +1 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/vue-qr-code/index.d.ts +47 -0
- package/vue-qr-code/index.mjs +32 -0
- package/vue-tags-input/index.d.ts +373 -0
- package/vue-tags-input/index.mjs +350 -0
- package/vue-tags-input/style.css +1 -0
- package/vue-tree-select/index.d.ts +1489 -0
- package/vue-tree-select/index.mjs +2 -0
- package/vue-tree-select/style.css +1 -0
- package/vue-video-player/index.d.ts +117 -0
- package/vue-video-player/index.mjs +136 -0
- package/vue-video-player/style.css +1 -0
- package/watermark/index.d.ts +97 -0
- package/watermark/index.mjs +2 -0
- package/watermark/style.css +1 -0
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +232 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +2 -0
- package/year-calendar/style.css +1 -0
- package/chunks/1glrRdhD.mjs +0 -23
- package/chunks/6Ukll2os.mjs +0 -149
- package/chunks/78hGOZc9.mjs +0 -43
- package/chunks/BID1Rr2O.mjs +0 -32
- package/chunks/BMkPC2kt.mjs +0 -28
- package/chunks/BPJNSq9M.mjs +0 -4
- package/chunks/BaExlbMY.mjs +0 -32
- package/chunks/BeIZhqg_.mjs +0 -167
- package/chunks/BmQGmui_.mjs +0 -54
- package/chunks/BnycM8aG.mjs +0 -74
- package/chunks/BooKKkk0.mjs +0 -36
- package/chunks/Bpox2cVQ.mjs +0 -92
- package/chunks/Bs_IYr3X.mjs +0 -94
- package/chunks/BuZDN2DV.mjs +0 -28
- package/chunks/C4JpDEWP.mjs +0 -35
- package/chunks/DAjuA2O6.mjs +0 -28
- package/chunks/Dywq0t6V.mjs +0 -47
- package/chunks/GlsJxLiF.mjs +0 -35
- package/chunks/pFgf4c4i.mjs +0 -47
- package/chunks/zb_1Xy1W.mjs +0 -74
- package/constants.d.ts +0 -7
- package/constants.mjs +0 -4
- package/form-check-box-group/index.d.ts +0 -119
- package/form-check-box-group/index.mjs +0 -2
- package/input/style.css +0 -1
- package/json-editor/index.d.ts +0 -32
- package/json-editor/index.mjs +0 -2
- package/json-editor/style.css +0 -1
- package/resolver.mjs +0 -81
- /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { n as e } from "./CkLpOk7H.mjs";
|
|
2
|
+
import { t } from "./BWTQ3qdg.mjs";
|
|
3
|
+
import { allProps as n } from "../props/input.mjs";
|
|
4
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
|
+
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
6
|
+
function s(e) {
|
|
7
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/form/FormInputPhoneNumber.vue
|
|
11
|
+
var c = {
|
|
12
|
+
name: "FormInputPhoneNumber",
|
|
13
|
+
inheritAttrs: !1,
|
|
14
|
+
props: { ...n },
|
|
15
|
+
emits: { ...e },
|
|
16
|
+
setup(e, { slots: n, attrs: i }) {
|
|
17
|
+
let c = o(e, "modelValue");
|
|
18
|
+
return () => r(t, a(e, i, {
|
|
19
|
+
modelValue: c.value,
|
|
20
|
+
"onUpdate:modelValue": (e) => c.value = e,
|
|
21
|
+
type: "phone"
|
|
22
|
+
}), s(n) ? n : { default: () => [n] });
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { c as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { n as e, o as t, t as n } from "./CkLpOk7H.mjs";
|
|
2
|
+
import { allProps as r, predicate as i } from "../props/input.mjs";
|
|
3
|
+
import { ElInput as a } from "element-plus/es";
|
|
4
|
+
import "element-plus/es/components/base/style/css";
|
|
5
|
+
import "element-plus/es/components/input/style/css";
|
|
6
|
+
import { computed as o, createVNode as s, mergeProps as c, useModel as l } from "vue";
|
|
7
|
+
import { validatePhoneNum as u } from "@web-utils/core";
|
|
8
|
+
//#region src/utils/form-validate.ts
|
|
9
|
+
var d = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
10
|
+
function f(e, t, n) {
|
|
11
|
+
t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
12
|
+
}
|
|
13
|
+
function p(e, t, n) {
|
|
14
|
+
if (this.$refs.table.$refs.table.records.length === 0) {
|
|
15
|
+
n(Error(e.message || `请添加${e.label}`));
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
n();
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/components/form/FormInput.vue
|
|
22
|
+
var m = {
|
|
23
|
+
name: "FormInput",
|
|
24
|
+
inheritAttrs: !1,
|
|
25
|
+
props: { ...r },
|
|
26
|
+
emits: { ...e },
|
|
27
|
+
setup(e, { emit: r, slots: p, attrs: m }) {
|
|
28
|
+
let h = l(e, "modelValue"), g = `请输入正确的${e.label}!`, { render: _, placeholder: v, disabled: y, listeners: b, inputProps: x, printing: S } = t(e, {
|
|
29
|
+
emit: r,
|
|
30
|
+
slots: p,
|
|
31
|
+
attrs: m,
|
|
32
|
+
rules: o(() => {
|
|
33
|
+
if (!e.type || e.type === "textarea") return null;
|
|
34
|
+
let t = {
|
|
35
|
+
message: g,
|
|
36
|
+
trigger: "blur"
|
|
37
|
+
};
|
|
38
|
+
if (e.type === "email") t.validator = d;
|
|
39
|
+
else if (e.type === "idcard") t.validator = f;
|
|
40
|
+
else if (e.type === "phone") t.validator = u;
|
|
41
|
+
else return null;
|
|
42
|
+
return [t];
|
|
43
|
+
}),
|
|
44
|
+
predicate: i
|
|
45
|
+
});
|
|
46
|
+
return () => _({ vNodes: S.value ? e.modelValue : s(a, c(b.value, x.value, {
|
|
47
|
+
class: ["form-input", {
|
|
48
|
+
"is-readonly": e.readonlyGrey && e.readonly && !e.picker,
|
|
49
|
+
"el-input-cursor-pointer": e.picker && !y.value
|
|
50
|
+
}],
|
|
51
|
+
modelValue: h.value,
|
|
52
|
+
"onUpdate:modelValue": (e) => h.value = e,
|
|
53
|
+
disabled: y.value,
|
|
54
|
+
placeholder: v.value,
|
|
55
|
+
readonly: e.readonly || e.picker,
|
|
56
|
+
"prefix-icon": n({ icon: e.picker ? "el-icon-search" : e.prefixIcon }),
|
|
57
|
+
"suffix-icon": n({ icon: e.suffixIcon })
|
|
58
|
+
}), {
|
|
59
|
+
prefix: p.prefix || e.prefix ? () => e.prefix : null,
|
|
60
|
+
suffix: p.suffix || e.suffix ? () => e.suffix : null,
|
|
61
|
+
"password-icon": p["password-icon"],
|
|
62
|
+
prepend: p.prepend || e.prepend ? () => e.prepend : null,
|
|
63
|
+
append: p.append || e.append ? () => e.append : null
|
|
64
|
+
}) });
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { p as n, m as t };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { m as e } from "./ClVh1Lek.mjs";
|
|
2
|
+
import { formHolderContextKey as t, formViewContextKey as n } from "../constants/index.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/form.mjs";
|
|
4
|
+
import a from "../form-advice/index.mjs";
|
|
5
|
+
import o from "../form-red-table/index.mjs";
|
|
6
|
+
import { ElForm as s, ElRow as c } from "element-plus/es";
|
|
7
|
+
import "element-plus/es/components/base/style/css";
|
|
8
|
+
import { computed as l, createVNode as u, inject as d, mergeProps as f, nextTick as p, provide as m, reactive as h, toRef as g, useTemplateRef as _ } from "vue";
|
|
9
|
+
import { animate as v } from "@web-utils/core";
|
|
10
|
+
import "element-plus/es/components/row/style/css";
|
|
11
|
+
import "element-plus/es/components/form/style/css";
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/form/FormHolder.vue
|
|
14
|
+
var y = {
|
|
15
|
+
name: "FormHolder",
|
|
16
|
+
inheritAttrs: !1,
|
|
17
|
+
props: { ...r },
|
|
18
|
+
emits: {},
|
|
19
|
+
setup(r, { slots: y, expose: b, attrs: x }) {
|
|
20
|
+
let { autoBindProps: S, listeners: C } = e(r, { predicate: i }), w = d(n, null), T = _("form"), E = l(() => r.notTableForm === void 0 ? (w == null ? void 0 : w.tableForm) === void 0 ? !1 : w == null ? void 0 : w.tableForm : !r.notTableForm), D = l(() => E.value ? !1 : r.showMessage), O = l(() => {
|
|
21
|
+
let e = {};
|
|
22
|
+
return r.disabledFields && r.disabledFields.forEach((t) => {
|
|
23
|
+
e[t] = !0;
|
|
24
|
+
}), e;
|
|
25
|
+
}), k = l(() => {
|
|
26
|
+
let e = {};
|
|
27
|
+
return r.enabledFields && r.enabledFields.length && r.enabledFields.forEach((t) => {
|
|
28
|
+
e[t] = !0;
|
|
29
|
+
}), e;
|
|
30
|
+
}), A = l(() => {
|
|
31
|
+
let e = {};
|
|
32
|
+
return r.requiredFields && r.requiredFields.length && r.requiredFields.forEach((t) => {
|
|
33
|
+
e[t] = !0;
|
|
34
|
+
}), e;
|
|
35
|
+
}), j = l(() => r.disabled === !0 ? !0 : r.disabled), M = g(() => r.enabledFields), N = g(() => r.requiredFields), P = g(() => r.disabledFields), F = async () => {
|
|
36
|
+
await p();
|
|
37
|
+
let e = T.value.$el.querySelector(".el-form-item.is-error");
|
|
38
|
+
e && e.scrollIntoView({
|
|
39
|
+
block: "center",
|
|
40
|
+
inline: "center",
|
|
41
|
+
behavior: "smooth"
|
|
42
|
+
});
|
|
43
|
+
}, I = h({
|
|
44
|
+
tableForm: E,
|
|
45
|
+
disabled: j,
|
|
46
|
+
enabledFields: M,
|
|
47
|
+
requiredFields: N,
|
|
48
|
+
enabledFieldsMap: k,
|
|
49
|
+
disabledFieldsMap: O,
|
|
50
|
+
requiredFieldsMap: A,
|
|
51
|
+
disabledFields: P,
|
|
52
|
+
scrollIntoRequiredField: F,
|
|
53
|
+
formRef: T,
|
|
54
|
+
validate: async () => {
|
|
55
|
+
try {
|
|
56
|
+
return await T.value.validate();
|
|
57
|
+
} catch {
|
|
58
|
+
throw await F(), T.value.$el.querySelectorAll(".el-form-item.is-error .el-form-item__content > :first-child").forEach((e) => {
|
|
59
|
+
v(e, "breathe-animation");
|
|
60
|
+
}), Error("表单验证不通过!");
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
validateField: (e) => T.value.validateField(e),
|
|
64
|
+
resetFields: (e) => T.value.resetFields(e),
|
|
65
|
+
scrollToField: (e) => T.value.scrollToField(e),
|
|
66
|
+
clearValidate: (e) => T.value.clearValidate(e),
|
|
67
|
+
getField: () => T.value.getField(),
|
|
68
|
+
setInitialValues: (e) => T.value.setInitialValues(e),
|
|
69
|
+
getFields: () => T.value.fields
|
|
70
|
+
});
|
|
71
|
+
return m(t, I), b(I), () => u(s, f(C.value, S.value, x, {
|
|
72
|
+
ref: "form",
|
|
73
|
+
class: [
|
|
74
|
+
"form-holder",
|
|
75
|
+
"clear-fix",
|
|
76
|
+
{ "red-form": E }
|
|
77
|
+
],
|
|
78
|
+
"show-message": D.value
|
|
79
|
+
}), { default: () => {
|
|
80
|
+
if (E.value) {
|
|
81
|
+
var e, t, n;
|
|
82
|
+
return [
|
|
83
|
+
(e = y.top) == null ? void 0 : e.call(y),
|
|
84
|
+
u(o, {
|
|
85
|
+
class: { "hide-error-message": E.value },
|
|
86
|
+
columns: r.columns,
|
|
87
|
+
"col-count": r.colCount
|
|
88
|
+
}, { default: () => {
|
|
89
|
+
var e;
|
|
90
|
+
return [(e = y.default) == null ? void 0 : e.call(y), r.showAdvice ? u(a, {
|
|
91
|
+
"label-colspan": r.commentLabelColspan,
|
|
92
|
+
"value-colspan": r.commentValueColspan
|
|
93
|
+
}, null) : null];
|
|
94
|
+
} }),
|
|
95
|
+
(t = y.bottom) == null ? void 0 : t.call(y),
|
|
96
|
+
u("div", { class: "red-form-footer" }, [(n = y.footer) == null ? void 0 : n.call(y)])
|
|
97
|
+
];
|
|
98
|
+
} else {
|
|
99
|
+
var i;
|
|
100
|
+
return r.wrapRow ? u(c, null, { default: () => {
|
|
101
|
+
var e;
|
|
102
|
+
return [(e = y.default) == null ? void 0 : e.call(y)];
|
|
103
|
+
} }) : (i = y.default) == null ? void 0 : i.call(y);
|
|
104
|
+
}
|
|
105
|
+
} });
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
export { y as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as e } from "./CkLpOk7H.mjs";
|
|
2
|
+
import { t } from "./BWTQ3qdg.mjs";
|
|
3
|
+
import { allProps as n } from "../props/textarea.mjs";
|
|
4
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
|
+
//#region src/components/form/FormTextarea.vue?vue&type=script&lang.jsx
|
|
6
|
+
function s(e) {
|
|
7
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/form/FormTextarea.vue
|
|
11
|
+
var c = {
|
|
12
|
+
name: "FormTextarea",
|
|
13
|
+
inheritAttrs: !1,
|
|
14
|
+
props: { ...n },
|
|
15
|
+
emits: { ...e },
|
|
16
|
+
setup(e, { slots: n, attrs: i }) {
|
|
17
|
+
let c = o(e, "modelValue");
|
|
18
|
+
return () => r(t, a(e, i, {
|
|
19
|
+
modelValue: c.value,
|
|
20
|
+
"onUpdate:modelValue": (e) => c.value = e,
|
|
21
|
+
block: e.block === void 0 ? !0 : e.block,
|
|
22
|
+
type: "textarea"
|
|
23
|
+
}), s(n) ? n : { default: () => [n] });
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { c as t };
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
|
+
import { ElForm as t, ElFormItem as n, ElInput as r, ElOption as i, ElSelect as a } from "element-plus/es";
|
|
3
|
+
import "element-plus/es/components/base/style/css";
|
|
4
|
+
import "element-plus/es/components/input/style/css";
|
|
5
|
+
import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createVNode as u, openBlock as d, withCtx as f, withModifiers as p } from "vue";
|
|
6
|
+
import "element-plus/es/components/form-item/style/css";
|
|
7
|
+
import "element-plus/es/components/form/style/css";
|
|
8
|
+
import "element-plus/es/components/select/style/css";
|
|
9
|
+
import "element-plus/es/components/option/style/css";
|
|
10
|
+
//#region src/components/bpmn-process-designer/components/penal/flow-condition/FlowCondition.vue
|
|
11
|
+
var m = {
|
|
12
|
+
name: "FlowCondition",
|
|
13
|
+
props: {
|
|
14
|
+
id: String,
|
|
15
|
+
element: Object,
|
|
16
|
+
bpmnInstances: Object
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return { flowConditionForm: {} };
|
|
20
|
+
},
|
|
21
|
+
watch: { id: {
|
|
22
|
+
immediate: !0,
|
|
23
|
+
async handler() {
|
|
24
|
+
await this.$nextTick(), this.resetFlowCondition();
|
|
25
|
+
}
|
|
26
|
+
} },
|
|
27
|
+
beforeUnmount() {
|
|
28
|
+
this.bpmnElementSource = null, this.bpmnElementSourceRef = null;
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
resetFlowCondition() {
|
|
32
|
+
if (this.bpmnElementSource = this.element.source, this.bpmnElementSourceRef = this.element.businessObject.sourceRef, this.bpmnElementSourceRef && this.bpmnElementSourceRef.default && this.bpmnElementSourceRef.default.id === this.element.id) this.flowConditionForm = { type: "default" };
|
|
33
|
+
else if (!this.element.businessObject.conditionExpression) this.flowConditionForm = { type: "normal" };
|
|
34
|
+
else {
|
|
35
|
+
let e = this.element.businessObject.conditionExpression;
|
|
36
|
+
if (this.flowConditionForm = {
|
|
37
|
+
...e,
|
|
38
|
+
type: "condition"
|
|
39
|
+
}, this.flowConditionForm.resource) {
|
|
40
|
+
this.flowConditionForm.conditionType = "script", this.flowConditionForm.scriptType = "externalScript";
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (e.language) {
|
|
44
|
+
this.flowConditionForm.conditionType = "script", this.flowConditionForm.scriptType = "inlineScript";
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.flowConditionForm.conditionType = "expression";
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
updateFlowType(e) {
|
|
51
|
+
if (e === "condition") {
|
|
52
|
+
this.flowConditionRef = this.bpmnInstances.moddle.create("bpmn:FormalExpression"), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: this.flowConditionRef });
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (e === "default") {
|
|
56
|
+
this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: null }), this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, { default: this.element });
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.bpmnElementSourceRef.default && this.bpmnElementSourceRef.default.id === this.element.id && this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, { default: null }), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: null });
|
|
60
|
+
},
|
|
61
|
+
updateFlowCondition() {
|
|
62
|
+
let { conditionType: e, scriptType: t, body: n, resource: r, language: i } = this.flowConditionForm, a;
|
|
63
|
+
e === "expression" ? a = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: n }) : t === "inlineScript" ? (a = this.bpmnInstances.moddle.create("bpmn:FormalExpression", {
|
|
64
|
+
body: n,
|
|
65
|
+
language: i
|
|
66
|
+
}), this.flowConditionForm.resource = "") : (this.flowConditionForm.body = "", a = this.bpmnInstances.moddle.create("bpmn:FormalExpression", {
|
|
67
|
+
resource: r,
|
|
68
|
+
language: i
|
|
69
|
+
})), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: a });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}, h = { class: "panel-tab__content" };
|
|
73
|
+
function g(e, m, g, _, v, y) {
|
|
74
|
+
let b = i, x = a, S = n, C = r, w = t;
|
|
75
|
+
return d(), l("div", h, [u(w, {
|
|
76
|
+
model: v.flowConditionForm,
|
|
77
|
+
"label-width": "90px",
|
|
78
|
+
onSubmit: m[7] || (m[7] = p(() => {}, ["prevent"]))
|
|
79
|
+
}, {
|
|
80
|
+
default: f(() => [
|
|
81
|
+
u(S, { label: "流转类型" }, {
|
|
82
|
+
default: f(() => [u(x, {
|
|
83
|
+
modelValue: v.flowConditionForm.type,
|
|
84
|
+
"onUpdate:modelValue": m[0] || (m[0] = (e) => v.flowConditionForm.type = e),
|
|
85
|
+
onChange: y.updateFlowType
|
|
86
|
+
}, {
|
|
87
|
+
default: f(() => [
|
|
88
|
+
u(b, {
|
|
89
|
+
label: "普通流转路径",
|
|
90
|
+
value: "normal"
|
|
91
|
+
}),
|
|
92
|
+
u(b, {
|
|
93
|
+
label: "默认流转路径",
|
|
94
|
+
value: "default"
|
|
95
|
+
}),
|
|
96
|
+
u(b, {
|
|
97
|
+
label: "条件流转路径",
|
|
98
|
+
value: "condition"
|
|
99
|
+
})
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["modelValue", "onChange"])]),
|
|
103
|
+
_: 1
|
|
104
|
+
}),
|
|
105
|
+
v.flowConditionForm.type === "condition" ? (d(), s(S, {
|
|
106
|
+
key: "condition",
|
|
107
|
+
label: "条件格式"
|
|
108
|
+
}, {
|
|
109
|
+
default: f(() => [u(x, {
|
|
110
|
+
modelValue: v.flowConditionForm.conditionType,
|
|
111
|
+
"onUpdate:modelValue": m[1] || (m[1] = (e) => v.flowConditionForm.conditionType = e)
|
|
112
|
+
}, {
|
|
113
|
+
default: f(() => [u(b, {
|
|
114
|
+
label: "表达式",
|
|
115
|
+
value: "expression"
|
|
116
|
+
}), u(b, {
|
|
117
|
+
label: "脚本",
|
|
118
|
+
value: "script"
|
|
119
|
+
})]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["modelValue"])]),
|
|
122
|
+
_: 1
|
|
123
|
+
})) : c("v-if", !0),
|
|
124
|
+
v.flowConditionForm.conditionType && v.flowConditionForm.conditionType === "expression" ? (d(), s(S, {
|
|
125
|
+
key: "express",
|
|
126
|
+
label: "表达式"
|
|
127
|
+
}, {
|
|
128
|
+
default: f(() => [u(C, {
|
|
129
|
+
modelValue: v.flowConditionForm.body,
|
|
130
|
+
"onUpdate:modelValue": m[2] || (m[2] = (e) => v.flowConditionForm.body = e),
|
|
131
|
+
clearable: "",
|
|
132
|
+
onChange: y.updateFlowCondition
|
|
133
|
+
}, null, 8, ["modelValue", "onChange"])]),
|
|
134
|
+
_: 1
|
|
135
|
+
})) : c("v-if", !0),
|
|
136
|
+
v.flowConditionForm.conditionType && v.flowConditionForm.conditionType === "script" ? (d(), l(o, { key: 2 }, [
|
|
137
|
+
u(S, {
|
|
138
|
+
key: "language",
|
|
139
|
+
label: "脚本语言"
|
|
140
|
+
}, {
|
|
141
|
+
default: f(() => [u(C, {
|
|
142
|
+
modelValue: v.flowConditionForm.language,
|
|
143
|
+
"onUpdate:modelValue": m[3] || (m[3] = (e) => v.flowConditionForm.language = e),
|
|
144
|
+
clearable: "",
|
|
145
|
+
onChange: y.updateFlowCondition
|
|
146
|
+
}, null, 8, ["modelValue", "onChange"])]),
|
|
147
|
+
_: 1
|
|
148
|
+
}),
|
|
149
|
+
u(S, {
|
|
150
|
+
key: "scriptType",
|
|
151
|
+
label: "脚本类型"
|
|
152
|
+
}, {
|
|
153
|
+
default: f(() => [u(x, {
|
|
154
|
+
modelValue: v.flowConditionForm.scriptType,
|
|
155
|
+
"onUpdate:modelValue": m[4] || (m[4] = (e) => v.flowConditionForm.scriptType = e)
|
|
156
|
+
}, {
|
|
157
|
+
default: f(() => [u(b, {
|
|
158
|
+
label: "内联脚本",
|
|
159
|
+
value: "inlineScript"
|
|
160
|
+
}), u(b, {
|
|
161
|
+
label: "外部脚本",
|
|
162
|
+
value: "externalScript"
|
|
163
|
+
})]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["modelValue"])]),
|
|
166
|
+
_: 1
|
|
167
|
+
}),
|
|
168
|
+
v.flowConditionForm.scriptType === "inlineScript" ? (d(), s(S, {
|
|
169
|
+
key: "body",
|
|
170
|
+
label: "脚本"
|
|
171
|
+
}, {
|
|
172
|
+
default: f(() => [u(C, {
|
|
173
|
+
modelValue: v.flowConditionForm.body,
|
|
174
|
+
"onUpdate:modelValue": m[5] || (m[5] = (e) => v.flowConditionForm.body = e),
|
|
175
|
+
type: "textarea",
|
|
176
|
+
clearable: "",
|
|
177
|
+
onChange: y.updateFlowCondition
|
|
178
|
+
}, null, 8, ["modelValue", "onChange"])]),
|
|
179
|
+
_: 1
|
|
180
|
+
})) : c("v-if", !0),
|
|
181
|
+
v.flowConditionForm.scriptType === "externalScript" ? (d(), s(S, {
|
|
182
|
+
key: "resource",
|
|
183
|
+
label: "资源地址"
|
|
184
|
+
}, {
|
|
185
|
+
default: f(() => [u(C, {
|
|
186
|
+
modelValue: v.flowConditionForm.resource,
|
|
187
|
+
"onUpdate:modelValue": m[6] || (m[6] = (e) => v.flowConditionForm.resource = e),
|
|
188
|
+
clearable: "",
|
|
189
|
+
onChange: y.updateFlowCondition
|
|
190
|
+
}, null, 8, ["modelValue", "onChange"])]),
|
|
191
|
+
_: 1
|
|
192
|
+
})) : c("v-if", !0)
|
|
193
|
+
], 64)) : c("v-if", !0)
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["model"])]);
|
|
197
|
+
}
|
|
198
|
+
var _ = /* @__PURE__ */ e(m, [["render", g]]);
|
|
199
|
+
//#endregion
|
|
200
|
+
export { _ as default };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ElCascader as e, ElInput as t } from "element-plus/es";
|
|
2
|
+
import "element-plus/es/components/base/style/css";
|
|
3
|
+
import "element-plus/es/components/input/style/css";
|
|
4
|
+
import "element-plus/es/components/cascader/style/css";
|
|
5
|
+
import { createVNode as n, mergeProps as r, ref as i, watchEffect as a } from "vue";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/AddressInput.vue
|
|
8
|
+
var o = {
|
|
9
|
+
name: "AddressInput",
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
props: {
|
|
12
|
+
options: {
|
|
13
|
+
type: Array,
|
|
14
|
+
default() {
|
|
15
|
+
return [];
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({
|
|
21
|
+
address: [],
|
|
22
|
+
detailAddress: ""
|
|
23
|
+
})
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({
|
|
28
|
+
label: "name",
|
|
29
|
+
value: "id"
|
|
30
|
+
})
|
|
31
|
+
},
|
|
32
|
+
labelAsValue: Boolean,
|
|
33
|
+
disabled: Boolean
|
|
34
|
+
},
|
|
35
|
+
emits: ["update:modelValue"],
|
|
36
|
+
setup(o, { emit: s, attrs: c }) {
|
|
37
|
+
let l = i([]), u = i(""), d = (e) => {
|
|
38
|
+
s("update:modelValue", e);
|
|
39
|
+
};
|
|
40
|
+
a(() => {
|
|
41
|
+
o.modelValue && (l.value = o.modelValue.address, u.value = o.modelValue.detailAddress);
|
|
42
|
+
});
|
|
43
|
+
let f = () => {
|
|
44
|
+
!l.value && !u.value ? d(void 0) : d({
|
|
45
|
+
address: l.value,
|
|
46
|
+
detailAddress: u.value
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
return () => n("div", r({ class: "address-input-wrapper flex-row" }, c), [n("div", { class: "address-input-item-wrapper" }, [n(e, {
|
|
50
|
+
modelValue: l.value,
|
|
51
|
+
"onUpdate:modelValue": [(e) => l.value = e, f],
|
|
52
|
+
options: o.options,
|
|
53
|
+
disabled: o.disabled,
|
|
54
|
+
props: {
|
|
55
|
+
label: o.props.label,
|
|
56
|
+
value: o.labelAsValue ? o.props.label : o.props.value
|
|
57
|
+
}
|
|
58
|
+
}, null)]), n("div", { class: "address-input-item-wrapper flex-item" }, [n(t, {
|
|
59
|
+
modelValue: u.value,
|
|
60
|
+
"onUpdate:modelValue": [(e) => u.value = e, f],
|
|
61
|
+
placeholder: "请输入详细地址!",
|
|
62
|
+
disabled: o.disabled
|
|
63
|
+
}, null)])]);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { o as t };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.mjs";
|
|
2
|
+
import { n, o as r } from "./CkLpOk7H.mjs";
|
|
3
|
+
import { n as i, t as a } from "./D6mInNk02.mjs";
|
|
4
|
+
import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
|
|
5
|
+
//#region src/components/table/form-table.ts
|
|
6
|
+
var u = {
|
|
7
|
+
...t,
|
|
8
|
+
...e,
|
|
9
|
+
...i
|
|
10
|
+
}, d = {
|
|
11
|
+
modelValue: !0,
|
|
12
|
+
block: !0
|
|
13
|
+
}, f = (e) => t[e] === void 0 && d[e] !== !0, p = {
|
|
14
|
+
name: "FormTable",
|
|
15
|
+
props: { ...u },
|
|
16
|
+
emits: {
|
|
17
|
+
...n,
|
|
18
|
+
"add-row": null
|
|
19
|
+
},
|
|
20
|
+
setup(e, { emit: t, attrs: n, slots: i }) {
|
|
21
|
+
let u = l(e, "modelValue"), d = c([]), p = (e) => {
|
|
22
|
+
d.value = e;
|
|
23
|
+
}, { render: m, placeholder: h, disabled: g, listeners: _, inputProps: v } = r(e, {
|
|
24
|
+
emit: t,
|
|
25
|
+
slots: i,
|
|
26
|
+
attrs: n,
|
|
27
|
+
predicate: f,
|
|
28
|
+
block: e.block === void 0 ? !0 : e.block
|
|
29
|
+
});
|
|
30
|
+
return () => {
|
|
31
|
+
var t;
|
|
32
|
+
let n = {};
|
|
33
|
+
for (let r = 0; r < (((t = e.columns) == null ? void 0 : t.length) ?? 0); r++) {
|
|
34
|
+
let t = e.columns[r];
|
|
35
|
+
n[t.prop] = (e, n, r) => {
|
|
36
|
+
var a;
|
|
37
|
+
return (a = i[t.prop]) == null ? void 0 : a.call(i, e, n, r);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return m({ vNodes: o(a, s(_.value, v.value, {
|
|
41
|
+
disabled: g.value,
|
|
42
|
+
modelValue: u.value,
|
|
43
|
+
"onUpdate:modelValue": (e) => u.value = e,
|
|
44
|
+
placeholder: h.value,
|
|
45
|
+
onSelectionChange: p
|
|
46
|
+
}), {
|
|
47
|
+
...n,
|
|
48
|
+
columns: ({ columns: e }) => {
|
|
49
|
+
var t;
|
|
50
|
+
return (t = i.columns) == null ? void 0 : t.call(i, { columns: e });
|
|
51
|
+
},
|
|
52
|
+
handle: ({ add: e, remove: t }) => {
|
|
53
|
+
var n;
|
|
54
|
+
return (n = i.handle) == null ? void 0 : n.call(i, {
|
|
55
|
+
add: e,
|
|
56
|
+
remove: t
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
tag: ({ column: e, row: t, $index: n }) => {
|
|
60
|
+
var r;
|
|
61
|
+
return (r = i.tag) == null ? void 0 : r.call(i, {
|
|
62
|
+
column: e,
|
|
63
|
+
row: t,
|
|
64
|
+
$index: n
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
"handle-column-header": ({ column: e, $index: t }) => {
|
|
68
|
+
var n;
|
|
69
|
+
return (n = i["handle-column-header"]) == null ? void 0 : n.call(i, {
|
|
70
|
+
column: e,
|
|
71
|
+
index: t
|
|
72
|
+
});
|
|
73
|
+
},
|
|
74
|
+
toolbar: ({ addRow: e, delRow: t, refresh: n }) => {
|
|
75
|
+
var r;
|
|
76
|
+
return (r = i.toolbar) == null ? void 0 : r.call(i, {
|
|
77
|
+
addRow: e,
|
|
78
|
+
delRow: t,
|
|
79
|
+
refresh: n
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}) });
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { p as t };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { allProps as e, predicate as t } from "../props/checkbox-group.mjs";
|
|
2
|
+
import { n, o as r } from "./CkLpOk7H.mjs";
|
|
3
|
+
import { useDictionary as i } from "../hook/useDictionary.mjs";
|
|
4
|
+
import { t as a } from "./BWTQ3qdg.mjs";
|
|
5
|
+
import { ElCheckbox as o, ElCheckboxButton as s, ElCheckboxGroup as c } from "element-plus/es";
|
|
6
|
+
import "element-plus/es/components/base/style/css";
|
|
7
|
+
import { computed as l, createVNode as u, defineComponent as d, isVNode as f, mergeProps as p, useModel as m } from "vue";
|
|
8
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
9
|
+
import "element-plus/es/components/checkbox-button/style/css";
|
|
10
|
+
import "element-plus/es/components/checkbox-group/style/css";
|
|
11
|
+
//#region src/components/form/FormCheckboxGroup.vue?vue&type=script&lang.jsx
|
|
12
|
+
function h(e) {
|
|
13
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !f(e);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/form/FormCheckboxGroup.vue
|
|
17
|
+
var g = /* @__PURE__ */ d({
|
|
18
|
+
name: "FormCheckboxGroup",
|
|
19
|
+
inheritAttrs: !1,
|
|
20
|
+
props: { ...e },
|
|
21
|
+
emits: {
|
|
22
|
+
...n,
|
|
23
|
+
"update:other": null
|
|
24
|
+
},
|
|
25
|
+
setup(e, { emit: n, slots: d, attrs: f }) {
|
|
26
|
+
let g = m(e, "other"), { emitInput: _, render: v, disabled: y, listeners: b, inputProps: x } = r(e, {
|
|
27
|
+
emit: n,
|
|
28
|
+
slots: d,
|
|
29
|
+
attrs: f,
|
|
30
|
+
predicate: t,
|
|
31
|
+
messagePrefix: "请选择",
|
|
32
|
+
class: l(() => ["form-checkbox-group", {
|
|
33
|
+
"form-checkbox-group-row": e.fillRow,
|
|
34
|
+
"form-checkbox-group-row-break-word": e.fillRow,
|
|
35
|
+
"form-checkbox-group-row-ellipsis": e.ellipsis
|
|
36
|
+
}])
|
|
37
|
+
}), S = (t) => {
|
|
38
|
+
let n = t;
|
|
39
|
+
e.sort && (n = t.sort()), e.stringMode || e.split ? _(n.join(",")) : _(n);
|
|
40
|
+
}, C = l(() => {
|
|
41
|
+
if (e.stringMode || e.split) {
|
|
42
|
+
var t;
|
|
43
|
+
return Array.isArray(e.modelValue) ? e.modelValue.filter((e) => e) : ((t = e.modelValue) == null ? void 0 : t.split(e.delimiter).filter((e) => e)) ?? [];
|
|
44
|
+
}
|
|
45
|
+
return e.modelValue || [];
|
|
46
|
+
}), w = l(() => e.classic ? "label" : e.labelProp), T = l(() => e.classic ? "value" : e.valueProp), { dictItems: E } = i(e), D = l(() => e.dictType ? E.value : e.gender ? [{
|
|
47
|
+
[w.value]: "男",
|
|
48
|
+
[T.value]: "男"
|
|
49
|
+
}, {
|
|
50
|
+
[w.value]: "女",
|
|
51
|
+
[T.value]: "女"
|
|
52
|
+
}] : e.confirm ? [{
|
|
53
|
+
[w.value]: "是",
|
|
54
|
+
[T.value]: "是"
|
|
55
|
+
}, {
|
|
56
|
+
[w.value]: "否",
|
|
57
|
+
[T.value]: "否"
|
|
58
|
+
}] : e.options);
|
|
59
|
+
return () => v({ vNodes: [u(c, p(b.value, x.value, {
|
|
60
|
+
modelValue: C.value,
|
|
61
|
+
disabled: y.value,
|
|
62
|
+
"onUpdate:modelValue": S
|
|
63
|
+
}), {
|
|
64
|
+
...d,
|
|
65
|
+
default: d.default || (() => {
|
|
66
|
+
var t;
|
|
67
|
+
return (t = D.value) == null ? void 0 : t.map(({ value: t, label: n, disabled: r }) => e.type === "button" ? u(s, {
|
|
68
|
+
key: t,
|
|
69
|
+
value: t,
|
|
70
|
+
disabled: r
|
|
71
|
+
}, h(n) ? n : { default: () => [n] }) : u(o, {
|
|
72
|
+
key: t,
|
|
73
|
+
value: t,
|
|
74
|
+
disabled: r
|
|
75
|
+
}, h(n) ? n : { default: () => [n] }));
|
|
76
|
+
})
|
|
77
|
+
}), C.value.includes(e.otherVal) ? u(a, {
|
|
78
|
+
"wrap-col": !1,
|
|
79
|
+
class: "form-checkbox-group-other",
|
|
80
|
+
"hide-label": !0,
|
|
81
|
+
"label-width": "0",
|
|
82
|
+
prop: e.otherProp,
|
|
83
|
+
disabled: y.value,
|
|
84
|
+
required: !!e.otherProp,
|
|
85
|
+
placeholder: e.otherPlaceholder,
|
|
86
|
+
label: e.otherLabel,
|
|
87
|
+
"show-message": !!e.otherLabel,
|
|
88
|
+
style: e.otherLabel ? { width: e.otherWidth } : {
|
|
89
|
+
marginBottom: 0,
|
|
90
|
+
width: e.otherWidth
|
|
91
|
+
},
|
|
92
|
+
modelValue: g.value,
|
|
93
|
+
"onUpdate:modelValue": (e) => g.value = e,
|
|
94
|
+
"max-length": e.otherMaxLength
|
|
95
|
+
}, null) : null] });
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
//#endregion
|
|
99
|
+
export { g as t };
|