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