@web-utils/form-ui 1.0.0-beta86 → 1.0.0-beta87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/address-input/index.mjs +1 -1
- package/affix/index.mjs +2 -2
- package/base2.css +1 -0
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -15
- package/chunks/{C-zPVdz-.mjs → 1EH2Ca7m2.mjs} +31 -29
- package/chunks/{mnqSaATq.mjs → 2Bhi7uIl.mjs} +18 -19
- package/chunks/2Hag_Aho.mjs +4 -0
- package/chunks/6Lm-ZabT2.mjs +439 -0
- package/chunks/7OAy-mrx.mjs +642 -0
- package/chunks/7cy48wUQ.mjs +25 -0
- package/chunks/8ldF4QwW.mjs +209 -0
- package/chunks/{BhHMGhJ8.mjs → B0rLJ6br2.mjs} +27 -26
- package/chunks/{DCqyZyF6.mjs → B14qtsOg2.mjs} +8 -7
- package/chunks/B2vpUK0j.mjs +13 -0
- package/chunks/B7fnIBG_2.mjs +346 -0
- package/chunks/B9BRO_ca2.mjs +2 -0
- package/chunks/B9rfY77Q.mjs +107 -0
- package/chunks/BBYzYVET.mjs +173 -0
- package/chunks/BBbwcaCo.mjs +196 -0
- package/chunks/{DSTNXl142.mjs → BBlZh4pj.mjs} +2 -2
- package/chunks/{6dNVtIN32.mjs → BCqOe0lx.mjs} +1 -1
- package/chunks/BEOl740t2.mjs +56 -0
- package/chunks/{B1luuf_A2.mjs → BF0OBs7P.mjs} +15 -14
- package/chunks/BFY-akW92.mjs +1 -0
- package/chunks/BGjN3ifV.mjs +34 -0
- package/chunks/BMouE3MT.mjs +48 -0
- package/chunks/{BYu4QaK72.mjs → BPQMbzNr.mjs} +2 -2
- package/chunks/BVD_ePZC.mjs +37 -0
- package/chunks/{HFLY8Wla.mjs → BVSJF8GY.mjs} +215 -221
- package/chunks/{vHsAJZRT.mjs → BXdCyPVV.mjs} +2 -2
- package/chunks/{DbcxJ45j.mjs → BZb0RMw12.mjs} +15 -13
- package/chunks/BZuJ9dKq2.mjs +69 -0
- package/chunks/BaM7vJ3h.mjs +1920 -0
- package/chunks/BbJd8Pij.mjs +734 -0
- package/chunks/{tVHVSu5h.mjs → BgQktI__2.mjs} +384 -385
- package/chunks/BhIjXcRj2.mjs +617 -0
- package/chunks/{SInS7QSL.mjs → Bi03Pb_j2.mjs} +1 -1
- package/chunks/Bi2y9LWO2.mjs +338 -0
- package/chunks/{DrvwVjzq2.mjs → BjZf7WL6.mjs} +2 -2
- package/chunks/{BxcsELcB2.mjs → BkEjtrWy.mjs} +2 -2
- package/chunks/BnNJk0GR2.mjs +4 -0
- package/chunks/Bpp7HhpF.mjs +446 -0
- package/chunks/Bs0Qas8r.mjs +14 -0
- package/chunks/Bs8cIxmy.mjs +384 -0
- package/chunks/BsBVCVnp2.mjs +378 -0
- package/chunks/BtGJbKCB.mjs +4 -0
- package/chunks/{Bs926z902.mjs → BuwISkjU.mjs} +12 -11
- package/chunks/{DWN5uzm02.mjs → BvdCIFp_.mjs} +32 -31
- package/chunks/BwVhaeaN2.mjs +8 -0
- package/chunks/BxfDXlNF.mjs +5 -0
- package/chunks/C1rRv4L7.mjs +1094 -0
- package/chunks/C2ILQE4o.mjs +15 -0
- package/chunks/{CCpKg0cM.mjs → C5SO6LJW.mjs} +2 -2
- package/chunks/C6wieT3K2.mjs +4 -0
- package/chunks/C7L-0D2c.mjs +18 -0
- package/chunks/CAXQZ1D92.mjs +158 -0
- package/chunks/CAmsy3d12.mjs +1 -0
- package/chunks/CBrMFZX-.mjs +39 -0
- package/chunks/CDhbz_dU.mjs +5 -0
- package/chunks/CEAep1cG2.mjs +88 -0
- package/chunks/CEDUulAx.mjs +245 -0
- package/chunks/CEaiqlCR.mjs +678 -0
- package/chunks/{CpsHWpwH2.mjs → CFfhckpA.mjs} +26 -27
- package/chunks/CG-vyVAP2.mjs +2 -0
- package/chunks/CHqbeWkw.mjs +99 -0
- package/chunks/CI6Nw27a2.mjs +299 -0
- package/chunks/CNcSX5f1.mjs +1 -0
- package/chunks/CPAK-Btp2.mjs +58 -0
- package/chunks/CRScbQff2.mjs +1 -0
- package/chunks/CShykH0i.mjs +1 -0
- package/chunks/CTAUFbNL.mjs +222 -0
- package/chunks/{D_q3C3v4.mjs → CTCW5Zu02.mjs} +135 -134
- package/chunks/CZbhVowA2.mjs +105 -0
- package/chunks/{DVF9q3oX.mjs → C_mXAGw2.mjs} +2 -2
- package/chunks/C_rLHaAm.mjs +41 -0
- package/chunks/C_ykwQIT.mjs +25 -0
- package/chunks/Cm5l5wtF.mjs +21 -0
- package/chunks/CogUVyM32.mjs +161 -0
- package/chunks/{C-iN5MJZ.mjs → Cqn3fqrC.mjs} +6 -6
- package/chunks/{BsqIRxSS.mjs → CsckXzQC.mjs} +7 -6
- package/chunks/CtqI9iHR.mjs +108 -0
- package/chunks/{Dodxnwze.mjs → CuU6RbNj2.mjs} +6 -6
- package/chunks/Cu_oMKPd.mjs +250 -0
- package/chunks/Cum802WQ.mjs +13 -0
- package/chunks/{4kjeIiag2.mjs → Cwgd7PoY.mjs} +4 -4
- package/chunks/Cx2xXO7o.mjs +52 -0
- package/chunks/{8h-xBLL82.mjs → Cxhpz5pM.mjs} +112 -112
- package/chunks/CyF0QYX72.mjs +1098 -0
- package/chunks/D0SsqlhV2.mjs +2381 -0
- package/chunks/D5OVW2kN.mjs +34 -0
- package/chunks/D6WqEUFG2.mjs +98 -0
- package/chunks/D8iXlrtZ2.mjs +1038 -0
- package/chunks/D98jjbwV2.mjs +61 -0
- package/chunks/D9Pg_OCD2.mjs +6 -0
- package/chunks/DA1LVvTS.mjs +577 -0
- package/chunks/DHUKKHoT.mjs +1 -0
- package/chunks/DJQH0NMv.mjs +276 -0
- package/chunks/DK7E0MrC2.mjs +990 -0
- package/chunks/{BM5LdxU72.mjs → DNicIC4X.mjs} +32 -31
- package/chunks/{CLn5E7NV.mjs → DOPqetRk2.mjs} +1 -1
- package/chunks/DTS-uhBE.mjs +25 -0
- package/chunks/DUQs5bPg.mjs +188 -0
- package/chunks/{B5c0s3IR.mjs → DUzoabyA2.mjs} +69 -68
- package/chunks/DV-c1hfn2.mjs +6 -0
- package/chunks/DVvu0kbn2.mjs +69 -0
- package/chunks/{tqW2DSco.mjs → DZ1RiRcl2.mjs} +31 -29
- package/chunks/DZZdwRGN.mjs +479 -0
- package/chunks/{Ctx93AFS.mjs → DcIBy4G3.mjs} +6 -6
- package/chunks/Dd5QuF1x.mjs +26 -0
- package/chunks/DdkcOQQ02.mjs +204 -0
- package/chunks/DeXyq_xW2.mjs +936 -0
- package/chunks/DgXDFUzM2.mjs +60 -0
- package/chunks/DhA6VYyn.mjs +588 -0
- package/chunks/DiQUqii-.mjs +486 -0
- package/chunks/{KOJEsarR2.mjs → Dk_ATXDY.mjs} +1 -1
- package/chunks/DlhCJLng.mjs +211 -0
- package/chunks/Dq9YiS-H.mjs +26 -0
- package/chunks/{mqi8hesW2.mjs → DrrpjVlS.mjs} +19 -18
- package/chunks/DsSXjU752.mjs +4811 -0
- package/chunks/DuIXSS2d.mjs +454 -0
- package/chunks/DvCdN2bU.mjs +1 -0
- package/chunks/DvG4VjQh.mjs +216 -0
- package/chunks/DvenxcV4.mjs +186 -0
- package/chunks/DxG4FcLQ2.mjs +58 -0
- package/chunks/E-zZdDOp.mjs +48 -0
- package/chunks/HQd8AhfS.mjs +225 -0
- package/chunks/HsqImdEj.mjs +69 -0
- package/chunks/IAX-2m4F.mjs +31 -0
- package/chunks/JvWWISEH2.mjs +243 -0
- package/chunks/K7NMn1cU.mjs +12 -0
- package/chunks/{BrSqLOi5.mjs → LnWJAAlm2.mjs} +178 -178
- package/chunks/NiAjkTEH2.mjs +32 -0
- package/chunks/OWDOBaZL.mjs +467 -0
- package/chunks/R_GWm9EB.mjs +41 -0
- package/chunks/Rn-X08l92.mjs +273 -0
- package/chunks/STHbzblo.mjs +55 -0
- package/chunks/TWAjK03p.mjs +3092 -0
- package/chunks/{tfaGdZX2.mjs → XGboXSyJ2.mjs} +139 -138
- package/chunks/ZIHPaVeg.mjs +105 -0
- package/chunks/ZxxDJBOG2.mjs +180 -0
- package/chunks/_NG8ze6x.mjs +42 -0
- package/chunks/_wUx1zSH2.mjs +30 -0
- package/chunks/aeYRYRdi.mjs +29 -0
- package/chunks/b58kljs82.mjs +525 -0
- package/chunks/cGGsl8YM2.mjs +2 -0
- package/chunks/cvUTkWmm.mjs +98 -0
- package/chunks/el7WAt3q.mjs +4 -0
- package/chunks/f-0LSLCC.mjs +17 -0
- package/chunks/g1H2yYXi.mjs +35 -0
- package/chunks/gQwOnofw.mjs +302 -0
- package/chunks/hczonP-N2.mjs +206 -0
- package/chunks/jkTWyLZa.mjs +17 -0
- package/chunks/kN7dSjtl.mjs +1278 -0
- package/chunks/kWflpyKd.mjs +221 -0
- package/chunks/lJ7uxiQe2.mjs +46 -0
- package/chunks/lKeVGJZg.mjs +62 -0
- package/chunks/{ofu8wJKp.mjs → losZHy0P.mjs} +1 -1
- package/chunks/qNngJ9B9.mjs +29 -0
- package/chunks/r6tERHEL.mjs +438 -0
- package/chunks/tSJE9_uL.mjs +1 -0
- package/chunks/vRQzbLgj.mjs +2 -0
- package/chunks/wfxM1ecI.mjs +17 -0
- package/chunks/{Dkw6LNCq2.mjs → wkrB-kab.mjs} +1 -1
- package/chunks/{C8h_P_kl2.mjs → y9rz_ZSp.mjs} +37 -36
- package/chunks/zG9cElaH.mjs +1209 -0
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/constants/index.d.ts +2 -0
- package/constants/index.mjs +2 -2
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/css/style.css +1 -0
- package/css/style10.css +1 -0
- package/css/style11.css +1 -0
- package/css/style12.css +1 -0
- package/css/style13.css +1 -0
- package/css/style14.css +1 -0
- package/css/style15.css +1 -0
- package/css/style16.css +1 -0
- package/css/style17.css +1 -0
- package/css/style18.css +1 -0
- package/css/style19.css +1 -0
- package/css/style2.css +1 -0
- package/css/style20.css +1 -0
- package/css/style21.css +1 -0
- package/css/style22.css +1 -0
- package/css/style23.css +1 -0
- package/css/style24.css +1 -0
- package/css/style25.css +1 -0
- package/css/style26.css +1 -0
- package/css/style27.css +1 -0
- package/css/style28.css +1 -0
- package/css/style29.css +1 -0
- package/css/style3.css +1 -0
- package/css/style30.css +1 -0
- package/css/style31.css +1 -0
- package/css/style32.css +1 -0
- package/css/style33.css +1 -0
- package/css/style34.css +1 -0
- package/css/style35.css +1 -0
- package/css/style36.css +1 -0
- package/css/style37.css +1 -0
- package/css/style38.css +1 -0
- package/css/style39.css +1 -0
- package/css/style4.css +1 -0
- package/css/style5.css +1 -0
- package/css/style6.css +1 -0
- package/css/style7.css +1 -0
- package/css/style8.css +1 -0
- package/css/style9.css +1 -0
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +1 -1
- package/data-card/index.mjs +8 -8
- package/data-card-text/index.mjs +8 -8
- package/data-display/index.mjs +9 -9
- package/data-icons/index.mjs +9 -9
- package/data-imgtext/index.mjs +10 -9
- package/data-operatext/index.mjs +8 -8
- package/data-panel/index.mjs +9 -9
- package/data-pay/index.mjs +11 -10
- package/data-price/index.mjs +8 -8
- package/data-progress/index.mjs +10 -10
- package/data-rotate/index.mjs +1 -1
- package/data-table-picker/index.mjs +15 -15
- package/data-tabs/index.mjs +1 -1
- package/dialog-form/index.d.ts +4 -0
- package/dialog-form/index.mjs +154 -0
- package/dialog-form/style.css +1 -0
- package/dict-render/index.mjs +1 -1
- package/e-charts/index.mjs +2 -2
- package/easy-popup/index.mjs +1 -1
- package/editable-progress/index.mjs +8 -8
- package/editable-tree/index.mjs +2 -596
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/empty-view/index.d.ts +2 -2
- package/flex-box/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flex-scroller/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/flow-viewer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.d.ts +4 -4
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-image/style.css +1 -0
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-radio-group/style.css +1 -0
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +3 -3
- package/fy-array/index.d.ts +234 -0
- package/fy-array/index.mjs +2 -0
- package/fy-array/style.css +1 -0
- package/fy-button/index.d.ts +18 -0
- package/fy-button/index.mjs +2 -0
- package/fy-button/style.css +1 -0
- package/fy-cascader/index.d.ts +298 -0
- package/fy-cascader/index.mjs +116 -0
- package/fy-checkbox/index.d.ts +231 -0
- package/fy-checkbox/index.mjs +100 -0
- package/fy-checkbox/style.css +1 -0
- package/fy-curd/index.d.ts +908 -0
- package/fy-curd/index.mjs +2 -0
- package/fy-date/index.d.ts +246 -0
- package/fy-date/index.mjs +79 -0
- package/fy-date/style.css +1 -0
- package/fy-dynamic/index.d.ts +268 -0
- package/fy-dynamic/index.mjs +2 -0
- package/fy-empty/index.d.ts +31 -0
- package/fy-empty/index.mjs +35 -0
- package/fy-empty/style.css +1 -0
- package/fy-form/index.d.ts +522 -0
- package/fy-form/index.mjs +2 -0
- package/fy-form/style.css +1 -0
- package/fy-input/index.d.ts +316 -0
- package/fy-input/index.mjs +123 -0
- package/fy-input-color/index.d.ts +235 -0
- package/fy-input-color/index.mjs +2 -0
- package/fy-input-color/style.css +1 -0
- package/fy-input-icon/index.d.ts +244 -0
- package/fy-input-icon/index.mjs +134 -0
- package/fy-input-icon/style.css +1 -0
- package/fy-input-map/index.d.ts +266 -0
- package/fy-input-map/index.mjs +249 -0
- package/fy-input-map/style.css +1 -0
- package/fy-input-number/index.d.ts +266 -0
- package/fy-input-number/index.mjs +78 -0
- package/fy-input-table/index.d.ts +248 -0
- package/fy-input-table/index.mjs +167 -0
- package/fy-input-table/style.css +1 -0
- package/fy-input-tree/index.d.ts +351 -0
- package/fy-input-tree/index.mjs +266 -0
- package/fy-input-tree/style.css +1 -0
- package/fy-radio/index.d.ts +218 -0
- package/fy-radio/index.mjs +57 -0
- package/fy-radio/style.css +1 -0
- package/fy-rate/index.d.ts +288 -0
- package/fy-rate/index.mjs +90 -0
- package/fy-rate/style.css +1 -0
- package/fy-select/index.d.ts +324 -0
- package/fy-select/index.mjs +2 -0
- package/fy-select/style.css +1 -0
- package/fy-slider/index.d.ts +249 -0
- package/fy-slider/index.mjs +72 -0
- package/fy-switch/index.d.ts +229 -0
- package/fy-switch/index.mjs +71 -0
- package/fy-tabs/index.d.ts +20 -0
- package/fy-tabs/index.mjs +50 -0
- package/fy-time/index.d.ts +704 -0
- package/fy-time/index.mjs +85 -0
- package/fy-title/index.d.ts +224 -0
- package/fy-title/index.mjs +18 -0
- package/fy-title/style.css +1 -0
- package/fy-tree/index.d.ts +141 -0
- package/fy-tree/index.mjs +392 -0
- package/fy-tree/style.css +1 -0
- package/fy-u-editor/index.d.ts +116 -0
- package/fy-u-editor/index.mjs +2 -0
- package/fy-u-editor/style.css +1 -0
- package/fy-upload/index.d.ts +379 -0
- package/fy-upload/index.mjs +2 -0
- package/fy-upload/style.css +1 -0
- package/guide-steps/index.mjs +2 -77
- package/guide-steps/style.css +1 -1
- package/helper/avue.d.ts +36 -0
- package/helper/avue.mjs +35 -0
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/icon-temp/index.d.ts +19 -0
- package/icon-temp/index.mjs +27 -0
- package/icon-temp/style.css +1 -0
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +5 -5
- package/image-preview/index.mjs +2 -201
- package/image-preview/style.css +1 -1
- package/image-viewer/index.d.ts +1 -1
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.d.ts +31 -1
- package/index.mjs +149 -121
- package/input-number-range/index.mjs +7 -7
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/monaco-editor/index.d.ts +126 -0
- package/monaco-editor/index.mjs +2 -0
- package/monaco-editor/style.css +1 -0
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -3
- package/package.json +3 -1
- package/page-index/index.mjs +14 -14
- package/page-index-top/index.mjs +12 -12
- package/pageable-table/index.d.ts +1 -1
- package/pageable-table/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/props/col.mjs +1 -1
- package/props/form-item.mjs +1 -1
- package/resolver/components.mjs +1 -1
- package/sign-panel/index.mjs +1 -1
- package/skeleton-panel/index.mjs +3 -3
- package/split-pane/index.mjs +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +6 -6
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +104 -103
- package/tag-render/index.d.ts +1 -1
- package/tag-render/index.mjs +9 -7
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.d.ts +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -20
- package/year-calendar/index.mjs +1 -1
- package/chunks/3nLaRSbR2.mjs +0 -108
- package/chunks/6eDDQWcr.mjs +0 -69
- package/chunks/BIy6bO4j.mjs +0 -50
- package/chunks/BQytQPLa.mjs +0 -780
- package/chunks/BxuM-fgJ.mjs +0 -61
- package/chunks/By-W0XXn2.mjs +0 -63
- package/chunks/C28bnMcw.mjs +0 -68
- package/chunks/CET31mBi.mjs +0 -39
- package/chunks/CjCNtCWd.mjs +0 -58
- package/chunks/CkHQY4ME2.mjs +0 -29
- package/chunks/ClVh1Lek.mjs +0 -130
- package/chunks/DJlgX5ty.mjs +0 -30
- package/chunks/DdACGFy3.mjs +0 -90
- package/chunks/Dst9_BmZ.mjs +0 -99
- package/chunks/SWO35fS42.mjs +0 -31
- package/chunks/Tq3_dajC2.mjs +0 -25
- package/chunks/V-Js6hNd.mjs +0 -179
- package/chunks/XQwnPkab2.mjs +0 -34
- package/chunks/b0ve2YgF.mjs +0 -155
- package/chunks/saZ_qJOT.mjs +0 -32
- package/chunks/vebd58-O.mjs +0 -37
- package/chunks/y1Q66LEa2.mjs +0 -29
- /package/chunks/{CHmZyvFr.mjs → BMdSzPpD2.mjs} +0 -0
- /package/chunks/{X-ckP2Hj.mjs → CISLTyi_2.mjs} +0 -0
- /package/chunks/{PEU1JRcN2.mjs → CVDxIjGg.mjs} +0 -0
- /package/chunks/{DokYQ49m.mjs → CeLNtZZw.mjs} +0 -0
- /package/chunks/{BwL9Xz1F.mjs → CyNGeUTh.mjs} +0 -0
- /package/chunks/{BAG_R87k2.mjs → DX29uO-O.mjs} +0 -0
- /package/chunks/{tzjUpVIj.mjs → Xe_0bP0H.mjs} +0 -0
- /package/chunks/{B1MSrc6f.mjs → hFCEXdXW.mjs} +0 -0
- /package/chunks/{C_QfuxeQ.mjs → nvUgyH-A.mjs} +0 -0
- /package/chunks/{BTGrh7dw2.mjs → wm9pxXuv.mjs} +0 -0
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import "
|
|
11
|
-
import {
|
|
1
|
+
import "./B2vpUK0j.mjs";
|
|
2
|
+
import "./cvUTkWmm.mjs";
|
|
3
|
+
import { n as e, t } from "./TWAjK03p.mjs";
|
|
4
|
+
import { _ as n, h as r, m as i, n as a, r as o } from "./b58kljs82.mjs";
|
|
5
|
+
import { t as s } from "./6Lm-ZabT2.mjs";
|
|
6
|
+
import { t as c } from "./Rn-X08l92.mjs";
|
|
7
|
+
import { t as l } from "./HQd8AhfS.mjs";
|
|
8
|
+
import { n as u, t as d } from "./CEaiqlCR.mjs";
|
|
9
|
+
import f from "../element-resize-observer/index.mjs";
|
|
10
|
+
import "./2Hag_Aho.mjs";
|
|
11
|
+
import { cellClickHandlerContextKey as ee, pageableTableContextKey as p } from "../constants/index.mjs";
|
|
12
|
+
import { t as te } from "./2Bhi7uIl.mjs";
|
|
13
|
+
import { getDictLabel as m } from "../helper/dictionary.mjs";
|
|
14
|
+
import { t as h } from "./nvUgyH-A.mjs";
|
|
15
|
+
import { t as g } from "./BZuJ9dKq2.mjs";
|
|
16
|
+
import { useVisibilityChange as ne } from "../hook/useVisibilityChange.mjs";
|
|
17
|
+
import { Fragment as _, computed as v, createBlock as y, createTextVNode as b, createVNode as x, inject as S, isVNode as C, mergeModels as w, mergeProps as T, nextTick as E, onUpdated as re, openBlock as D, provide as O, reactive as k, ref as A, toDisplayString as j, useModel as M, useTemplateRef as ie, watch as N, withCtx as P } from "vue";
|
|
12
18
|
import { isFunction as F } from "@web-utils/core";
|
|
13
|
-
import "element-plus/es/components/message/style/css";
|
|
14
|
-
import "element-plus/es/components/drawer/style/css";
|
|
15
|
-
import "element-plus/es/components/table/style/css";
|
|
16
|
-
import "element-plus/es/components/checkbox/style/css";
|
|
17
|
-
import "element-plus/es/components/table-column/style/css";
|
|
18
|
-
import "element-plus/es/components/pagination/style/css";
|
|
19
|
-
import "element-plus/es/components/empty/style/css";
|
|
20
|
-
import "element-plus/es/components/radio/style/css";
|
|
21
19
|
import { useEventBus as ae } from "@web-utils/vue/hooks/useEventBus";
|
|
22
20
|
import { uuid as oe } from "@web-utils/integrations/uuid";
|
|
23
21
|
//#region src/components/table/components/TableColumnSettingPanel.vue
|
|
24
|
-
var
|
|
22
|
+
var se = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
25
23
|
__name: "TableColumnSettingPanel",
|
|
26
24
|
props: /* @__PURE__ */ w({ columns: {
|
|
27
25
|
type: Array,
|
|
@@ -34,62 +32,62 @@ var I = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
|
34
32
|
modelModifiers: {}
|
|
35
33
|
}),
|
|
36
34
|
emits: /* @__PURE__ */ w(["update:settings"], ["update:modelValue"]),
|
|
37
|
-
setup(
|
|
38
|
-
let
|
|
35
|
+
setup(n, { expose: r, emit: i }) {
|
|
36
|
+
let a = M(n, "modelValue"), o = i, c = k({
|
|
39
37
|
hideProps: {},
|
|
40
38
|
fixedProps: {},
|
|
41
39
|
filterableProps: {},
|
|
42
40
|
sortableProps: {}
|
|
43
|
-
}),
|
|
44
|
-
n === "hide" ?
|
|
41
|
+
}), u = (e, t, n) => {
|
|
42
|
+
n === "hide" ? c.hideProps[t.prop] = e : n === "fixed" ? c.fixedProps[t.prop] = e : n === "filterable" ? c.filterableProps[t.prop] = e : n === "sortable" && (c.sortableProps[t.prop] = e), o("update:settings", c);
|
|
45
43
|
};
|
|
46
|
-
return
|
|
47
|
-
let
|
|
48
|
-
return D(), y(
|
|
49
|
-
modelValue:
|
|
50
|
-
"onUpdate:modelValue":
|
|
44
|
+
return r({ settings: c }), (r, i) => {
|
|
45
|
+
let o = e, c = s, d = t, f = l;
|
|
46
|
+
return D(), y(f, {
|
|
47
|
+
modelValue: a.value,
|
|
48
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => a.value = e),
|
|
51
49
|
class: "table-column-filter",
|
|
52
50
|
title: "表格设置",
|
|
53
51
|
"append-to-body": ""
|
|
54
52
|
}, {
|
|
55
|
-
default: P(() => [x(
|
|
56
|
-
data:
|
|
53
|
+
default: P(() => [x(d, {
|
|
54
|
+
data: n.columns,
|
|
57
55
|
border: ""
|
|
58
56
|
}, {
|
|
59
57
|
default: P(() => [
|
|
60
|
-
x(
|
|
58
|
+
x(o, { label: "列名" }, {
|
|
61
59
|
default: P(({ row: e }) => [b(j(e.label), 1)]),
|
|
62
60
|
_: 1
|
|
63
61
|
}),
|
|
64
|
-
x(
|
|
62
|
+
x(o, {
|
|
65
63
|
label: "隐藏",
|
|
66
64
|
align: "center"
|
|
67
65
|
}, {
|
|
68
|
-
default: P(({ row: e }) => [x(
|
|
66
|
+
default: P(({ row: e }) => [x(c, { onChange: (t) => u(t, e, "hide") }, null, 8, ["onChange"])]),
|
|
69
67
|
_: 1
|
|
70
68
|
}),
|
|
71
|
-
x(
|
|
69
|
+
x(o, {
|
|
72
70
|
label: "冻结",
|
|
73
71
|
align: "center"
|
|
74
72
|
}, {
|
|
75
|
-
default: P(({ row: e }) => [x(
|
|
73
|
+
default: P(({ row: e }) => [x(c, { onChange: (t) => u(t, e, "fixed") }, null, 8, ["onChange"])]),
|
|
76
74
|
_: 1
|
|
77
75
|
}),
|
|
78
|
-
x(
|
|
76
|
+
x(o, {
|
|
79
77
|
label: "过滤",
|
|
80
78
|
align: "center"
|
|
81
79
|
}, {
|
|
82
|
-
default: P(({ row: e }) => [x(
|
|
80
|
+
default: P(({ row: e }) => [x(c, { onChange: (t) => u(t, e, "filterable") }, null, 8, ["onChange"])]),
|
|
83
81
|
_: 1
|
|
84
82
|
}),
|
|
85
|
-
x(
|
|
83
|
+
x(o, {
|
|
86
84
|
label: "排序",
|
|
87
85
|
align: "center"
|
|
88
86
|
}, {
|
|
89
|
-
default: P(({ row: e }) => [x(
|
|
87
|
+
default: P(({ row: e }) => [x(c, {
|
|
90
88
|
title: e.allowSort ? null : "该列不支持排序!",
|
|
91
89
|
disabled: !e.allowSort,
|
|
92
|
-
onChange: (t) =>
|
|
90
|
+
onChange: (t) => u(t, e, "sortable")
|
|
93
91
|
}, null, 8, [
|
|
94
92
|
"title",
|
|
95
93
|
"disabled",
|
|
@@ -107,29 +105,29 @@ var I = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
|
107
105
|
});
|
|
108
106
|
//#endregion
|
|
109
107
|
//#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
|
|
110
|
-
function
|
|
108
|
+
function I(e) {
|
|
111
109
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !C(e);
|
|
112
110
|
}
|
|
113
111
|
//#endregion
|
|
114
112
|
//#region src/components/table/components/TableColumnFilterable.vue
|
|
115
|
-
var
|
|
113
|
+
var ce = {
|
|
116
114
|
name: "TableColumnFilterable",
|
|
117
|
-
props: { ...
|
|
118
|
-
setup(
|
|
119
|
-
let
|
|
120
|
-
if (
|
|
121
|
-
}),
|
|
122
|
-
if (
|
|
115
|
+
props: { ...h },
|
|
116
|
+
setup(e, { slots: t }) {
|
|
117
|
+
let n = S(p, null), i = r(e, (e) => e !== "filterMethod" && e !== "filters"), a = v(() => {
|
|
118
|
+
if (e.filterable && n) return (e, t, n) => t[n.property] === e;
|
|
119
|
+
}), o = v(() => {
|
|
120
|
+
if (e.filterable && n) return [...new Set(n.records.value.map((t) => t[e.prop]).filter((e) => e))].map((e) => ({
|
|
123
121
|
text: e,
|
|
124
122
|
value: e
|
|
125
123
|
}));
|
|
126
124
|
});
|
|
127
|
-
return () => x(
|
|
125
|
+
return () => x(g, T(i.value, {
|
|
128
126
|
filterMethod: a.value,
|
|
129
|
-
filters:
|
|
130
|
-
}),
|
|
127
|
+
filters: o.value
|
|
128
|
+
}), I(t) ? t : { default: () => [t] });
|
|
131
129
|
}
|
|
132
|
-
},
|
|
130
|
+
}, L = {
|
|
133
131
|
data: {
|
|
134
132
|
type: Array,
|
|
135
133
|
default: () => []
|
|
@@ -305,7 +303,7 @@ var se = {
|
|
|
305
303
|
selectExport: Boolean,
|
|
306
304
|
useVisibilityChange: Boolean,
|
|
307
305
|
rowDbClick: Function
|
|
308
|
-
},
|
|
306
|
+
}, R = {
|
|
309
307
|
data: !0,
|
|
310
308
|
rowDbClick: !0,
|
|
311
309
|
selectionWidth: !0,
|
|
@@ -332,320 +330,316 @@ var se = {
|
|
|
332
330
|
columns: !0,
|
|
333
331
|
payloadStyle: !0,
|
|
334
332
|
disabledRowKeys: !0
|
|
335
|
-
},
|
|
333
|
+
}, le = (e) => R[e] !== !0;
|
|
336
334
|
//#endregion
|
|
337
335
|
//#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
|
|
338
|
-
function
|
|
336
|
+
function ue(e) {
|
|
339
337
|
let t = "";
|
|
340
338
|
for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
|
|
341
339
|
return t;
|
|
342
340
|
}
|
|
343
|
-
var
|
|
341
|
+
var z = {
|
|
344
342
|
loading: 1,
|
|
345
343
|
error: -1,
|
|
346
344
|
empty: 2,
|
|
347
345
|
success: 0
|
|
348
|
-
},
|
|
346
|
+
}, B = {
|
|
349
347
|
name: "PageableTable",
|
|
350
348
|
emits: { "page-loaded": null },
|
|
351
349
|
inheritAttrs: !1,
|
|
352
|
-
props: { ...
|
|
353
|
-
setup(
|
|
354
|
-
O(
|
|
350
|
+
props: { ...L },
|
|
351
|
+
setup(r, { emit: s, attrs: l, slots: h, expose: g }) {
|
|
352
|
+
O(ee, r.rowDbClick);
|
|
355
353
|
let y = ie("table"), S = A({
|
|
356
354
|
hideProps: {},
|
|
357
355
|
fixedProps: {},
|
|
358
356
|
filterableProps: {},
|
|
359
357
|
sortableProps: {}
|
|
360
|
-
}), C = A(
|
|
358
|
+
}), C = A(z.empty), w = A([]), D = A(null), k = A(!1), j = A([]), M = A({
|
|
361
359
|
total: 0,
|
|
362
360
|
page: 1,
|
|
363
|
-
limit:
|
|
364
|
-
ascs:
|
|
365
|
-
descs:
|
|
366
|
-
}), P = A(0),
|
|
361
|
+
limit: r.pageSize,
|
|
362
|
+
ascs: r.ascs,
|
|
363
|
+
descs: r.descs
|
|
364
|
+
}), P = A(0), I = A(0), L = v(() => r.reloadOnModelChange ? {
|
|
367
365
|
asc: M.value.ascs,
|
|
368
366
|
desc: M.value.descs,
|
|
369
367
|
page: M.value.page,
|
|
370
368
|
limit: M.value.limit,
|
|
371
|
-
model:
|
|
369
|
+
model: r.model
|
|
372
370
|
} : {
|
|
373
371
|
asc: M.value.ascs,
|
|
374
372
|
desc: M.value.descs,
|
|
375
373
|
page: M.value.page,
|
|
376
374
|
limit: M.value.limit
|
|
377
|
-
}),
|
|
375
|
+
}), R = v(() => {
|
|
378
376
|
var e;
|
|
379
377
|
let t = `${(M.value.page - 1) * M.value.limit + (((e = w.value) == null ? void 0 : e.length) ?? 0)}`;
|
|
380
378
|
return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
|
|
381
|
-
}),
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
if (
|
|
379
|
+
}), B = () => {
|
|
380
|
+
H();
|
|
381
|
+
}, V = (e, t, n) => {
|
|
382
|
+
if (r.clickRowSelect && Z(e)) {
|
|
385
383
|
var i;
|
|
386
|
-
if (j.value.find((
|
|
384
|
+
if (j.value.find((t) => t[r.rowKey] === e[r.rowKey])) {
|
|
387
385
|
var a;
|
|
388
|
-
(a = y.value) == null || a.toggleRowSelection(
|
|
386
|
+
(a = y.value) == null || a.toggleRowSelection(e, !1);
|
|
389
387
|
return;
|
|
390
388
|
}
|
|
391
|
-
(i = y.value) == null || i.toggleRowSelection(
|
|
389
|
+
(i = y.value) == null || i.toggleRowSelection(e);
|
|
392
390
|
}
|
|
393
|
-
},
|
|
391
|
+
}, H = () => {
|
|
394
392
|
var e, t;
|
|
395
393
|
let n = (e = y.value) == null || (e = e.$children) == null ? void 0 : e.find((e) => {
|
|
396
394
|
var t;
|
|
397
395
|
return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
|
|
398
396
|
});
|
|
399
397
|
n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
|
|
400
|
-
},
|
|
401
|
-
P.value = t,
|
|
402
|
-
},
|
|
403
|
-
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
}, me = (e) => {
|
|
407
|
-
Q(e) && (D.value = e);
|
|
398
|
+
}, de = ({ scrollLeft: e, scrollTop: t }) => {
|
|
399
|
+
P.value = t, I.value = e;
|
|
400
|
+
}, fe = () => {
|
|
401
|
+
_e(P.value, I.value);
|
|
402
|
+
}, pe = (e) => a(ue(e)), me = ({ prop: e, order: t }) => {
|
|
403
|
+
r.payloadStyle === "body" ? (M.value.ascs = t === "ascending" ? [e] : r.ascs, M.value.descs = t === "descending" ? [e] : r.descs) : (M.value.ascs = t === "ascending" ? e : "", M.value.descs = t === "descending" ? e : "");
|
|
408
404
|
}, he = (e) => {
|
|
405
|
+
Z(e) && (D.value = e);
|
|
406
|
+
}, ge = (e) => {
|
|
409
407
|
j.value = e;
|
|
410
|
-
},
|
|
408
|
+
}, U = () => {
|
|
411
409
|
var e;
|
|
412
410
|
(e = y.value) == null || e.clearSelection();
|
|
413
|
-
},
|
|
414
|
-
let
|
|
415
|
-
return
|
|
411
|
+
}, W = () => {
|
|
412
|
+
let e;
|
|
413
|
+
return e = r.payloadStyle === "body" ? {
|
|
416
414
|
page: {
|
|
417
415
|
...M.value,
|
|
418
416
|
current: M.value.page,
|
|
419
417
|
size: M.value.limit
|
|
420
418
|
},
|
|
421
|
-
example:
|
|
419
|
+
example: r.model || {}
|
|
422
420
|
} : {
|
|
423
421
|
...M.value,
|
|
424
422
|
current: M.value.page,
|
|
425
423
|
size: M.value.limit,
|
|
426
|
-
...
|
|
427
|
-
},
|
|
428
|
-
},
|
|
429
|
-
if (!
|
|
430
|
-
var
|
|
431
|
-
w.value =
|
|
424
|
+
...r.model || {}
|
|
425
|
+
}, r.selectExport && (r.rowKey ? e.exportKeys = j.value.map((e) => e[r.rowKey]) : e.exportKeys = j.value.map((e) => w.value.indexOf(e))), e;
|
|
426
|
+
}, G = async (e = !0) => {
|
|
427
|
+
if (!r.api && r.data !== !1) {
|
|
428
|
+
var t;
|
|
429
|
+
w.value = r.data, M.value.page = 1, M.value.total = (t = w.value) == null ? void 0 : t.length, M.value.limit = M.value.total < 1 ? r.pageSize : M.value.total;
|
|
432
430
|
return;
|
|
433
431
|
}
|
|
434
|
-
|
|
435
|
-
let
|
|
436
|
-
if (
|
|
437
|
-
|
|
432
|
+
e !== !1 && (w.value = []);
|
|
433
|
+
let i, a = W();
|
|
434
|
+
if (r.api) {
|
|
435
|
+
e !== !1 && (C.value = z.loading);
|
|
438
436
|
try {
|
|
439
|
-
|
|
437
|
+
r.api && (i = await r.api(a));
|
|
440
438
|
} catch {
|
|
441
|
-
C.value =
|
|
439
|
+
C.value = z.error;
|
|
442
440
|
return;
|
|
443
441
|
}
|
|
444
|
-
} else if (
|
|
445
|
-
total:
|
|
446
|
-
records:
|
|
442
|
+
} else if (r.data) i = { data: { data: {
|
|
443
|
+
total: r.data.length,
|
|
444
|
+
records: r.data
|
|
447
445
|
} } };
|
|
448
446
|
else {
|
|
449
|
-
|
|
447
|
+
n.warning({
|
|
450
448
|
title: "开发提示!",
|
|
451
449
|
message: "PageableTable api(Function) 属性"
|
|
452
450
|
});
|
|
453
451
|
return;
|
|
454
452
|
}
|
|
455
|
-
let { data: { data:
|
|
456
|
-
M.value.total = Number(
|
|
457
|
-
},
|
|
458
|
-
|
|
453
|
+
let { data: { data: o } = {} } = i || {}, { total: c, records: l } = o || {};
|
|
454
|
+
M.value.total = Number(c), w.value = await ve(l), !l || !l.length ? C.value = z.empty : C.value = z.success, K(), s("page-loaded", o);
|
|
455
|
+
}, K = () => {
|
|
456
|
+
E(() => {
|
|
459
457
|
var e;
|
|
460
458
|
(e = y.value) == null || e.doLayout();
|
|
461
459
|
});
|
|
462
|
-
},
|
|
463
|
-
await
|
|
464
|
-
},
|
|
460
|
+
}, q = async (e) => {
|
|
461
|
+
await G(e);
|
|
462
|
+
}, J = () => {
|
|
465
463
|
M.value = {
|
|
466
464
|
total: 0,
|
|
467
465
|
page: 1,
|
|
468
|
-
limit:
|
|
469
|
-
ascs:
|
|
470
|
-
descs:
|
|
466
|
+
limit: r.pageSize,
|
|
467
|
+
ascs: r.ascs,
|
|
468
|
+
descs: r.descs
|
|
471
469
|
};
|
|
472
|
-
},
|
|
470
|
+
}, _e = (e, t) => {
|
|
473
471
|
y.value.setScrollTop(e), y.value.setScrollLeft(t);
|
|
474
|
-
},
|
|
472
|
+
}, Y = (e, t) => {
|
|
475
473
|
var n;
|
|
476
474
|
(n = y.value) == null || n.toggleRowSelection(e, t);
|
|
477
|
-
},
|
|
478
|
-
if (!
|
|
479
|
-
let
|
|
480
|
-
for (let
|
|
481
|
-
var
|
|
482
|
-
t
|
|
483
|
-
} else t
|
|
484
|
-
return
|
|
485
|
-
},
|
|
475
|
+
}, ve = async (e) => {
|
|
476
|
+
if (!e) return [];
|
|
477
|
+
let t = [...e];
|
|
478
|
+
for (let e of t) for (let t of r.dicOptions) if (e[`$${t.prop}`] = e[t.prop], t.dicData) {
|
|
479
|
+
var n;
|
|
480
|
+
e[t.prop] = ((n = t.dicData.find((n) => n.modelValue === e[t.prop])) == null ? void 0 : n.label) || e[t.prop];
|
|
481
|
+
} else e[t.prop] = await m(t.dicType, e[t.prop]);
|
|
482
|
+
return t;
|
|
483
|
+
}, X = () => {
|
|
486
484
|
k.value = !k.value;
|
|
487
|
-
},
|
|
488
|
-
var
|
|
489
|
-
return !(
|
|
485
|
+
}, Z = (e) => {
|
|
486
|
+
var t;
|
|
487
|
+
return !(e != null && e.disabled) && !((t = r.disabledRowKeys) != null && t.includes(e == null ? void 0 : e[r.rowKey]));
|
|
490
488
|
};
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
} }), ae("reloadTableView", (
|
|
494
|
-
|
|
495
|
-
}), N(() =>
|
|
489
|
+
r.useVisibilityChange && ne({ onPageVisible: () => {
|
|
490
|
+
q(!1);
|
|
491
|
+
} }), ae("reloadTableView", (e) => {
|
|
492
|
+
e === r.viewId && G();
|
|
493
|
+
}), N(() => r.url, J), N(() => r.api, J), N(() => r.data, G), N(() => L.value, G, {
|
|
496
494
|
deep: !0,
|
|
497
|
-
immediate:
|
|
495
|
+
immediate: r.immediate
|
|
498
496
|
});
|
|
499
|
-
let
|
|
500
|
-
let
|
|
501
|
-
if (F(
|
|
502
|
-
if (
|
|
503
|
-
} else if (
|
|
504
|
-
return
|
|
497
|
+
let Q = (e) => {
|
|
498
|
+
let t;
|
|
499
|
+
if (F(r.rowKey)) {
|
|
500
|
+
if (t = r.rowKey(e), t) return t;
|
|
501
|
+
} else if (r.rowKey && (t = e[r.rowKey], t)) return t;
|
|
502
|
+
return t = "__rowKey", e[t] || (e[t] = oe(!1)), e[t];
|
|
505
503
|
}, $ = v(() => {
|
|
506
|
-
let
|
|
507
|
-
if (
|
|
508
|
-
var
|
|
509
|
-
let
|
|
510
|
-
for (let
|
|
511
|
-
let { props: r, children: i } =
|
|
504
|
+
let e = [];
|
|
505
|
+
if (h.default) {
|
|
506
|
+
var t;
|
|
507
|
+
let n = o((t = h.default) == null ? void 0 : t.call(h));
|
|
508
|
+
for (let t = 0; t < n.length; t++) {
|
|
509
|
+
let { props: r, children: i } = n[t];
|
|
512
510
|
if (!r) continue;
|
|
513
511
|
let { sortable: a, prop: o, fixed: s, ...c } = r, l = {
|
|
514
512
|
...c,
|
|
515
513
|
prop: o,
|
|
516
514
|
allowSort: a !== !1
|
|
517
515
|
};
|
|
518
|
-
i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), l.hide = S.value.hideProps[o], l.filterable = S.value.filterableProps[o], l.sortable = S.value.sortableProps[o] === !0, l.fixed = s || S.value.fixedProps[o],
|
|
516
|
+
i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), l.hide = S.value.hideProps[o], l.filterable = S.value.filterableProps[o], l.sortable = S.value.sortableProps[o] === !0, l.fixed = s || S.value.fixedProps[o], e.push(l);
|
|
519
517
|
}
|
|
520
|
-
} else if (
|
|
521
|
-
let { prop:
|
|
518
|
+
} else if (r.columns) for (let t = 0; t < r.columns.length; t++) {
|
|
519
|
+
let { prop: n, sortable: i, fixed: a, ...o } = r.columns[t], s = {
|
|
522
520
|
...o,
|
|
523
|
-
prop:
|
|
521
|
+
prop: n,
|
|
524
522
|
allowSort: i !== !1
|
|
525
523
|
};
|
|
526
|
-
s.hide = S.value.hideProps[
|
|
524
|
+
s.hide = S.value.hideProps[n], s.filterable = S.value.filterableProps[n], s.sortable = S.value.sortableProps[n] === !0, s.fixed = a || S.value.fixedProps[n], e.push(s);
|
|
527
525
|
}
|
|
528
|
-
return
|
|
526
|
+
return e;
|
|
529
527
|
});
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}),
|
|
528
|
+
re(() => {
|
|
529
|
+
fe();
|
|
530
|
+
}), g({
|
|
533
531
|
records: w,
|
|
534
|
-
getPage:
|
|
535
|
-
refresh:
|
|
536
|
-
reload:
|
|
537
|
-
doLayout:
|
|
538
|
-
clearSelection:
|
|
539
|
-
toggleRowSelection:
|
|
540
|
-
toggleSettings:
|
|
532
|
+
getPage: G,
|
|
533
|
+
refresh: q,
|
|
534
|
+
reload: J,
|
|
535
|
+
doLayout: K,
|
|
536
|
+
clearSelection: U,
|
|
537
|
+
toggleRowSelection: Y,
|
|
538
|
+
toggleSettings: X,
|
|
541
539
|
currentRow: D,
|
|
542
|
-
getPageQuery:
|
|
540
|
+
getPageQuery: W,
|
|
543
541
|
tableColumns: $
|
|
544
|
-
}), O(
|
|
542
|
+
}), O(p, {
|
|
545
543
|
records: w,
|
|
546
|
-
getPage:
|
|
547
|
-
refresh:
|
|
548
|
-
reload:
|
|
549
|
-
doLayout:
|
|
550
|
-
clearSelection:
|
|
551
|
-
toggleRowSelection:
|
|
552
|
-
toggleSettings:
|
|
544
|
+
getPage: G,
|
|
545
|
+
refresh: q,
|
|
546
|
+
reload: J,
|
|
547
|
+
doLayout: K,
|
|
548
|
+
clearSelection: U,
|
|
549
|
+
toggleRowSelection: Y,
|
|
550
|
+
toggleSettings: X
|
|
553
551
|
});
|
|
554
|
-
let { autoBindProps: ye, listeners: be } =
|
|
552
|
+
let { autoBindProps: ye, listeners: be } = i(r, { predicate: le });
|
|
555
553
|
return () => x("div", {
|
|
556
554
|
class: [
|
|
557
555
|
"pageable-table",
|
|
558
|
-
{ "auto-height":
|
|
559
|
-
|
|
556
|
+
{ "auto-height": r.autoHeight },
|
|
557
|
+
l.class
|
|
560
558
|
],
|
|
561
|
-
style:
|
|
559
|
+
style: l.style
|
|
562
560
|
}, [x("div", { class: "pageable-table-wrapper" }, [
|
|
563
|
-
|
|
564
|
-
x(
|
|
561
|
+
h.toolbar && h.toolbar({ selectedRows: j.value }),
|
|
562
|
+
x(t, T(be.value, ye.value, {
|
|
565
563
|
ref: "table",
|
|
566
564
|
data: w.value,
|
|
567
|
-
class: ["flex-item", { "header-bold":
|
|
568
|
-
border:
|
|
565
|
+
class: ["flex-item", { "header-bold": r.headerBold }],
|
|
566
|
+
border: r.border,
|
|
569
567
|
stripe: !0,
|
|
570
|
-
rowKey:
|
|
568
|
+
rowKey: Q,
|
|
571
569
|
size: "default",
|
|
572
|
-
height:
|
|
573
|
-
onScroll:
|
|
574
|
-
onSortChange:
|
|
575
|
-
onRowDblclick:
|
|
576
|
-
onRowClick:
|
|
577
|
-
onCellClick:
|
|
578
|
-
onCurrentChange:
|
|
579
|
-
onSelectionChange:
|
|
570
|
+
height: r.autoHeight ? null : "auto",
|
|
571
|
+
onScroll: de,
|
|
572
|
+
onSortChange: me,
|
|
573
|
+
onRowDblclick: B,
|
|
574
|
+
onRowClick: V,
|
|
575
|
+
onCellClick: H,
|
|
576
|
+
onCurrentChange: he,
|
|
577
|
+
onSelectionChange: ge
|
|
580
578
|
}), {
|
|
581
579
|
default: () => {
|
|
582
580
|
let t = [];
|
|
583
|
-
if (
|
|
581
|
+
if (r.multiple && r.selection && t.push(x(e, {
|
|
584
582
|
key: "selection",
|
|
585
583
|
type: "selection",
|
|
586
|
-
selectable:
|
|
587
|
-
width:
|
|
584
|
+
selectable: Z,
|
|
585
|
+
width: r.selectionWidth,
|
|
588
586
|
align: "center"
|
|
589
|
-
}, null)), !
|
|
587
|
+
}, null)), !r.multiple && r.selection && t.push(x(e, {
|
|
590
588
|
key: "single-selection",
|
|
591
589
|
type: "single-selection",
|
|
592
590
|
"class-name": "single-select-column",
|
|
593
|
-
width:
|
|
591
|
+
width: r.selectionWidth,
|
|
594
592
|
align: "center"
|
|
595
593
|
}, {
|
|
596
|
-
header: () => x(
|
|
594
|
+
header: () => x(c, {
|
|
597
595
|
modelValue: !!D.value,
|
|
598
596
|
label: !0
|
|
599
597
|
}, { default: () => [x("span", null, null)] }),
|
|
600
|
-
default: ({ row:
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
modelValue: ((n = D.value) == null ? void 0 : n[r]) === t[r]
|
|
607
|
-
}, { default: () => [x("span", null, null)] });
|
|
608
|
-
}
|
|
609
|
-
})), e.index && t.push(x(g, {
|
|
598
|
+
default: ({ row: e }) => x(c, {
|
|
599
|
+
label: !0,
|
|
600
|
+
disabled: !Z(e),
|
|
601
|
+
modelValue: D.value && Q(D.value) === Q(e)
|
|
602
|
+
}, { default: () => [x("span", null, null)] })
|
|
603
|
+
})), r.index && t.push(x(e, {
|
|
610
604
|
key: "index",
|
|
611
605
|
type: "index",
|
|
612
606
|
label: "序号",
|
|
613
|
-
width:
|
|
607
|
+
width: R.value,
|
|
614
608
|
align: "center"
|
|
615
609
|
}, { default: ({ $index: e }) => (M.value.page - 1) * M.value.limit + e + 1 || e + 1 })), $.value.length > 0) for (let e = 0; e < $.value.length; e++) {
|
|
616
610
|
let n = $.value[e];
|
|
617
611
|
if (n.hide) continue;
|
|
618
612
|
let { prop: r, headerSlot: i, defaultSlot: a, expandSlot: o, iconSlot: s, ...c } = n;
|
|
619
|
-
t.push(x(
|
|
620
|
-
default:
|
|
613
|
+
t.push(x(ce, T(c, { prop: r }), {
|
|
614
|
+
default: h[r] ? ({ row: e }) => h[r]({ row: e }) : a,
|
|
621
615
|
header: i,
|
|
622
616
|
expand: o,
|
|
623
617
|
"filter-icon": s
|
|
624
618
|
}));
|
|
625
619
|
}
|
|
626
|
-
else t.push(x(
|
|
620
|
+
else t.push(x(e, {
|
|
627
621
|
key: "default",
|
|
628
622
|
label: "点击表格行复制模板"
|
|
629
623
|
}, { default: ({ row: e }) => x("pre", {
|
|
630
624
|
class: "pointer",
|
|
631
|
-
onClick: () =>
|
|
625
|
+
onClick: () => pe(e)
|
|
632
626
|
}, [JSON.stringify(e, null, " ")]) }));
|
|
633
627
|
return t;
|
|
634
628
|
},
|
|
635
|
-
empty: () =>
|
|
636
|
-
C.value ===
|
|
637
|
-
C.value ===
|
|
629
|
+
empty: () => h.empty ? h.empty() : x(_, null, [
|
|
630
|
+
C.value === z.loading && x("span", { class: "pageable-table-loading" }, [x("i", { class: "table-status-icon el-icon-loading" }, null), b("加载中...")]),
|
|
631
|
+
C.value === z.error && x(te, {
|
|
638
632
|
class: "pageable-table-error",
|
|
639
|
-
onClick:
|
|
633
|
+
onClick: q
|
|
640
634
|
}, { default: () => [x("i", { class: "table-status-icon el-icon-error" }, null), b("加载失败,点击重试!")] }),
|
|
641
|
-
C.value !==
|
|
635
|
+
C.value !== z.loading && C.value !== z.error && x(u, null, null)
|
|
642
636
|
]),
|
|
643
|
-
append:
|
|
637
|
+
append: h.append
|
|
644
638
|
}),
|
|
645
|
-
|
|
639
|
+
r.paging && x(d, {
|
|
646
640
|
"current-page": M.value.page,
|
|
647
641
|
"onUpdate:current-page": (e) => M.value.page = e,
|
|
648
|
-
"hide-on-single-page":
|
|
642
|
+
"hide-on-single-page": r.hideOnSinglePage,
|
|
649
643
|
"page-size": M.value.limit,
|
|
650
644
|
"onUpdate:page-size": (e) => M.value.limit = e,
|
|
651
645
|
total: M.value.total,
|
|
@@ -662,15 +656,15 @@ var B = {
|
|
|
662
656
|
background: !0,
|
|
663
657
|
layout: "total, sizes, prev, pager, next, jumper"
|
|
664
658
|
}, null),
|
|
665
|
-
x(
|
|
659
|
+
x(se, {
|
|
666
660
|
settings: S.value,
|
|
667
661
|
"onUpdate:settings": (e) => S.value = e,
|
|
668
662
|
modelValue: k.value,
|
|
669
663
|
"onUpdate:modelValue": (e) => k.value = e,
|
|
670
664
|
columns: $.value
|
|
671
665
|
}, null)
|
|
672
|
-
]), x(
|
|
666
|
+
]), x(f, { onNotify: K }, null)]);
|
|
673
667
|
}
|
|
674
668
|
};
|
|
675
669
|
//#endregion
|
|
676
|
-
export {
|
|
670
|
+
export { B as t };
|