@web-utils/form-ui 1.0.0-beta87 → 1.0.0-beta88
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 +1 -1
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -15
- package/chunks/{Cwgd7PoY.mjs → 5RCAxanu2.mjs} +4 -4
- package/chunks/6eDDQWcr.mjs +69 -0
- package/chunks/9ec0Wti82.mjs +37 -0
- package/chunks/{BkEjtrWy.mjs → B7BaAm4k2.mjs} +2 -2
- package/chunks/{B14qtsOg2.mjs → BCYFaOiB.mjs} +7 -8
- package/chunks/{BBlZh4pj.mjs → BFhVUqpP2.mjs} +2 -2
- package/chunks/{BF0OBs7P.mjs → BJDeTpmp2.mjs} +14 -15
- package/chunks/BLKcXIrX.mjs +517 -0
- package/chunks/BQytQPLa.mjs +780 -0
- package/chunks/{y9rz_ZSp.mjs → BSOrm2U4.mjs} +36 -37
- package/chunks/{B0rLJ6br2.mjs → BcsscZAM.mjs} +26 -27
- package/chunks/{CTCW5Zu02.mjs → BegZOXrr.mjs} +134 -135
- package/chunks/{BZb0RMw12.mjs → BfW25VbY.mjs} +13 -15
- package/chunks/Bg01eBVa2.mjs +50 -0
- package/chunks/BhPVs8Ju.mjs +30 -0
- package/chunks/{BCqOe0lx.mjs → BjccroM8.mjs} +1 -1
- package/chunks/{BjZf7WL6.mjs → BmbhIxPF2.mjs} +2 -2
- package/chunks/{BPQMbzNr.mjs → Br3whXEJ2.mjs} +2 -2
- package/chunks/{CsckXzQC.mjs → BsqIRxSS.mjs} +6 -7
- package/chunks/BuI82QMb2.mjs +29 -0
- package/chunks/{C5SO6LJW.mjs → Bv7b2DXh2.mjs} +2 -2
- package/chunks/{Cqn3fqrC.mjs → C-iN5MJZ.mjs} +6 -6
- package/chunks/{losZHy0P.mjs → C-s-88fN2.mjs} +1 -1
- package/chunks/C54nZqvy2.mjs +39 -0
- package/chunks/{DNicIC4X.mjs → CB0zQsKV2.mjs} +31 -32
- package/chunks/{kWflpyKd.mjs → CFpGTE5U2.mjs} +2 -2
- package/chunks/{BuwISkjU.mjs → CHqxWrj7.mjs} +11 -12
- package/chunks/{_wUx1zSH2.mjs → CIihGrgY.mjs} +3 -3
- package/chunks/{DUzoabyA2.mjs → CJwAjhLy.mjs} +68 -69
- package/chunks/CW021IPm2.mjs +34 -0
- package/chunks/{DOPqetRk2.mjs → CW1nopZH.mjs} +1 -1
- package/chunks/{BgQktI__2.mjs → CbedyG4s.mjs} +385 -384
- package/chunks/{C_mXAGw2.mjs → CdvD0NRo2.mjs} +2 -2
- package/chunks/{BsBVCVnp2.mjs → Cf_h9S62.mjs} +1 -1
- package/chunks/{Cxhpz5pM.mjs → CixNVW_T2.mjs} +112 -112
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/ClkLQjZ82.mjs +63 -0
- package/chunks/{Dk_ATXDY.mjs → CpmWELPU.mjs} +1 -1
- package/chunks/{DsSXjU752.mjs → CsNZt53l.mjs} +862 -1599
- package/chunks/{DcIBy4G3.mjs → Ctx93AFS.mjs} +6 -6
- package/chunks/D1mQTnJ8.mjs +672 -0
- package/chunks/D20CQ-B6.mjs +58 -0
- package/chunks/D2kLAzxW.mjs +61 -0
- package/chunks/{XGboXSyJ2.mjs → D8_fl5Oq.mjs} +138 -139
- package/chunks/{1EH2Ca7m2.mjs → D9ft-f6n.mjs} +29 -31
- package/chunks/DC3DNg_r.mjs +68 -0
- package/chunks/{BvdCIFp_.mjs → DL4xcGES2.mjs} +31 -32
- package/chunks/{CFfhckpA.mjs → DNq7pbXh2.mjs} +27 -26
- package/chunks/Dd4RtBO02.mjs +31 -0
- package/chunks/DdACGFy3.mjs +90 -0
- package/chunks/DdHN2Nv72.mjs +108 -0
- package/chunks/{LnWJAAlm2.mjs → DmJaItEY.mjs} +178 -178
- package/chunks/Dnapnskp2.mjs +29 -0
- package/chunks/{CuU6RbNj2.mjs → Dodxnwze.mjs} +6 -6
- package/chunks/{BXdCyPVV.mjs → MUk_IdeO2.mjs} +2 -2
- package/chunks/{Bi2y9LWO2.mjs → NAZ8HFBg.mjs} +92 -90
- package/chunks/V-Js6hNd.mjs +179 -0
- package/chunks/aOv3rI7q.mjs +32 -0
- package/chunks/{DrrpjVlS.mjs → dxZzZgUn.mjs} +17 -18
- package/chunks/{DZ1RiRcl2.mjs → fT8tFJVO.mjs} +29 -31
- package/chunks/{wkrB-kab.mjs → jG7vu3RX.mjs} +1 -1
- package/chunks/m5oFTe8Y2.mjs +25 -0
- package/chunks/mQG01w6Y.mjs +155 -0
- package/chunks/{2Bhi7uIl.mjs → mnqSaATq.mjs} +19 -18
- package/chunks/n7IipIUY.mjs +99 -0
- package/chunks/{Bi03Pb_j2.mjs → vCOhFr2x.mjs} +1 -1
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- 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 +9 -10
- package/data-operatext/index.mjs +8 -8
- package/data-panel/index.mjs +9 -9
- package/data-pay/index.mjs +10 -11
- 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.mjs +49 -49
- 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 +596 -2
- 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/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.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- 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-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.mjs +130 -2
- package/fy-array/style.css +1 -1
- package/fy-button/index.mjs +1 -1
- package/fy-cascader/index.mjs +27 -27
- package/fy-checkbox/index.mjs +29 -29
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +31 -31
- package/fy-dynamic/index.mjs +1 -1
- package/fy-empty/index.mjs +2 -2
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-input/index.mjs +36 -37
- package/fy-input-color/index.mjs +80 -2
- package/fy-input-icon/index.mjs +35 -36
- package/fy-input-map/index.mjs +30 -31
- package/fy-input-number/index.mjs +26 -26
- package/fy-input-table/index.mjs +24 -25
- package/fy-input-tree/index.mjs +43 -43
- package/fy-radio/index.mjs +20 -21
- package/fy-rate/index.mjs +27 -27
- package/fy-select/index.mjs +1 -1
- package/fy-slider/index.mjs +29 -29
- package/fy-switch/index.mjs +24 -24
- package/fy-tabs/index.mjs +8 -8
- package/fy-time/index.mjs +10 -10
- package/fy-title/index.mjs +2 -2
- package/fy-tree/index.mjs +57 -59
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/fy-upload/style.css +1 -1
- package/guide-steps/index.mjs +77 -2
- package/guide-steps/style.css +1 -1
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/icon-temp/index.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +5 -5
- package/image-preview/index.mjs +201 -2
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +147 -147
- 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.mjs +1 -1
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -3
- package/package.json +1 -1
- package/page-index/index.mjs +14 -14
- package/page-index-top/index.mjs +12 -12
- 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/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.mjs +1 -1
- package/table-view/index.mjs +103 -104
- package/tag-render/index.mjs +7 -9
- 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.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 +20 -24
- package/year-calendar/index.mjs +1 -1
- package/base2.css +0 -1
- package/chunks/2Hag_Aho.mjs +0 -4
- package/chunks/6Lm-ZabT2.mjs +0 -439
- package/chunks/7OAy-mrx.mjs +0 -642
- package/chunks/7cy48wUQ.mjs +0 -25
- package/chunks/8ldF4QwW.mjs +0 -209
- package/chunks/B2vpUK0j.mjs +0 -13
- package/chunks/B7fnIBG_2.mjs +0 -346
- package/chunks/B9BRO_ca2.mjs +0 -2
- package/chunks/B9rfY77Q.mjs +0 -107
- package/chunks/BBYzYVET.mjs +0 -173
- package/chunks/BBbwcaCo.mjs +0 -196
- package/chunks/BFY-akW92.mjs +0 -1
- package/chunks/BGjN3ifV.mjs +0 -34
- package/chunks/BMouE3MT.mjs +0 -48
- package/chunks/BVD_ePZC.mjs +0 -37
- package/chunks/BVSJF8GY.mjs +0 -670
- package/chunks/BZuJ9dKq2.mjs +0 -69
- package/chunks/BaM7vJ3h.mjs +0 -1920
- package/chunks/BbJd8Pij.mjs +0 -734
- package/chunks/BhIjXcRj2.mjs +0 -617
- package/chunks/BnNJk0GR2.mjs +0 -4
- package/chunks/Bpp7HhpF.mjs +0 -446
- package/chunks/Bs0Qas8r.mjs +0 -14
- package/chunks/Bs8cIxmy.mjs +0 -384
- package/chunks/BtGJbKCB.mjs +0 -4
- package/chunks/BwVhaeaN2.mjs +0 -8
- package/chunks/BxfDXlNF.mjs +0 -5
- package/chunks/C1rRv4L7.mjs +0 -1094
- package/chunks/C2ILQE4o.mjs +0 -15
- package/chunks/C6wieT3K2.mjs +0 -4
- package/chunks/C7L-0D2c.mjs +0 -18
- package/chunks/CAXQZ1D92.mjs +0 -158
- package/chunks/CAmsy3d12.mjs +0 -1
- package/chunks/CBrMFZX-.mjs +0 -39
- package/chunks/CDhbz_dU.mjs +0 -5
- package/chunks/CEAep1cG2.mjs +0 -88
- package/chunks/CEDUulAx.mjs +0 -245
- package/chunks/CEaiqlCR.mjs +0 -678
- package/chunks/CG-vyVAP2.mjs +0 -2
- package/chunks/CHqbeWkw.mjs +0 -99
- package/chunks/CI6Nw27a2.mjs +0 -299
- package/chunks/CNcSX5f1.mjs +0 -1
- package/chunks/CPAK-Btp2.mjs +0 -58
- package/chunks/CRScbQff2.mjs +0 -1
- package/chunks/CShykH0i.mjs +0 -1
- package/chunks/CTAUFbNL.mjs +0 -222
- package/chunks/CZbhVowA2.mjs +0 -105
- package/chunks/C_rLHaAm.mjs +0 -41
- package/chunks/C_ykwQIT.mjs +0 -25
- package/chunks/Cm5l5wtF.mjs +0 -21
- package/chunks/CogUVyM32.mjs +0 -161
- package/chunks/CtqI9iHR.mjs +0 -108
- package/chunks/Cu_oMKPd.mjs +0 -250
- package/chunks/Cum802WQ.mjs +0 -13
- package/chunks/Cx2xXO7o.mjs +0 -52
- package/chunks/CyF0QYX72.mjs +0 -1098
- package/chunks/D0SsqlhV2.mjs +0 -2381
- package/chunks/D5OVW2kN.mjs +0 -34
- package/chunks/D6WqEUFG2.mjs +0 -98
- package/chunks/D8iXlrtZ2.mjs +0 -1038
- package/chunks/D98jjbwV2.mjs +0 -61
- package/chunks/D9Pg_OCD2.mjs +0 -6
- package/chunks/DA1LVvTS.mjs +0 -577
- package/chunks/DHUKKHoT.mjs +0 -1
- package/chunks/DJQH0NMv.mjs +0 -276
- package/chunks/DK7E0MrC2.mjs +0 -990
- package/chunks/DTS-uhBE.mjs +0 -25
- package/chunks/DUQs5bPg.mjs +0 -188
- package/chunks/DV-c1hfn2.mjs +0 -6
- package/chunks/DVvu0kbn2.mjs +0 -69
- package/chunks/DZZdwRGN.mjs +0 -479
- package/chunks/Dd5QuF1x.mjs +0 -26
- package/chunks/DeXyq_xW2.mjs +0 -936
- package/chunks/DgXDFUzM2.mjs +0 -60
- package/chunks/DhA6VYyn.mjs +0 -588
- package/chunks/DiQUqii-.mjs +0 -486
- package/chunks/DlhCJLng.mjs +0 -211
- package/chunks/Dq9YiS-H.mjs +0 -26
- package/chunks/DuIXSS2d.mjs +0 -454
- package/chunks/DvCdN2bU.mjs +0 -1
- package/chunks/DvG4VjQh.mjs +0 -216
- package/chunks/DvenxcV4.mjs +0 -186
- package/chunks/DxG4FcLQ2.mjs +0 -58
- package/chunks/E-zZdDOp.mjs +0 -48
- package/chunks/HQd8AhfS.mjs +0 -225
- package/chunks/HsqImdEj.mjs +0 -69
- package/chunks/IAX-2m4F.mjs +0 -31
- package/chunks/JvWWISEH2.mjs +0 -243
- package/chunks/K7NMn1cU.mjs +0 -12
- package/chunks/NiAjkTEH2.mjs +0 -32
- package/chunks/OWDOBaZL.mjs +0 -467
- package/chunks/R_GWm9EB.mjs +0 -41
- package/chunks/Rn-X08l92.mjs +0 -273
- package/chunks/STHbzblo.mjs +0 -55
- package/chunks/TWAjK03p.mjs +0 -3092
- package/chunks/ZIHPaVeg.mjs +0 -105
- package/chunks/ZxxDJBOG2.mjs +0 -180
- package/chunks/_NG8ze6x.mjs +0 -42
- package/chunks/aeYRYRdi.mjs +0 -29
- package/chunks/b58kljs82.mjs +0 -525
- package/chunks/cGGsl8YM2.mjs +0 -2
- package/chunks/cvUTkWmm.mjs +0 -98
- package/chunks/el7WAt3q.mjs +0 -4
- package/chunks/f-0LSLCC.mjs +0 -17
- package/chunks/g1H2yYXi.mjs +0 -35
- package/chunks/hczonP-N2.mjs +0 -206
- package/chunks/jkTWyLZa.mjs +0 -17
- package/chunks/kN7dSjtl.mjs +0 -1278
- package/chunks/lJ7uxiQe2.mjs +0 -46
- package/chunks/lKeVGJZg.mjs +0 -62
- package/chunks/qNngJ9B9.mjs +0 -29
- package/chunks/r6tERHEL.mjs +0 -438
- package/chunks/tSJE9_uL.mjs +0 -1
- package/chunks/vRQzbLgj.mjs +0 -2
- package/chunks/wfxM1ecI.mjs +0 -17
- package/chunks/zG9cElaH.mjs +0 -1209
- package/css/style.css +0 -1
- package/css/style10.css +0 -1
- package/css/style11.css +0 -1
- package/css/style12.css +0 -1
- package/css/style13.css +0 -1
- package/css/style14.css +0 -1
- package/css/style15.css +0 -1
- package/css/style16.css +0 -1
- package/css/style17.css +0 -1
- package/css/style18.css +0 -1
- package/css/style19.css +0 -1
- package/css/style2.css +0 -1
- package/css/style20.css +0 -1
- package/css/style21.css +0 -1
- package/css/style22.css +0 -1
- package/css/style23.css +0 -1
- package/css/style24.css +0 -1
- package/css/style25.css +0 -1
- package/css/style26.css +0 -1
- package/css/style27.css +0 -1
- package/css/style28.css +0 -1
- package/css/style29.css +0 -1
- package/css/style3.css +0 -1
- package/css/style30.css +0 -1
- package/css/style31.css +0 -1
- package/css/style32.css +0 -1
- package/css/style33.css +0 -1
- package/css/style34.css +0 -1
- package/css/style35.css +0 -1
- package/css/style36.css +0 -1
- package/css/style37.css +0 -1
- package/css/style38.css +0 -1
- package/css/style39.css +0 -1
- package/css/style4.css +0 -1
- package/css/style5.css +0 -1
- package/css/style6.css +0 -1
- package/css/style7.css +0 -1
- package/css/style8.css +0 -1
- package/css/style9.css +0 -1
- package/form-image/style.css +0 -1
- package/form-radio-group/style.css +0 -1
- package/fy-input-color/style.css +0 -1
- /package/chunks/{hFCEXdXW.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{DdkcOQQ02.mjs → BbUUI4mF.mjs} +0 -0
- /package/chunks/{wm9pxXuv.mjs → Br0vC3nS2.mjs} +0 -0
- /package/chunks/{BEOl740t2.mjs → CBHGpbDK.mjs} +0 -0
- /package/chunks/{gQwOnofw.mjs → CY2YrwMT.mjs} +0 -0
- /package/chunks/{DX29uO-O.mjs → CZnwC17w.mjs} +0 -0
- /package/chunks/{nvUgyH-A.mjs → C_QfuxeQ.mjs} +0 -0
- /package/chunks/{CyNGeUTh.mjs → Cp1olyWc.mjs} +0 -0
- /package/chunks/{CVDxIjGg.mjs → DEHzWyyp.mjs} +0 -0
- /package/chunks/{BMdSzPpD2.mjs → DJe2Reym.mjs} +0 -0
- /package/chunks/{CISLTyi_2.mjs → DOLQ28wD.mjs} +0 -0
- /package/chunks/{CeLNtZZw.mjs → DokYQ49m.mjs} +0 -0
- /package/chunks/{Xe_0bP0H.mjs → tzjUpVIj.mjs} +0 -0
package/chunks/BVSJF8GY.mjs
DELETED
|
@@ -1,670 +0,0 @@
|
|
|
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";
|
|
18
|
-
import { isFunction as F } from "@web-utils/core";
|
|
19
|
-
import { useEventBus as ae } from "@web-utils/vue/hooks/useEventBus";
|
|
20
|
-
import { uuid as oe } from "@web-utils/integrations/uuid";
|
|
21
|
-
//#region src/components/table/components/TableColumnSettingPanel.vue
|
|
22
|
-
var se = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
23
|
-
__name: "TableColumnSettingPanel",
|
|
24
|
-
props: /* @__PURE__ */ w({ columns: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: () => []
|
|
27
|
-
} }, {
|
|
28
|
-
modelValue: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
modelModifiers: {}
|
|
33
|
-
}),
|
|
34
|
-
emits: /* @__PURE__ */ w(["update:settings"], ["update:modelValue"]),
|
|
35
|
-
setup(n, { expose: r, emit: i }) {
|
|
36
|
-
let a = M(n, "modelValue"), o = i, c = k({
|
|
37
|
-
hideProps: {},
|
|
38
|
-
fixedProps: {},
|
|
39
|
-
filterableProps: {},
|
|
40
|
-
sortableProps: {}
|
|
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);
|
|
43
|
-
};
|
|
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),
|
|
49
|
-
class: "table-column-filter",
|
|
50
|
-
title: "表格设置",
|
|
51
|
-
"append-to-body": ""
|
|
52
|
-
}, {
|
|
53
|
-
default: P(() => [x(d, {
|
|
54
|
-
data: n.columns,
|
|
55
|
-
border: ""
|
|
56
|
-
}, {
|
|
57
|
-
default: P(() => [
|
|
58
|
-
x(o, { label: "列名" }, {
|
|
59
|
-
default: P(({ row: e }) => [b(j(e.label), 1)]),
|
|
60
|
-
_: 1
|
|
61
|
-
}),
|
|
62
|
-
x(o, {
|
|
63
|
-
label: "隐藏",
|
|
64
|
-
align: "center"
|
|
65
|
-
}, {
|
|
66
|
-
default: P(({ row: e }) => [x(c, { onChange: (t) => u(t, e, "hide") }, null, 8, ["onChange"])]),
|
|
67
|
-
_: 1
|
|
68
|
-
}),
|
|
69
|
-
x(o, {
|
|
70
|
-
label: "冻结",
|
|
71
|
-
align: "center"
|
|
72
|
-
}, {
|
|
73
|
-
default: P(({ row: e }) => [x(c, { onChange: (t) => u(t, e, "fixed") }, null, 8, ["onChange"])]),
|
|
74
|
-
_: 1
|
|
75
|
-
}),
|
|
76
|
-
x(o, {
|
|
77
|
-
label: "过滤",
|
|
78
|
-
align: "center"
|
|
79
|
-
}, {
|
|
80
|
-
default: P(({ row: e }) => [x(c, { onChange: (t) => u(t, e, "filterable") }, null, 8, ["onChange"])]),
|
|
81
|
-
_: 1
|
|
82
|
-
}),
|
|
83
|
-
x(o, {
|
|
84
|
-
label: "排序",
|
|
85
|
-
align: "center"
|
|
86
|
-
}, {
|
|
87
|
-
default: P(({ row: e }) => [x(c, {
|
|
88
|
-
title: e.allowSort ? null : "该列不支持排序!",
|
|
89
|
-
disabled: !e.allowSort,
|
|
90
|
-
onChange: (t) => u(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 I(e) {
|
|
109
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !C(e);
|
|
110
|
-
}
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region src/components/table/components/TableColumnFilterable.vue
|
|
113
|
-
var ce = {
|
|
114
|
-
name: "TableColumnFilterable",
|
|
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) => ({
|
|
121
|
-
text: e,
|
|
122
|
-
value: e
|
|
123
|
-
}));
|
|
124
|
-
});
|
|
125
|
-
return () => x(g, T(i.value, {
|
|
126
|
-
filterMethod: a.value,
|
|
127
|
-
filters: o.value
|
|
128
|
-
}), I(t) ? t : { default: () => [t] });
|
|
129
|
-
}
|
|
130
|
-
}, L = {
|
|
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
|
-
}, R = {
|
|
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
|
-
}, le = (e) => R[e] !== !0;
|
|
334
|
-
//#endregion
|
|
335
|
-
//#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
|
|
336
|
-
function ue(e) {
|
|
337
|
-
let t = "";
|
|
338
|
-
for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
|
|
339
|
-
return t;
|
|
340
|
-
}
|
|
341
|
-
var z = {
|
|
342
|
-
loading: 1,
|
|
343
|
-
error: -1,
|
|
344
|
-
empty: 2,
|
|
345
|
-
success: 0
|
|
346
|
-
}, B = {
|
|
347
|
-
name: "PageableTable",
|
|
348
|
-
emits: { "page-loaded": null },
|
|
349
|
-
inheritAttrs: !1,
|
|
350
|
-
props: { ...L },
|
|
351
|
-
setup(r, { emit: s, attrs: l, slots: h, expose: g }) {
|
|
352
|
-
O(ee, r.rowDbClick);
|
|
353
|
-
let y = ie("table"), S = A({
|
|
354
|
-
hideProps: {},
|
|
355
|
-
fixedProps: {},
|
|
356
|
-
filterableProps: {},
|
|
357
|
-
sortableProps: {}
|
|
358
|
-
}), C = A(z.empty), w = A([]), D = A(null), k = A(!1), j = A([]), M = A({
|
|
359
|
-
total: 0,
|
|
360
|
-
page: 1,
|
|
361
|
-
limit: r.pageSize,
|
|
362
|
-
ascs: r.ascs,
|
|
363
|
-
descs: r.descs
|
|
364
|
-
}), P = A(0), I = A(0), L = v(() => r.reloadOnModelChange ? {
|
|
365
|
-
asc: M.value.ascs,
|
|
366
|
-
desc: M.value.descs,
|
|
367
|
-
page: M.value.page,
|
|
368
|
-
limit: M.value.limit,
|
|
369
|
-
model: r.model
|
|
370
|
-
} : {
|
|
371
|
-
asc: M.value.ascs,
|
|
372
|
-
desc: M.value.descs,
|
|
373
|
-
page: M.value.page,
|
|
374
|
-
limit: M.value.limit
|
|
375
|
-
}), R = v(() => {
|
|
376
|
-
var e;
|
|
377
|
-
let t = `${(M.value.page - 1) * M.value.limit + (((e = w.value) == null ? void 0 : e.length) ?? 0)}`;
|
|
378
|
-
return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
|
|
379
|
-
}), B = () => {
|
|
380
|
-
H();
|
|
381
|
-
}, V = (e, t, n) => {
|
|
382
|
-
if (r.clickRowSelect && Z(e)) {
|
|
383
|
-
var i;
|
|
384
|
-
if (j.value.find((t) => t[r.rowKey] === e[r.rowKey])) {
|
|
385
|
-
var a;
|
|
386
|
-
(a = y.value) == null || a.toggleRowSelection(e, !1);
|
|
387
|
-
return;
|
|
388
|
-
}
|
|
389
|
-
(i = y.value) == null || i.toggleRowSelection(e);
|
|
390
|
-
}
|
|
391
|
-
}, H = () => {
|
|
392
|
-
var e, t;
|
|
393
|
-
let n = (e = y.value) == null || (e = e.$children) == null ? void 0 : e.find((e) => {
|
|
394
|
-
var t;
|
|
395
|
-
return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
|
|
396
|
-
});
|
|
397
|
-
n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
|
|
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 : "");
|
|
404
|
-
}, he = (e) => {
|
|
405
|
-
Z(e) && (D.value = e);
|
|
406
|
-
}, ge = (e) => {
|
|
407
|
-
j.value = e;
|
|
408
|
-
}, U = () => {
|
|
409
|
-
var e;
|
|
410
|
-
(e = y.value) == null || e.clearSelection();
|
|
411
|
-
}, W = () => {
|
|
412
|
-
let e;
|
|
413
|
-
return e = r.payloadStyle === "body" ? {
|
|
414
|
-
page: {
|
|
415
|
-
...M.value,
|
|
416
|
-
current: M.value.page,
|
|
417
|
-
size: M.value.limit
|
|
418
|
-
},
|
|
419
|
-
example: r.model || {}
|
|
420
|
-
} : {
|
|
421
|
-
...M.value,
|
|
422
|
-
current: M.value.page,
|
|
423
|
-
size: M.value.limit,
|
|
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;
|
|
430
|
-
return;
|
|
431
|
-
}
|
|
432
|
-
e !== !1 && (w.value = []);
|
|
433
|
-
let i, a = W();
|
|
434
|
-
if (r.api) {
|
|
435
|
-
e !== !1 && (C.value = z.loading);
|
|
436
|
-
try {
|
|
437
|
-
r.api && (i = await r.api(a));
|
|
438
|
-
} catch {
|
|
439
|
-
C.value = z.error;
|
|
440
|
-
return;
|
|
441
|
-
}
|
|
442
|
-
} else if (r.data) i = { data: { data: {
|
|
443
|
-
total: r.data.length,
|
|
444
|
-
records: r.data
|
|
445
|
-
} } };
|
|
446
|
-
else {
|
|
447
|
-
n.warning({
|
|
448
|
-
title: "开发提示!",
|
|
449
|
-
message: "PageableTable api(Function) 属性"
|
|
450
|
-
});
|
|
451
|
-
return;
|
|
452
|
-
}
|
|
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(() => {
|
|
457
|
-
var e;
|
|
458
|
-
(e = y.value) == null || e.doLayout();
|
|
459
|
-
});
|
|
460
|
-
}, q = async (e) => {
|
|
461
|
-
await G(e);
|
|
462
|
-
}, J = () => {
|
|
463
|
-
M.value = {
|
|
464
|
-
total: 0,
|
|
465
|
-
page: 1,
|
|
466
|
-
limit: r.pageSize,
|
|
467
|
-
ascs: r.ascs,
|
|
468
|
-
descs: r.descs
|
|
469
|
-
};
|
|
470
|
-
}, _e = (e, t) => {
|
|
471
|
-
y.value.setScrollTop(e), y.value.setScrollLeft(t);
|
|
472
|
-
}, Y = (e, t) => {
|
|
473
|
-
var n;
|
|
474
|
-
(n = y.value) == null || n.toggleRowSelection(e, t);
|
|
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 = () => {
|
|
484
|
-
k.value = !k.value;
|
|
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]));
|
|
488
|
-
};
|
|
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, {
|
|
494
|
-
deep: !0,
|
|
495
|
-
immediate: r.immediate
|
|
496
|
-
});
|
|
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];
|
|
503
|
-
}, $ = v(() => {
|
|
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];
|
|
510
|
-
if (!r) continue;
|
|
511
|
-
let { sortable: a, prop: o, fixed: s, ...c } = r, l = {
|
|
512
|
-
...c,
|
|
513
|
-
prop: o,
|
|
514
|
-
allowSort: a !== !1
|
|
515
|
-
};
|
|
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);
|
|
517
|
-
}
|
|
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 = {
|
|
520
|
-
...o,
|
|
521
|
-
prop: n,
|
|
522
|
-
allowSort: i !== !1
|
|
523
|
-
};
|
|
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);
|
|
525
|
-
}
|
|
526
|
-
return e;
|
|
527
|
-
});
|
|
528
|
-
re(() => {
|
|
529
|
-
fe();
|
|
530
|
-
}), g({
|
|
531
|
-
records: w,
|
|
532
|
-
getPage: G,
|
|
533
|
-
refresh: q,
|
|
534
|
-
reload: J,
|
|
535
|
-
doLayout: K,
|
|
536
|
-
clearSelection: U,
|
|
537
|
-
toggleRowSelection: Y,
|
|
538
|
-
toggleSettings: X,
|
|
539
|
-
currentRow: D,
|
|
540
|
-
getPageQuery: W,
|
|
541
|
-
tableColumns: $
|
|
542
|
-
}), O(p, {
|
|
543
|
-
records: w,
|
|
544
|
-
getPage: G,
|
|
545
|
-
refresh: q,
|
|
546
|
-
reload: J,
|
|
547
|
-
doLayout: K,
|
|
548
|
-
clearSelection: U,
|
|
549
|
-
toggleRowSelection: Y,
|
|
550
|
-
toggleSettings: X
|
|
551
|
-
});
|
|
552
|
-
let { autoBindProps: ye, listeners: be } = i(r, { predicate: le });
|
|
553
|
-
return () => x("div", {
|
|
554
|
-
class: [
|
|
555
|
-
"pageable-table",
|
|
556
|
-
{ "auto-height": r.autoHeight },
|
|
557
|
-
l.class
|
|
558
|
-
],
|
|
559
|
-
style: l.style
|
|
560
|
-
}, [x("div", { class: "pageable-table-wrapper" }, [
|
|
561
|
-
h.toolbar && h.toolbar({ selectedRows: j.value }),
|
|
562
|
-
x(t, T(be.value, ye.value, {
|
|
563
|
-
ref: "table",
|
|
564
|
-
data: w.value,
|
|
565
|
-
class: ["flex-item", { "header-bold": r.headerBold }],
|
|
566
|
-
border: r.border,
|
|
567
|
-
stripe: !0,
|
|
568
|
-
rowKey: Q,
|
|
569
|
-
size: "default",
|
|
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
|
|
578
|
-
}), {
|
|
579
|
-
default: () => {
|
|
580
|
-
let t = [];
|
|
581
|
-
if (r.multiple && r.selection && t.push(x(e, {
|
|
582
|
-
key: "selection",
|
|
583
|
-
type: "selection",
|
|
584
|
-
selectable: Z,
|
|
585
|
-
width: r.selectionWidth,
|
|
586
|
-
align: "center"
|
|
587
|
-
}, null)), !r.multiple && r.selection && t.push(x(e, {
|
|
588
|
-
key: "single-selection",
|
|
589
|
-
type: "single-selection",
|
|
590
|
-
"class-name": "single-select-column",
|
|
591
|
-
width: r.selectionWidth,
|
|
592
|
-
align: "center"
|
|
593
|
-
}, {
|
|
594
|
-
header: () => x(c, {
|
|
595
|
-
modelValue: !!D.value,
|
|
596
|
-
label: !0
|
|
597
|
-
}, { default: () => [x("span", null, null)] }),
|
|
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, {
|
|
604
|
-
key: "index",
|
|
605
|
-
type: "index",
|
|
606
|
-
label: "序号",
|
|
607
|
-
width: R.value,
|
|
608
|
-
align: "center"
|
|
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++) {
|
|
610
|
-
let n = $.value[e];
|
|
611
|
-
if (n.hide) continue;
|
|
612
|
-
let { prop: r, headerSlot: i, defaultSlot: a, expandSlot: o, iconSlot: s, ...c } = n;
|
|
613
|
-
t.push(x(ce, T(c, { prop: r }), {
|
|
614
|
-
default: h[r] ? ({ row: e }) => h[r]({ row: e }) : a,
|
|
615
|
-
header: i,
|
|
616
|
-
expand: o,
|
|
617
|
-
"filter-icon": s
|
|
618
|
-
}));
|
|
619
|
-
}
|
|
620
|
-
else t.push(x(e, {
|
|
621
|
-
key: "default",
|
|
622
|
-
label: "点击表格行复制模板"
|
|
623
|
-
}, { default: ({ row: e }) => x("pre", {
|
|
624
|
-
class: "pointer",
|
|
625
|
-
onClick: () => pe(e)
|
|
626
|
-
}, [JSON.stringify(e, null, " ")]) }));
|
|
627
|
-
return t;
|
|
628
|
-
},
|
|
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, {
|
|
632
|
-
class: "pageable-table-error",
|
|
633
|
-
onClick: q
|
|
634
|
-
}, { default: () => [x("i", { class: "table-status-icon el-icon-error" }, null), b("加载失败,点击重试!")] }),
|
|
635
|
-
C.value !== z.loading && C.value !== z.error && x(u, null, null)
|
|
636
|
-
]),
|
|
637
|
-
append: h.append
|
|
638
|
-
}),
|
|
639
|
-
r.paging && x(d, {
|
|
640
|
-
"current-page": M.value.page,
|
|
641
|
-
"onUpdate:current-page": (e) => M.value.page = e,
|
|
642
|
-
"hide-on-single-page": r.hideOnSinglePage,
|
|
643
|
-
"page-size": M.value.limit,
|
|
644
|
-
"onUpdate:page-size": (e) => M.value.limit = e,
|
|
645
|
-
total: M.value.total,
|
|
646
|
-
"page-sizes": [
|
|
647
|
-
10,
|
|
648
|
-
25,
|
|
649
|
-
50,
|
|
650
|
-
100,
|
|
651
|
-
500,
|
|
652
|
-
1e3,
|
|
653
|
-
2e3
|
|
654
|
-
],
|
|
655
|
-
class: "flex-not-shrink",
|
|
656
|
-
background: !0,
|
|
657
|
-
layout: "total, sizes, prev, pager, next, jumper"
|
|
658
|
-
}, null),
|
|
659
|
-
x(se, {
|
|
660
|
-
settings: S.value,
|
|
661
|
-
"onUpdate:settings": (e) => S.value = e,
|
|
662
|
-
modelValue: k.value,
|
|
663
|
-
"onUpdate:modelValue": (e) => k.value = e,
|
|
664
|
-
columns: $.value
|
|
665
|
-
}, null)
|
|
666
|
-
]), x(f, { onNotify: K }, null)]);
|
|
667
|
-
}
|
|
668
|
-
};
|
|
669
|
-
//#endregion
|
|
670
|
-
export { B as t };
|