@web-utils/form-ui 1.0.0-beta57 → 1.0.0-beta59
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/ElementBaseInfo-B-SjuN-T.js +433 -0
- package/ElementDialog-DnrnQDJh.js +2197 -0
- package/ElementForm-H_nKO2N3.js +601 -0
- package/ElementListeners-C51WiyqT.js +640 -0
- package/ElementMultiInstance-CL-39nGi.js +289 -0
- package/ElementOtherConfig-CEYmg31I.js +51 -0
- package/ElementProperties-C7hUCewh.js +192 -0
- package/ElementTaskConfig-0cN06jgv.js +447 -0
- package/FlowCondition-C4yrBSYH.js +196 -0
- package/SignalAndMessage-sfMXrRDt.js +193 -0
- package/UserTaskListeners-CBxqMguz.js +586 -0
- package/_plugin-vue_export-helper-BbfgGJ0Y.js +1668 -0
- 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 +32 -0
- package/affix/index.mjs +49 -0
- package/affix/style.css +1 -0
- package/awesome-button/index.d.ts +3 -3
- package/awesome-button/index.mjs +6 -6
- package/base.css +1 -1
- package/capsule-tab/index.d.ts +22 -0
- package/capsule-tab/index.mjs +27 -0
- package/capsule-tab/style.css +1 -0
- package/card/index.d.ts +41 -0
- package/card/index.mjs +89 -0
- package/card/style.css +1 -0
- package/checkbox-rOSkyEjK.js +438 -0
- package/chunks/{BXrA0SYn2.mjs → 3gUkQF12.mjs} +12 -12
- package/chunks/49634Q2N2.mjs +936 -0
- package/chunks/{Crh2RUrS.mjs → 5itVLmv82.mjs} +32 -30
- package/chunks/6kdakei5.mjs +644 -0
- package/chunks/77cFhiAz.mjs +13 -0
- package/chunks/7Cv9Cq-02.mjs +1354 -0
- package/chunks/7JVbVOff2.mjs +46 -0
- package/chunks/9rQitPz7.mjs +590 -0
- package/chunks/B1ATN2my.mjs +26 -0
- package/chunks/B1GA44yT2.mjs +42 -0
- package/chunks/B31ub5xS.mjs +46 -0
- package/chunks/B3d4fdGH.mjs +17 -0
- package/chunks/B5voIv4_.mjs +194 -0
- package/chunks/B7O8aGqC2.mjs +58 -0
- package/chunks/{DyEYDv4B.mjs → B8wGY5Hs2.mjs} +2 -2
- package/chunks/BBPczt0U.mjs +4 -0
- package/chunks/BBqq6o072.mjs +243 -0
- package/chunks/BCVhSMZN.mjs +1328 -0
- package/chunks/BDVLN2ly.mjs +105 -0
- package/chunks/BEysX5TF2.mjs +1038 -0
- package/chunks/{v3wbYL_-.mjs → BI-ZFlSw2.mjs} +2 -2
- package/chunks/BIj6pa8Z.mjs +15 -0
- package/chunks/BJby9uHB2.mjs +233 -0
- package/chunks/BMTtnkb7.mjs +60 -0
- package/chunks/BPpMbPS8.mjs +63 -0
- package/chunks/{DB_UKPay.mjs → BQNqBw8h2.mjs} +2 -2
- package/chunks/BUAQybGW.mjs +230 -0
- package/chunks/BVIHqL6g.mjs +17 -0
- package/chunks/BVSQ6DfJ.mjs +17 -0
- package/chunks/B__5L22p2.mjs +346 -0
- package/chunks/BaLjN8Ow.mjs +197 -0
- package/chunks/Baam4z-g.mjs +275 -0
- package/chunks/Bdeug17L.mjs +42 -0
- package/chunks/BeWNlclr.mjs +295 -0
- package/chunks/BecO0t0_2.mjs +2430 -0
- package/chunks/BffxPn8a.mjs +34 -0
- package/chunks/Bgw_3soo.mjs +35 -0
- package/chunks/BjCfQFUL.mjs +54 -0
- package/chunks/BjWs-r2V.mjs +25 -0
- package/chunks/BkEMJ725.mjs +214 -0
- package/chunks/BlB1fEo92.mjs +8 -0
- package/chunks/BoId6V9J.mjs +17 -0
- package/chunks/BrYtAPbN2.mjs +161 -0
- package/chunks/BsKwchVA.mjs +14 -0
- package/chunks/BsM0L7CS.mjs +132 -0
- package/chunks/{ztBRZQwM.mjs → BvbjlaN02.mjs} +89 -88
- package/chunks/BvcK4D8A2.mjs +1800 -0
- package/chunks/C1RsHtGI.mjs +40 -0
- package/chunks/C5f3Xfsc2.mjs +36 -0
- package/chunks/C7l9aZGE.mjs +577 -0
- package/chunks/CDqVJ7U3.mjs +449 -0
- package/chunks/CFvkR9Ze2.mjs +31 -0
- package/chunks/CGM03LI5.mjs +588 -0
- package/chunks/{CJ1-f8sg.mjs → CIybFvu92.mjs} +1 -1
- package/chunks/CPejK_GQ2.mjs +383 -0
- package/chunks/CQSTyCVP.mjs +6 -0
- package/chunks/CQxz8uUc.mjs +454 -0
- package/chunks/CR29QUwT2.mjs +28 -0
- package/chunks/CWvo-ucD.mjs +446 -0
- package/chunks/C_eGir-J.mjs +17 -0
- package/chunks/CaRunrOV2.mjs +5289 -0
- package/chunks/Calzy0Az.mjs +1275 -0
- package/chunks/{BHT38Us-.mjs → CbbjpJFg2.mjs} +2 -2
- package/chunks/CbgD7y-5.mjs +5 -0
- package/chunks/CbsGuLZz2.mjs +105 -0
- package/chunks/CcT5SsZk.mjs +48 -0
- package/chunks/CdBytH8S.mjs +266 -0
- package/chunks/Ch_zaHx9.mjs +89 -0
- package/chunks/CiFlMt6Z.mjs +41 -0
- package/chunks/CjjJimnU.mjs +20 -0
- package/chunks/Cjkq49252.mjs +60 -0
- package/chunks/CjmfMN1X2.mjs +34 -0
- package/chunks/CnCSm3LY2.mjs +4 -0
- package/chunks/CsLrkldT2.mjs +225 -0
- package/chunks/Csiz_xCa2.mjs +273 -0
- package/chunks/Ctd3_wOH2.mjs +6 -0
- package/chunks/Cu2A_1vk2.mjs +106 -0
- package/chunks/CuoF9V8s.mjs +3091 -0
- package/chunks/CwBq1JZV.mjs +250 -0
- package/chunks/CwWfRmD3.mjs +57 -0
- package/chunks/CwqeV7002.mjs +67 -0
- package/chunks/Cy8jqgun2.mjs +41 -0
- package/chunks/D-hj62se2.mjs +525 -0
- package/chunks/D3Xixh5v.mjs +5 -0
- package/chunks/D4oNQiIK.mjs +461 -0
- package/chunks/D6vTCC1Z2.mjs +110 -0
- package/chunks/D8r81QxD.mjs +732 -0
- package/chunks/{T4GdQtY8.mjs → D9qn1x3X2.mjs} +2 -2
- package/chunks/DL0o_C092.mjs +1093 -0
- package/chunks/DLgn1tQG2.mjs +60 -0
- package/chunks/{CqoMZ9Wo2.mjs → DNSPORak.mjs} +53 -52
- package/chunks/DStwh2ne.mjs +281 -0
- package/chunks/{CUq3MOiQ2.mjs → DTUh8o0p2.mjs} +14 -14
- package/chunks/DXiLi19u2.mjs +33 -0
- package/chunks/DZ0frL1U.mjs +69 -0
- package/chunks/D_qwjNah.mjs +1094 -0
- package/chunks/DbtlO6wD.mjs +52 -0
- package/chunks/DfJJr053.mjs +217 -0
- package/chunks/Dg9Q-Tbi2.mjs +299 -0
- package/chunks/{usyXQe35.mjs → DhQF2ZlD.mjs} +26 -25
- package/chunks/Dls3rTka2.mjs +24 -0
- package/chunks/DnBzQ-xh.mjs +4 -0
- package/chunks/DoNfjRR1.mjs +68 -0
- package/chunks/DoOkwYtO.mjs +609 -0
- package/chunks/DrKq_frR.mjs +98 -0
- package/chunks/DsYXqJLZ.mjs +641 -0
- package/chunks/DsZznbt2.mjs +208 -0
- package/chunks/Dsd58O0g.mjs +25 -0
- package/chunks/Dtq1xYk8.mjs +47 -0
- package/chunks/{rJWvEBq9.mjs → DxL9oojv2.mjs} +98 -97
- package/chunks/EA6hte7s2.mjs +49 -0
- package/chunks/FeuisuNY2.mjs +88 -0
- package/chunks/GEtlriHC.mjs +188 -0
- package/chunks/GsvG1yFW.mjs +1919 -0
- package/chunks/KGmxNbpi.mjs +21 -0
- package/chunks/Q2Mal3Qn2.mjs +439 -0
- package/chunks/T_jwNKBr.mjs +379 -0
- package/chunks/TtxSplBB.mjs +195 -0
- package/chunks/Wl17p0C82.mjs +94 -0
- package/chunks/Z0BPDZlb.mjs +66 -0
- package/chunks/akEzJ4kG.mjs +18 -0
- package/chunks/cMuWbLPt.mjs +196 -0
- package/chunks/e70aZf3z.mjs +64 -0
- package/chunks/gh52LMTG.mjs +12 -0
- package/chunks/hgAOQY9a.mjs +406 -0
- package/chunks/lGc5ksPb.mjs +279 -0
- package/chunks/mD3gmiOy2.mjs +96 -0
- package/chunks/nLBvkerV2.mjs +621 -0
- package/chunks/pZQfJv282.mjs +4 -0
- package/chunks/qrHhuZXg.mjs +465 -0
- package/chunks/uqKZ4RIo.mjs +222 -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.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- 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 +19 -0
- package/data-box/index.mjs +68 -0
- package/data-box/style.css +1 -0
- package/data-card/index.d.ts +20 -0
- package/data-card/index.mjs +63 -0
- package/data-card/style.css +1 -0
- package/data-card-text/index.d.ts +21 -0
- package/data-card-text/index.mjs +67 -0
- package/data-card-text/style.css +1 -0
- package/data-display/index.d.ts +20 -0
- package/data-display/index.mjs +73 -0
- package/data-display/style.css +1 -0
- package/data-icons/index.d.ts +21 -0
- package/data-icons/index.mjs +74 -0
- package/data-icons/style.css +1 -0
- package/data-imgtext/index.d.ts +18 -0
- package/data-imgtext/index.mjs +71 -0
- package/data-imgtext/style.css +1 -0
- package/data-operatext/index.d.ts +17 -0
- package/data-operatext/index.mjs +54 -0
- package/data-operatext/style.css +1 -0
- package/data-panel/index.d.ts +19 -0
- package/data-panel/index.mjs +61 -0
- package/data-panel/style.css +1 -0
- package/data-pay/index.d.ts +19 -0
- package/data-pay/index.mjs +110 -0
- package/data-pay/style.css +1 -0
- package/data-price/index.d.ts +17 -0
- package/data-price/index.mjs +51 -0
- package/data-price/style.css +1 -0
- package/data-progress/index.d.ts +19 -0
- package/data-progress/index.mjs +72 -0
- package/data-progress/style.css +1 -0
- package/data-rotate/index.d.ts +19 -0
- package/data-rotate/index.mjs +65 -0
- package/data-rotate/style.css +1 -0
- package/data-table-picker/index.d.ts +61 -0
- package/data-table-picker/index.mjs +118 -0
- package/data-tabs/index.d.ts +19 -0
- package/data-tabs/index.mjs +71 -0
- package/data-tabs/style.css +1 -0
- package/dict-render/index.d.ts +1 -1
- package/dict-render/index.mjs +1 -1
- package/divider-aeGmEWI5.js +41 -0
- package/drawer-TG22dm2D.js +220 -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 +120 -0
- package/editable-progress/style.css +1 -0
- package/editable-tree/index.d.ts +1 -1
- package/editable-tree/index.mjs +2 -591
- package/element-dialog/index.d.ts +18 -16
- package/element-dialog/index.mjs +1 -1
- 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.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-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 +353 -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-cascader/index.d.ts +15 -15
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.d.ts +18 -11
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +8 -8
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +21 -21
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +4 -4
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +4 -4
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +16 -16
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +4 -4
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +16 -16
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +16 -16
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +8 -8
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +16 -16
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +6 -6
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.d.ts +24 -24
- package/form-input-time/index.mjs +1 -1
- package/form-item-config-provider/index.d.ts +1 -1
- package/form-item-group/index.d.ts +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +4 -4
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +9 -9
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +13 -13
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.mjs +12 -12
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +20 -20
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +7 -7
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +22 -22
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +2 -2
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +4 -4
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +5 -5
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +16 -16
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +16 -16
- package/form-time-select/index.mjs +1 -1
- 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 +2 -0
- package/guide-steps/style.css +1 -0
- package/helper/dictionary.mjs +1 -1
- package/helper/form-item.mjs +10 -10
- package/helper/input.d.ts +1 -1
- package/helper/input.mjs +1 -1
- 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/iframe-window/index.mjs +1 -1
- package/image-cropper/index.d.ts +365 -0
- package/image-cropper/index.mjs +155 -0
- package/image-cropper/style.css +1 -0
- package/image-preview/index.d.ts +213 -0
- package/image-preview/index.mjs +2 -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 +1 -1
- package/index.d.ts +65 -1
- package/index.mjs +122 -58
- package/input-number-range/index.d.ts +41 -0
- package/input-number-range/index.mjs +76 -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 +36 -0
- package/nav-bar/style.css +1 -0
- package/package.json +17 -2
- 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 +123 -0
- package/page-index/style.css +1 -0
- package/page-index-top/index.d.ts +38 -0
- package/page-index-top/index.mjs +85 -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 +4 -4
- package/pageable-table/index.mjs +1 -1
- package/photo-swipe/index.d.ts +18 -0
- package/photo-swipe/index.mjs +2 -0
- package/props/cascader.d.ts +5 -5
- package/props/checkbox-group.d.ts +2 -2
- package/props/checkbox.d.ts +7 -4
- package/props/checkbox.mjs +9 -6
- package/props/col.mjs +1 -1
- package/props/common.d.ts +1 -1
- package/props/date.d.ts +8 -8
- package/props/form-item.d.ts +1 -1
- package/props/form-item.mjs +1 -1
- package/props/form.d.ts +2 -2
- package/props/image.d.ts +1 -1
- package/props/input-cron.d.ts +1 -1
- package/props/input-number.d.ts +1 -1
- package/props/input-tag.d.ts +2 -2
- package/props/input.d.ts +6 -6
- package/props/radio-group.d.ts +2 -2
- package/props/rate.d.ts +5 -5
- package/props/select.d.ts +7 -7
- package/props/slide.d.ts +1 -1
- package/props/switch.d.ts +8 -8
- package/props/text.d.ts +1 -1
- package/props/textarea.d.ts +6 -6
- package/props/time-select.d.ts +5 -5
- package/props/time.d.ts +8 -8
- 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/vue-tree-select.d.ts +458 -0
- package/props/vue-tree-select.mjs +213 -0
- package/rolldown-runtime-OaQ8AyCN.js +20 -0
- package/scrollbar-BBrFtze_.js +3226 -0
- package/select-q7vi1EDu.js +1389 -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 +37 -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.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.d.ts +27 -0
- package/swiper/index.mjs +126 -0
- package/swiper/style.css +1 -0
- package/table-8fnjrlxs.js +3080 -0
- package/table-column/index.d.ts +11 -11
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +8 -8
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +7 -7
- package/table-view/index.mjs +140 -137
- 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.mjs +1 -1
- package/toolbar-button/index.d.ts +14 -14
- package/toolbar-button/index.mjs +1 -1
- package/utilSelf-D_fsC71t.js +46 -0
- package/utils-axoBfc1D.js +60 -0
- package/vue-cron/index.d.ts +1 -1
- package/vue-cron/index.mjs +1 -1
- 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.mjs +54 -50
- package/year-calendar/index.mjs +1 -1
- package/year-calendar/style.css +1 -1
- package/chunks/-qKZw-3p2.mjs +0 -23
- package/chunks/33G2_TH8.mjs +0 -653
- package/chunks/6av50rJm.mjs +0 -93
- package/chunks/8P-OAGbj.mjs +0 -164
- package/chunks/B2PuSZ_F.mjs +0 -35
- package/chunks/B6B-rhhB.mjs +0 -37
- package/chunks/BWoKh6f6.mjs +0 -66
- package/chunks/BZ0v5mka.mjs +0 -30
- package/chunks/C-0zqLII.mjs +0 -108
- package/chunks/CE1uX9hJ.mjs +0 -95
- package/chunks/CGnOR2gn.mjs +0 -59
- package/chunks/CdzoVG6J.mjs +0 -47
- package/chunks/CrQmTHMA.mjs +0 -105
- package/chunks/DBUJ7Bva.mjs +0 -56
- package/chunks/DEC2O0q-.mjs +0 -129
- package/chunks/DUhF8YOY.mjs +0 -1361
- package/chunks/Du1PslcN.mjs +0 -28
- package/chunks/DuOxL6xh.mjs +0 -113
- package/chunks/EAJCsX8W.mjs +0 -32
- package/chunks/ZFJ73RWd2.mjs +0 -29
- package/chunks/fmIV_kHp.mjs +0 -67
- package/chunks/h5488Kii.mjs +0 -27
- package/chunks/k3cC9SGC.mjs +0 -27
- package/chunks/mekxD3ef.mjs +0 -86
- package/chunks/vd9nXj8B.mjs +0 -59
- /package/chunks/{DOZRzqlo.mjs → BVuwiZGi.mjs} +0 -0
- /package/chunks/{B1MSrc6f.mjs → BwYEpK-u.mjs} +0 -0
- /package/chunks/{CI1ehQi5.mjs → h-Uhst9y.mjs} +0 -0
package/editable-tree/index.mjs
CHANGED
|
@@ -1,591 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { allProps as r, predicate as i } from "../props/tree.mjs";
|
|
4
|
-
import { t as a } from "../chunks/B1MSrc6f.mjs";
|
|
5
|
-
import { computePosition as o, delay as s, fastClone as c, findTreeChildren as l, isFunction as u, isNotEmpty as d, isPlainObject as f, isUndefined as p, isVerticalScrollbarVisible as m, patch as h, scrollbarWidth as g } from "@web-utils/core";
|
|
6
|
-
import { Fragment as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, mergeProps as w, normalizeClass as T, normalizeStyle as E, openBlock as D, renderSlot as O, toDisplayString as k, toHandlers as A, vShow as j, withCtx as M, withDirectives as N, withModifiers as P } from "vue";
|
|
7
|
-
import { ElMessageBox as F } from "element-plus";
|
|
8
|
-
import { cloneDeep as I } from "@web-utils/integrations/lodash";
|
|
9
|
-
import { ElInput as L, ElPopconfirm as R, ElTree as z } from "element-plus/es";
|
|
10
|
-
import { addResizeListener as B, removeResizeListener as V } from "@web-utils/integrations/resize";
|
|
11
|
-
//#region src/components/form/EditableTree.vue
|
|
12
|
-
var H = {
|
|
13
|
-
name: "EditableTree",
|
|
14
|
-
props: { ...r },
|
|
15
|
-
emits: {
|
|
16
|
-
"remove-new-node": null,
|
|
17
|
-
"node-loaded": null,
|
|
18
|
-
"root-node-loaded": null,
|
|
19
|
-
"node-deleted": null,
|
|
20
|
-
"node-updated": null,
|
|
21
|
-
"node-added": null,
|
|
22
|
-
"on-node-click": null,
|
|
23
|
-
"add-root-node": null,
|
|
24
|
-
"create-new-node": null
|
|
25
|
-
},
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
loading: !1,
|
|
29
|
-
showMenu: !1,
|
|
30
|
-
empty: !0,
|
|
31
|
-
expandedKeys: this.lazy ? [] : this.defaultExpandedKeys,
|
|
32
|
-
treeData: [],
|
|
33
|
-
curNode: {},
|
|
34
|
-
curData: {},
|
|
35
|
-
position: {},
|
|
36
|
-
text: "",
|
|
37
|
-
right: 4,
|
|
38
|
-
treeKey: Date.now()
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
computed: {
|
|
42
|
-
defaultOptions() {
|
|
43
|
-
return {
|
|
44
|
-
confirmButtonText: "确定",
|
|
45
|
-
cancelButtonText: "取消",
|
|
46
|
-
closeOnClickModal: !1,
|
|
47
|
-
modal: !0,
|
|
48
|
-
inputErrorMessage: `${this.label}名不能为空!`,
|
|
49
|
-
inputPlaceholder: `请输入${this.label}名...`,
|
|
50
|
-
inputValidator: (e) => e != null && e.trim().length > 0
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
innerTreeData() {
|
|
54
|
-
var e;
|
|
55
|
-
return (e = this.$attrs.data) != null && e.length ? this.$attrs.data : this.treeData;
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
watch: { defaultExpandedKeys: {
|
|
59
|
-
immediate: !0,
|
|
60
|
-
handler(e) {
|
|
61
|
-
this.expandedKeys = [...e];
|
|
62
|
-
}
|
|
63
|
-
} },
|
|
64
|
-
setup(t) {
|
|
65
|
-
let { autoBindProps: n, listeners: r } = e(t, {
|
|
66
|
-
predicate: i,
|
|
67
|
-
removeOn: !0
|
|
68
|
-
});
|
|
69
|
-
return {
|
|
70
|
-
autoBindProps: n,
|
|
71
|
-
listeners: r
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
created() {
|
|
75
|
-
this.tryFetch();
|
|
76
|
-
},
|
|
77
|
-
mounted() {
|
|
78
|
-
B(this.$refs.tree.$el, this.resize), B(this.$refs.treeWrapper, this.resize);
|
|
79
|
-
},
|
|
80
|
-
beforeUnmount() {
|
|
81
|
-
V(this.$refs.tree.$el, this.resize), V(this.$refs.treeWrapper, this.resize);
|
|
82
|
-
},
|
|
83
|
-
methods: {
|
|
84
|
-
addExpandKey(e) {
|
|
85
|
-
this.reserveExpandKey && this.expandedKeys.push(e[this.nodeKey]);
|
|
86
|
-
},
|
|
87
|
-
removeExpandKey(e) {
|
|
88
|
-
this.reserveExpandKey && (this.expandedKeys = this.expandedKeys.filter((t) => t !== e[this.nodeKey]));
|
|
89
|
-
},
|
|
90
|
-
resize() {
|
|
91
|
-
m(this.$refs.treeWrapper) ? this.right = 4 + g : this.right = 4;
|
|
92
|
-
},
|
|
93
|
-
async showContextMenu(e, t, n) {
|
|
94
|
-
t.contextmenu === !1 || t.id === -1 || t.id === 0 || t.edit === !0 || this.readonly || this.contextMenu && (this.curNode = n, this.curData = t, this.showMenu = !0, this.$refs.tree.setCurrentKey(t.id), await this.$nextTick(), this.position = o(e, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
|
|
95
|
-
},
|
|
96
|
-
hideContextMenu() {
|
|
97
|
-
this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
|
|
98
|
-
},
|
|
99
|
-
async tryFetch() {
|
|
100
|
-
if (this.lazy === !1 && this.fetchApi) {
|
|
101
|
-
var e;
|
|
102
|
-
let r;
|
|
103
|
-
try {
|
|
104
|
-
var t;
|
|
105
|
-
r = await this.fetchApi(((t = this.rootNode) == null ? void 0 : t.id) ?? -1, {});
|
|
106
|
-
} catch {
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
let i = r.data.data;
|
|
110
|
-
f(i) && (i = [i]), i = i || [];
|
|
111
|
-
let a = [];
|
|
112
|
-
if (this.empty = i.length === 0, f(this.customRootNode)) {
|
|
113
|
-
let e = I(this.customRootNode);
|
|
114
|
-
e[this.treeProps.children || "children"] = i, a = [e];
|
|
115
|
-
} else if (u(this.customRootNode)) {
|
|
116
|
-
let e = this.customRootNode(i);
|
|
117
|
-
e[this.treeProps.children || "children"] = i, a = f(e) ? [e] : e;
|
|
118
|
-
} else a = i;
|
|
119
|
-
if ((e = this.defaultExpandedKeys) != null && e.length) this.expandedKeys = [...this.defaultExpandedKeys];
|
|
120
|
-
else if (this.expandFirstNode) {
|
|
121
|
-
var n;
|
|
122
|
-
this.expandedKeys = [(n = a[0]) == null ? void 0 : n.id];
|
|
123
|
-
}
|
|
124
|
-
this.treeData = a, await this.$nextTick(), this.$emit("node-loaded", a);
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
async loadNode(e, t) {
|
|
128
|
-
if (e.level === 0) {
|
|
129
|
-
var n, r;
|
|
130
|
-
let o = (await this.fetchApi(((n = this.rootNode) == null ? void 0 : n.id) ?? -1, e)).data.data;
|
|
131
|
-
if (this.empty = o.length === 0, f(this.customRootNode)) {
|
|
132
|
-
let e = I(this.customRootNode);
|
|
133
|
-
e[this.treeProps.children || "children"] = o, o = [e], t(o);
|
|
134
|
-
} else if (u(this.customRootNode)) {
|
|
135
|
-
let e = this.customRootNode(o);
|
|
136
|
-
e[this.treeProps.children || "children"] = o, o = f(e) ? [e] : e;
|
|
137
|
-
} else t(o);
|
|
138
|
-
if (await this.$nextTick(), this.$emit("root-node-loaded", o), (r = this.defaultExpandedKeys) != null && r.length) {
|
|
139
|
-
var i;
|
|
140
|
-
this.expandedKeys = [(i = o[0]) == null ? void 0 : i.id, ...this.defaultExpandedKeys];
|
|
141
|
-
} else if (this.expandFirstNode) {
|
|
142
|
-
var a;
|
|
143
|
-
this.expandedKeys = [(a = o[0]) == null ? void 0 : a.id];
|
|
144
|
-
}
|
|
145
|
-
} else {
|
|
146
|
-
if (e.leaf || e.data.isTempNode) return t([]);
|
|
147
|
-
let n = (await this.fetchApi(e.data.id, e)).data.data;
|
|
148
|
-
t(n), await this.$nextTick(), this.$emit("node-loaded", n);
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
clear() {
|
|
152
|
-
this.cancelEdit(), this.removeNewNode();
|
|
153
|
-
},
|
|
154
|
-
clearChecked() {
|
|
155
|
-
this.$refs.tree.setCheckedKeys([]);
|
|
156
|
-
},
|
|
157
|
-
removeNewNode() {
|
|
158
|
-
this.newChild && this.newChild.id === -1 && (this.$refs.tree.remove(this.newChild), this.$emit("remove-new-node"));
|
|
159
|
-
},
|
|
160
|
-
cancelEdit() {
|
|
161
|
-
this.editData && (p(this.editData.edit) ? this.editData.edit = !0 : this.editData.edit = !1);
|
|
162
|
-
},
|
|
163
|
-
async editNode(e, t) {
|
|
164
|
-
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = t, this.text = t[this.treeProps.label], p(t.edit), t.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await F.prompt(`请输入新的${this.label}名:`, {
|
|
165
|
-
...this.defaultOptions,
|
|
166
|
-
inputValue: t[this.treeProps.label],
|
|
167
|
-
beforeClose: async (e, t, n) => {
|
|
168
|
-
if (e === "confirm") {
|
|
169
|
-
try {
|
|
170
|
-
t.confirmButtonLoading = !0, t.confirmButtonText = "处理中...", this.text = t.inputValue, await this.onConfirm(this.curNode, this.curData), n();
|
|
171
|
-
} catch {
|
|
172
|
-
t.confirmButtonText = "确定";
|
|
173
|
-
}
|
|
174
|
-
t.confirmButtonLoading = !1;
|
|
175
|
-
} else n();
|
|
176
|
-
}
|
|
177
|
-
}).catch((e) => e);
|
|
178
|
-
},
|
|
179
|
-
async appendRootNode() {
|
|
180
|
-
this.text = "", !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(void 0), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.scrollIntoView(!0)) : await F.prompt(`请输入${this.label}名:`, {
|
|
181
|
-
...this.defaultOptions,
|
|
182
|
-
beforeClose: async (e, n, r) => {
|
|
183
|
-
if (e === "confirm") {
|
|
184
|
-
try {
|
|
185
|
-
this.createNewChild(-1), n.confirmButtonLoading = !0, n.confirmButtonText = "处理中...";
|
|
186
|
-
let e = await this.saveApi(this.newNodeBuilder(n.inputValue, { id: -1 }));
|
|
187
|
-
this.newChild[this.treeProps.label] = n.inputValue, this.newChild.edit = !1, t(this.newChild, e.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), r();
|
|
188
|
-
} catch {
|
|
189
|
-
n.confirmButtonText = "确定";
|
|
190
|
-
}
|
|
191
|
-
n.confirmButtonLoading = !1;
|
|
192
|
-
} else r();
|
|
193
|
-
}
|
|
194
|
-
}).catch((e) => e);
|
|
195
|
-
},
|
|
196
|
-
appendChildNode(e) {
|
|
197
|
-
this.text = "";
|
|
198
|
-
let n = e.expanded;
|
|
199
|
-
e.expand(async () => {
|
|
200
|
-
!this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(e.data.id), this.$refs.tree.append(this.newChild, e), await this.scrollIntoView(n)) : await F.prompt(`请输入${this.label}名:`, {
|
|
201
|
-
...this.defaultOptions,
|
|
202
|
-
beforeClose: async (n, r, i) => {
|
|
203
|
-
if (n === "confirm") {
|
|
204
|
-
try {
|
|
205
|
-
this.createNewChild(e.data.id), r.confirmButtonLoading = !0, r.confirmButtonText = "处理中...";
|
|
206
|
-
let n = await this.saveApi(this.newNodeBuilder(r.inputValue, e.data));
|
|
207
|
-
this.newChild[this.treeProps.label] = r.inputValue, this.newChild.edit = !1, t(this.newChild, n.data), this.$refs.tree.append(this.newChild, e), await this.locateView(), i();
|
|
208
|
-
} catch {
|
|
209
|
-
r.confirmButtonText = "确定";
|
|
210
|
-
}
|
|
211
|
-
r.confirmButtonLoading = !1;
|
|
212
|
-
} else i();
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
},
|
|
217
|
-
appendChildNodeWithData(e, t, n) {
|
|
218
|
-
this.text = "";
|
|
219
|
-
let r = e.expanded;
|
|
220
|
-
e.expand(async () => {
|
|
221
|
-
this.clear(), this.newChild = {
|
|
222
|
-
id: -1,
|
|
223
|
-
parentId: t,
|
|
224
|
-
[this.treeProps.label]: n,
|
|
225
|
-
edit: !1,
|
|
226
|
-
isTempNode: !0,
|
|
227
|
-
hasChildren: !1
|
|
228
|
-
}, this.$refs.tree.append(this.newChild, e), await this.scrollIntoView(r);
|
|
229
|
-
});
|
|
230
|
-
},
|
|
231
|
-
appendPeerNode(e) {
|
|
232
|
-
e.parent && e.parent.level !== 0 ? this.appendChildNode(e.parent) : this.appendRootNode();
|
|
233
|
-
},
|
|
234
|
-
async addRootNode(e) {
|
|
235
|
-
this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.root.insertChild({ data: e }, void 0, !0);
|
|
236
|
-
},
|
|
237
|
-
async addChildNode(e) {
|
|
238
|
-
this.curNode && this.curNode.level !== 0 ? this.curNode.expand(async () => {
|
|
239
|
-
this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.append(e, this.curNode);
|
|
240
|
-
}) : await this.addRootNode(e);
|
|
241
|
-
},
|
|
242
|
-
async addPeerNode(e) {
|
|
243
|
-
this.curNode && this.curNode.parent && this.curNode.parent.level !== 0 ? this.curNode.parent.expand(async () => {
|
|
244
|
-
this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.append(e, this.curNode.parent);
|
|
245
|
-
}) : await this.addRootNode(e);
|
|
246
|
-
},
|
|
247
|
-
updateNode(e) {
|
|
248
|
-
let t = this.$refs.tree.getNode(e);
|
|
249
|
-
t && h(t.data, e, !0);
|
|
250
|
-
},
|
|
251
|
-
setCurrentKey(e) {
|
|
252
|
-
var t;
|
|
253
|
-
(t = this.$refs.tree) == null || t.setCurrentKey(e);
|
|
254
|
-
},
|
|
255
|
-
createNewChild(e) {
|
|
256
|
-
this.newChild = {
|
|
257
|
-
id: -1,
|
|
258
|
-
parentId: e,
|
|
259
|
-
[this.treeProps.label]: "",
|
|
260
|
-
edit: !0,
|
|
261
|
-
isTempNode: !0,
|
|
262
|
-
hasChildren: !1
|
|
263
|
-
}, this.$emit("create-new-node", this.newChild);
|
|
264
|
-
},
|
|
265
|
-
async removeNodeModal(e) {
|
|
266
|
-
await this.$confirm(`你确定要删除${this.label}[<span class="break-word" style="color: orange">${e.data[this.treeProps.label]}</span>]吗?`, "系统提示", {
|
|
267
|
-
type: "warning",
|
|
268
|
-
modal: !0,
|
|
269
|
-
dangerouslyUseHTMLString: !0,
|
|
270
|
-
iconClass: "el-icon-question",
|
|
271
|
-
closeOnClickModal: !1,
|
|
272
|
-
confirmButtonClass: "el-button--danger",
|
|
273
|
-
cancelButtonClass: "el-button--primary is-plain",
|
|
274
|
-
beforeClose: async (t, n, r) => {
|
|
275
|
-
if (t === "confirm") {
|
|
276
|
-
try {
|
|
277
|
-
n.confirmButtonLoading = !0, n.confirmButtonText = "删除...";
|
|
278
|
-
let t = e.parent, i = await this.deleteApi(e.data.id);
|
|
279
|
-
i.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(e), this.$emit("node-deleted", t, e.data), r()) : this.$message.error(i.message);
|
|
280
|
-
} catch {}
|
|
281
|
-
n.confirmButtonText = "确定", n.confirmButtonLoading = !1;
|
|
282
|
-
} else r();
|
|
283
|
-
}
|
|
284
|
-
}).catch((e) => e);
|
|
285
|
-
},
|
|
286
|
-
async removeNode(e) {
|
|
287
|
-
try {
|
|
288
|
-
let t = e.parent;
|
|
289
|
-
if (this.deleteApi) {
|
|
290
|
-
let n = await this.deleteApi(e.data.id);
|
|
291
|
-
n.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(e), this.$emit("node-deleted", t, e.data)) : this.$message.error(n.message);
|
|
292
|
-
} else this.$refs.tree.remove(e);
|
|
293
|
-
} catch {}
|
|
294
|
-
},
|
|
295
|
-
async onConfirm(e, n) {
|
|
296
|
-
if (n[this.treeProps.label] === this.text || !d(this.text)) {
|
|
297
|
-
this.clear();
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
p(n.loading), n.loading = !0;
|
|
301
|
-
try {
|
|
302
|
-
if (this.loading = !0, n.id === -1) {
|
|
303
|
-
let r = await this.saveApi(this.newNodeBuilder(this.text, e.parent.data || { id: -1 })), i = c(n);
|
|
304
|
-
t(n, {
|
|
305
|
-
...r.data,
|
|
306
|
-
isTempNode: !1
|
|
307
|
-
}), this.$emit("node-added", n, i, e), this.registerNode(e);
|
|
308
|
-
} else await this.updateApi({
|
|
309
|
-
...n,
|
|
310
|
-
[this.treeProps.label]: this.text
|
|
311
|
-
});
|
|
312
|
-
n[this.treeProps.label] = this.text, n.edit = !1, this.$emit("node-updated", n, e), this.text = "";
|
|
313
|
-
} catch {}
|
|
314
|
-
n.loading = !1, this.loading = !1;
|
|
315
|
-
},
|
|
316
|
-
onCancel(e, t) {
|
|
317
|
-
t.id === -1 ? this.$refs.tree.remove(e) : t.edit = !1, this.text = "";
|
|
318
|
-
},
|
|
319
|
-
nodeClick(e, t, n) {
|
|
320
|
-
this.hideContextMenu(), (p(e.loading) || !e.loading) && (this.curNode = t, this.curData = e, this.$emit("on-node-click", e, t, n));
|
|
321
|
-
},
|
|
322
|
-
getCurrentNode() {
|
|
323
|
-
return this.$refs.tree.getCurrentNode();
|
|
324
|
-
},
|
|
325
|
-
async locateView() {
|
|
326
|
-
await this.$nextTick();
|
|
327
|
-
let e = this.$el.querySelector(`[data-id="${this.newChild.id}"]`);
|
|
328
|
-
e && e.scrollIntoView();
|
|
329
|
-
},
|
|
330
|
-
async scrollIntoView(e) {
|
|
331
|
-
var t;
|
|
332
|
-
await this.$nextTick(), e || await s(300), (t = this.$refs) == null || (t = t.labelTxt) == null || t.focus();
|
|
333
|
-
},
|
|
334
|
-
inputKeyup(e, t, n) {
|
|
335
|
-
e.keyCode === 13 && this.onConfirm(t, n), e.keyCode === 27 && this.clear();
|
|
336
|
-
},
|
|
337
|
-
inputBlur(e, t, n) {
|
|
338
|
-
this.confirmButton || this.onConfirm(t, n);
|
|
339
|
-
},
|
|
340
|
-
getCheckedKeys() {
|
|
341
|
-
return this.$refs.tree.getCheckedKeys();
|
|
342
|
-
},
|
|
343
|
-
setCheckedKeys(e) {
|
|
344
|
-
this.$refs.tree.setCheckedKeys(e);
|
|
345
|
-
},
|
|
346
|
-
getCheckedNodes() {
|
|
347
|
-
return this.$refs.tree.getCheckedNodes();
|
|
348
|
-
},
|
|
349
|
-
setCheckedNodes(e) {
|
|
350
|
-
this.$refs.tree.setCheckedNodes(e);
|
|
351
|
-
},
|
|
352
|
-
getNode(e) {
|
|
353
|
-
return this.$refs.tree.getNode(e);
|
|
354
|
-
},
|
|
355
|
-
getRootNode() {
|
|
356
|
-
return this.$refs.tree.root;
|
|
357
|
-
},
|
|
358
|
-
findTreeNode(e) {
|
|
359
|
-
return l(this.$refs.tree.root.childNodes, (t) => t.data === e || t.data.id === e, "childNodes");
|
|
360
|
-
},
|
|
361
|
-
registerNode(e) {
|
|
362
|
-
e.store.registerNode(e), delete e.store.nodesMap[-1];
|
|
363
|
-
},
|
|
364
|
-
async reloadTree() {
|
|
365
|
-
this.lazy ? this.treeKey = Date.now() : await this.tryFetch();
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}, U = { class: "editable-tree" }, W = {
|
|
369
|
-
ref: "treeWrapper",
|
|
370
|
-
class: "et-tree-wrapper"
|
|
371
|
-
}, G = {
|
|
372
|
-
key: 0,
|
|
373
|
-
style: { "padding-left": "24px" }
|
|
374
|
-
}, K = ["data-id"], q = {
|
|
375
|
-
class: "node-label flex-row flex-item ellipsis-1",
|
|
376
|
-
style: { overflow: "hidden" }
|
|
377
|
-
}, J = {
|
|
378
|
-
class: "flex-item-relative",
|
|
379
|
-
style: { height: "21px" }
|
|
380
|
-
}, Y = ["title"], X = {
|
|
381
|
-
key: 0,
|
|
382
|
-
class: "handle-actions"
|
|
383
|
-
}, Z = {
|
|
384
|
-
key: 1,
|
|
385
|
-
class: "handle-actions",
|
|
386
|
-
style: { display: "inline-block" }
|
|
387
|
-
}, Q = ["data-id"], $ = { class: "menu-list" };
|
|
388
|
-
function ee(e, t, r, i, a, o) {
|
|
389
|
-
let s = n, c = R, l = L, u = z;
|
|
390
|
-
return D(), b("div", U, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? (D(), v(s, {
|
|
391
|
-
key: 0,
|
|
392
|
-
type: "primary",
|
|
393
|
-
style: E([{
|
|
394
|
-
position: "absolute",
|
|
395
|
-
top: "4px",
|
|
396
|
-
"z-index": "1"
|
|
397
|
-
}, { right: `${a.right}px` }]),
|
|
398
|
-
icon: "el-icon-plus",
|
|
399
|
-
circle: "",
|
|
400
|
-
plain: "",
|
|
401
|
-
onClick: t[0] || (t[0] = P((t) => e.$emit("add-root-node"), ["stop"]))
|
|
402
|
-
}, null, 8, ["style"])) : y("v-if", !0), x("div", W, [
|
|
403
|
-
!e.readonly && e.addRootNodeButtonStyle === "top" ? (D(), b("div", G, [C(s, {
|
|
404
|
-
disabled: a.loading,
|
|
405
|
-
type: "text",
|
|
406
|
-
onClick: o.appendRootNode
|
|
407
|
-
}, {
|
|
408
|
-
default: M(() => [t[8] || (t[8] = x("i", { class: "el-icon-lx-add" }, null, -1)), S(" " + k(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`), 1)]),
|
|
409
|
-
_: 1
|
|
410
|
-
}, 8, ["disabled", "onClick"])])) : y("v-if", !0),
|
|
411
|
-
(D(), v(u, w(i.autoBindProps, {
|
|
412
|
-
key: a.treeKey,
|
|
413
|
-
ref: "tree",
|
|
414
|
-
"default-expand-all": e.defaultExpandAll,
|
|
415
|
-
class: "flex-item",
|
|
416
|
-
"default-expanded-keys": a.expandedKeys,
|
|
417
|
-
"expand-on-click-node": !1,
|
|
418
|
-
"highlight-current": "",
|
|
419
|
-
load: o.loadNode,
|
|
420
|
-
data: o.innerTreeData,
|
|
421
|
-
props: e.treeProps,
|
|
422
|
-
lazy: e.lazy,
|
|
423
|
-
"node-key": e.nodeKey
|
|
424
|
-
}, A(i.listeners), {
|
|
425
|
-
onNodeClick: o.nodeClick,
|
|
426
|
-
onNodeContextmenu: o.showContextMenu,
|
|
427
|
-
onNodeExpand: o.addExpandKey,
|
|
428
|
-
onNodeCollapse: o.removeExpandKey
|
|
429
|
-
}), {
|
|
430
|
-
default: M(({ node: n, data: r }) => [O(e.$slots, "default", {
|
|
431
|
-
node: n,
|
|
432
|
-
data: r
|
|
433
|
-
}, () => [y("非编辑模式"), r.edit ? (D(), b(_, { key: 1 }, [y("编辑模式"), x("span", {
|
|
434
|
-
"data-id": r.id,
|
|
435
|
-
class: "custom-tree-node flex-row flex-item",
|
|
436
|
-
style: { overflow: "hidden" }
|
|
437
|
-
}, [
|
|
438
|
-
e.icon ? (D(), b("i", {
|
|
439
|
-
key: 0,
|
|
440
|
-
class: T([r.loading ? "el-icon-loading" : "el-icon-edit-outline", "node-icon flex-not-shrink"])
|
|
441
|
-
}, null, 2)) : y("v-if", !0),
|
|
442
|
-
C(l, {
|
|
443
|
-
ref: "labelTxt",
|
|
444
|
-
modelValue: a.text,
|
|
445
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => a.text = e),
|
|
446
|
-
class: "node-input flex-item",
|
|
447
|
-
placeholder: o.defaultOptions.inputPlaceholder,
|
|
448
|
-
onKeyup: (e) => o.inputKeyup(e, n, r),
|
|
449
|
-
onBlur: (e) => o.inputBlur(e, n, r),
|
|
450
|
-
onClick: t[3] || (t[3] = P(() => {}, ["stop"]))
|
|
451
|
-
}, null, 8, [
|
|
452
|
-
"modelValue",
|
|
453
|
-
"placeholder",
|
|
454
|
-
"onKeyup",
|
|
455
|
-
"onBlur"
|
|
456
|
-
]),
|
|
457
|
-
e.confirmButton ? (D(), b(_, { key: 1 }, [N(C(s, {
|
|
458
|
-
class: "flex-not-shrink",
|
|
459
|
-
type: "text",
|
|
460
|
-
onClick: P((e) => o.onConfirm(n, r), ["stop"])
|
|
461
|
-
}, {
|
|
462
|
-
default: M(() => [...t[13] || (t[13] = [S(" 确定 ", -1)])]),
|
|
463
|
-
_: 1
|
|
464
|
-
}, 8, ["onClick"]), [[j, !r.loading]]), N(C(s, {
|
|
465
|
-
class: "flex-not-shrink",
|
|
466
|
-
type: "text",
|
|
467
|
-
onClick: P((e) => o.onCancel(n, r), ["stop"])
|
|
468
|
-
}, {
|
|
469
|
-
default: M(() => [...t[14] || (t[14] = [S(" 取消 ", -1)])]),
|
|
470
|
-
_: 1
|
|
471
|
-
}, 8, ["onClick"]), [[j, !r.loading]])], 64)) : y("v-if", !0)
|
|
472
|
-
], 8, Q)], 64)) : (D(), b("span", {
|
|
473
|
-
key: 0,
|
|
474
|
-
"data-id": r.id,
|
|
475
|
-
class: "custom-tree-node"
|
|
476
|
-
}, [
|
|
477
|
-
x("span", q, [
|
|
478
|
-
e.icon ? (D(), b("i", {
|
|
479
|
-
key: 0,
|
|
480
|
-
class: T([r.loading ? "el-icon-loading" : e.icon(r, n), "node-icon"])
|
|
481
|
-
}, null, 2)) : y("v-if", !0),
|
|
482
|
-
x("span", J, [x("span", {
|
|
483
|
-
class: "ellipsis-1 absolute-box et-tree-label",
|
|
484
|
-
title: n.label
|
|
485
|
-
}, [O(e.$slots, "label", {
|
|
486
|
-
data: r,
|
|
487
|
-
node: n
|
|
488
|
-
}, () => [S(k(n.label), 1)])], 8, Y)]),
|
|
489
|
-
O(e.$slots, "label-suffix", {
|
|
490
|
-
node: n,
|
|
491
|
-
data: r
|
|
492
|
-
})
|
|
493
|
-
]),
|
|
494
|
-
!e.contextMenu && !e.readonly ? N((D(), b("span", X, [
|
|
495
|
-
C(s, {
|
|
496
|
-
type: "text",
|
|
497
|
-
onClick: P((e) => o.appendChildNode(n, r), ["stop"])
|
|
498
|
-
}, {
|
|
499
|
-
default: M(() => [...t[9] || (t[9] = [S("添加", -1)])]),
|
|
500
|
-
_: 1
|
|
501
|
-
}, 8, ["onClick"]),
|
|
502
|
-
C(s, {
|
|
503
|
-
type: "text",
|
|
504
|
-
onClick: P((e) => o.editNode(n, r), ["stop"])
|
|
505
|
-
}, {
|
|
506
|
-
default: M(() => [...t[10] || (t[10] = [S("修改", -1)])]),
|
|
507
|
-
_: 1
|
|
508
|
-
}, 8, ["onClick"]),
|
|
509
|
-
C(c, {
|
|
510
|
-
class: "pop-confirm",
|
|
511
|
-
"icon-color": "red",
|
|
512
|
-
title: "你确定要删除吗?",
|
|
513
|
-
onConfirm: (e) => o.removeNode(n, r)
|
|
514
|
-
}, {
|
|
515
|
-
reference: M(() => [N(C(s, {
|
|
516
|
-
style: { "margin-left": "4px" },
|
|
517
|
-
type: "text",
|
|
518
|
-
onClick: t[1] || (t[1] = P(() => {}, ["stop"]))
|
|
519
|
-
}, {
|
|
520
|
-
default: M(() => [...t[11] || (t[11] = [S(" 删除 ", -1)])]),
|
|
521
|
-
_: 1
|
|
522
|
-
}, 512), [[j, n.isLeaf]])]),
|
|
523
|
-
_: 2
|
|
524
|
-
}, 1032, ["onConfirm"])
|
|
525
|
-
], 512)), [[j, !r.loading && !a.loading]]) : y("v-if", !0),
|
|
526
|
-
e.contextMenuIcon && e.contextMenu && !e.readonly ? N((D(), b("span", Z, [C(s, {
|
|
527
|
-
style: { padding: "6px 10px 0" },
|
|
528
|
-
type: "text",
|
|
529
|
-
onClick: P((e) => o.showContextMenu(e, r, n), ["stop"])
|
|
530
|
-
}, {
|
|
531
|
-
default: M(() => [...t[12] || (t[12] = [S(" . . . ", -1)])]),
|
|
532
|
-
_: 1
|
|
533
|
-
}, 8, ["onClick"])], 512)), [[j, !r.loading && !a.loading]]) : y("v-if", !0)
|
|
534
|
-
], 8, K))])]),
|
|
535
|
-
_: 3
|
|
536
|
-
}, 16, [
|
|
537
|
-
"default-expand-all",
|
|
538
|
-
"default-expanded-keys",
|
|
539
|
-
"load",
|
|
540
|
-
"data",
|
|
541
|
-
"props",
|
|
542
|
-
"lazy",
|
|
543
|
-
"node-key",
|
|
544
|
-
"onNodeClick",
|
|
545
|
-
"onNodeContextmenu",
|
|
546
|
-
"onNodeExpand",
|
|
547
|
-
"onNodeCollapse"
|
|
548
|
-
])),
|
|
549
|
-
e.contextMenu && !e.readonly ? N((D(), b("div", {
|
|
550
|
-
key: 1,
|
|
551
|
-
ref: "contextMenu",
|
|
552
|
-
style: E(a.position),
|
|
553
|
-
class: "menu"
|
|
554
|
-
}, [x("ul", $, [O(e.$slots, "context-menu", {
|
|
555
|
-
curNode: a.curNode,
|
|
556
|
-
curData: a.curData
|
|
557
|
-
}, () => [
|
|
558
|
-
N(x("li", {
|
|
559
|
-
class: "menu-item",
|
|
560
|
-
onClick: t[4] || (t[4] = (e) => o.appendPeerNode(a.curNode, a.curData))
|
|
561
|
-
}, [t[15] || (t[15] = x("i", {
|
|
562
|
-
class: "menu-item-icon el-icon-lx-add",
|
|
563
|
-
style: { color: "#228b22" }
|
|
564
|
-
}, null, -1)), S(" " + k(e.menuLabel.appendPeer), 1)], 512), [[j, a.curData.id > -1]]),
|
|
565
|
-
x("li", {
|
|
566
|
-
class: "menu-item",
|
|
567
|
-
onClick: t[5] || (t[5] = (e) => o.appendChildNode(a.curNode, a.curData))
|
|
568
|
-
}, [t[16] || (t[16] = x("i", {
|
|
569
|
-
class: "menu-item-icon el-icon-lx-add",
|
|
570
|
-
style: { color: "#228b22" }
|
|
571
|
-
}, null, -1)), S(" " + k(e.menuLabel.appendChild), 1)]),
|
|
572
|
-
N(x("li", {
|
|
573
|
-
class: "menu-item",
|
|
574
|
-
onClick: t[6] || (t[6] = (e) => o.editNode(a.curNode, a.curData))
|
|
575
|
-
}, [t[17] || (t[17] = x("i", {
|
|
576
|
-
class: "menu-item-icon el-icon-edit-outline",
|
|
577
|
-
style: { color: "#ffa500" }
|
|
578
|
-
}, null, -1)), S(" " + k(e.menuLabel.editNode), 1)], 512), [[j, a.curData.id > -1]]),
|
|
579
|
-
N(x("li", {
|
|
580
|
-
class: "menu-item",
|
|
581
|
-
onClick: t[7] || (t[7] = (e) => o.removeNodeModal(a.curNode, a.curData))
|
|
582
|
-
}, [t[18] || (t[18] = x("i", {
|
|
583
|
-
class: "menu-item-icon el-icon-delete",
|
|
584
|
-
style: { color: "#f00" }
|
|
585
|
-
}, null, -1)), S(" " + k(e.menuLabel.removeNode), 1)], 512), [[j, a.curNode.isLeaf]])
|
|
586
|
-
])])], 4)), [[j, a.showMenu]]) : y("v-if", !0)
|
|
587
|
-
], 512)]);
|
|
588
|
-
}
|
|
589
|
-
var te = /* @__PURE__ */ a(H, [["render", ee]]);
|
|
590
|
-
//#endregion
|
|
591
|
-
export { te as default };
|
|
1
|
+
import { t as e } from "../chunks/D8r81QxD.mjs";
|
|
2
|
+
export { e as default };
|