@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/chunks/33G2_TH8.mjs
DELETED
|
@@ -1,653 +0,0 @@
|
|
|
1
|
-
import { d as e, f as t, n, r } from "./DuOxL6xh.mjs";
|
|
2
|
-
import { getDictLabel as i } from "../helper/dictionary.mjs";
|
|
3
|
-
import { cellClickHandlerContextKey as a, pageableTableContextKey as o } from "../constants/index.mjs";
|
|
4
|
-
import { t as s } from "./usyXQe35.mjs";
|
|
5
|
-
import c from "../element-resize-observer/index.mjs";
|
|
6
|
-
import { t as l } from "./CI1ehQi5.mjs";
|
|
7
|
-
import { t as u } from "./fmIV_kHp.mjs";
|
|
8
|
-
import { useVisibilityChange as ee } from "../hook/useVisibilityChange.mjs";
|
|
9
|
-
import { Fragment as te, computed as d, createBlock as f, createTextVNode as p, createVNode as m, inject as h, isVNode as g, mergeModels as _, mergeProps as v, nextTick as ne, onUpdated as y, openBlock as b, provide as x, reactive as S, ref as C, toDisplayString as w, useModel as T, useTemplateRef as E, watch as D, withCtx as O } from "vue";
|
|
10
|
-
import { ElMessage as re } from "element-plus";
|
|
11
|
-
import { ElCheckbox as k, ElDrawer as A, ElEmpty as ie, ElPagination as ae, ElRadio as j, ElTable as M, ElTableColumn as N } from "element-plus/es";
|
|
12
|
-
import { useEventBus as oe } from "@web-utils/vue/hooks/useEventBus";
|
|
13
|
-
//#region src/components/table/components/TableColumnSettingPanel.vue
|
|
14
|
-
var se = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
15
|
-
__name: "TableColumnSettingPanel",
|
|
16
|
-
props: /* @__PURE__ */ _({ columns: {
|
|
17
|
-
type: Array,
|
|
18
|
-
default: () => []
|
|
19
|
-
} }, {
|
|
20
|
-
modelValue: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !1
|
|
23
|
-
},
|
|
24
|
-
modelModifiers: {}
|
|
25
|
-
}),
|
|
26
|
-
emits: ["update:modelValue"],
|
|
27
|
-
setup(e, { expose: t }) {
|
|
28
|
-
let n = T(e, "modelValue"), r = S({}), i = S({}), a = S({}), o = S({}), s = (e, t, n) => {
|
|
29
|
-
n === "hide" ? r[t.prop] = e : n === "fixed" ? i[t.prop] = e : n === "filterable" ? a[t.prop] = e : n === "sortable" && (o[t.prop] = e);
|
|
30
|
-
};
|
|
31
|
-
return t({
|
|
32
|
-
hideProps: r,
|
|
33
|
-
fixedProps: i,
|
|
34
|
-
filterableProps: a,
|
|
35
|
-
sortableProps: o
|
|
36
|
-
}), (t, r) => {
|
|
37
|
-
let i = N, a = k, o = M, c = A;
|
|
38
|
-
return b(), f(c, {
|
|
39
|
-
modelValue: n.value,
|
|
40
|
-
"onUpdate:modelValue": r[0] || (r[0] = (e) => n.value = e),
|
|
41
|
-
class: "table-column-filter",
|
|
42
|
-
title: "表格设置",
|
|
43
|
-
"append-to-body": ""
|
|
44
|
-
}, {
|
|
45
|
-
default: O(() => [m(o, {
|
|
46
|
-
data: e.columns,
|
|
47
|
-
border: ""
|
|
48
|
-
}, {
|
|
49
|
-
default: O(() => [
|
|
50
|
-
m(i, { label: "列名" }, {
|
|
51
|
-
default: O(({ row: e }) => [p(w(e.label), 1)]),
|
|
52
|
-
_: 1
|
|
53
|
-
}),
|
|
54
|
-
m(i, {
|
|
55
|
-
label: "隐藏",
|
|
56
|
-
align: "center"
|
|
57
|
-
}, {
|
|
58
|
-
default: O(({ row: e }) => [m(a, { onChange: (t) => s(t, e, "hide") }, null, 8, ["onChange"])]),
|
|
59
|
-
_: 1
|
|
60
|
-
}),
|
|
61
|
-
m(i, {
|
|
62
|
-
label: "冻结",
|
|
63
|
-
align: "center"
|
|
64
|
-
}, {
|
|
65
|
-
default: O(({ row: e }) => [m(a, { onChange: (t) => s(t, e, "fixed") }, null, 8, ["onChange"])]),
|
|
66
|
-
_: 1
|
|
67
|
-
}),
|
|
68
|
-
m(i, {
|
|
69
|
-
label: "过滤",
|
|
70
|
-
align: "center"
|
|
71
|
-
}, {
|
|
72
|
-
default: O(({ row: e }) => [m(a, { onChange: (t) => s(t, e, "filterable") }, null, 8, ["onChange"])]),
|
|
73
|
-
_: 1
|
|
74
|
-
}),
|
|
75
|
-
m(i, {
|
|
76
|
-
label: "排序",
|
|
77
|
-
align: "center"
|
|
78
|
-
}, {
|
|
79
|
-
default: O(({ row: e }) => [m(a, {
|
|
80
|
-
title: e.allowSort ? null : "该列不支持排序!",
|
|
81
|
-
disabled: !e.allowSort,
|
|
82
|
-
onChange: (t) => s(t, e, "sortable")
|
|
83
|
-
}, null, 8, [
|
|
84
|
-
"title",
|
|
85
|
-
"disabled",
|
|
86
|
-
"onChange"
|
|
87
|
-
])]),
|
|
88
|
-
_: 1
|
|
89
|
-
})
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["data"])]),
|
|
93
|
-
_: 1
|
|
94
|
-
}, 8, ["modelValue"]);
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
|
|
100
|
-
function P(e) {
|
|
101
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !g(e);
|
|
102
|
-
}
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/components/table/components/TableColumnFilterable.vue
|
|
105
|
-
var F = {
|
|
106
|
-
name: "TableColumnFilterable",
|
|
107
|
-
props: { ...l },
|
|
108
|
-
setup(e, { slots: n }) {
|
|
109
|
-
let r = h(o, null), i = t(e, (e) => e !== "filterMethod" && e !== "filters"), a = d(() => {
|
|
110
|
-
if (e.filterable && r) return (e, t, n) => t[n.property] === e;
|
|
111
|
-
}), s = d(() => {
|
|
112
|
-
if (e.filterable && r) return [...new Set(r.records.value.map((t) => t[e.prop]).filter((e) => e))].map((e) => ({
|
|
113
|
-
text: e,
|
|
114
|
-
value: e
|
|
115
|
-
}));
|
|
116
|
-
});
|
|
117
|
-
return () => m(u, v(i.value, {
|
|
118
|
-
filterMethod: a.value,
|
|
119
|
-
filters: s.value
|
|
120
|
-
}), P(n) ? n : { default: () => [n] });
|
|
121
|
-
}
|
|
122
|
-
}, I = {
|
|
123
|
-
data: {
|
|
124
|
-
type: Array,
|
|
125
|
-
default: () => []
|
|
126
|
-
},
|
|
127
|
-
height: [String, Number],
|
|
128
|
-
maxHeight: [String, Number],
|
|
129
|
-
stripe: {
|
|
130
|
-
type: Boolean,
|
|
131
|
-
default: !1
|
|
132
|
-
},
|
|
133
|
-
border: {
|
|
134
|
-
type: Boolean,
|
|
135
|
-
default: !0
|
|
136
|
-
},
|
|
137
|
-
size: String,
|
|
138
|
-
fit: {
|
|
139
|
-
type: Boolean,
|
|
140
|
-
default: !0
|
|
141
|
-
},
|
|
142
|
-
showHeader: {
|
|
143
|
-
type: Boolean,
|
|
144
|
-
default: !0
|
|
145
|
-
},
|
|
146
|
-
highlightCurrentRow: {
|
|
147
|
-
type: Boolean,
|
|
148
|
-
default: !1
|
|
149
|
-
},
|
|
150
|
-
currentRowKey: [String, Number],
|
|
151
|
-
rowClassName: [Function, String],
|
|
152
|
-
rowStyle: [Function, Object],
|
|
153
|
-
cellClassName: [Function, String],
|
|
154
|
-
cellStyle: [Function, Object],
|
|
155
|
-
headerRowClassName: [Function, String],
|
|
156
|
-
headerRowStyle: [Function, Object],
|
|
157
|
-
headerCellClassName: [Function, String],
|
|
158
|
-
headerCellStyle: [Function, Object],
|
|
159
|
-
rowKey: {
|
|
160
|
-
type: [Function, String],
|
|
161
|
-
default: "id"
|
|
162
|
-
},
|
|
163
|
-
emptyText: {
|
|
164
|
-
type: String,
|
|
165
|
-
default: "No Data"
|
|
166
|
-
},
|
|
167
|
-
defaultExpandAll: {
|
|
168
|
-
type: Boolean,
|
|
169
|
-
default: !1
|
|
170
|
-
},
|
|
171
|
-
expandRowKeys: {
|
|
172
|
-
type: Array,
|
|
173
|
-
default: () => []
|
|
174
|
-
},
|
|
175
|
-
defaultSort: Object,
|
|
176
|
-
tooltipEffect: {
|
|
177
|
-
type: String,
|
|
178
|
-
default: "dark"
|
|
179
|
-
},
|
|
180
|
-
tooltipOptions: {
|
|
181
|
-
type: Object,
|
|
182
|
-
default: () => ({})
|
|
183
|
-
},
|
|
184
|
-
appendFilterPanelTo: String,
|
|
185
|
-
showSummary: {
|
|
186
|
-
type: Boolean,
|
|
187
|
-
default: !1
|
|
188
|
-
},
|
|
189
|
-
sumText: {
|
|
190
|
-
type: String,
|
|
191
|
-
default: "Sum"
|
|
192
|
-
},
|
|
193
|
-
summaryMethod: Function,
|
|
194
|
-
spanMethod: Function,
|
|
195
|
-
selectOnIndeterminate: {
|
|
196
|
-
type: Boolean,
|
|
197
|
-
default: !0
|
|
198
|
-
},
|
|
199
|
-
indent: {
|
|
200
|
-
type: Number,
|
|
201
|
-
default: 16
|
|
202
|
-
},
|
|
203
|
-
lazy: {
|
|
204
|
-
type: Boolean,
|
|
205
|
-
default: !1
|
|
206
|
-
},
|
|
207
|
-
load: Function,
|
|
208
|
-
treeProps: {
|
|
209
|
-
type: Object,
|
|
210
|
-
default: () => ({})
|
|
211
|
-
},
|
|
212
|
-
tableLayout: {
|
|
213
|
-
type: String,
|
|
214
|
-
default: "fixed"
|
|
215
|
-
},
|
|
216
|
-
scrollbarAlwaysOn: {
|
|
217
|
-
type: Boolean,
|
|
218
|
-
default: !1
|
|
219
|
-
},
|
|
220
|
-
showOverflowTooltip: [Boolean, Object],
|
|
221
|
-
flexible: {
|
|
222
|
-
type: Boolean,
|
|
223
|
-
default: !1
|
|
224
|
-
},
|
|
225
|
-
scrollbarTabindex: [String, Number],
|
|
226
|
-
allowDragLastColumn: {
|
|
227
|
-
type: Boolean,
|
|
228
|
-
default: !0
|
|
229
|
-
},
|
|
230
|
-
tooltipFormatter: Function,
|
|
231
|
-
preserveExpandedContent: {
|
|
232
|
-
type: Boolean,
|
|
233
|
-
default: !1
|
|
234
|
-
},
|
|
235
|
-
nativeScrollbar: {
|
|
236
|
-
type: Boolean,
|
|
237
|
-
default: !1
|
|
238
|
-
},
|
|
239
|
-
rowExpandable: Function,
|
|
240
|
-
selectionWidth: {
|
|
241
|
-
type: String,
|
|
242
|
-
default: "45"
|
|
243
|
-
},
|
|
244
|
-
viewId: String,
|
|
245
|
-
url: String,
|
|
246
|
-
hideOnSinglePage: Boolean,
|
|
247
|
-
api: Function,
|
|
248
|
-
model: Object,
|
|
249
|
-
ascs: {
|
|
250
|
-
type: Array,
|
|
251
|
-
default: () => []
|
|
252
|
-
},
|
|
253
|
-
descs: {
|
|
254
|
-
type: Array,
|
|
255
|
-
default: () => []
|
|
256
|
-
},
|
|
257
|
-
headerBold: Boolean,
|
|
258
|
-
autoHeight: Boolean,
|
|
259
|
-
immediate: {
|
|
260
|
-
type: Boolean,
|
|
261
|
-
default: !0
|
|
262
|
-
},
|
|
263
|
-
index: {
|
|
264
|
-
type: Boolean,
|
|
265
|
-
default: !0
|
|
266
|
-
},
|
|
267
|
-
multiple: {
|
|
268
|
-
type: Boolean,
|
|
269
|
-
default: !0
|
|
270
|
-
},
|
|
271
|
-
selection: {
|
|
272
|
-
type: Boolean,
|
|
273
|
-
default: !0
|
|
274
|
-
},
|
|
275
|
-
reloadOnModelChange: {
|
|
276
|
-
type: Boolean,
|
|
277
|
-
default: !1
|
|
278
|
-
},
|
|
279
|
-
columns: Array,
|
|
280
|
-
pageSize: {
|
|
281
|
-
type: Number,
|
|
282
|
-
default: 25
|
|
283
|
-
},
|
|
284
|
-
dicOptions: {
|
|
285
|
-
type: Array,
|
|
286
|
-
default: () => []
|
|
287
|
-
},
|
|
288
|
-
paging: {
|
|
289
|
-
type: Boolean,
|
|
290
|
-
default: !0
|
|
291
|
-
},
|
|
292
|
-
clickRowSelect: Boolean,
|
|
293
|
-
payloadStyle: String,
|
|
294
|
-
disabledRowKeys: Array,
|
|
295
|
-
selectExport: Boolean,
|
|
296
|
-
useVisibilityChange: Boolean,
|
|
297
|
-
rowDbClick: Function
|
|
298
|
-
}, L = {
|
|
299
|
-
data: !0,
|
|
300
|
-
rowDbClick: !0,
|
|
301
|
-
selectionWidth: !0,
|
|
302
|
-
hideOnSinglePage: !0,
|
|
303
|
-
ascs: !0,
|
|
304
|
-
descs: !0,
|
|
305
|
-
headerBold: !0,
|
|
306
|
-
autoHeight: !0,
|
|
307
|
-
immediate: !0,
|
|
308
|
-
index: !0,
|
|
309
|
-
multiple: !0,
|
|
310
|
-
selection: !0,
|
|
311
|
-
reloadOnModelChange: !0,
|
|
312
|
-
pageSize: !0,
|
|
313
|
-
dicOptions: !0,
|
|
314
|
-
paging: !0,
|
|
315
|
-
clickRowSelect: !0,
|
|
316
|
-
selectExport: !0,
|
|
317
|
-
useVisibilityChange: !0,
|
|
318
|
-
viewId: !0,
|
|
319
|
-
url: !0,
|
|
320
|
-
api: !0,
|
|
321
|
-
model: !0,
|
|
322
|
-
columns: !0,
|
|
323
|
-
payloadStyle: !0,
|
|
324
|
-
disabledRowKeys: !0
|
|
325
|
-
}, ce = (e) => L[e] !== !0;
|
|
326
|
-
//#endregion
|
|
327
|
-
//#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
|
|
328
|
-
function le(e) {
|
|
329
|
-
let t = "";
|
|
330
|
-
for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
|
|
331
|
-
return t;
|
|
332
|
-
}
|
|
333
|
-
var R = {
|
|
334
|
-
loading: 1,
|
|
335
|
-
error: -1,
|
|
336
|
-
empty: 2,
|
|
337
|
-
success: 0
|
|
338
|
-
}, z = {
|
|
339
|
-
name: "PageableTable",
|
|
340
|
-
emits: { "page-loaded": null },
|
|
341
|
-
inheritAttrs: !1,
|
|
342
|
-
props: { ...I },
|
|
343
|
-
setup(t, { emit: l, attrs: u, slots: f, expose: h }) {
|
|
344
|
-
x(a, t.rowDbClick);
|
|
345
|
-
let g = E("table"), _ = E("settingPanel"), b = C(R.empty), S = C([]), w = C(null), T = C(!1), O = C([]), k = C({
|
|
346
|
-
total: 0,
|
|
347
|
-
page: 1,
|
|
348
|
-
limit: t.pageSize,
|
|
349
|
-
ascs: t.ascs,
|
|
350
|
-
descs: t.descs
|
|
351
|
-
}), A = C(0), P = C(0), I = d(() => t.reloadOnModelChange ? {
|
|
352
|
-
asc: k.value.ascs,
|
|
353
|
-
desc: k.value.descs,
|
|
354
|
-
page: k.value.page,
|
|
355
|
-
limit: k.value.limit,
|
|
356
|
-
model: t.model
|
|
357
|
-
} : {
|
|
358
|
-
asc: k.value.ascs,
|
|
359
|
-
desc: k.value.descs,
|
|
360
|
-
page: k.value.page,
|
|
361
|
-
limit: k.value.limit
|
|
362
|
-
}), L = d(() => {
|
|
363
|
-
var e;
|
|
364
|
-
let t = `${(k.value.page - 1) * k.value.limit + (((e = S.value) == null ? void 0 : e.length) ?? 0)}`;
|
|
365
|
-
return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
|
|
366
|
-
}), z = () => {
|
|
367
|
-
V();
|
|
368
|
-
}, B = (e, n, r) => {
|
|
369
|
-
if (t.clickRowSelect && Q(e)) {
|
|
370
|
-
var i;
|
|
371
|
-
if (O.value.find((n) => n[t.rowKey] === e[t.rowKey])) {
|
|
372
|
-
var a;
|
|
373
|
-
(a = g.value) == null || a.toggleRowSelection(e, !1);
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
(i = g.value) == null || i.toggleRowSelection(e);
|
|
377
|
-
}
|
|
378
|
-
}, V = () => {
|
|
379
|
-
var e, t;
|
|
380
|
-
let n = (e = g.value) == null || (e = e.$children) == null ? void 0 : e.find((e) => {
|
|
381
|
-
var t;
|
|
382
|
-
return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
|
|
383
|
-
});
|
|
384
|
-
n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
|
|
385
|
-
}, H = ({ scrollLeft: e, scrollTop: t }) => {
|
|
386
|
-
A.value = t, P.value = e;
|
|
387
|
-
}, U = () => {
|
|
388
|
-
me(A.value, P.value);
|
|
389
|
-
}, ue = (e) => n(le(e)), de = ({ prop: e, order: n }) => {
|
|
390
|
-
t.payloadStyle === "body" ? (k.value.ascs = n === "ascending" ? [e] : t.ascs, k.value.descs = n === "descending" ? [e] : t.descs) : (k.value.ascs = n === "ascending" ? e : "", k.value.descs = n === "descending" ? e : "");
|
|
391
|
-
}, fe = (e) => {
|
|
392
|
-
Q(e) && (w.value = e);
|
|
393
|
-
}, pe = (e) => {
|
|
394
|
-
O.value = e;
|
|
395
|
-
}, W = () => {
|
|
396
|
-
var e;
|
|
397
|
-
(e = g.value) == null || e.clearSelection();
|
|
398
|
-
}, G = () => {
|
|
399
|
-
let e;
|
|
400
|
-
return e = t.payloadStyle === "body" ? {
|
|
401
|
-
page: {
|
|
402
|
-
...k.value,
|
|
403
|
-
current: k.value.page,
|
|
404
|
-
size: k.value.limit
|
|
405
|
-
},
|
|
406
|
-
example: t.model || {}
|
|
407
|
-
} : {
|
|
408
|
-
...k.value,
|
|
409
|
-
current: k.value.page,
|
|
410
|
-
size: k.value.limit,
|
|
411
|
-
...t.model || {}
|
|
412
|
-
}, t.selectExport && (t.rowKey ? e.exportKeys = O.value.map((e) => e[t.rowKey]) : e.exportKeys = O.value.map((e) => S.value.indexOf(e))), e;
|
|
413
|
-
}, K = async (e = !0) => {
|
|
414
|
-
if (!t.api && t.data !== !1) {
|
|
415
|
-
var n;
|
|
416
|
-
S.value = t.data, k.value.page = 1, k.value.total = (n = S.value) == null ? void 0 : n.length, k.value.limit = k.value.total;
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
e !== !1 && (S.value = []);
|
|
420
|
-
let r, i = G();
|
|
421
|
-
if (t.api) {
|
|
422
|
-
e !== !1 && (b.value = R.loading);
|
|
423
|
-
try {
|
|
424
|
-
t.api && (r = await t.api(i));
|
|
425
|
-
} catch {
|
|
426
|
-
b.value = R.error;
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
} else if (t.data) r = { data: { data: {
|
|
430
|
-
total: t.data.length,
|
|
431
|
-
records: t.data
|
|
432
|
-
} } };
|
|
433
|
-
else {
|
|
434
|
-
re.warning({
|
|
435
|
-
title: "开发提示!",
|
|
436
|
-
message: "PageableTable api(Function) 属性"
|
|
437
|
-
});
|
|
438
|
-
return;
|
|
439
|
-
}
|
|
440
|
-
let { data: { data: a } = {} } = r || {}, { total: o, records: s } = a || {};
|
|
441
|
-
k.value.total = Number(o), S.value = await he(s), !s || !s.length ? b.value = R.empty : b.value = R.success, q(), l("page-loaded", a);
|
|
442
|
-
}, q = () => {
|
|
443
|
-
ne(() => {
|
|
444
|
-
var e;
|
|
445
|
-
(e = g.value) == null || e.doLayout();
|
|
446
|
-
});
|
|
447
|
-
}, J = async (e) => {
|
|
448
|
-
await K(e);
|
|
449
|
-
}, Y = () => {
|
|
450
|
-
k.value = {
|
|
451
|
-
total: 0,
|
|
452
|
-
page: 1,
|
|
453
|
-
limit: t.pageSize,
|
|
454
|
-
ascs: t.ascs,
|
|
455
|
-
descs: t.descs
|
|
456
|
-
};
|
|
457
|
-
}, me = (e, t) => {
|
|
458
|
-
g.value.setScrollTop(e), g.value.setScrollLeft(t);
|
|
459
|
-
}, X = (e, t) => {
|
|
460
|
-
var n;
|
|
461
|
-
(n = g.value) == null || n.toggleRowSelection(e, t);
|
|
462
|
-
}, he = async (e) => {
|
|
463
|
-
if (!e) return [];
|
|
464
|
-
let n = [...e];
|
|
465
|
-
for (let e of n) for (let n of t.dicOptions) if (e[`$${n.prop}`] = e[n.prop], n.dicData) {
|
|
466
|
-
var r;
|
|
467
|
-
e[n.prop] = ((r = n.dicData.find((t) => t.modelValue === e[n.prop])) == null ? void 0 : r.label) || e[n.prop];
|
|
468
|
-
} else e[n.prop] = await i(n.dicType, e[n.prop]);
|
|
469
|
-
return n;
|
|
470
|
-
}, Z = () => {
|
|
471
|
-
T.value = !T.value;
|
|
472
|
-
}, Q = (e) => {
|
|
473
|
-
var n;
|
|
474
|
-
return !(e != null && e.disabled) && !((n = t.disabledRowKeys) != null && n.includes(e == null ? void 0 : e[t.rowKey]));
|
|
475
|
-
};
|
|
476
|
-
t.useVisibilityChange && ee({ onPageVisible: () => {
|
|
477
|
-
J(!1);
|
|
478
|
-
} }), oe("reloadTableView", (e) => {
|
|
479
|
-
e === t.viewId && K();
|
|
480
|
-
}), D(() => t.url, Y), D(() => t.api, Y), D(() => t.data, K), D(() => I.value, K, {
|
|
481
|
-
deep: !0,
|
|
482
|
-
immediate: t.immediate
|
|
483
|
-
});
|
|
484
|
-
let $ = d(() => {
|
|
485
|
-
let e = [];
|
|
486
|
-
if (f.default) {
|
|
487
|
-
var n;
|
|
488
|
-
let t = r((n = f.default) == null ? void 0 : n.call(f));
|
|
489
|
-
for (let n = 0; n < t.length; n++) {
|
|
490
|
-
let { props: r, children: i } = t[n];
|
|
491
|
-
if (!r) continue;
|
|
492
|
-
let { sortable: a, prop: o, fixed: s, ...c } = r, l = {
|
|
493
|
-
...c,
|
|
494
|
-
prop: o,
|
|
495
|
-
allowSort: a !== !1
|
|
496
|
-
};
|
|
497
|
-
i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), e.push(l);
|
|
498
|
-
}
|
|
499
|
-
} else if (t.columns) for (let n = 0; n < t.columns.length; n++) {
|
|
500
|
-
let { prop: r, sortable: i, fixed: a, ...o } = t.columns[n], s = {
|
|
501
|
-
...o,
|
|
502
|
-
prop: r,
|
|
503
|
-
allowSort: i !== !1
|
|
504
|
-
};
|
|
505
|
-
_.value && (s.hide = _.value.hideProps[r], s.filterable = _.value.filterableProps[r], s.sortable = _.value.sortableProps[r] === !0, s.fixed = a || _.value.fixedProps[r]), e.push(s);
|
|
506
|
-
}
|
|
507
|
-
return e;
|
|
508
|
-
});
|
|
509
|
-
y(() => {
|
|
510
|
-
U();
|
|
511
|
-
}), h({
|
|
512
|
-
records: S,
|
|
513
|
-
getPage: K,
|
|
514
|
-
refresh: J,
|
|
515
|
-
reload: Y,
|
|
516
|
-
doLayout: q,
|
|
517
|
-
clearSelection: W,
|
|
518
|
-
toggleRowSelection: X,
|
|
519
|
-
toggleSettings: Z,
|
|
520
|
-
currentRow: w,
|
|
521
|
-
getPageQuery: G,
|
|
522
|
-
tableColumns: $
|
|
523
|
-
}), x(o, {
|
|
524
|
-
records: S,
|
|
525
|
-
getPage: K,
|
|
526
|
-
refresh: J,
|
|
527
|
-
reload: Y,
|
|
528
|
-
doLayout: q,
|
|
529
|
-
clearSelection: W,
|
|
530
|
-
toggleRowSelection: X,
|
|
531
|
-
toggleSettings: Z
|
|
532
|
-
});
|
|
533
|
-
let { autoBindProps: ge, listeners: _e } = e(t, { predicate: ce });
|
|
534
|
-
return () => {
|
|
535
|
-
var e;
|
|
536
|
-
let n = w.value && w.value[u["row-key"] || t.rowKey || "id"] === (w.value && t.rowKey ? w.value[t.rowKey] : (e = w.value) == null ? void 0 : e.id);
|
|
537
|
-
return m("div", {
|
|
538
|
-
class: [
|
|
539
|
-
"pageable-table",
|
|
540
|
-
{ "auto-height": t.autoHeight },
|
|
541
|
-
u.class
|
|
542
|
-
],
|
|
543
|
-
style: u.style
|
|
544
|
-
}, [m("div", { class: "pageable-table-wrapper" }, [
|
|
545
|
-
f.toolbar && f.toolbar({ selectedRows: O.value }),
|
|
546
|
-
m(M, v(_e.value, ge.value, {
|
|
547
|
-
ref: "table",
|
|
548
|
-
data: S.value,
|
|
549
|
-
class: ["flex-item", { "header-bold": t.headerBold }],
|
|
550
|
-
border: t.border,
|
|
551
|
-
stripe: !0,
|
|
552
|
-
size: "default",
|
|
553
|
-
height: t.autoHeight ? null : "auto",
|
|
554
|
-
onScroll: H,
|
|
555
|
-
onSortChange: de,
|
|
556
|
-
onRowDblclick: z,
|
|
557
|
-
onRowClick: B,
|
|
558
|
-
onCellClick: V,
|
|
559
|
-
onCurrentChange: fe,
|
|
560
|
-
onSelectionChange: pe
|
|
561
|
-
}), {
|
|
562
|
-
default: () => {
|
|
563
|
-
let e = [];
|
|
564
|
-
if (t.multiple && t.selection && e.push(m(N, {
|
|
565
|
-
key: "selection",
|
|
566
|
-
type: "selection",
|
|
567
|
-
selectable: Q,
|
|
568
|
-
width: t.selectionWidth,
|
|
569
|
-
align: "center"
|
|
570
|
-
}, null)), !t.multiple && t.selection && e.push(m(N, {
|
|
571
|
-
key: "single-selection",
|
|
572
|
-
type: "single-selection",
|
|
573
|
-
"class-name": "single-select-column",
|
|
574
|
-
width: t.selectionWidth,
|
|
575
|
-
align: "center"
|
|
576
|
-
}, {
|
|
577
|
-
header: () => m(j, {
|
|
578
|
-
modelValue: !!w.value,
|
|
579
|
-
label: !0
|
|
580
|
-
}, { default: () => [m("span", null, null)] }),
|
|
581
|
-
default: ({ row: e }) => m(j, {
|
|
582
|
-
label: !0,
|
|
583
|
-
disabled: !Q(e),
|
|
584
|
-
modelValue: n
|
|
585
|
-
}, { default: () => [m("span", null, null)] })
|
|
586
|
-
})), t.index && e.push(m(N, {
|
|
587
|
-
key: "index",
|
|
588
|
-
type: "index",
|
|
589
|
-
label: "序号",
|
|
590
|
-
width: L.value,
|
|
591
|
-
align: "center"
|
|
592
|
-
}, { default: ({ $index: e }) => (k.value.page - 1) * k.value.limit + e + 1 || e + 1 })), $.value.length > 0) for (let t = 0; t < $.value.length; t++) {
|
|
593
|
-
let n = $.value[t];
|
|
594
|
-
if (n.hide) continue;
|
|
595
|
-
let { prop: r, headerSlot: i, defaultSlot: a, expandSlot: o, iconSlot: s, ...c } = n;
|
|
596
|
-
e.push(m(F, v(c, { prop: r }), {
|
|
597
|
-
default: f[r] ? ({ row: e }) => f[r]({ row: e }) : a,
|
|
598
|
-
header: i,
|
|
599
|
-
expand: o,
|
|
600
|
-
"filter-icon": s
|
|
601
|
-
}));
|
|
602
|
-
}
|
|
603
|
-
else e.push(m(N, {
|
|
604
|
-
key: "default",
|
|
605
|
-
label: "点击表格行复制模板"
|
|
606
|
-
}, { default: ({ row: e }) => m("pre", {
|
|
607
|
-
class: "pointer",
|
|
608
|
-
onClick: () => ue(e)
|
|
609
|
-
}, [JSON.stringify(e, null, " ")]) }));
|
|
610
|
-
return e;
|
|
611
|
-
},
|
|
612
|
-
empty: () => f.empty ? f.empty() : m(te, null, [
|
|
613
|
-
b.value === R.loading && m("span", { class: "pageable-table-loading" }, [m("i", { class: "table-status-icon el-icon-loading" }, null), p("加载中...")]),
|
|
614
|
-
b.value === R.error && m(s, {
|
|
615
|
-
class: "pageable-table-error",
|
|
616
|
-
onClick: J
|
|
617
|
-
}, { default: () => [m("i", { class: "table-status-icon el-icon-error" }, null), p("加载失败,点击重试!")] }),
|
|
618
|
-
b.value !== R.loading && b.value !== R.error && m(ie, null, null)
|
|
619
|
-
]),
|
|
620
|
-
append: f.append
|
|
621
|
-
}),
|
|
622
|
-
t.paging && m(ae, {
|
|
623
|
-
"current-page": k.value.page,
|
|
624
|
-
"onUpdate:current-page": (e) => k.value.page = e,
|
|
625
|
-
"hide-on-single-page": t.hideOnSinglePage,
|
|
626
|
-
"page-size": k.value.limit,
|
|
627
|
-
"onUpdate:page-size": (e) => k.value.limit = e,
|
|
628
|
-
total: k.value.total,
|
|
629
|
-
"page-sizes": [
|
|
630
|
-
10,
|
|
631
|
-
25,
|
|
632
|
-
50,
|
|
633
|
-
100,
|
|
634
|
-
500,
|
|
635
|
-
1e3,
|
|
636
|
-
2e3
|
|
637
|
-
],
|
|
638
|
-
class: "flex-not-shrink",
|
|
639
|
-
background: !0,
|
|
640
|
-
layout: "total, sizes, prev, pager, next, jumper"
|
|
641
|
-
}, null),
|
|
642
|
-
m(se, {
|
|
643
|
-
ref: "settingPanel",
|
|
644
|
-
modelValue: T.value,
|
|
645
|
-
"onUpdate:modelValue": (e) => T.value = e,
|
|
646
|
-
columns: $.value
|
|
647
|
-
}, null)
|
|
648
|
-
]), m(c, { onNotify: q }, null)]);
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
//#endregion
|
|
653
|
-
export { z as t };
|