@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
|
@@ -1,797 +1,60 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import "
|
|
33
|
-
import "
|
|
34
|
-
import "
|
|
35
|
-
import
|
|
36
|
-
import "
|
|
37
|
-
import "
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import "
|
|
41
|
-
import "
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import {
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import "
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
import vt from "../fy-switch/index.mjs";
|
|
59
|
-
import yt from "../fy-time/index.mjs";
|
|
60
|
-
import bt from "../fy-title/index.mjs";
|
|
61
|
-
import xt from "../fy-input-tree/index.mjs";
|
|
62
|
-
import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createSlots as j, createTextVNode as M, createVNode as N, defineAsyncComponent as St, defineComponent as P, getCurrentInstance as Ct, guardReactiveProps as F, inject as I, mergeProps as L, nextTick as wt, normalizeClass as R, normalizeProps as z, normalizeStyle as B, onBeforeUnmount as Tt, onMounted as Et, openBlock as V, provide as H, readonly as Dt, ref as U, renderList as W, renderSlot as G, resolveComponent as K, resolveDirective as Ot, resolveDynamicComponent as kt, toDisplayString as q, toHandlers as At, toRef as jt, unref as J, vShow as Mt, watch as Nt, withCtx as Y, withDirectives as X, withKeys as Pt, withModifiers as Z } from "vue";
|
|
63
|
-
import { isBlank as Q } from "@web-utils/core";
|
|
64
|
-
import { formatDate as Ft } from "@web-utils/integrations/dayjs";
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/card/index.mjs
|
|
67
|
-
var It = c(/* @__PURE__ */ P({
|
|
68
|
-
name: "ElCard",
|
|
69
|
-
__name: "card",
|
|
70
|
-
props: o({
|
|
71
|
-
header: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: ""
|
|
74
|
-
},
|
|
75
|
-
footer: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: ""
|
|
78
|
-
},
|
|
79
|
-
bodyStyle: {
|
|
80
|
-
type: l([
|
|
81
|
-
String,
|
|
82
|
-
Object,
|
|
83
|
-
Array
|
|
84
|
-
]),
|
|
85
|
-
default: ""
|
|
86
|
-
},
|
|
87
|
-
headerClass: String,
|
|
88
|
-
bodyClass: String,
|
|
89
|
-
footerClass: String,
|
|
90
|
-
shadow: {
|
|
91
|
-
type: String,
|
|
92
|
-
values: [
|
|
93
|
-
"always",
|
|
94
|
-
"hover",
|
|
95
|
-
"never"
|
|
96
|
-
],
|
|
97
|
-
default: void 0
|
|
98
|
-
}
|
|
99
|
-
}),
|
|
100
|
-
setup(e) {
|
|
101
|
-
let t = le("card"), n = s("card");
|
|
102
|
-
return (r, i) => {
|
|
103
|
-
var a;
|
|
104
|
-
return V(), k("div", { class: R([J(n).b(), J(n).is(`${e.shadow || ((a = J(t)) == null ? void 0 : a.shadow) || "always"}-shadow`)]) }, [
|
|
105
|
-
r.$slots.header || e.header ? (V(), k("div", {
|
|
106
|
-
key: 0,
|
|
107
|
-
class: R([J(n).e("header"), e.headerClass])
|
|
108
|
-
}, [G(r.$slots, "header", {}, () => [M(q(e.header), 1)])], 2)) : O("v-if", !0),
|
|
109
|
-
A("div", {
|
|
110
|
-
class: R([J(n).e("body"), e.bodyClass]),
|
|
111
|
-
style: B(e.bodyStyle)
|
|
112
|
-
}, [G(r.$slots, "default")], 6),
|
|
113
|
-
r.$slots.footer || e.footer ? (V(), k("div", {
|
|
114
|
-
key: 1,
|
|
115
|
-
class: R([J(n).e("footer"), e.footerClass])
|
|
116
|
-
}, [G(r.$slots, "footer", {}, () => [M(q(e.footer), 1)])], 2)) : O("v-if", !0)
|
|
117
|
-
], 2);
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
})), Lt = Symbol("elDropdown"), Rt = "elDropdown", zt = P({ inheritAttrs: !1 });
|
|
121
|
-
//#endregion
|
|
122
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/collection/src/collection2.mjs
|
|
123
|
-
function Bt(e, t, n, r, i, a) {
|
|
124
|
-
return G(e.$slots, "default");
|
|
125
|
-
}
|
|
126
|
-
var Vt = /* @__PURE__ */ v(zt, [["render", Bt]]), Ht = P({
|
|
127
|
-
name: "ElCollectionItem",
|
|
128
|
-
inheritAttrs: !1
|
|
129
|
-
});
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/collection/src/collection-item.mjs
|
|
132
|
-
function Ut(e, t, n, r, i, a) {
|
|
133
|
-
return G(e.$slots, "default");
|
|
134
|
-
}
|
|
135
|
-
var Wt = /* @__PURE__ */ v(Ht, [["render", Ut]]), Gt = "data-el-collection-item", Kt = (e) => {
|
|
136
|
-
let t = `El${e}Collection`, n = `${t}Item`, r = Symbol(t), i = Symbol(n);
|
|
137
|
-
return {
|
|
138
|
-
COLLECTION_INJECTION_KEY: r,
|
|
139
|
-
COLLECTION_ITEM_INJECTION_KEY: i,
|
|
140
|
-
ElCollection: Object.assign({}, Vt, {
|
|
141
|
-
name: t,
|
|
142
|
-
setup() {
|
|
143
|
-
let e = U(), t = /* @__PURE__ */ new Map();
|
|
144
|
-
H(r, {
|
|
145
|
-
itemMap: t,
|
|
146
|
-
getItems: (() => {
|
|
147
|
-
let n = J(e);
|
|
148
|
-
if (!n) return [];
|
|
149
|
-
let r = Array.from(n.querySelectorAll(`[${Gt}]`));
|
|
150
|
-
return [...t.values()].sort((e, t) => r.indexOf(e.ref) - r.indexOf(t.ref));
|
|
151
|
-
}),
|
|
152
|
-
collectionRef: e
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}),
|
|
156
|
-
ElCollectionItem: Object.assign({}, Wt, {
|
|
157
|
-
name: n,
|
|
158
|
-
setup(e, { attrs: t }) {
|
|
159
|
-
let n = U(), a = I(r, void 0);
|
|
160
|
-
H(i, { collectionItemRef: n }), Et(() => {
|
|
161
|
-
let e = J(n);
|
|
162
|
-
e && a.itemMap.set(e, {
|
|
163
|
-
ref: e,
|
|
164
|
-
...t
|
|
165
|
-
});
|
|
166
|
-
}), Tt(() => {
|
|
167
|
-
let e = J(n);
|
|
168
|
-
a.itemMap.delete(e);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
})
|
|
172
|
-
};
|
|
173
|
-
}, qt = o({
|
|
174
|
-
style: { type: l([
|
|
175
|
-
String,
|
|
176
|
-
Array,
|
|
177
|
-
Object
|
|
178
|
-
]) },
|
|
179
|
-
currentTabId: { type: l(String) },
|
|
180
|
-
defaultCurrentTabId: String,
|
|
181
|
-
loop: Boolean,
|
|
182
|
-
dir: {
|
|
183
|
-
type: String,
|
|
184
|
-
values: ["ltr", "rtl"],
|
|
185
|
-
default: "ltr"
|
|
186
|
-
},
|
|
187
|
-
orientation: { type: l(String) },
|
|
188
|
-
onBlur: Function,
|
|
189
|
-
onFocus: Function,
|
|
190
|
-
onMousedown: Function
|
|
191
|
-
}), { ElCollection: Jt, ElCollectionItem: Yt, COLLECTION_INJECTION_KEY: Xt, COLLECTION_ITEM_INJECTION_KEY: Zt } = Kt("RovingFocusGroup"), Qt = Symbol("elRovingFocusGroup"), $t = Symbol("elRovingFocusGroupItem"), en = {
|
|
192
|
-
ArrowLeft: "prev",
|
|
193
|
-
ArrowUp: "prev",
|
|
194
|
-
ArrowRight: "next",
|
|
195
|
-
ArrowDown: "next",
|
|
196
|
-
PageUp: "first",
|
|
197
|
-
Home: "first",
|
|
198
|
-
PageDown: "last",
|
|
199
|
-
End: "last"
|
|
200
|
-
}, tn = (t, n) => {
|
|
201
|
-
if (n !== "rtl") return t;
|
|
202
|
-
switch (t) {
|
|
203
|
-
case e.right: return e.left;
|
|
204
|
-
case e.left: return e.right;
|
|
205
|
-
default: return t;
|
|
206
|
-
}
|
|
207
|
-
}, nn = (t, r, i) => {
|
|
208
|
-
let a = tn(n(t), i);
|
|
209
|
-
if (!(r === "vertical" && [e.left, e.right].includes(a)) && !(r === "horizontal" && [e.up, e.down].includes(a))) return en[a];
|
|
210
|
-
}, rn = (e, t) => e.map((n, r) => e[(r + t) % e.length]), an = (e) => {
|
|
211
|
-
let { activeElement: t } = document;
|
|
212
|
-
for (let n of e) if (n === t || (n.focus(), t !== document.activeElement)) return;
|
|
213
|
-
}, on = "currentTabIdChange", sn = "rovingFocusGroup.entryFocus", cn = {
|
|
214
|
-
bubbles: !1,
|
|
215
|
-
cancelable: !0
|
|
216
|
-
}, ln = P({
|
|
217
|
-
name: "ElRovingFocusGroupImpl",
|
|
218
|
-
inheritAttrs: !1,
|
|
219
|
-
props: qt,
|
|
220
|
-
emits: [on, "entryFocus"],
|
|
221
|
-
setup(e, { emit: t }) {
|
|
222
|
-
let n = U((e.currentTabId || e.defaultCurrentTabId) ?? null), a = U(!1), o = U(!1), s = U(), { getItems: c } = I(Xt, void 0), l = E(() => [{ outline: "none" }, e.style]), u = (e) => {
|
|
223
|
-
t(on, e);
|
|
224
|
-
}, d = () => {
|
|
225
|
-
a.value = !0;
|
|
226
|
-
}, f = r((t) => {
|
|
227
|
-
var n;
|
|
228
|
-
(n = e.onMousedown) == null || n.call(e, t);
|
|
229
|
-
}, () => {
|
|
230
|
-
o.value = !0;
|
|
231
|
-
}), p = r((t) => {
|
|
232
|
-
var n;
|
|
233
|
-
(n = e.onFocus) == null || n.call(e, t);
|
|
234
|
-
}, (e) => {
|
|
235
|
-
let t = !J(o), { target: r, currentTarget: i } = e;
|
|
236
|
-
if (r === i && t && !J(a)) {
|
|
237
|
-
let e = new Event(sn, cn);
|
|
238
|
-
if (i == null || i.dispatchEvent(e), !e.defaultPrevented) {
|
|
239
|
-
let e = c().filter((e) => e.focusable);
|
|
240
|
-
an([
|
|
241
|
-
e.find((e) => e.active),
|
|
242
|
-
e.find((e) => e.id === J(n)),
|
|
243
|
-
...e
|
|
244
|
-
].filter(Boolean).map((e) => e.ref));
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
o.value = !1;
|
|
248
|
-
}), m = r((t) => {
|
|
249
|
-
var n;
|
|
250
|
-
(n = e.onBlur) == null || n.call(e, t);
|
|
251
|
-
}, () => {
|
|
252
|
-
a.value = !1;
|
|
253
|
-
});
|
|
254
|
-
H(Qt, {
|
|
255
|
-
currentTabbedId: Dt(n),
|
|
256
|
-
loop: jt(e, "loop"),
|
|
257
|
-
tabIndex: E(() => J(a) ? -1 : 0),
|
|
258
|
-
rovingFocusGroupRef: s,
|
|
259
|
-
rovingFocusGroupRootStyle: l,
|
|
260
|
-
orientation: jt(e, "orientation"),
|
|
261
|
-
dir: jt(e, "dir"),
|
|
262
|
-
onItemFocus: u,
|
|
263
|
-
onItemShiftTab: d,
|
|
264
|
-
onBlur: m,
|
|
265
|
-
onFocus: p,
|
|
266
|
-
onMousedown: f,
|
|
267
|
-
onKeydown: (t) => {
|
|
268
|
-
let n = nn(t);
|
|
269
|
-
if (n) {
|
|
270
|
-
t.preventDefault();
|
|
271
|
-
let r = c().filter((e) => e.focusable).map((e) => e.ref);
|
|
272
|
-
switch (n) {
|
|
273
|
-
case "last":
|
|
274
|
-
r.reverse();
|
|
275
|
-
break;
|
|
276
|
-
case "prev":
|
|
277
|
-
case "next": {
|
|
278
|
-
n === "prev" && r.reverse();
|
|
279
|
-
let i = r.indexOf(t.currentTarget);
|
|
280
|
-
r = e.loop ? rn(r, i + 1) : r.slice(i + 1);
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
default: break;
|
|
284
|
-
}
|
|
285
|
-
wt(() => {
|
|
286
|
-
an(r);
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}), Nt(() => e.currentTabId, (e) => {
|
|
291
|
-
n.value = e ?? null;
|
|
292
|
-
}), i(s, sn, (...e) => {
|
|
293
|
-
t("entryFocus", ...e);
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group-impl.mjs
|
|
299
|
-
function un(e, t, n, r, i, a) {
|
|
300
|
-
return G(e.$slots, "default");
|
|
301
|
-
}
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group.vue_vue_type_script_lang.mjs
|
|
304
|
-
var dn = P({
|
|
305
|
-
name: "ElRovingFocusGroup",
|
|
306
|
-
components: {
|
|
307
|
-
ElFocusGroupCollection: Jt,
|
|
308
|
-
ElRovingFocusGroupImpl: /* @__PURE__ */ v(ln, [["render", un]])
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
//#endregion
|
|
312
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-group2.mjs
|
|
313
|
-
function fn(e, t, n, r, i, a) {
|
|
314
|
-
let o = K("el-roving-focus-group-impl"), s = K("el-focus-group-collection");
|
|
315
|
-
return V(), D(s, null, {
|
|
316
|
-
default: Y(() => [N(o, z(F(e.$attrs)), {
|
|
317
|
-
default: Y(() => [G(e.$slots, "default")]),
|
|
318
|
-
_: 3
|
|
319
|
-
}, 16)]),
|
|
320
|
-
_: 3
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
var pn = /* @__PURE__ */ v(dn, [["render", fn]]), mn = P({
|
|
324
|
-
components: { ElRovingFocusCollectionItem: Yt },
|
|
325
|
-
props: {
|
|
326
|
-
focusable: {
|
|
327
|
-
type: Boolean,
|
|
328
|
-
default: !0
|
|
329
|
-
},
|
|
330
|
-
active: Boolean
|
|
331
|
-
},
|
|
332
|
-
emits: [
|
|
333
|
-
"mousedown",
|
|
334
|
-
"focus",
|
|
335
|
-
"keydown"
|
|
336
|
-
],
|
|
337
|
-
setup(t, { emit: i }) {
|
|
338
|
-
let { currentTabbedId: a, onItemFocus: o, onItemShiftTab: s, onKeydown: c } = I(Qt, void 0), l = ne(), u = U(), d = r((e) => {
|
|
339
|
-
i("mousedown", e);
|
|
340
|
-
}, (e) => {
|
|
341
|
-
t.focusable ? o(J(l)) : e.preventDefault();
|
|
342
|
-
}), f = r((e) => {
|
|
343
|
-
i("focus", e);
|
|
344
|
-
}, () => {
|
|
345
|
-
o(J(l));
|
|
346
|
-
}), p = r((e) => {
|
|
347
|
-
i("keydown", e);
|
|
348
|
-
}, (t) => {
|
|
349
|
-
let { shiftKey: r, target: i, currentTarget: a } = t;
|
|
350
|
-
if (n(t) === e.tab && r) {
|
|
351
|
-
s();
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
i === a && c(t);
|
|
355
|
-
}), m = E(() => a.value === J(l));
|
|
356
|
-
return H($t, {
|
|
357
|
-
rovingFocusGroupItemRef: u,
|
|
358
|
-
tabIndex: E(() => J(m) ? 0 : -1),
|
|
359
|
-
handleMousedown: d,
|
|
360
|
-
handleFocus: f,
|
|
361
|
-
handleKeydown: p
|
|
362
|
-
}), {
|
|
363
|
-
id: l,
|
|
364
|
-
handleKeydown: p,
|
|
365
|
-
handleFocus: f,
|
|
366
|
-
handleMousedown: d
|
|
367
|
-
};
|
|
368
|
-
}
|
|
369
|
-
});
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/roving-focus-group/src/roving-focus-item.mjs
|
|
372
|
-
function hn(e, t, n, r, i, a) {
|
|
373
|
-
let o = K("el-roving-focus-collection-item");
|
|
374
|
-
return V(), D(o, {
|
|
375
|
-
id: e.id,
|
|
376
|
-
focusable: e.focusable,
|
|
377
|
-
active: e.active
|
|
378
|
-
}, {
|
|
379
|
-
default: Y(() => [G(e.$slots, "default")]),
|
|
380
|
-
_: 3
|
|
381
|
-
}, 8, [
|
|
382
|
-
"id",
|
|
383
|
-
"focusable",
|
|
384
|
-
"active"
|
|
385
|
-
]);
|
|
386
|
-
}
|
|
387
|
-
var gn = /* @__PURE__ */ v(mn, [["render", hn]]), _n = pn, { ButtonGroup: vn } = ce, yn = P({
|
|
388
|
-
name: "ElDropdown",
|
|
389
|
-
components: {
|
|
390
|
-
ElButton: ce,
|
|
391
|
-
ElButtonGroup: vn,
|
|
392
|
-
ElScrollbar: ae,
|
|
393
|
-
ElTooltip: g,
|
|
394
|
-
ElRovingFocusGroup: _n,
|
|
395
|
-
ElOnlyChild: h,
|
|
396
|
-
ElIcon: m,
|
|
397
|
-
ArrowDown: p
|
|
398
|
-
},
|
|
399
|
-
props: xe,
|
|
400
|
-
emits: [
|
|
401
|
-
"visible-change",
|
|
402
|
-
"click",
|
|
403
|
-
"command"
|
|
404
|
-
],
|
|
405
|
-
setup(e, { emit: t }) {
|
|
406
|
-
let n = Ct(), r = s("dropdown"), { t: i } = ee(), a = U(), o = U(), c = U(), l = U(), u = U(null), d = U(null), p = U(!1), m = E(() => ({ maxHeight: f(e.maxHeight) })), h = E(() => [r.m(se.value)]), g = E(() => ie(e.trigger)), _ = ne().value, re = E(() => e.id || _);
|
|
407
|
-
function v() {
|
|
408
|
-
var e;
|
|
409
|
-
(e = c.value) == null || e.onClose(void 0, 0);
|
|
410
|
-
}
|
|
411
|
-
function ae() {
|
|
412
|
-
var e;
|
|
413
|
-
(e = c.value) == null || e.onClose();
|
|
414
|
-
}
|
|
415
|
-
function oe() {
|
|
416
|
-
var e;
|
|
417
|
-
(e = c.value) == null || e.onOpen();
|
|
418
|
-
}
|
|
419
|
-
let se = te();
|
|
420
|
-
function ce(...e) {
|
|
421
|
-
t("command", ...e);
|
|
422
|
-
}
|
|
423
|
-
function le() {}
|
|
424
|
-
function ue() {
|
|
425
|
-
let e = J(l);
|
|
426
|
-
g.value.includes("hover") && (e == null || e.focus({ preventScroll: !0 })), d.value = null;
|
|
427
|
-
}
|
|
428
|
-
function de(e) {
|
|
429
|
-
d.value = e;
|
|
430
|
-
}
|
|
431
|
-
function fe() {
|
|
432
|
-
t("visible-change", !0);
|
|
433
|
-
}
|
|
434
|
-
function pe(e) {
|
|
435
|
-
var t;
|
|
436
|
-
p.value = (e == null ? void 0 : e.type) === "keydown", (t = l.value) == null || t.focus();
|
|
437
|
-
}
|
|
438
|
-
function me() {
|
|
439
|
-
t("visible-change", !1);
|
|
440
|
-
}
|
|
441
|
-
return H(Lt, {
|
|
442
|
-
contentRef: l,
|
|
443
|
-
role: E(() => e.role),
|
|
444
|
-
triggerId: re,
|
|
445
|
-
isUsingKeyboard: p,
|
|
446
|
-
onItemEnter: le,
|
|
447
|
-
onItemLeave: ue,
|
|
448
|
-
handleClose: ae
|
|
449
|
-
}), H(Rt, {
|
|
450
|
-
instance: n,
|
|
451
|
-
dropdownSize: se,
|
|
452
|
-
handleClick: v,
|
|
453
|
-
commandHandler: ce,
|
|
454
|
-
trigger: jt(e, "trigger"),
|
|
455
|
-
hideOnClick: jt(e, "hideOnClick")
|
|
456
|
-
}), {
|
|
457
|
-
t: i,
|
|
458
|
-
ns: r,
|
|
459
|
-
scrollbar: u,
|
|
460
|
-
wrapStyle: m,
|
|
461
|
-
dropdownTriggerKls: h,
|
|
462
|
-
dropdownSize: se,
|
|
463
|
-
triggerId: re,
|
|
464
|
-
currentTabId: d,
|
|
465
|
-
handleCurrentTabIdChange: de,
|
|
466
|
-
handlerMainButtonClick: (e) => {
|
|
467
|
-
t("click", e);
|
|
468
|
-
},
|
|
469
|
-
handleClose: ae,
|
|
470
|
-
handleOpen: oe,
|
|
471
|
-
handleBeforeShowTooltip: fe,
|
|
472
|
-
handleShowTooltip: pe,
|
|
473
|
-
handleBeforeHideTooltip: me,
|
|
474
|
-
popperRef: c,
|
|
475
|
-
contentRef: l,
|
|
476
|
-
triggeringElementRef: a,
|
|
477
|
-
referenceElementRef: o
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
//#endregion
|
|
482
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/dropdown/src/dropdown2.mjs
|
|
483
|
-
function bn(e, t, n, r, i, a) {
|
|
484
|
-
let o = K("el-roving-focus-group"), s = K("el-scrollbar"), c = K("el-only-child"), l = K("el-tooltip"), u = K("el-button"), d = K("arrow-down"), f = K("el-icon"), p = K("el-button-group");
|
|
485
|
-
return V(), k("div", { class: R([e.ns.b(), e.ns.is("disabled", e.disabled)]) }, [N(l, {
|
|
486
|
-
ref: "popperRef",
|
|
487
|
-
role: e.role,
|
|
488
|
-
effect: e.effect,
|
|
489
|
-
"fallback-placements": ["bottom", "top"],
|
|
490
|
-
"popper-options": e.popperOptions,
|
|
491
|
-
"gpu-acceleration": !1,
|
|
492
|
-
placement: e.placement,
|
|
493
|
-
"popper-class": [e.ns.e("popper"), e.popperClass],
|
|
494
|
-
"popper-style": e.popperStyle,
|
|
495
|
-
trigger: e.trigger,
|
|
496
|
-
"trigger-keys": e.triggerKeys,
|
|
497
|
-
"trigger-target-el": e.contentRef,
|
|
498
|
-
"show-arrow": e.showArrow,
|
|
499
|
-
"show-after": e.trigger === "hover" ? e.showTimeout : 0,
|
|
500
|
-
"hide-after": e.trigger === "hover" ? e.hideTimeout : 0,
|
|
501
|
-
"virtual-ref": e.virtualRef ?? e.triggeringElementRef,
|
|
502
|
-
"virtual-triggering": e.virtualTriggering || e.splitButton,
|
|
503
|
-
disabled: e.disabled,
|
|
504
|
-
transition: `${e.ns.namespace.value}-zoom-in-top`,
|
|
505
|
-
teleported: e.teleported,
|
|
506
|
-
"append-to": e.appendTo,
|
|
507
|
-
pure: "",
|
|
508
|
-
"focus-on-target": "",
|
|
509
|
-
persistent: e.persistent,
|
|
510
|
-
onBeforeShow: e.handleBeforeShowTooltip,
|
|
511
|
-
onShow: e.handleShowTooltip,
|
|
512
|
-
onBeforeHide: e.handleBeforeHideTooltip
|
|
513
|
-
}, j({
|
|
514
|
-
content: Y(() => [N(s, {
|
|
515
|
-
ref: "scrollbar",
|
|
516
|
-
"wrap-style": e.wrapStyle,
|
|
517
|
-
tag: "div",
|
|
518
|
-
"view-class": e.ns.e("list")
|
|
519
|
-
}, {
|
|
520
|
-
default: Y(() => [N(o, {
|
|
521
|
-
loop: e.loop,
|
|
522
|
-
"current-tab-id": e.currentTabId,
|
|
523
|
-
orientation: "horizontal",
|
|
524
|
-
onCurrentTabIdChange: e.handleCurrentTabIdChange
|
|
525
|
-
}, {
|
|
526
|
-
default: Y(() => [G(e.$slots, "dropdown")]),
|
|
527
|
-
_: 3
|
|
528
|
-
}, 8, [
|
|
529
|
-
"loop",
|
|
530
|
-
"current-tab-id",
|
|
531
|
-
"onCurrentTabIdChange"
|
|
532
|
-
])]),
|
|
533
|
-
_: 3
|
|
534
|
-
}, 8, ["wrap-style", "view-class"])]),
|
|
535
|
-
_: 2
|
|
536
|
-
}, [e.splitButton ? void 0 : {
|
|
537
|
-
name: "default",
|
|
538
|
-
fn: Y(() => [N(c, {
|
|
539
|
-
id: e.triggerId,
|
|
540
|
-
ref: "triggeringElementRef",
|
|
541
|
-
role: "button",
|
|
542
|
-
tabindex: e.tabindex
|
|
543
|
-
}, {
|
|
544
|
-
default: Y(() => [G(e.$slots, "default")]),
|
|
545
|
-
_: 3
|
|
546
|
-
}, 8, ["id", "tabindex"])]),
|
|
547
|
-
key: "0"
|
|
548
|
-
}]), 1032, [
|
|
549
|
-
"role",
|
|
550
|
-
"effect",
|
|
551
|
-
"popper-options",
|
|
552
|
-
"placement",
|
|
553
|
-
"popper-class",
|
|
554
|
-
"popper-style",
|
|
555
|
-
"trigger",
|
|
556
|
-
"trigger-keys",
|
|
557
|
-
"trigger-target-el",
|
|
558
|
-
"show-arrow",
|
|
559
|
-
"show-after",
|
|
560
|
-
"hide-after",
|
|
561
|
-
"virtual-ref",
|
|
562
|
-
"virtual-triggering",
|
|
563
|
-
"disabled",
|
|
564
|
-
"transition",
|
|
565
|
-
"teleported",
|
|
566
|
-
"append-to",
|
|
567
|
-
"persistent",
|
|
568
|
-
"onBeforeShow",
|
|
569
|
-
"onShow",
|
|
570
|
-
"onBeforeHide"
|
|
571
|
-
]), e.splitButton ? (V(), D(p, { key: 0 }, {
|
|
572
|
-
default: Y(() => [N(u, L({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
573
|
-
size: e.dropdownSize,
|
|
574
|
-
type: e.type,
|
|
575
|
-
disabled: e.disabled,
|
|
576
|
-
tabindex: e.tabindex,
|
|
577
|
-
onClick: e.handlerMainButtonClick
|
|
578
|
-
}), {
|
|
579
|
-
default: Y(() => [G(e.$slots, "default")]),
|
|
580
|
-
_: 3
|
|
581
|
-
}, 16, [
|
|
582
|
-
"size",
|
|
583
|
-
"type",
|
|
584
|
-
"disabled",
|
|
585
|
-
"tabindex",
|
|
586
|
-
"onClick"
|
|
587
|
-
]), N(u, L({
|
|
588
|
-
id: e.triggerId,
|
|
589
|
-
ref: "triggeringElementRef"
|
|
590
|
-
}, e.buttonProps, {
|
|
591
|
-
role: "button",
|
|
592
|
-
size: e.dropdownSize,
|
|
593
|
-
type: e.type,
|
|
594
|
-
class: e.ns.e("caret-button"),
|
|
595
|
-
disabled: e.disabled,
|
|
596
|
-
tabindex: e.tabindex,
|
|
597
|
-
"aria-label": e.t("el.dropdown.toggleDropdown")
|
|
598
|
-
}), {
|
|
599
|
-
default: Y(() => [N(f, { class: R(e.ns.e("icon")) }, {
|
|
600
|
-
default: Y(() => [N(d)]),
|
|
601
|
-
_: 1
|
|
602
|
-
}, 8, ["class"])]),
|
|
603
|
-
_: 1
|
|
604
|
-
}, 16, [
|
|
605
|
-
"id",
|
|
606
|
-
"size",
|
|
607
|
-
"type",
|
|
608
|
-
"class",
|
|
609
|
-
"disabled",
|
|
610
|
-
"tabindex",
|
|
611
|
-
"aria-label"
|
|
612
|
-
])]),
|
|
613
|
-
_: 3
|
|
614
|
-
})) : O("v-if", !0)], 2);
|
|
615
|
-
}
|
|
616
|
-
var xn = /* @__PURE__ */ v(yn, [["render", bn]]), Sn = P({
|
|
617
|
-
name: "DropdownItemImpl",
|
|
618
|
-
components: { ElIcon: m },
|
|
619
|
-
props: Se,
|
|
620
|
-
emits: [
|
|
621
|
-
"pointermove",
|
|
622
|
-
"pointerleave",
|
|
623
|
-
"click",
|
|
624
|
-
"clickimpl"
|
|
625
|
-
],
|
|
626
|
-
setup(t, { emit: i }) {
|
|
627
|
-
let a = s("dropdown"), { role: o } = I(Lt, void 0), { collectionItemRef: c } = I(Zt, void 0), { rovingFocusGroupItemRef: l, tabIndex: u, handleFocus: d, handleKeydown: f, handleMousedown: p } = I($t, void 0), m = _e(c, l), ee = E(() => o.value === "menu" ? "menuitem" : o.value === "navigation" ? "link" : "button"), h = r((t) => {
|
|
628
|
-
let r = n(t);
|
|
629
|
-
if ([
|
|
630
|
-
e.enter,
|
|
631
|
-
e.numpadEnter,
|
|
632
|
-
e.space
|
|
633
|
-
].includes(r)) return t.preventDefault(), t.stopImmediatePropagation(), i("clickimpl", t), !0;
|
|
634
|
-
}, f);
|
|
635
|
-
return {
|
|
636
|
-
ns: a,
|
|
637
|
-
itemRef: m,
|
|
638
|
-
dataset: { [Gt]: "" },
|
|
639
|
-
role: ee,
|
|
640
|
-
tabIndex: u,
|
|
641
|
-
handleFocus: d,
|
|
642
|
-
handleKeydown: h,
|
|
643
|
-
handleMousedown: p
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
}), Cn = [
|
|
647
|
-
"aria-disabled",
|
|
648
|
-
"tabindex",
|
|
649
|
-
"role"
|
|
650
|
-
];
|
|
651
|
-
function wn(e, t, n, r, i, a) {
|
|
652
|
-
let o = K("el-icon");
|
|
653
|
-
return V(), k(T, null, [e.divided ? (V(), k("li", {
|
|
654
|
-
key: 0,
|
|
655
|
-
role: "separator",
|
|
656
|
-
class: R(e.ns.bem("menu", "item", "divided"))
|
|
657
|
-
}, null, 2)) : O("v-if", !0), A("li", L({ ref: e.itemRef }, {
|
|
658
|
-
...e.dataset,
|
|
659
|
-
...e.$attrs
|
|
660
|
-
}, {
|
|
661
|
-
"aria-disabled": e.disabled,
|
|
662
|
-
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
663
|
-
tabindex: e.tabIndex,
|
|
664
|
-
role: e.role,
|
|
665
|
-
onClick: t[0] || (t[0] = (t) => e.$emit("clickimpl", t)),
|
|
666
|
-
onFocus: t[1] || (t[1] = (...t) => e.handleFocus && e.handleFocus(...t)),
|
|
667
|
-
onKeydown: t[2] || (t[2] = Z((...t) => e.handleKeydown && e.handleKeydown(...t), ["self"])),
|
|
668
|
-
onMousedown: t[3] || (t[3] = (...t) => e.handleMousedown && e.handleMousedown(...t)),
|
|
669
|
-
onPointermove: t[4] || (t[4] = (t) => e.$emit("pointermove", t)),
|
|
670
|
-
onPointerleave: t[5] || (t[5] = (t) => e.$emit("pointerleave", t))
|
|
671
|
-
}), [e.icon || e.$slots.icon ? (V(), D(o, { key: 0 }, {
|
|
672
|
-
default: Y(() => [G(e.$slots, "icon", {}, () => [(V(), D(kt(e.icon)))])]),
|
|
673
|
-
_: 3
|
|
674
|
-
})) : O("v-if", !0), G(e.$slots, "default")], 16, Cn)], 64);
|
|
675
|
-
}
|
|
676
|
-
var Tn = /* @__PURE__ */ v(Sn, [["render", wn]]), En = () => {
|
|
677
|
-
let e = I(Rt, {});
|
|
678
|
-
return {
|
|
679
|
-
elDropdown: e,
|
|
680
|
-
_elDropdownSize: E(() => e == null ? void 0 : e.dropdownSize)
|
|
681
|
-
};
|
|
682
|
-
}, Dn = P({
|
|
683
|
-
name: "ElDropdownItem",
|
|
684
|
-
components: {
|
|
685
|
-
ElRovingFocusItem: gn,
|
|
686
|
-
ElDropdownItemImpl: Tn
|
|
687
|
-
},
|
|
688
|
-
inheritAttrs: !1,
|
|
689
|
-
props: Se,
|
|
690
|
-
emits: [
|
|
691
|
-
"pointermove",
|
|
692
|
-
"pointerleave",
|
|
693
|
-
"click"
|
|
694
|
-
],
|
|
695
|
-
setup(e, { emit: n, attrs: i }) {
|
|
696
|
-
let { elDropdown: a } = En(), o = Ct(), { onItemEnter: s, onItemLeave: c } = I(Lt, void 0), l = r((e) => (n("pointermove", e), e.defaultPrevented), t((t) => {
|
|
697
|
-
if (e.disabled) {
|
|
698
|
-
c(t);
|
|
699
|
-
return;
|
|
700
|
-
}
|
|
701
|
-
let n = t.currentTarget;
|
|
702
|
-
n === document.activeElement || n.contains(document.activeElement) || (s(t), t.defaultPrevented || n == null || n.focus({ preventScroll: !0 }));
|
|
703
|
-
})), u = r((e) => (n("pointerleave", e), e.defaultPrevented), t(c));
|
|
704
|
-
return {
|
|
705
|
-
handleClick: r((t) => {
|
|
706
|
-
if (!e.disabled) return n("click", t), t.type !== "keydown" && t.defaultPrevented;
|
|
707
|
-
}, (t) => {
|
|
708
|
-
var n, r, i;
|
|
709
|
-
if (e.disabled) {
|
|
710
|
-
t.stopImmediatePropagation();
|
|
711
|
-
return;
|
|
712
|
-
}
|
|
713
|
-
!(a == null || (n = a.hideOnClick) == null) && n.value && ((r = a.handleClick) == null || r.call(a)), (i = a.commandHandler) == null || i.call(a, e.command, o, t);
|
|
714
|
-
}),
|
|
715
|
-
handlePointerMove: l,
|
|
716
|
-
handlePointerLeave: u,
|
|
717
|
-
propsAndAttrs: E(() => ({
|
|
718
|
-
...e,
|
|
719
|
-
...i
|
|
720
|
-
}))
|
|
721
|
-
};
|
|
722
|
-
}
|
|
723
|
-
});
|
|
724
|
-
//#endregion
|
|
725
|
-
//#region node_modules/.pnpm/element-plus@2.13.7_typescr_8efe08c8f3fc18df5e2015e9e70f0912/node_modules/element-plus/es/components/dropdown/src/dropdown-item.mjs
|
|
726
|
-
function On(e, t, n, r, i, a) {
|
|
727
|
-
let o = K("el-dropdown-item-impl"), s = K("el-roving-focus-item");
|
|
728
|
-
return V(), D(s, { focusable: !e.disabled }, {
|
|
729
|
-
default: Y(() => [N(o, L(e.propsAndAttrs, {
|
|
730
|
-
onPointerleave: e.handlePointerLeave,
|
|
731
|
-
onPointermove: e.handlePointerMove,
|
|
732
|
-
onClickimpl: e.handleClick
|
|
733
|
-
}), j({
|
|
734
|
-
default: Y(() => [G(e.$slots, "default")]),
|
|
735
|
-
_: 2
|
|
736
|
-
}, [e.$slots.icon ? {
|
|
737
|
-
name: "icon",
|
|
738
|
-
fn: Y(() => [G(e.$slots, "icon")]),
|
|
739
|
-
key: "0"
|
|
740
|
-
} : void 0]), 1040, [
|
|
741
|
-
"onPointerleave",
|
|
742
|
-
"onPointermove",
|
|
743
|
-
"onClickimpl"
|
|
744
|
-
])]),
|
|
745
|
-
_: 3
|
|
746
|
-
}, 8, ["focusable"]);
|
|
747
|
-
}
|
|
748
|
-
var kn = /* @__PURE__ */ v(Dn, [["render", On]]), An = P({
|
|
749
|
-
name: "ElDropdownMenu",
|
|
750
|
-
props: be,
|
|
751
|
-
setup(t) {
|
|
752
|
-
let i = s("dropdown"), { _elDropdownSize: a } = En(), o = a.value, { contentRef: c, role: l, triggerId: u, isUsingKeyboard: d, handleClose: f } = I(Lt, void 0), { rovingFocusGroupRef: p, rovingFocusGroupRootStyle: m, onBlur: ee, onFocus: h, onKeydown: g, onMousedown: te } = I(Qt, void 0), { collectionRef: ne } = I(Xt, void 0), _ = E(() => [i.b("menu"), i.bm("menu", o == null ? void 0 : o.value)]), re = _e(c, p, ne), ie = r((e) => {
|
|
753
|
-
var n;
|
|
754
|
-
(n = t.onKeydown) == null || n.call(t, e);
|
|
755
|
-
}, (t) => {
|
|
756
|
-
let { currentTarget: r, target: i } = t, a = n(t);
|
|
757
|
-
if (r.contains(i), e.tab === a) return f();
|
|
758
|
-
g(t);
|
|
759
|
-
});
|
|
760
|
-
function v(e) {
|
|
761
|
-
d.value && h(e);
|
|
762
|
-
}
|
|
763
|
-
return {
|
|
764
|
-
size: o,
|
|
765
|
-
rovingFocusGroupRootStyle: m,
|
|
766
|
-
dropdownKls: _,
|
|
767
|
-
role: l,
|
|
768
|
-
triggerId: u,
|
|
769
|
-
dropdownListWrapperRef: re,
|
|
770
|
-
handleKeydown: ie,
|
|
771
|
-
onBlur: ee,
|
|
772
|
-
handleFocus: v,
|
|
773
|
-
onMousedown: te
|
|
774
|
-
};
|
|
775
|
-
}
|
|
776
|
-
}), jn = ["role", "aria-labelledby"];
|
|
777
|
-
function Mn(e, t, n, r, i, a) {
|
|
778
|
-
return V(), k("ul", {
|
|
779
|
-
ref: e.dropdownListWrapperRef,
|
|
780
|
-
class: R(e.dropdownKls),
|
|
781
|
-
style: B(e.rovingFocusGroupRootStyle),
|
|
782
|
-
tabindex: -1,
|
|
783
|
-
role: e.role,
|
|
784
|
-
"aria-labelledby": e.triggerId,
|
|
785
|
-
onFocusin: t[0] || (t[0] = (...t) => e.handleFocus && e.handleFocus(...t)),
|
|
786
|
-
onFocusout: t[1] || (t[1] = (...t) => e.onBlur && e.onBlur(...t)),
|
|
787
|
-
onKeydown: t[2] || (t[2] = Z((...t) => e.handleKeydown && e.handleKeydown(...t), ["self"])),
|
|
788
|
-
onMousedown: t[3] || (t[3] = Z((...t) => e.onMousedown && e.onMousedown(...t), ["self"]))
|
|
789
|
-
}, [G(e.$slots, "default")], 46, jn);
|
|
790
|
-
}
|
|
791
|
-
var Nn = /* @__PURE__ */ v(An, [["render", Mn]]), Pn = c(xn, {
|
|
792
|
-
DropdownItem: kn,
|
|
793
|
-
DropdownMenu: Nn
|
|
794
|
-
}), Fn = a(kn), In = a(Nn), Ln = {
|
|
1
|
+
import { u as e } from "./ClVh1Lek.mjs";
|
|
2
|
+
import { t } from "./B1MSrc6f.mjs";
|
|
3
|
+
import { t as n } from "./V-Js6hNd.mjs";
|
|
4
|
+
import { avueConfigContextKey as r } from "../constants/index.mjs";
|
|
5
|
+
import { t as i } from "./CIihGrgY.mjs";
|
|
6
|
+
import { C as a, T as o, _ as s, a as c, b as l, c as u, d, g as f, h as p, l as m, m as h, n as g, p as ee, t as te, v as _, x as ne, y as re } from "./BbUUI4mF.mjs";
|
|
7
|
+
import { a as ie, c as v, i as ae, l as oe, n as se, o as ce, r as y, s as le, t as ue, u as de } from "./Cf_h9S62.mjs";
|
|
8
|
+
import fe from "../fy-array/index.mjs";
|
|
9
|
+
import pe from "../fy-cascader/index.mjs";
|
|
10
|
+
import me from "../fy-checkbox/index.mjs";
|
|
11
|
+
import he from "../fy-date/index.mjs";
|
|
12
|
+
import ge from "../fy-input/index.mjs";
|
|
13
|
+
import { a as b, i as _e, n as ve, r as ye, t as be } from "./NAZ8HFBg.mjs";
|
|
14
|
+
import { t as xe } from "./CBHGpbDK.mjs";
|
|
15
|
+
import Se from "../icon-temp/index.mjs";
|
|
16
|
+
import Ce from "../fy-rate/index.mjs";
|
|
17
|
+
import we from "../fy-input-color/index.mjs";
|
|
18
|
+
import Te from "../fy-input-icon/index.mjs";
|
|
19
|
+
import Ee from "../fy-input-map/index.mjs";
|
|
20
|
+
import De from "../fy-input-number/index.mjs";
|
|
21
|
+
import Oe from "../fy-radio/index.mjs";
|
|
22
|
+
import ke from "../fy-slider/index.mjs";
|
|
23
|
+
import Ae from "../fy-switch/index.mjs";
|
|
24
|
+
import je from "../fy-time/index.mjs";
|
|
25
|
+
import Me from "../fy-title/index.mjs";
|
|
26
|
+
import { t as Ne } from "./BLKcXIrX.mjs";
|
|
27
|
+
import Pe from "../fy-input-tree/index.mjs";
|
|
28
|
+
import { ElButtonGroup as Fe, ElCard as Ie, ElCheckbox as Le, ElCol as x, ElCollapse as Re, ElCollapseItem as ze, ElDrawer as S, ElDropdown as Be, ElDropdownItem as Ve, ElDropdownMenu as He, ElEmpty as Ue, ElForm as We, ElFormItem as C, ElLink as Ge, ElLoadingDirective as Ke, ElPagination as qe, ElRow as Je, ElTabPane as Ye, ElTable as Xe, ElTableColumn as w, ElTabs as Ze, ElTag as Qe, ElTooltip as $e } from "element-plus/es";
|
|
29
|
+
import "element-plus/es/components/base/style/css";
|
|
30
|
+
import { Fragment as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as A, createTextVNode as j, createVNode as M, defineAsyncComponent as et, guardReactiveProps as N, mergeProps as P, normalizeClass as F, normalizeProps as I, normalizeStyle as L, openBlock as R, renderList as z, renderSlot as B, resolveComponent as tt, resolveDirective as V, resolveDynamicComponent as H, toDisplayString as U, toHandlers as nt, vShow as rt, withCtx as W, withDirectives as G, withKeys as it, withModifiers as K } from "vue";
|
|
31
|
+
import { isBlank as q } from "@web-utils/core";
|
|
32
|
+
import "element-plus/es/components/row/style/css";
|
|
33
|
+
import "element-plus/es/components/col/style/css";
|
|
34
|
+
import "element-plus/es/components/loading/style/css";
|
|
35
|
+
import "element-plus/es/components/tooltip/style/css";
|
|
36
|
+
import "element-plus/es/components/drawer/style/css";
|
|
37
|
+
import "element-plus/es/components/table/style/css";
|
|
38
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
39
|
+
import "element-plus/es/components/table-column/style/css";
|
|
40
|
+
import "element-plus/es/components/pagination/style/css";
|
|
41
|
+
import "element-plus/es/components/empty/style/css";
|
|
42
|
+
import "element-plus/es/components/form/style/css";
|
|
43
|
+
import "element-plus/es/components/collapse/style/css";
|
|
44
|
+
import "element-plus/es/components/collapse-item/style/css";
|
|
45
|
+
import "element-plus/es/components/form-item/style/css";
|
|
46
|
+
import "element-plus/es/components/link/style/css";
|
|
47
|
+
import "element-plus/es/components/button-group/style/css";
|
|
48
|
+
import { formatDate as J } from "@web-utils/integrations/dayjs";
|
|
49
|
+
import "element-plus/es/components/card/style/css";
|
|
50
|
+
import "element-plus/es/components/dropdown/style/css";
|
|
51
|
+
import "element-plus/es/components/dropdown-menu/style/css";
|
|
52
|
+
import "element-plus/es/components/dropdown-item/style/css";
|
|
53
|
+
import "element-plus/es/components/tag/style/css";
|
|
54
|
+
import "element-plus/es/components/tabs/style/css";
|
|
55
|
+
import "element-plus/es/components/tab-pane/style/css";
|
|
56
|
+
//#region src/components/avue/fy-from/components/FormGroup.vue
|
|
57
|
+
var at = {
|
|
795
58
|
name: "FormGroup",
|
|
796
59
|
props: {
|
|
797
60
|
arrow: {
|
|
@@ -833,33 +96,33 @@ var Nn = /* @__PURE__ */ v(An, [["render", Mn]]), Pn = c(xn, {
|
|
|
833
96
|
methods: { handleChange(e) {
|
|
834
97
|
this.$emit("change", e);
|
|
835
98
|
} }
|
|
836
|
-
},
|
|
99
|
+
}, ot = { class: "avue-group__header" }, st = {
|
|
837
100
|
key: 1,
|
|
838
101
|
class: "avue-group__title"
|
|
839
102
|
};
|
|
840
|
-
function
|
|
841
|
-
let o =
|
|
842
|
-
return n.display ? (
|
|
103
|
+
function ct(e, t, n, r, i, a) {
|
|
104
|
+
let o = ze, s = Re;
|
|
105
|
+
return n.display ? (R(), O("div", {
|
|
843
106
|
key: 0,
|
|
844
|
-
class:
|
|
107
|
+
class: F(["avue-group", {
|
|
845
108
|
"avue-group--header": !a.isHeader,
|
|
846
109
|
"avue-group__arrow": !n.arrow
|
|
847
110
|
}])
|
|
848
|
-
}, [
|
|
111
|
+
}, [B(e.$slots, "tabs"), M(s, {
|
|
849
112
|
modelValue: i.activeName,
|
|
850
113
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.activeName = e),
|
|
851
114
|
value: a.text,
|
|
852
115
|
onChange: a.handleChange
|
|
853
116
|
}, {
|
|
854
|
-
default:
|
|
117
|
+
default: W(() => [M(o, {
|
|
855
118
|
name: 1,
|
|
856
119
|
disabled: !n.arrow
|
|
857
120
|
}, {
|
|
858
|
-
title:
|
|
121
|
+
title: W(() => [k("div", ot, [B(e.$slots, "header", {}, () => [n.icon ? (R(), O("i", {
|
|
859
122
|
key: 0,
|
|
860
|
-
class:
|
|
861
|
-
}, null, 2)) :
|
|
862
|
-
default:
|
|
123
|
+
class: F([n.icon, "avue-group__icon"])
|
|
124
|
+
}, null, 2)) : D("v-if", !0), n.label ? (R(), O("h1", st, U(n.label), 1)) : D("v-if", !0)])])]),
|
|
125
|
+
default: W(() => [B(e.$slots, "default")]),
|
|
863
126
|
_: 3
|
|
864
127
|
}, 8, ["disabled"])]),
|
|
865
128
|
_: 3
|
|
@@ -867,11 +130,11 @@ function Bn(e, t, n, r, i, a) {
|
|
|
867
130
|
"modelValue",
|
|
868
131
|
"value",
|
|
869
132
|
"onChange"
|
|
870
|
-
])], 2)) :
|
|
133
|
+
])], 2)) : D("v-if", !0);
|
|
871
134
|
}
|
|
872
|
-
var
|
|
135
|
+
var lt = /* @__PURE__ */ t(at, [["render", ct]]), ut = {
|
|
873
136
|
name: "FyFormMenu",
|
|
874
|
-
components: { FyButton:
|
|
137
|
+
components: { FyButton: i },
|
|
875
138
|
inject: ["formSafe"],
|
|
876
139
|
computed: {
|
|
877
140
|
menuSpan() {
|
|
@@ -882,87 +145,87 @@ var Vn = /* @__PURE__ */ y(Ln, [["render", Bn]]), Hn = {
|
|
|
882
145
|
}
|
|
883
146
|
}
|
|
884
147
|
};
|
|
885
|
-
function
|
|
886
|
-
let
|
|
887
|
-
return
|
|
148
|
+
function dt(e, t, n, r, a, o) {
|
|
149
|
+
let s = i, c = C, l = x;
|
|
150
|
+
return o.formSafe.parentOption.menuBtn === !1 ? D("v-if", !0) : (R(), E(l, {
|
|
888
151
|
key: 0,
|
|
889
|
-
span:
|
|
890
|
-
md:
|
|
891
|
-
style:
|
|
892
|
-
class:
|
|
152
|
+
span: o.menuSpan,
|
|
153
|
+
md: o.menuSpan,
|
|
154
|
+
style: L(o.styleName),
|
|
155
|
+
class: F([
|
|
893
156
|
"menu",
|
|
894
|
-
|
|
157
|
+
o.formSafe.menuPosition,
|
|
895
158
|
"no-print"
|
|
896
159
|
])
|
|
897
160
|
}, {
|
|
898
|
-
default:
|
|
161
|
+
default: W(() => [M(c, {
|
|
899
162
|
"label-width": "0px",
|
|
900
163
|
style: { "text-align": "center" }
|
|
901
164
|
}, {
|
|
902
|
-
default:
|
|
903
|
-
|
|
165
|
+
default: W(() => [
|
|
166
|
+
o.formSafe.isMock ? (R(), E(s, {
|
|
904
167
|
key: 0,
|
|
905
168
|
type: "primary",
|
|
906
|
-
size:
|
|
907
|
-
disabled:
|
|
908
|
-
onClick:
|
|
169
|
+
size: o.formSafe.controlSize,
|
|
170
|
+
disabled: o.formSafe.allDisabled,
|
|
171
|
+
onClick: o.formSafe.handleMock
|
|
909
172
|
}, {
|
|
910
|
-
icon:
|
|
911
|
-
default:
|
|
173
|
+
icon: W(() => [...t[0] || (t[0] = [k("i", { class: "el-icon-edit-outline" }, null, -1)])]),
|
|
174
|
+
default: W(() => [j(U(o.formSafe.parentOption.mockText || "模拟") + " ", 1)]),
|
|
912
175
|
_: 1
|
|
913
176
|
}, 8, [
|
|
914
177
|
"size",
|
|
915
178
|
"disabled",
|
|
916
179
|
"onClick"
|
|
917
|
-
])) :
|
|
918
|
-
|
|
180
|
+
])) : D("v-if", !0),
|
|
181
|
+
o.formSafe.isPrint ? (R(), E(s, {
|
|
919
182
|
key: 1,
|
|
920
183
|
type: "primary",
|
|
921
|
-
size:
|
|
184
|
+
size: o.formSafe.controlSize,
|
|
922
185
|
icon: "el-icon-printer",
|
|
923
|
-
disabled:
|
|
924
|
-
onClick:
|
|
186
|
+
disabled: o.formSafe.allDisabled,
|
|
187
|
+
onClick: o.formSafe.handlePrint
|
|
925
188
|
}, {
|
|
926
|
-
icon:
|
|
927
|
-
default:
|
|
189
|
+
icon: W(() => [...t[1] || (t[1] = [k("i", { class: "el-icon-printer" }, null, -1)])]),
|
|
190
|
+
default: W(() => [j(U(o.formSafe.parentOption.printText || "打印") + " ", 1)]),
|
|
928
191
|
_: 1
|
|
929
192
|
}, 8, [
|
|
930
193
|
"size",
|
|
931
194
|
"disabled",
|
|
932
195
|
"onClick"
|
|
933
|
-
])) :
|
|
934
|
-
|
|
196
|
+
])) : D("v-if", !0),
|
|
197
|
+
o.formSafe.parentOption.submitBtn === !1 ? D("v-if", !0) : (R(), E(s, {
|
|
935
198
|
key: 2,
|
|
936
199
|
type: "primary",
|
|
937
|
-
size:
|
|
938
|
-
loading:
|
|
939
|
-
onClick:
|
|
200
|
+
size: o.formSafe.controlSize,
|
|
201
|
+
loading: o.formSafe.allDisabled,
|
|
202
|
+
onClick: o.formSafe.submit
|
|
940
203
|
}, {
|
|
941
|
-
icon:
|
|
942
|
-
default:
|
|
204
|
+
icon: W(() => [k("i", { class: F(o.formSafe.parentOption.submitIcon || "el-icon-check") }, null, 2)]),
|
|
205
|
+
default: W(() => [j(U(o.formSafe.parentOption.submitText || "提交") + " ", 1)]),
|
|
943
206
|
_: 1
|
|
944
207
|
}, 8, [
|
|
945
208
|
"size",
|
|
946
209
|
"loading",
|
|
947
210
|
"onClick"
|
|
948
211
|
])),
|
|
949
|
-
|
|
212
|
+
o.formSafe.parentOption.emptyBtn === !1 ? D("v-if", !0) : (R(), E(s, {
|
|
950
213
|
key: 3,
|
|
951
|
-
size:
|
|
952
|
-
disabled:
|
|
953
|
-
onClick:
|
|
214
|
+
size: o.formSafe.controlSize,
|
|
215
|
+
disabled: o.formSafe.allDisabled,
|
|
216
|
+
onClick: o.formSafe.resetForm
|
|
954
217
|
}, {
|
|
955
|
-
icon:
|
|
956
|
-
default:
|
|
218
|
+
icon: W(() => [k("i", { class: F(o.formSafe.parentOption.emptyIcon || "el-icon-delete") }, null, 2)]),
|
|
219
|
+
default: W(() => [j(U(o.formSafe.parentOption.emptyText || "清空") + " ", 1)]),
|
|
957
220
|
_: 1
|
|
958
221
|
}, 8, [
|
|
959
222
|
"size",
|
|
960
223
|
"disabled",
|
|
961
224
|
"onClick"
|
|
962
225
|
])),
|
|
963
|
-
|
|
964
|
-
disabled:
|
|
965
|
-
size:
|
|
226
|
+
B(e.$slots, "menuForm", {
|
|
227
|
+
disabled: o.formSafe.allDisabled,
|
|
228
|
+
size: o.formSafe.controlSize
|
|
966
229
|
})
|
|
967
230
|
]),
|
|
968
231
|
_: 3
|
|
@@ -975,7 +238,7 @@ function Un(e, t, n, r, i, a) {
|
|
|
975
238
|
"class"
|
|
976
239
|
]));
|
|
977
240
|
}
|
|
978
|
-
var
|
|
241
|
+
var ft = /* @__PURE__ */ t(ut, [["render", dt]]), pt = {
|
|
979
242
|
name: "DialogFilter",
|
|
980
243
|
inject: ["crud"],
|
|
981
244
|
data() {
|
|
@@ -1026,7 +289,7 @@ var Wn = /* @__PURE__ */ y(Hn, [["render", Un]]), Gn = {
|
|
|
1026
289
|
},
|
|
1027
290
|
getColumnOption() {
|
|
1028
291
|
let e = [];
|
|
1029
|
-
|
|
292
|
+
c(this.crud.propOption).forEach((t) => {
|
|
1030
293
|
t.showColumn !== !1 && e.push(Object.assign(t, { value: t.prop }));
|
|
1031
294
|
}), this.columnOption = e, this.columnObj = this.columnOption[0];
|
|
1032
295
|
},
|
|
@@ -1063,65 +326,65 @@ var Wn = /* @__PURE__ */ y(Hn, [["render", Un]]), Gn = {
|
|
|
1063
326
|
});
|
|
1064
327
|
}
|
|
1065
328
|
}
|
|
1066
|
-
},
|
|
1067
|
-
function
|
|
1068
|
-
let
|
|
1069
|
-
return
|
|
1070
|
-
modelValue:
|
|
1071
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) =>
|
|
1072
|
-
class:
|
|
329
|
+
}, mt = { key: 0 }, ht = { class: "avue-crud__filter-menu" };
|
|
330
|
+
function gt(e, t, n, r, a, o) {
|
|
331
|
+
let s = i, c = Fe, l = be, u = ge, d = x, f = Je, p = S;
|
|
332
|
+
return a.box ? (R(), O("div", mt, [M(p, {
|
|
333
|
+
modelValue: a.box,
|
|
334
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => a.box = e),
|
|
335
|
+
class: F([["avue-crud__dialog", "avue-crud__filter"], "avue-dialog"]),
|
|
1073
336
|
"lock-scroll": "",
|
|
1074
337
|
"append-to-body": "",
|
|
1075
338
|
title: "过滤条件",
|
|
1076
|
-
size:
|
|
339
|
+
size: o.crud.isMobile ? "100%" : "60%"
|
|
1077
340
|
}, {
|
|
1078
|
-
default:
|
|
1079
|
-
default:
|
|
1080
|
-
|
|
1081
|
-
default:
|
|
1082
|
-
|
|
341
|
+
default: W(() => [M(f, { span: 24 }, {
|
|
342
|
+
default: W(() => [
|
|
343
|
+
k("div", ht, [M(c, null, {
|
|
344
|
+
default: W(() => [
|
|
345
|
+
M(s, {
|
|
1083
346
|
type: "primary",
|
|
1084
|
-
size:
|
|
1085
|
-
onClick:
|
|
347
|
+
size: o.crud.isMediumSize,
|
|
348
|
+
onClick: o.handleAdd
|
|
1086
349
|
}, {
|
|
1087
|
-
default:
|
|
350
|
+
default: W(() => [...t[2] || (t[2] = [j("新增条件", -1)])]),
|
|
1088
351
|
_: 1
|
|
1089
352
|
}, 8, ["size", "onClick"]),
|
|
1090
|
-
|
|
353
|
+
M(s, {
|
|
1091
354
|
type: "primary",
|
|
1092
|
-
size:
|
|
1093
|
-
onClick:
|
|
355
|
+
size: o.crud.isMediumSize,
|
|
356
|
+
onClick: o.handleClear
|
|
1094
357
|
}, {
|
|
1095
|
-
default:
|
|
358
|
+
default: W(() => [...t[3] || (t[3] = [j("清空条件", -1)])]),
|
|
1096
359
|
_: 1
|
|
1097
360
|
}, 8, ["size", "onClick"]),
|
|
1098
|
-
|
|
361
|
+
M(s, {
|
|
1099
362
|
type: "primary",
|
|
1100
|
-
size:
|
|
1101
|
-
onClick:
|
|
363
|
+
size: o.crud.isMediumSize,
|
|
364
|
+
onClick: o.handleValueClear
|
|
1102
365
|
}, {
|
|
1103
|
-
default:
|
|
366
|
+
default: W(() => [...t[4] || (t[4] = [j("清空数据", -1)])]),
|
|
1104
367
|
_: 1
|
|
1105
368
|
}, 8, ["size", "onClick"])
|
|
1106
369
|
]),
|
|
1107
370
|
_: 1
|
|
1108
371
|
})]),
|
|
1109
|
-
(
|
|
372
|
+
(R(!0), O(T, null, z(a.list, (e, t) => (R(), E(d, {
|
|
1110
373
|
key: t,
|
|
1111
374
|
md: 12,
|
|
1112
375
|
xs: 24,
|
|
1113
376
|
sm: 12,
|
|
1114
377
|
class: "avue-crud__filter-item"
|
|
1115
378
|
}, {
|
|
1116
|
-
default:
|
|
1117
|
-
|
|
379
|
+
default: W(() => [
|
|
380
|
+
M(l, {
|
|
1118
381
|
modelValue: e.text,
|
|
1119
382
|
"onUpdate:modelValue": (t) => e.text = t,
|
|
1120
|
-
dic:
|
|
383
|
+
dic: a.columnOption,
|
|
1121
384
|
clearable: !1,
|
|
1122
|
-
size:
|
|
385
|
+
size: o.crud.isMediumSize,
|
|
1123
386
|
class: "avue-crud__filter-label",
|
|
1124
|
-
onChange: (e) =>
|
|
387
|
+
onChange: (e) => o.handleChange(t)
|
|
1125
388
|
}, null, 8, [
|
|
1126
389
|
"modelValue",
|
|
1127
390
|
"onUpdate:modelValue",
|
|
@@ -1129,55 +392,55 @@ function Jn(e, t, n, r, i, a) {
|
|
|
1129
392
|
"size",
|
|
1130
393
|
"onChange"
|
|
1131
394
|
]),
|
|
1132
|
-
|
|
395
|
+
M(l, {
|
|
1133
396
|
modelValue: e.symbol,
|
|
1134
397
|
"onUpdate:modelValue": (t) => e.symbol = t,
|
|
1135
398
|
class: "avue-crud__filter-symbol",
|
|
1136
|
-
dic:
|
|
399
|
+
dic: a.symbolDic,
|
|
1137
400
|
clearable: !1,
|
|
1138
|
-
size:
|
|
401
|
+
size: o.crud.isMediumSize
|
|
1139
402
|
}, null, 8, [
|
|
1140
403
|
"modelValue",
|
|
1141
404
|
"onUpdate:modelValue",
|
|
1142
405
|
"dic",
|
|
1143
406
|
"size"
|
|
1144
407
|
]),
|
|
1145
|
-
|
|
408
|
+
M(u, {
|
|
1146
409
|
modelValue: e.value,
|
|
1147
410
|
"onUpdate:modelValue": (t) => e.value = t,
|
|
1148
|
-
size:
|
|
411
|
+
size: o.crud.isMediumSize,
|
|
1149
412
|
class: "avue-crud__filter-value"
|
|
1150
413
|
}, null, 8, [
|
|
1151
414
|
"modelValue",
|
|
1152
415
|
"onUpdate:modelValue",
|
|
1153
416
|
"size"
|
|
1154
417
|
]),
|
|
1155
|
-
|
|
418
|
+
M(s, {
|
|
1156
419
|
type: "danger",
|
|
1157
420
|
class: "avue-crud__filter-icon",
|
|
1158
421
|
circle: "",
|
|
1159
422
|
icon: "el-icon-minus",
|
|
1160
|
-
onClick: (e) =>
|
|
423
|
+
onClick: (e) => o.handleDelete(t)
|
|
1161
424
|
}, null, 8, ["onClick"])
|
|
1162
425
|
]),
|
|
1163
426
|
_: 2
|
|
1164
427
|
}, 1024))), 128)),
|
|
1165
|
-
|
|
428
|
+
M(d, {
|
|
1166
429
|
span: 24,
|
|
1167
430
|
class: "avue-form__menu avue-form__menu--right"
|
|
1168
431
|
}, {
|
|
1169
|
-
default:
|
|
432
|
+
default: W(() => [M(s, {
|
|
1170
433
|
type: "primary",
|
|
1171
|
-
size:
|
|
1172
|
-
onClick:
|
|
434
|
+
size: o.crud.isMediumSize,
|
|
435
|
+
onClick: o.handleSubmit
|
|
1173
436
|
}, {
|
|
1174
|
-
default:
|
|
437
|
+
default: W(() => [...t[5] || (t[5] = [j("确 定", -1)])]),
|
|
1175
438
|
_: 1
|
|
1176
|
-
}, 8, ["size", "onClick"]),
|
|
1177
|
-
size:
|
|
1178
|
-
onClick: t[0] || (t[0] = (e) =>
|
|
439
|
+
}, 8, ["size", "onClick"]), M(s, {
|
|
440
|
+
size: o.crud.isMediumSize,
|
|
441
|
+
onClick: t[0] || (t[0] = (e) => a.box = !1)
|
|
1179
442
|
}, {
|
|
1180
|
-
default:
|
|
443
|
+
default: W(() => [...t[6] || (t[6] = [j("取 消", -1)])]),
|
|
1181
444
|
_: 1
|
|
1182
445
|
}, 8, ["size"])]),
|
|
1183
446
|
_: 1
|
|
@@ -1186,26 +449,26 @@ function Jn(e, t, n, r, i, a) {
|
|
|
1186
449
|
_: 1
|
|
1187
450
|
})]),
|
|
1188
451
|
_: 1
|
|
1189
|
-
}, 8, ["modelValue", "size"])])) :
|
|
452
|
+
}, 8, ["modelValue", "size"])])) : D("v-if", !0);
|
|
1190
453
|
}
|
|
1191
|
-
var
|
|
1192
|
-
let i = e[t.prop], a = t.type,
|
|
1193
|
-
if (t.bind && (i =
|
|
454
|
+
var _t = /* @__PURE__ */ t(pt, [["render", gt]]), Y = (e = {}, t = {}, n = {}, r = []) => {
|
|
455
|
+
let i = e[t.prop], a = t.type, c = t.separator;
|
|
456
|
+
if (t.bind && (i = d(e, t.bind)), q(i)) i = "";
|
|
1194
457
|
else {
|
|
1195
|
-
let e =
|
|
1196
|
-
if ((["string", "number"].includes(t.dataType) || e ||
|
|
1197
|
-
else if (a === "password") i =
|
|
1198
|
-
else if (
|
|
1199
|
-
let e = t.format.replace("dd", "DD").replace("yyyy", "YYYY"), n =
|
|
458
|
+
let e = o.includes(t.type) && t.multiple, u = l.includes(t.type);
|
|
459
|
+
if ((["string", "number"].includes(t.dataType) || e || u) && !Array.isArray(i) && (i = `${i}`.split(c || ","), t.dataType === "number" && (i = s(i))), re.includes(a)) i = Array.isArray(i) ? i.join(c || " | ") : i.split(c || ",").join(c || " | ");
|
|
460
|
+
else if (a === "password") i = ee(i, "*");
|
|
461
|
+
else if (ne.includes(a) && t.format) {
|
|
462
|
+
let e = t.format.replace("dd", "DD").replace("yyyy", "YYYY"), n = J(Date.now(), "YYYY-MM-DD");
|
|
1200
463
|
if (a.indexOf("range") !== -1) {
|
|
1201
464
|
let r = i[0] || "", o = i[1] || "";
|
|
1202
|
-
a === "timerange" && r.length <= 8 && o.length < 8 && (r = `${n} ${r}`, o = `${n} ${o}`), i = [
|
|
1203
|
-
} else a === "time" && i.length <= 8 && (i = `${n} ${i}`), i =
|
|
465
|
+
a === "timerange" && r.length <= 8 && o.length < 8 && (r = `${n} ${r}`, o = `${n} ${o}`), i = [J(r, e), J(o, e)].join(t.separator || "~");
|
|
466
|
+
} else a === "time" && i.length <= 8 && (i = `${n} ${i}`), i = J(i, e);
|
|
1204
467
|
}
|
|
1205
|
-
i =
|
|
468
|
+
i = m(r, i, t.props || n.props);
|
|
1206
469
|
}
|
|
1207
470
|
return t.formatter && typeof t.formatter == "function" && (i = t.formatter(e, e[t.prop], i, t)), i;
|
|
1208
|
-
},
|
|
471
|
+
}, vt = {
|
|
1209
472
|
name: "DialogExcel",
|
|
1210
473
|
inject: ["crud"],
|
|
1211
474
|
data() {
|
|
@@ -1230,10 +493,10 @@ var Yn = /* @__PURE__ */ y(Gn, [["render", Jn]]), Xn = (e = {}, t = {}, n = {},
|
|
|
1230
493
|
handleSum() {
|
|
1231
494
|
let e = this.crud.tableOption, t = this.crud.propOption, n = this.form.type ? this.crud.list : this.crud.tableSelect, r = [];
|
|
1232
495
|
return this.form.params.includes("data") && n.forEach((n) => {
|
|
1233
|
-
let i =
|
|
496
|
+
let i = c(n);
|
|
1234
497
|
t.forEach((t) => {
|
|
1235
498
|
let n = t.parentProp ? (this.crud.cascaderDIC[t.$index] || {})[t.prop] : this.crud.DIC[t.prop];
|
|
1236
|
-
i[t.prop] =
|
|
499
|
+
i[t.prop] = Y(i, t, e, n);
|
|
1237
500
|
}), r.push(i);
|
|
1238
501
|
}), this.form.params.includes("sum") && e.showSummary && r.push(this.crud.sumsList), r;
|
|
1239
502
|
},
|
|
@@ -1304,7 +567,7 @@ var Yn = /* @__PURE__ */ y(Gn, [["render", Jn]]), Xn = (e = {}, t = {}, n = {},
|
|
|
1304
567
|
}, this.form.type = this.crud.selectLen === 0;
|
|
1305
568
|
},
|
|
1306
569
|
getColumnOption() {
|
|
1307
|
-
let e =
|
|
570
|
+
let e = c(this.crud.columnOption), t = [], n = (e = []) => {
|
|
1308
571
|
e.forEach((r, i) => {
|
|
1309
572
|
let a = r.children;
|
|
1310
573
|
a && !Array.isArray(a) ? delete r.children : r.showColumn === !1 ? e.splice(i, 1) : (t.push(r.prop), r.children && n(a));
|
|
@@ -1313,7 +576,7 @@ var Yn = /* @__PURE__ */ y(Gn, [["render", Jn]]), Xn = (e = {}, t = {}, n = {},
|
|
|
1313
576
|
n(e), this.columnOption = e, this.form.prop = t;
|
|
1314
577
|
},
|
|
1315
578
|
getColumn() {
|
|
1316
|
-
let e =
|
|
579
|
+
let e = c(this.columnOption), t = this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();
|
|
1317
580
|
if (!this.form.params) return [];
|
|
1318
581
|
if (this.form.params.includes("headers")) {
|
|
1319
582
|
let n = (e = []) => {
|
|
@@ -1332,40 +595,40 @@ var Yn = /* @__PURE__ */ y(Gn, [["render", Jn]]), Xn = (e = {}, t = {}, n = {},
|
|
|
1332
595
|
}
|
|
1333
596
|
}
|
|
1334
597
|
}
|
|
1335
|
-
},
|
|
1336
|
-
function
|
|
1337
|
-
let
|
|
1338
|
-
return
|
|
1339
|
-
modelValue:
|
|
1340
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
598
|
+
}, yt = { key: 0 }, bt = { class: "dialog-footer" };
|
|
599
|
+
function xt(e, t, r, a, o, s) {
|
|
600
|
+
let c = $, l = i, u = n;
|
|
601
|
+
return o.box ? (R(), O("div", yt, [M(u, {
|
|
602
|
+
modelValue: o.box,
|
|
603
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => o.box = e),
|
|
1341
604
|
title: "导出",
|
|
1342
605
|
"lock-scroll": "",
|
|
1343
606
|
class: "avue-dialog",
|
|
1344
|
-
width:
|
|
607
|
+
width: s.crud.isMobile ? "100%" : "30%"
|
|
1345
608
|
}, {
|
|
1346
|
-
footer:
|
|
609
|
+
footer: W(() => [k("span", bt, [M(l, {
|
|
1347
610
|
type: "primary",
|
|
1348
|
-
size:
|
|
1349
|
-
onClick:
|
|
611
|
+
size: s.crud.isMediumSize,
|
|
612
|
+
onClick: s.handleSubmit
|
|
1350
613
|
}, {
|
|
1351
|
-
default:
|
|
614
|
+
default: W(() => [...t[3] || (t[3] = [j("确定", -1)])]),
|
|
1352
615
|
_: 1
|
|
1353
|
-
}, 8, ["size", "onClick"]),
|
|
1354
|
-
size:
|
|
1355
|
-
onClick: t[1] || (t[1] = (e) =>
|
|
616
|
+
}, 8, ["size", "onClick"]), M(l, {
|
|
617
|
+
size: s.crud.isMediumSize,
|
|
618
|
+
onClick: t[1] || (t[1] = (e) => o.box = !1)
|
|
1356
619
|
}, {
|
|
1357
|
-
default:
|
|
620
|
+
default: W(() => [...t[4] || (t[4] = [j("取消", -1)])]),
|
|
1358
621
|
_: 1
|
|
1359
622
|
}, 8, ["size"])])]),
|
|
1360
|
-
default:
|
|
1361
|
-
modelValue:
|
|
1362
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
1363
|
-
option:
|
|
623
|
+
default: W(() => [M(c, {
|
|
624
|
+
modelValue: o.form,
|
|
625
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => o.form = e),
|
|
626
|
+
option: o.option
|
|
1364
627
|
}, null, 8, ["modelValue", "option"])]),
|
|
1365
628
|
_: 1
|
|
1366
|
-
}, 8, ["modelValue", "width"])])) :
|
|
629
|
+
}, 8, ["modelValue", "width"])])) : D("v-if", !0);
|
|
1367
630
|
}
|
|
1368
|
-
var
|
|
631
|
+
var St = /* @__PURE__ */ t(vt, [["render", xt]]), X = {
|
|
1369
632
|
menuWidth: 220,
|
|
1370
633
|
menuFixed: "right",
|
|
1371
634
|
menuXsWidth: 100,
|
|
@@ -1432,7 +695,7 @@ var tr = /* @__PURE__ */ y(Zn, [["render", er]]), $ = {
|
|
|
1432
695
|
dropRowClass: ".el-table__body-wrapper > table > tbody",
|
|
1433
696
|
dropColClass: ".el-table__header-wrapper tr",
|
|
1434
697
|
ghostClass: "avue-crud__ghost"
|
|
1435
|
-
},
|
|
698
|
+
}, Ct = {
|
|
1436
699
|
name: "DialogColumn",
|
|
1437
700
|
inject: ["crud"],
|
|
1438
701
|
data() {
|
|
@@ -1481,17 +744,17 @@ var tr = /* @__PURE__ */ y(Zn, [["render", er]]), $ = {
|
|
|
1481
744
|
["hide", "filters"].includes(e) && this.crud.refreshTable();
|
|
1482
745
|
},
|
|
1483
746
|
rowDrop() {
|
|
1484
|
-
let e = this.$refs.table.$el.querySelectorAll(
|
|
747
|
+
let e = this.$refs.table.$el.querySelectorAll(X.dropRowClass)[0];
|
|
1485
748
|
this.crud.tableDrop("column", e, (e) => {
|
|
1486
749
|
let t = e.oldIndex, n = e.newIndex;
|
|
1487
750
|
this.crud.headerSort(t, n), this.crud.refreshTable(() => this.rowDrop());
|
|
1488
751
|
});
|
|
1489
752
|
}
|
|
1490
753
|
}
|
|
1491
|
-
},
|
|
1492
|
-
function
|
|
1493
|
-
let o =
|
|
1494
|
-
return i.columnBox ? (
|
|
754
|
+
}, wt = { key: 0 };
|
|
755
|
+
function Tt(e, t, n, r, i, a) {
|
|
756
|
+
let o = w, s = Le, c = Xe, l = S;
|
|
757
|
+
return i.columnBox ? (R(), O("div", wt, [M(l, {
|
|
1495
758
|
modelValue: i.columnBox,
|
|
1496
759
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.columnBox = e),
|
|
1497
760
|
class: "avue-crud__dialog avue-crud__column avue-dialog",
|
|
@@ -1500,27 +763,27 @@ function ir(e, t, n, r, i, a) {
|
|
|
1500
763
|
title: "列显隐",
|
|
1501
764
|
size: a.crud.isMobile ? "100%" : "40%"
|
|
1502
765
|
}, {
|
|
1503
|
-
default:
|
|
766
|
+
default: W(() => [M(c, {
|
|
1504
767
|
ref: "table",
|
|
1505
768
|
data: i.data,
|
|
1506
769
|
height: "100%",
|
|
1507
770
|
border: ""
|
|
1508
771
|
}, {
|
|
1509
|
-
default:
|
|
772
|
+
default: W(() => [M(o, {
|
|
1510
773
|
key: "label",
|
|
1511
774
|
align: "center",
|
|
1512
775
|
width: "100",
|
|
1513
776
|
"header-align": "center",
|
|
1514
777
|
prop: "label",
|
|
1515
778
|
label: "列名"
|
|
1516
|
-
}), (
|
|
779
|
+
}), (R(!0), O(T, null, z(a.defaultColumn, (e, t) => (R(), O(T, null, [e.hide === !0 ? D("v-if", !0) : (R(), E(o, {
|
|
1517
780
|
key: t,
|
|
1518
781
|
label: e.label,
|
|
1519
782
|
prop: e.prop,
|
|
1520
783
|
align: "center",
|
|
1521
784
|
"header-align": "center"
|
|
1522
785
|
}, {
|
|
1523
|
-
default:
|
|
786
|
+
default: W(({ row: t }) => [M(s, {
|
|
1524
787
|
modelValue: a.crud.objectOption[t.prop][e.prop],
|
|
1525
788
|
"onUpdate:modelValue": (n) => a.crud.objectOption[t.prop][e.prop] = n,
|
|
1526
789
|
onChange: (t) => a.handleChange(e.prop)
|
|
@@ -1534,11 +797,11 @@ function ir(e, t, n, r, i, a) {
|
|
|
1534
797
|
_: 1
|
|
1535
798
|
}, 8, ["data"])]),
|
|
1536
799
|
_: 1
|
|
1537
|
-
}, 8, ["modelValue", "size"])])) :
|
|
800
|
+
}, 8, ["modelValue", "size"])])) : D("v-if", !0);
|
|
1538
801
|
}
|
|
1539
|
-
var
|
|
802
|
+
var Et = /* @__PURE__ */ t(Ct, [["render", Tt]]), Dt = {
|
|
1540
803
|
name: "FyDialogForm",
|
|
1541
|
-
components: { ElementDialog:
|
|
804
|
+
components: { ElementDialog: n },
|
|
1542
805
|
inject: ["crud"],
|
|
1543
806
|
data() {
|
|
1544
807
|
return {
|
|
@@ -1551,8 +814,8 @@ var ar = /* @__PURE__ */ y(nr, [["render", ir]]), or = {
|
|
|
1551
814
|
},
|
|
1552
815
|
computed: {
|
|
1553
816
|
option() {
|
|
1554
|
-
let e =
|
|
1555
|
-
return e.boxType = this.boxType, e.column =
|
|
817
|
+
let e = c(this.crud.tableOption);
|
|
818
|
+
return e.boxType = this.boxType, e.column = c(this.crud.propOption), e.menuBtn = !1, this.isAdd ? (e.submitBtn = e.saveBtn, e.submitText = this.crud.menuIcon("saveBtn"), e.submitIcon = this.crud.getBtnIcon("saveBtn")) : this.isEdit ? (e.submitBtn = e.updateBtn, e.submitText = this.crud.menuIcon("updateBtn"), e.submitIcon = this.crud.getBtnIcon("updateBtn")) : this.isView && (e.detail = !0), e.emptyBtn = e.cancelBtn, e.emptyText = this.crud.menuIcon("cancelBtn"), e.emptyIcon = this.crud.getBtnIcon("cancelBtn"), this.crud.isGroup || (e.dicFlag = !1, e.dicData = this.crud.DIC), q(e.dicFlag) || e.column.forEach((t) => {
|
|
1556
819
|
t.boxType = this.boxType, t.dicFlag = t.dicFlag || e.dicFlag;
|
|
1557
820
|
}), e;
|
|
1558
821
|
},
|
|
@@ -1569,10 +832,10 @@ var ar = /* @__PURE__ */ y(nr, [["render", ir]]), or = {
|
|
|
1569
832
|
return this.crud.tableOption.dialogDirection;
|
|
1570
833
|
},
|
|
1571
834
|
width() {
|
|
1572
|
-
return
|
|
835
|
+
return h(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${X.dialogWidth}`);
|
|
1573
836
|
},
|
|
1574
837
|
dialogType() {
|
|
1575
|
-
return this.isDrawer ?
|
|
838
|
+
return this.isDrawer ? S : n;
|
|
1576
839
|
},
|
|
1577
840
|
dialogTop() {
|
|
1578
841
|
return !this.isDrawer && !this.fullscreen ? this.crud.tableOption.dialogTop : "0";
|
|
@@ -1591,7 +854,7 @@ var ar = /* @__PURE__ */ y(nr, [["render", ir]]), or = {
|
|
|
1591
854
|
},
|
|
1592
855
|
dialogTitle() {
|
|
1593
856
|
let e = `${this.boxType}`;
|
|
1594
|
-
return
|
|
857
|
+
return q(this.boxType) ? "" : this.crud.tableOption[`${e}Title`] || {
|
|
1595
858
|
tipStartTitle: "当前表格已选择",
|
|
1596
859
|
tipEndTitle: "项",
|
|
1597
860
|
editTitle: "编 辑",
|
|
@@ -1607,8 +870,8 @@ var ar = /* @__PURE__ */ y(nr, [["render", ir]]), or = {
|
|
|
1607
870
|
}
|
|
1608
871
|
},
|
|
1609
872
|
methods: {
|
|
1610
|
-
optVal:
|
|
1611
|
-
uploadFun:
|
|
873
|
+
optVal: h,
|
|
874
|
+
uploadFun: _,
|
|
1612
875
|
submit() {
|
|
1613
876
|
this.$refs.tableForm.submit();
|
|
1614
877
|
},
|
|
@@ -1636,7 +899,7 @@ var ar = /* @__PURE__ */ y(nr, [["render", ir]]), or = {
|
|
|
1636
899
|
this.crud.$emit("tab-click", e, t);
|
|
1637
900
|
},
|
|
1638
901
|
handleFullScreen() {
|
|
1639
|
-
this.isDrawer && (
|
|
902
|
+
this.isDrawer && (q(this.size) ? this.size = "100%" : this.size = ""), this.fullscreen = !this.fullscreen;
|
|
1640
903
|
},
|
|
1641
904
|
handleError(e) {
|
|
1642
905
|
this.crud.$emit("error", e);
|
|
@@ -1645,13 +908,13 @@ var ar = /* @__PURE__ */ y(nr, [["render", ir]]), or = {
|
|
|
1645
908
|
this.isAdd ? this.rowSave(t) : this.isEdit && this.rowUpdate(t);
|
|
1646
909
|
},
|
|
1647
910
|
rowSave(e) {
|
|
1648
|
-
this.crud.$emit("row-save",
|
|
911
|
+
this.crud.$emit("row-save", u(this.crud.tableForm, ["$"]), this.closeDialog, e);
|
|
1649
912
|
},
|
|
1650
913
|
rowUpdate(e) {
|
|
1651
|
-
this.crud.$emit("row-update",
|
|
914
|
+
this.crud.$emit("row-update", u(this.crud.tableForm, ["$"]), this.crud.tableIndex, this.closeDialog, e);
|
|
1652
915
|
},
|
|
1653
916
|
closeDialog(e) {
|
|
1654
|
-
e =
|
|
917
|
+
e = c(e), e && (() => {
|
|
1655
918
|
if (this.isEdit) {
|
|
1656
919
|
let { parentList: t, index: n } = this.crud.findData(e[this.crud.rowKey]);
|
|
1657
920
|
if (t) {
|
|
@@ -1681,82 +944,82 @@ var ar = /* @__PURE__ */ y(nr, [["render", ir]]), or = {
|
|
|
1681
944
|
}
|
|
1682
945
|
}
|
|
1683
946
|
};
|
|
1684
|
-
function
|
|
1685
|
-
let
|
|
1686
|
-
return
|
|
947
|
+
function Ot(e, t, n, r, a, o) {
|
|
948
|
+
let s = $, c = i;
|
|
949
|
+
return a.boxVisible ? (R(), E(H(o.dialogType), P({
|
|
1687
950
|
key: 0,
|
|
1688
|
-
modelValue:
|
|
1689
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
951
|
+
modelValue: a.boxVisible,
|
|
952
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => a.boxVisible = e),
|
|
1690
953
|
"lock-scroll": "",
|
|
1691
954
|
"show-full-screen": "",
|
|
1692
|
-
"destroy-on-close":
|
|
1693
|
-
"wrapper-closable":
|
|
1694
|
-
direction:
|
|
955
|
+
"destroy-on-close": o.crud.tableOption.dialogDestroy,
|
|
956
|
+
"wrapper-closable": o.crud.tableOption.dialogClickModal,
|
|
957
|
+
direction: o.direction,
|
|
1695
958
|
class: "dialog-form",
|
|
1696
|
-
"custom-class":
|
|
959
|
+
"custom-class": o.crud.tableOption.dialogCustomClass,
|
|
1697
960
|
"modal-append-to-body": "",
|
|
1698
961
|
"append-to-body": "",
|
|
1699
|
-
top:
|
|
1700
|
-
title:
|
|
1701
|
-
"close-on-press-escape":
|
|
1702
|
-
"close-on-click-modal":
|
|
1703
|
-
modal:
|
|
1704
|
-
"show-close":
|
|
1705
|
-
},
|
|
1706
|
-
footer:
|
|
1707
|
-
|
|
962
|
+
top: o.dialogTop,
|
|
963
|
+
title: o.dialogTitle,
|
|
964
|
+
"close-on-press-escape": o.crud.tableOption.dialogEscape,
|
|
965
|
+
"close-on-click-modal": o.optVal(o.crud.tableOption.dialogClickModal, !1),
|
|
966
|
+
modal: o.crud.tableOption.dialogModal,
|
|
967
|
+
"show-close": o.crud.tableOption.dialogCloseBtn
|
|
968
|
+
}, o.params, { "before-close": o.hide }), {
|
|
969
|
+
footer: W(() => [k("span", { class: F(["avue-dialog__footer", `avue-dialog__footer--${o.dialogMenuPosition}`]) }, [
|
|
970
|
+
o.optVal(o.option.submitBtn, !0) && !o.isView ? (R(), E(c, {
|
|
1708
971
|
key: 0,
|
|
1709
|
-
loading:
|
|
1710
|
-
size:
|
|
1711
|
-
icon:
|
|
972
|
+
loading: a.disabled,
|
|
973
|
+
size: o.crud.controlSize,
|
|
974
|
+
icon: o.option.submitIcon,
|
|
1712
975
|
type: "primary",
|
|
1713
|
-
onClick:
|
|
976
|
+
onClick: o.submit
|
|
1714
977
|
}, {
|
|
1715
|
-
default:
|
|
978
|
+
default: W(() => [j(U(o.option.submitText), 1)]),
|
|
1716
979
|
_: 1
|
|
1717
980
|
}, 8, [
|
|
1718
981
|
"loading",
|
|
1719
982
|
"size",
|
|
1720
983
|
"icon",
|
|
1721
984
|
"onClick"
|
|
1722
|
-
])) :
|
|
1723
|
-
|
|
985
|
+
])) : D("v-if", !0),
|
|
986
|
+
o.optVal(o.option.emptyBtn, !0) && !o.isView ? (R(), E(c, {
|
|
1724
987
|
key: 1,
|
|
1725
|
-
disabled:
|
|
1726
|
-
size:
|
|
1727
|
-
icon:
|
|
1728
|
-
onClick:
|
|
988
|
+
disabled: a.disabled,
|
|
989
|
+
size: o.crud.controlSize,
|
|
990
|
+
icon: o.option.emptyIcon,
|
|
991
|
+
onClick: o.reset
|
|
1729
992
|
}, {
|
|
1730
|
-
default:
|
|
993
|
+
default: W(() => [j(U(o.option.emptyText), 1)]),
|
|
1731
994
|
_: 1
|
|
1732
995
|
}, 8, [
|
|
1733
996
|
"disabled",
|
|
1734
997
|
"size",
|
|
1735
998
|
"icon",
|
|
1736
999
|
"onClick"
|
|
1737
|
-
])) :
|
|
1738
|
-
|
|
1739
|
-
disabled:
|
|
1740
|
-
size:
|
|
1741
|
-
type:
|
|
1000
|
+
])) : D("v-if", !0),
|
|
1001
|
+
B(e.$slots, "menuForm", {
|
|
1002
|
+
disabled: a.disabled,
|
|
1003
|
+
size: o.crud.controlSize,
|
|
1004
|
+
type: a.boxType
|
|
1742
1005
|
})
|
|
1743
1006
|
], 2)]),
|
|
1744
|
-
default:
|
|
1007
|
+
default: W(() => [M(s, P({
|
|
1745
1008
|
ref: "tableForm",
|
|
1746
|
-
modelValue:
|
|
1747
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
1748
|
-
status:
|
|
1749
|
-
"onUpdate:status": t[1] || (t[1] = (e) =>
|
|
1750
|
-
},
|
|
1751
|
-
option:
|
|
1752
|
-
onChange:
|
|
1753
|
-
onSubmit:
|
|
1754
|
-
onResetChange:
|
|
1755
|
-
onTabClick:
|
|
1756
|
-
onError:
|
|
1757
|
-
}),
|
|
1758
|
-
name:
|
|
1759
|
-
fn:
|
|
1009
|
+
modelValue: o.crud.tableForm,
|
|
1010
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => o.crud.tableForm = e),
|
|
1011
|
+
status: a.disabled,
|
|
1012
|
+
"onUpdate:status": t[1] || (t[1] = (e) => a.disabled = e)
|
|
1013
|
+
}, o.uploadFun({}, o.crud), {
|
|
1014
|
+
option: o.option,
|
|
1015
|
+
onChange: o.handleChange,
|
|
1016
|
+
onSubmit: o.handleSubmit,
|
|
1017
|
+
onResetChange: o.hide,
|
|
1018
|
+
onTabClick: o.handleTabClick,
|
|
1019
|
+
onError: o.handleError
|
|
1020
|
+
}), A({ _: 2 }, [z(o.crud.formSlot, (t) => ({
|
|
1021
|
+
name: o.getSlotName(t),
|
|
1022
|
+
fn: W((n) => [B(e.$slots, t, I(N(Object.assign(n, { type: a.boxType }))))])
|
|
1760
1023
|
}))]), 1040, [
|
|
1761
1024
|
"modelValue",
|
|
1762
1025
|
"status",
|
|
@@ -1781,9 +1044,9 @@ function sr(e, t, n, r, i, a) {
|
|
|
1781
1044
|
"modal",
|
|
1782
1045
|
"show-close",
|
|
1783
1046
|
"before-close"
|
|
1784
|
-
])) :
|
|
1047
|
+
])) : D("v-if", !0);
|
|
1785
1048
|
}
|
|
1786
|
-
var
|
|
1049
|
+
var kt = /* @__PURE__ */ t(Dt, [["render", Ot]]), At = {
|
|
1787
1050
|
name: "TablePage",
|
|
1788
1051
|
inject: ["crud"],
|
|
1789
1052
|
data() {
|
|
@@ -1826,7 +1089,7 @@ var cr = /* @__PURE__ */ y(or, [["render", sr]]), lr = {
|
|
|
1826
1089
|
this.crud.isMobile && (this.defaultPage.layout = "total, sizes, prev, pager, next"), this.pageInit(), this.crud.$emit("on-load", this.defaultPage);
|
|
1827
1090
|
},
|
|
1828
1091
|
methods: {
|
|
1829
|
-
optVal:
|
|
1092
|
+
optVal: h,
|
|
1830
1093
|
pageInit() {
|
|
1831
1094
|
this.defaultPage = Object.assign(this.defaultPage, this.crud.page), this.updateValue();
|
|
1832
1095
|
},
|
|
@@ -1847,14 +1110,14 @@ var cr = /* @__PURE__ */ y(or, [["render", sr]]), lr = {
|
|
|
1847
1110
|
}
|
|
1848
1111
|
}
|
|
1849
1112
|
};
|
|
1850
|
-
function
|
|
1851
|
-
let o =
|
|
1852
|
-
return a.pageFlag && a.optVal(a.crud.tableOption.page, !0) ? (
|
|
1113
|
+
function jt(e, t, n, r, i, a) {
|
|
1114
|
+
let o = qe, s = Ie;
|
|
1115
|
+
return a.pageFlag && a.optVal(a.crud.tableOption.page, !0) ? (R(), E(s, {
|
|
1853
1116
|
key: 0,
|
|
1854
1117
|
shadow: a.crud.isCard,
|
|
1855
1118
|
class: "avue-pagination"
|
|
1856
1119
|
}, {
|
|
1857
|
-
default:
|
|
1120
|
+
default: W(() => [B(e.$slots, "page"), M(o, {
|
|
1858
1121
|
"current-page": i.defaultPage.currentPage,
|
|
1859
1122
|
"onUpdate:currentPage": t[0] || (t[0] = (e) => i.defaultPage.currentPage = e),
|
|
1860
1123
|
small: a.crud.size === "mini",
|
|
@@ -1888,9 +1151,9 @@ function ur(e, t, n, r, i, a) {
|
|
|
1888
1151
|
"onCurrentChange"
|
|
1889
1152
|
])]),
|
|
1890
1153
|
_: 3
|
|
1891
|
-
}, 8, ["shadow"])) :
|
|
1154
|
+
}, 8, ["shadow"])) : D("v-if", !0);
|
|
1892
1155
|
}
|
|
1893
|
-
var
|
|
1156
|
+
var Mt = /* @__PURE__ */ t(At, [["render", jt]]), Z = {}, Nt = {
|
|
1894
1157
|
name: "ColumnSlot",
|
|
1895
1158
|
inject: ["dynamic", "crud"],
|
|
1896
1159
|
props: {
|
|
@@ -1908,51 +1171,51 @@ var dr = /* @__PURE__ */ y(lr, [["render", ur]]), fr = {}, pr = {
|
|
|
1908
1171
|
});
|
|
1909
1172
|
},
|
|
1910
1173
|
methods: {
|
|
1911
|
-
isBlank:
|
|
1912
|
-
optVal:
|
|
1913
|
-
uploadFun:
|
|
1914
|
-
isMediaType(
|
|
1915
|
-
return
|
|
1174
|
+
isBlank: q,
|
|
1175
|
+
optVal: h,
|
|
1176
|
+
uploadFun: _,
|
|
1177
|
+
isMediaType(t, n) {
|
|
1178
|
+
return e(t, n);
|
|
1916
1179
|
},
|
|
1917
1180
|
vaildLabel(e, t, n) {
|
|
1918
1181
|
if (e.rules && t.$cellEdit) return n;
|
|
1919
1182
|
},
|
|
1920
1183
|
columnChange(e, t, n) {
|
|
1921
1184
|
let r = `${n}-${t.prop}`;
|
|
1922
|
-
|
|
1185
|
+
Z[r] || (this.handleChange(t, e), typeof t.change == "function" && t.cell === !0 && t.change({
|
|
1923
1186
|
row: e,
|
|
1924
1187
|
column: t,
|
|
1925
1188
|
index: n,
|
|
1926
1189
|
value: e[t.prop]
|
|
1927
|
-
})),
|
|
1928
|
-
|
|
1190
|
+
})), Z[r] = !0, this.$nextTick(() => {
|
|
1191
|
+
Z[r] = !1;
|
|
1929
1192
|
});
|
|
1930
1193
|
},
|
|
1931
1194
|
handleChange(e, t) {
|
|
1932
1195
|
e.cascader && this.$nextTick(() => {
|
|
1933
1196
|
let n = e.cascader;
|
|
1934
1197
|
n.forEach((r) => {
|
|
1935
|
-
let i = r,
|
|
1936
|
-
|
|
1937
|
-
this.crud.cascaderDIC[
|
|
1938
|
-
}), !(
|
|
1939
|
-
column:
|
|
1940
|
-
value:
|
|
1198
|
+
let i = r, o = t[e.prop], s = t.$index, c = this.findObject(this.columnOption, i);
|
|
1199
|
+
q(c) || (q(this.crud.cascaderDIC[s]) && (this.crud.cascaderDIC[s] = {}), this.crud.cascaderIndexList.includes(s) && n.forEach((e) => {
|
|
1200
|
+
this.crud.cascaderDIC[s][e.prop] = [], n.forEach((e) => t[e] = "");
|
|
1201
|
+
}), !(q(n) || q(o) || q(c)) && b({
|
|
1202
|
+
column: c,
|
|
1203
|
+
value: o,
|
|
1941
1204
|
form: t
|
|
1942
1205
|
}).then((e) => {
|
|
1943
1206
|
let n = e || [];
|
|
1944
|
-
this.crud.cascaderIndexList.includes(
|
|
1207
|
+
this.crud.cascaderIndexList.includes(s) || this.crud.cascaderIndexList.push(s), this.crud.cascaderDicList[s] || (this.crud.cascaderDicList[s] = {}), this.crud.cascaderDicList[s][i] || (this.crud.cascaderDicList[s][i] = n), this.crud.cascaderDIC[s][i] = n, !q(n[c.cascaderIndex]) && !q(n) && !q(c.cascaderIndex) && (t[i] = n[c.cascaderIndex][(c.props || {}).value || a.value]);
|
|
1945
1208
|
}));
|
|
1946
1209
|
});
|
|
1947
1210
|
});
|
|
1948
1211
|
},
|
|
1949
1212
|
handleDetail(e, t) {
|
|
1950
|
-
let n = t.parentProp ? (this.crud.cascaderDIC[e.$index] || {})[t.prop] : this.crud.DIC[t.prop], r =
|
|
1951
|
-
return !
|
|
1213
|
+
let n = t.parentProp ? (this.crud.cascaderDIC[e.$index] || {})[t.prop] : this.crud.DIC[t.prop], r = Y(e, t, this.crud.tableOption, n);
|
|
1214
|
+
return !q(n) && this.crud.tableOption.filterDic !== !0 && (e[`$${t.prop}`] = r), r;
|
|
1952
1215
|
},
|
|
1953
1216
|
corArray(e, t) {
|
|
1954
1217
|
let n = this.handleDetail(e, t);
|
|
1955
|
-
return Array.isArray(n) || (n =
|
|
1218
|
+
return Array.isArray(n) || (n = q(n) ? [] : n.split(" | ")), c(n);
|
|
1956
1219
|
},
|
|
1957
1220
|
openImg(e, t, n) {
|
|
1958
1221
|
let r = this.getImgList(e, t);
|
|
@@ -1964,19 +1227,19 @@ var dr = /* @__PURE__ */ y(lr, [["render", ur]]), fr = {}, pr = {
|
|
|
1964
1227
|
},
|
|
1965
1228
|
getImgList(e, t) {
|
|
1966
1229
|
var n, r;
|
|
1967
|
-
let i = ((n = t.propsHttp) == null ? void 0 : n.home) || "",
|
|
1968
|
-
return
|
|
1969
|
-
|
|
1970
|
-
}),
|
|
1230
|
+
let i = ((n = t.propsHttp) == null ? void 0 : n.home) || "", o = ((r = t.props) == null ? void 0 : r.value) || a.value, s = this.corArray(e, t);
|
|
1231
|
+
return s.forEach((e, t) => {
|
|
1232
|
+
s[t] = i + (e[o] ? e[o] : e);
|
|
1233
|
+
}), s;
|
|
1971
1234
|
}
|
|
1972
1235
|
}
|
|
1973
|
-
},
|
|
1236
|
+
}, Pt = { key: 1 }, Ft = {
|
|
1974
1237
|
key: 0,
|
|
1975
1238
|
class: "avue-crud__img"
|
|
1976
|
-
},
|
|
1977
|
-
function
|
|
1978
|
-
let o =
|
|
1979
|
-
return e.getColumnProp(n.column, "hide") ? (
|
|
1239
|
+
}, It = ["src", "onClick"], Lt = { key: 1 }, Rt = { key: 2 }, zt = ["innerHTML"], Bt = ["textContent"];
|
|
1240
|
+
function Vt(e, t, n, r, i, a) {
|
|
1241
|
+
let o = Dn, s = $e, c = C, l = Ge, u = Ce, d = Se, f = w;
|
|
1242
|
+
return e.getColumnProp(n.column, "hide") ? (R(), E(f, {
|
|
1980
1243
|
key: n.column.prop,
|
|
1981
1244
|
prop: n.column.prop,
|
|
1982
1245
|
label: n.column.label,
|
|
@@ -1998,23 +1261,23 @@ function xr(e, t, n, r, i, a) {
|
|
|
1998
1261
|
width: e.getColumnProp(n.column, "width"),
|
|
1999
1262
|
fixed: e.getColumnProp(n.column, "fixed")
|
|
2000
1263
|
}, {
|
|
2001
|
-
header:
|
|
1264
|
+
header: W(({ $index: t }) => [a.crud.getSlotName(n.column, "H", a.crud.$slots) ? B(e.$slots, a.crud.getSlotName(n.column, "H"), I(P({ key: 0 }, {
|
|
2002
1265
|
column: n.column,
|
|
2003
1266
|
$index: t
|
|
2004
|
-
}))) : (
|
|
2005
|
-
default:
|
|
1267
|
+
}))) : (R(), O("span", Pt, U(n.column.label), 1))]),
|
|
1268
|
+
default: W(({ row: t, $index: r }) => [t.$cellEdit && n.column.cell ? (R(), E(c, {
|
|
2006
1269
|
key: 0,
|
|
2007
1270
|
prop: a.crud.isTree ? "" : `list.${r}.${n.column.prop}`,
|
|
2008
1271
|
label: a.vaildLabel(n.column, t, " "),
|
|
2009
1272
|
"label-width": a.vaildLabel(n.column, t, "1px"),
|
|
2010
1273
|
rules: n.column.rules
|
|
2011
1274
|
}, {
|
|
2012
|
-
default:
|
|
1275
|
+
default: W(() => [M(s, {
|
|
2013
1276
|
content: (a.crud.listError[`list.${r}.${n.column.prop}`] || {}).msg,
|
|
2014
1277
|
disabled: !(a.crud.listError[`list.${r}.${n.column.prop}`] || {}).valid,
|
|
2015
1278
|
placement: "top"
|
|
2016
1279
|
}, {
|
|
2017
|
-
default:
|
|
1280
|
+
default: W(() => [a.crud.getSlotName(n.column, "F", a.crud.$slots) ? B(e.$slots, a.crud.getSlotName(n.column, "F"), I(P({ key: 0 }, {
|
|
2018
1281
|
row: t,
|
|
2019
1282
|
dic: a.crud.DIC[n.column.prop],
|
|
2020
1283
|
size: a.crud.isMediumSize,
|
|
@@ -2022,7 +1285,7 @@ function xr(e, t, n, r, i, a) {
|
|
|
2022
1285
|
disabled: a.crud.btnDisabledList[r],
|
|
2023
1286
|
label: a.handleDetail(t, n.column),
|
|
2024
1287
|
$cell: t.$cellEdit
|
|
2025
|
-
}))) : (
|
|
1288
|
+
}))) : (R(), E(o, P({ key: 1 }, a.uploadFun(n.column, a.crud), {
|
|
2026
1289
|
modelValue: t[n.column.prop],
|
|
2027
1290
|
"onUpdate:modelValue": (e) => t[n.column.prop] = e,
|
|
2028
1291
|
column: n.column,
|
|
@@ -2039,9 +1302,9 @@ function xr(e, t, n, r, i, a) {
|
|
|
2039
1302
|
clearable: a.optVal(n.column.clearable, !1),
|
|
2040
1303
|
"column-slot": a.crud.mainSlot,
|
|
2041
1304
|
onChange: (e) => a.columnChange(t, n.column, r)
|
|
2042
|
-
}),
|
|
1305
|
+
}), A({ _: 2 }, [z(a.crud.mainSlot, (t) => ({
|
|
2043
1306
|
name: t,
|
|
2044
|
-
fn:
|
|
1307
|
+
fn: W((n) => [B(e.$slots, t, I(N(n)))])
|
|
2045
1308
|
}))]), 1040, [
|
|
2046
1309
|
"modelValue",
|
|
2047
1310
|
"onUpdate:modelValue",
|
|
@@ -2064,48 +1327,48 @@ function xr(e, t, n, r, i, a) {
|
|
|
2064
1327
|
"label",
|
|
2065
1328
|
"label-width",
|
|
2066
1329
|
"rules"
|
|
2067
|
-
])) : a.crud.$slots[n.column.prop] ?
|
|
1330
|
+
])) : a.crud.$slots[n.column.prop] ? B(e.$slots, n.column.prop, {
|
|
2068
1331
|
key: 1,
|
|
2069
1332
|
row: t,
|
|
2070
1333
|
index: r,
|
|
2071
1334
|
dic: a.crud.DIC[n.column.prop],
|
|
2072
1335
|
size: a.crud.isMediumSize,
|
|
2073
1336
|
label: a.handleDetail(t, n.column)
|
|
2074
|
-
}) : (
|
|
1337
|
+
}) : (R(), O(T, { key: 2 }, [["img", "upload"].includes(n.column.type) ? (R(), O("span", Ft, [(R(!0), O(T, null, z(a.getImgList(t, n.column), (e, r) => (R(), O(T, null, [a.isMediaType(e, n.column.fileType) ? (R(), E(H(a.isMediaType(e, n.column.fileType)), {
|
|
2075
1338
|
key: r,
|
|
2076
1339
|
src: e,
|
|
2077
|
-
onClick:
|
|
2078
|
-
}, null, 8, ["src", "onClick"])) : (
|
|
1340
|
+
onClick: K((e) => a.openImg(t, n.column, r), ["stop"])
|
|
1341
|
+
}, null, 8, ["src", "onClick"])) : (R(), O("i", {
|
|
2079
1342
|
key: `e_${r}`,
|
|
2080
1343
|
src: e,
|
|
2081
1344
|
class: "el-icon-document",
|
|
2082
|
-
onClick:
|
|
2083
|
-
}, null, 8,
|
|
1345
|
+
onClick: K((e) => a.openImg(t, n.column, r), ["stop"])
|
|
1346
|
+
}, null, 8, It))], 64))), 256))])) : n.column.type === "url" ? (R(), O("span", Lt, [(R(!0), O(T, null, z(a.corArray(t, n.column), (e, t) => (R(), E(l, {
|
|
2084
1347
|
key: t,
|
|
2085
1348
|
type: "primary",
|
|
2086
1349
|
href: e,
|
|
2087
1350
|
target: n.column.target || "_blank"
|
|
2088
1351
|
}, {
|
|
2089
|
-
default:
|
|
1352
|
+
default: W(() => [j(U(e), 1)]),
|
|
2090
1353
|
_: 2
|
|
2091
|
-
}, 1032, ["href", "target"]))), 128))])) : n.column.type === "rate" ? (
|
|
1354
|
+
}, 1032, ["href", "target"]))), 128))])) : n.column.type === "rate" ? (R(), O("span", Rt, [M(u, {
|
|
2092
1355
|
modelValue: t[n.column.prop],
|
|
2093
1356
|
"onUpdate:modelValue": (e) => t[n.column.prop] = e,
|
|
2094
1357
|
disabled: ""
|
|
2095
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])])) : n.column.type === "color" ? (
|
|
1358
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])])) : n.column.type === "color" ? (R(), O("i", {
|
|
2096
1359
|
key: 3,
|
|
2097
1360
|
class: "avue-crud__color",
|
|
2098
|
-
style:
|
|
2099
|
-
}, null, 4)) : n.column.type === "icon" ? (
|
|
1361
|
+
style: L({ backgroundColor: t[n.column.prop] })
|
|
1362
|
+
}, null, 4)) : n.column.type === "icon" ? (R(), E(d, {
|
|
2100
1363
|
key: 4,
|
|
2101
1364
|
text: t[n.column.prop]
|
|
2102
|
-
}, null, 8, ["text"])) : n.column.html ? (
|
|
1365
|
+
}, null, 8, ["text"])) : n.column.html ? (R(), O("span", {
|
|
2103
1366
|
key: 5,
|
|
2104
1367
|
innerHTML: a.handleDetail(t, n.column)
|
|
2105
|
-
}, null, 8,
|
|
1368
|
+
}, null, 8, zt)) : (R(), O("span", {
|
|
2106
1369
|
key: 6,
|
|
2107
|
-
textContent:
|
|
2108
|
-
}, null, 8,
|
|
1370
|
+
textContent: U(a.handleDetail(t, n.column))
|
|
1371
|
+
}, null, 8, Bt))], 64))]),
|
|
2109
1372
|
_: 3
|
|
2110
1373
|
}, 8, [
|
|
2111
1374
|
"prop",
|
|
@@ -2126,9 +1389,9 @@ function xr(e, t, n, r, i, a) {
|
|
|
2126
1389
|
"header-align",
|
|
2127
1390
|
"width",
|
|
2128
1391
|
"fixed"
|
|
2129
|
-
])) :
|
|
1392
|
+
])) : D("v-if", !0);
|
|
2130
1393
|
}
|
|
2131
|
-
var
|
|
1394
|
+
var Ht = /* @__PURE__ */ t(Nt, [["render", Vt]]), Ut = {
|
|
2132
1395
|
name: "ColumnDynamic",
|
|
2133
1396
|
inject: ["dynamic", "crud"],
|
|
2134
1397
|
props: { columnOption: Object },
|
|
@@ -2142,11 +1405,11 @@ var Sr = /* @__PURE__ */ y(pr, [["render", xr]]), Cr = {
|
|
|
2142
1405
|
e.includes(t) && (this[t] = this.dynamic[t]);
|
|
2143
1406
|
});
|
|
2144
1407
|
},
|
|
2145
|
-
methods: { optVal:
|
|
1408
|
+
methods: { optVal: h }
|
|
2146
1409
|
};
|
|
2147
|
-
function
|
|
2148
|
-
let o =
|
|
2149
|
-
return e.getColumnProp(n.columnOption, "hide") ? (
|
|
1410
|
+
function Wt(e, t, n, r, i, a) {
|
|
1411
|
+
let o = tt("ColumnDynamic", !0), s = Ht, c = w;
|
|
1412
|
+
return e.getColumnProp(n.columnOption, "hide") ? (R(), E(c, {
|
|
2150
1413
|
key: n.columnOption.prop,
|
|
2151
1414
|
prop: n.columnOption.prop,
|
|
2152
1415
|
label: n.columnOption.label,
|
|
@@ -2163,19 +1426,19 @@ function wr(e, t, n, r, i, a) {
|
|
|
2163
1426
|
width: e.getColumnProp(n.columnOption, "width"),
|
|
2164
1427
|
fixed: e.getColumnProp(n.columnOption, "fixed")
|
|
2165
1428
|
}, {
|
|
2166
|
-
default:
|
|
1429
|
+
default: W(() => [(R(!0), O(T, null, z(n.columnOption.children, (t) => (R(), O(T, null, [t.children && t.children.length > 0 ? (R(), E(o, {
|
|
2167
1430
|
key: t.prop,
|
|
2168
1431
|
"column-option": t
|
|
2169
|
-
},
|
|
1432
|
+
}, A({ _: 2 }, [z(a.crud.mainSlot, (t) => ({
|
|
2170
1433
|
name: t,
|
|
2171
|
-
fn:
|
|
2172
|
-
}))]), 1032, ["column-option"])) : (
|
|
1434
|
+
fn: W((n) => [B(e.$slots, t, P({ ref_for: !0 }, n))])
|
|
1435
|
+
}))]), 1032, ["column-option"])) : (R(), E(s, {
|
|
2173
1436
|
key: t.prop,
|
|
2174
1437
|
column: t,
|
|
2175
1438
|
"column-option": n.columnOption.children
|
|
2176
|
-
},
|
|
1439
|
+
}, A({ _: 2 }, [z(a.crud.mainSlot, (t) => ({
|
|
2177
1440
|
name: t,
|
|
2178
|
-
fn:
|
|
1441
|
+
fn: W((n) => [B(e.$slots, t, P({ ref_for: !0 }, n))])
|
|
2179
1442
|
}))]), 1032, ["column", "column-option"]))], 64))), 256))]),
|
|
2180
1443
|
_: 3
|
|
2181
1444
|
}, 8, [
|
|
@@ -2192,9 +1455,9 @@ function wr(e, t, n, r, i, a) {
|
|
|
2192
1455
|
"header-align",
|
|
2193
1456
|
"width",
|
|
2194
1457
|
"fixed"
|
|
2195
|
-
])) :
|
|
1458
|
+
])) : D("v-if", !0);
|
|
2196
1459
|
}
|
|
2197
|
-
var
|
|
1460
|
+
var Gt = /* @__PURE__ */ t(Ut, [["render", Wt]]), Kt = {
|
|
2198
1461
|
name: "Column",
|
|
2199
1462
|
inject: ["crud"],
|
|
2200
1463
|
provide() {
|
|
@@ -2206,7 +1469,7 @@ var Tr = /* @__PURE__ */ y(Cr, [["render", wr]]), Er = {
|
|
|
2206
1469
|
props: { columnOption: Array },
|
|
2207
1470
|
computed: { list() {
|
|
2208
1471
|
let e = [...this.columnOption];
|
|
2209
|
-
return e =
|
|
1472
|
+
return e = te(e, "index", (e, t) => {
|
|
2210
1473
|
var n, r;
|
|
2211
1474
|
return ((n = this.crud.objectOption[e.prop]) == null ? void 0 : n.index) - ((r = this.crud.objectOption[t.prop]) == null ? void 0 : r.index);
|
|
2212
1475
|
}), e;
|
|
@@ -2219,7 +1482,7 @@ var Tr = /* @__PURE__ */ y(Cr, [["render", wr]]), Er = {
|
|
|
2219
1482
|
handleFilters(e, t) {
|
|
2220
1483
|
if (t !== !0) return;
|
|
2221
1484
|
let n = this.crud.DIC[e.prop] || [], r = [];
|
|
2222
|
-
return
|
|
1485
|
+
return q(n) ? this.crud.cellForm.list.forEach((t) => {
|
|
2223
1486
|
r.map((e) => e.text).includes(t[e.prop]) || r.push({
|
|
2224
1487
|
text: t[e.prop],
|
|
2225
1488
|
value: t[e.prop]
|
|
@@ -2227,8 +1490,8 @@ var Tr = /* @__PURE__ */ y(Cr, [["render", wr]]), Er = {
|
|
|
2227
1490
|
}) : n.forEach((t) => {
|
|
2228
1491
|
let n = e.props || this.crud.tableOption.props || {};
|
|
2229
1492
|
r.push({
|
|
2230
|
-
text: t[n.label ||
|
|
2231
|
-
value: t[n.value ||
|
|
1493
|
+
text: t[n.label || a.label],
|
|
1494
|
+
value: t[n.value || a.value]
|
|
2232
1495
|
});
|
|
2233
1496
|
}), r;
|
|
2234
1497
|
},
|
|
@@ -2241,29 +1504,29 @@ var Tr = /* @__PURE__ */ y(Cr, [["render", wr]]), Er = {
|
|
|
2241
1504
|
}
|
|
2242
1505
|
}
|
|
2243
1506
|
};
|
|
2244
|
-
function
|
|
2245
|
-
let o =
|
|
2246
|
-
return
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
(
|
|
1507
|
+
function qt(e, t, n, r, i, a) {
|
|
1508
|
+
let o = Gt, s = Ht;
|
|
1509
|
+
return R(), O(T, null, [
|
|
1510
|
+
B(e.$slots, "header"),
|
|
1511
|
+
D(" 动态列 "),
|
|
1512
|
+
(R(!0), O(T, null, z(a.list, (t) => (R(), O(T, null, [t.children && t.children.length > 0 ? (R(), E(o, {
|
|
2250
1513
|
key: t.pop,
|
|
2251
1514
|
"column-option": t
|
|
2252
|
-
},
|
|
1515
|
+
}, A({ _: 2 }, [z(a.crud.mainSlot, (t) => ({
|
|
2253
1516
|
name: t,
|
|
2254
|
-
fn:
|
|
2255
|
-
}))]), 1032, ["column-option"])) : (
|
|
1517
|
+
fn: W((n) => [B(e.$slots, t, P({ ref_for: !0 }, n))])
|
|
1518
|
+
}))]), 1032, ["column-option"])) : (R(), E(s, {
|
|
2256
1519
|
key: t.prop,
|
|
2257
1520
|
column: t,
|
|
2258
1521
|
"column-option": n.columnOption
|
|
2259
|
-
},
|
|
1522
|
+
}, A({ _: 2 }, [z(a.crud.mainSlot, (t) => ({
|
|
2260
1523
|
name: t,
|
|
2261
|
-
fn:
|
|
1524
|
+
fn: W((n) => [B(e.$slots, t, P({ ref_for: !0 }, n))])
|
|
2262
1525
|
}))]), 1032, ["column", "column-option"]))], 64))), 256)),
|
|
2263
|
-
|
|
1526
|
+
B(e.$slots, "footer")
|
|
2264
1527
|
], 64);
|
|
2265
1528
|
}
|
|
2266
|
-
var
|
|
1529
|
+
var Jt = /* @__PURE__ */ t(Kt, [["render", qt]]), Q = (() => {
|
|
2267
1530
|
function e(e, t) {
|
|
2268
1531
|
t.value === !1 ? e.style.display = "none" : e.style.display = "";
|
|
2269
1532
|
}
|
|
@@ -2275,18 +1538,18 @@ var Or = /* @__PURE__ */ y(Er, [["render", Dr]]), kr = (() => {
|
|
|
2275
1538
|
e(t, n);
|
|
2276
1539
|
}
|
|
2277
1540
|
};
|
|
2278
|
-
})(),
|
|
1541
|
+
})(), Yt = {
|
|
2279
1542
|
name: "ColumnMenu",
|
|
2280
|
-
directives: { permission:
|
|
1543
|
+
directives: { permission: Q },
|
|
2281
1544
|
inject: {
|
|
2282
1545
|
crud: { from: "crud" },
|
|
2283
1546
|
AVUE: {
|
|
2284
|
-
from:
|
|
1547
|
+
from: r,
|
|
2285
1548
|
default: null
|
|
2286
1549
|
}
|
|
2287
1550
|
},
|
|
2288
1551
|
data() {
|
|
2289
|
-
return { config:
|
|
1552
|
+
return { config: X };
|
|
2290
1553
|
},
|
|
2291
1554
|
computed: {
|
|
2292
1555
|
menuType() {
|
|
@@ -2304,77 +1567,77 @@ var Or = /* @__PURE__ */ y(Er, [["render", Dr]]), kr = (() => {
|
|
|
2304
1567
|
}
|
|
2305
1568
|
},
|
|
2306
1569
|
methods: {
|
|
2307
|
-
optVal:
|
|
1570
|
+
optVal: h,
|
|
2308
1571
|
menuText(e) {
|
|
2309
1572
|
return ["text", "menu"].includes(this.menuType) ? "text" : e;
|
|
2310
1573
|
}
|
|
2311
1574
|
}
|
|
2312
1575
|
};
|
|
2313
|
-
function
|
|
2314
|
-
let
|
|
2315
|
-
return
|
|
1576
|
+
function Xt(e, t, n, r, a, o) {
|
|
1577
|
+
let s = i, c = Ve, l = He, u = Be, d = w, f = V("permission");
|
|
1578
|
+
return R(), O(T, null, [D(" 操作栏 "), o.optVal(o.crud.tableOption.menu, a.config.menu) && o.crud.getPermission("menu") ? (R(), E(d, {
|
|
2316
1579
|
key: "menu",
|
|
2317
1580
|
class: "avue-crud__btn",
|
|
2318
1581
|
prop: "menu",
|
|
2319
|
-
fixed:
|
|
2320
|
-
label:
|
|
2321
|
-
align:
|
|
2322
|
-
"header-align":
|
|
2323
|
-
width:
|
|
1582
|
+
fixed: o.optVal(o.crud.tableOption.menuFixed, a.config.menuFixed),
|
|
1583
|
+
label: o.crud.tableOption.menuTitle || "操作",
|
|
1584
|
+
align: o.crud.tableOption.menuAlign || a.config.menuAlign,
|
|
1585
|
+
"header-align": o.crud.tableOption.menuHeaderAlign || a.config.menuHeaderAlign,
|
|
1586
|
+
width: o.crud.isMobile ? o.crud.tableOption.menuXsWidth || a.config.menuXsWidth : o.crud.tableOption.menuWidth || a.config.menuWidth
|
|
2324
1587
|
}, {
|
|
2325
|
-
default:
|
|
1588
|
+
default: W(({ row: n, $index: r }) => [o.isMenu ? (R(), E(u, {
|
|
2326
1589
|
key: 0,
|
|
2327
|
-
size:
|
|
1590
|
+
size: o.crud.isMediumSize
|
|
2328
1591
|
}, {
|
|
2329
|
-
dropdown:
|
|
2330
|
-
default:
|
|
2331
|
-
|
|
1592
|
+
dropdown: W(() => [M(l, null, {
|
|
1593
|
+
default: W(() => [
|
|
1594
|
+
o.optVal(o.crud.tableOption.viewBtn, a.config.viewBtn) ? G((R(), E(c, {
|
|
2332
1595
|
key: 0,
|
|
2333
|
-
icon:
|
|
2334
|
-
onClick: (e) =>
|
|
1596
|
+
icon: o.crud.getBtnIcon("viewBtn"),
|
|
1597
|
+
onClick: (e) => o.crud.rowView(n, r)
|
|
2335
1598
|
}, {
|
|
2336
|
-
default:
|
|
1599
|
+
default: W(() => [j(U(o.crud.menuIcon("viewBtn")), 1)]),
|
|
2337
1600
|
_: 1
|
|
2338
|
-
}, 8, ["icon", "onClick"])), [[f,
|
|
2339
|
-
|
|
1601
|
+
}, 8, ["icon", "onClick"])), [[f, o.crud.getPermission("viewBtn", n, r)]]) : D("v-if", !0),
|
|
1602
|
+
o.optVal(o.crud.tableOption.editBtn, a.config.editBtn) ? G((R(), E(c, {
|
|
2340
1603
|
key: 1,
|
|
2341
|
-
icon:
|
|
2342
|
-
onClick: (e) =>
|
|
1604
|
+
icon: o.crud.getBtnIcon("editBtn"),
|
|
1605
|
+
onClick: (e) => o.crud.rowEdit(n, r)
|
|
2343
1606
|
}, {
|
|
2344
|
-
default:
|
|
1607
|
+
default: W(() => [j(U(o.crud.menuIcon("editBtn")), 1)]),
|
|
2345
1608
|
_: 1
|
|
2346
|
-
}, 8, ["icon", "onClick"])), [[f,
|
|
2347
|
-
|
|
1609
|
+
}, 8, ["icon", "onClick"])), [[f, o.crud.getPermission("editBtn", n, r)]]) : D("v-if", !0),
|
|
1610
|
+
o.optVal(o.crud.tableOption.copyBtn, a.config.copyBtn) ? G((R(), E(c, {
|
|
2348
1611
|
key: 2,
|
|
2349
|
-
icon:
|
|
2350
|
-
onClick: (e) =>
|
|
1612
|
+
icon: o.crud.getBtnIcon("copyBtn"),
|
|
1613
|
+
onClick: (e) => o.crud.rowCopy(n)
|
|
2351
1614
|
}, {
|
|
2352
|
-
default:
|
|
1615
|
+
default: W(() => [j(U(o.crud.menuIcon("copyBtn")), 1)]),
|
|
2353
1616
|
_: 1
|
|
2354
|
-
}, 8, ["icon", "onClick"])), [[f,
|
|
2355
|
-
|
|
1617
|
+
}, 8, ["icon", "onClick"])), [[f, o.crud.getPermission("copyBtn", n, r)]]) : D("v-if", !0),
|
|
1618
|
+
o.optVal(o.crud.tableOption.delBtn, a.config.delBtn) ? G((R(), E(c, {
|
|
2356
1619
|
key: 3,
|
|
2357
|
-
icon:
|
|
2358
|
-
onClick: (e) =>
|
|
1620
|
+
icon: o.crud.getBtnIcon("delBtn"),
|
|
1621
|
+
onClick: (e) => o.crud.rowDel(n, r)
|
|
2359
1622
|
}, {
|
|
2360
|
-
default:
|
|
1623
|
+
default: W(() => [j(U(o.crud.menuIcon("delBtn")), 1)]),
|
|
2361
1624
|
_: 1
|
|
2362
|
-
}, 8, ["icon", "onClick"])), [[f,
|
|
2363
|
-
|
|
1625
|
+
}, 8, ["icon", "onClick"])), [[f, o.crud.getPermission("delBtn", n, r)]]) : D("v-if", !0),
|
|
1626
|
+
B(e.$slots, "menuBtn", {
|
|
2364
1627
|
row: n,
|
|
2365
|
-
type:
|
|
2366
|
-
disabled:
|
|
2367
|
-
size:
|
|
1628
|
+
type: o.menuText("primary"),
|
|
1629
|
+
disabled: o.crud.btnDisabled,
|
|
1630
|
+
size: o.crud.isMediumSize,
|
|
2368
1631
|
index: r
|
|
2369
1632
|
})
|
|
2370
1633
|
]),
|
|
2371
1634
|
_: 2
|
|
2372
1635
|
}, 1024)]),
|
|
2373
|
-
default:
|
|
1636
|
+
default: W(() => [M(s, {
|
|
2374
1637
|
text: "",
|
|
2375
|
-
size:
|
|
1638
|
+
size: o.crud.isMediumSize
|
|
2376
1639
|
}, {
|
|
2377
|
-
default:
|
|
1640
|
+
default: W(() => [j(U(o.crud.tableOption.menuBtnTitle || "按钮") + " ", 1), t[0] || (t[0] = k("i", { class: "el-icon-arrow-down el-icon--right" }, null, -1))]),
|
|
2378
1641
|
_: 1
|
|
2379
1642
|
}, 8, ["size"])]),
|
|
2380
1643
|
_: 2
|
|
@@ -2382,16 +1645,16 @@ function jr(e, t, n, r, i, a) {
|
|
|
2382
1645
|
"button",
|
|
2383
1646
|
"text",
|
|
2384
1647
|
"icon"
|
|
2385
|
-
].includes(
|
|
2386
|
-
|
|
1648
|
+
].includes(o.menuType) ? (R(), O(T, { key: 1 }, [
|
|
1649
|
+
o.optVal(o.crud.tableOption.cellBtn, a.config.cellBtn) ? (R(), O(T, { key: 0 }, [o.optVal(o.crud.tableOption.editBtn, a.config.editBtn) && !n.$cellEdit ? G((R(), E(s, {
|
|
2387
1650
|
key: 0,
|
|
2388
|
-
type:
|
|
2389
|
-
icon:
|
|
2390
|
-
size:
|
|
2391
|
-
disabled:
|
|
2392
|
-
onClick:
|
|
1651
|
+
type: o.menuText("primary"),
|
|
1652
|
+
icon: o.crud.getBtnIcon("editBtn"),
|
|
1653
|
+
size: o.crud.isMediumSize,
|
|
1654
|
+
disabled: o.crud.btnDisabledList[r],
|
|
1655
|
+
onClick: K((e) => o.crud.rowCell(n, r), ["stop"])
|
|
2393
1656
|
}, {
|
|
2394
|
-
default:
|
|
1657
|
+
default: W(() => [o.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("editBtn")), 1)], 64))]),
|
|
2395
1658
|
_: 1
|
|
2396
1659
|
}, 8, [
|
|
2397
1660
|
"type",
|
|
@@ -2399,15 +1662,15 @@ function jr(e, t, n, r, i, a) {
|
|
|
2399
1662
|
"size",
|
|
2400
1663
|
"disabled",
|
|
2401
1664
|
"onClick"
|
|
2402
|
-
])), [[f,
|
|
1665
|
+
])), [[f, o.crud.getPermission("editBtn", n, r)]]) : o.optVal(o.crud.tableOption.saveBtn, a.config.saveBtn) && n.$cellEdit ? G((R(), E(s, {
|
|
2403
1666
|
key: 1,
|
|
2404
|
-
type:
|
|
2405
|
-
icon:
|
|
2406
|
-
size:
|
|
2407
|
-
disabled:
|
|
2408
|
-
onClick:
|
|
1667
|
+
type: o.menuText("primary"),
|
|
1668
|
+
icon: o.crud.getBtnIcon("saveBtn"),
|
|
1669
|
+
size: o.crud.isMediumSize,
|
|
1670
|
+
disabled: o.crud.btnDisabledList[r],
|
|
1671
|
+
onClick: K((e) => o.crud.rowCell(n, r), ["stop"])
|
|
2409
1672
|
}, {
|
|
2410
|
-
default:
|
|
1673
|
+
default: W(() => [o.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("saveBtn")), 1)], 64))]),
|
|
2411
1674
|
_: 1
|
|
2412
1675
|
}, 8, [
|
|
2413
1676
|
"type",
|
|
@@ -2415,15 +1678,15 @@ function jr(e, t, n, r, i, a) {
|
|
|
2415
1678
|
"size",
|
|
2416
1679
|
"disabled",
|
|
2417
1680
|
"onClick"
|
|
2418
|
-
])), [[f,
|
|
1681
|
+
])), [[f, o.crud.getPermission("saveBtn", n, r)]]) : D("v-if", !0), n.$cellEdit ? (R(), E(s, {
|
|
2419
1682
|
key: 2,
|
|
2420
|
-
type:
|
|
2421
|
-
icon:
|
|
2422
|
-
size:
|
|
2423
|
-
disabled:
|
|
2424
|
-
onClick:
|
|
1683
|
+
type: o.menuText("danger"),
|
|
1684
|
+
icon: o.crud.getBtnIcon("cancelBtn"),
|
|
1685
|
+
size: o.crud.isMediumSize,
|
|
1686
|
+
disabled: o.crud.btnDisabledList[r],
|
|
1687
|
+
onClick: K((e) => o.crud.rowCancel(n, r), ["stop"])
|
|
2425
1688
|
}, {
|
|
2426
|
-
default:
|
|
1689
|
+
default: W(() => [o.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("cancelBtn")), 1)], 64))]),
|
|
2427
1690
|
_: 1
|
|
2428
1691
|
}, 8, [
|
|
2429
1692
|
"type",
|
|
@@ -2431,16 +1694,16 @@ function jr(e, t, n, r, i, a) {
|
|
|
2431
1694
|
"size",
|
|
2432
1695
|
"disabled",
|
|
2433
1696
|
"onClick"
|
|
2434
|
-
])) :
|
|
2435
|
-
|
|
1697
|
+
])) : D("v-if", !0)], 64)) : D("v-if", !0),
|
|
1698
|
+
o.optVal(o.crud.tableOption.viewBtn, a.config.viewBtn) ? G((R(), E(s, {
|
|
2436
1699
|
key: 1,
|
|
2437
|
-
type:
|
|
2438
|
-
icon:
|
|
2439
|
-
size:
|
|
1700
|
+
type: o.menuText("success"),
|
|
1701
|
+
icon: o.crud.getBtnIcon("viewBtn"),
|
|
1702
|
+
size: o.crud.isMediumSize,
|
|
2440
1703
|
disabled: e.btnDisabled,
|
|
2441
|
-
onClick:
|
|
1704
|
+
onClick: K((e) => o.crud.rowView(n, r), ["stop"])
|
|
2442
1705
|
}, {
|
|
2443
|
-
default:
|
|
1706
|
+
default: W(() => [o.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("viewBtn")), 1)], 64))]),
|
|
2444
1707
|
_: 1
|
|
2445
1708
|
}, 8, [
|
|
2446
1709
|
"type",
|
|
@@ -2448,16 +1711,16 @@ function jr(e, t, n, r, i, a) {
|
|
|
2448
1711
|
"size",
|
|
2449
1712
|
"disabled",
|
|
2450
1713
|
"onClick"
|
|
2451
|
-
])), [[f,
|
|
2452
|
-
|
|
1714
|
+
])), [[f, o.crud.getPermission("viewBtn", n, r)]]) : D("v-if", !0),
|
|
1715
|
+
o.optVal(o.crud.tableOption.editBtn, a.config.editBtn) && !o.crud.tableOption.cellBtn ? G((R(), E(s, {
|
|
2453
1716
|
key: 2,
|
|
2454
|
-
type:
|
|
2455
|
-
icon:
|
|
2456
|
-
size:
|
|
1717
|
+
type: o.menuText("primary"),
|
|
1718
|
+
icon: o.crud.getBtnIcon("editBtn"),
|
|
1719
|
+
size: o.crud.isMediumSize,
|
|
2457
1720
|
disabled: e.btnDisabled,
|
|
2458
|
-
onClick:
|
|
1721
|
+
onClick: K((e) => o.crud.rowEdit(n, r), ["stop"])
|
|
2459
1722
|
}, {
|
|
2460
|
-
default:
|
|
1723
|
+
default: W(() => [o.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("editBtn")), 1)], 64))]),
|
|
2461
1724
|
_: 1
|
|
2462
1725
|
}, 8, [
|
|
2463
1726
|
"type",
|
|
@@ -2465,16 +1728,16 @@ function jr(e, t, n, r, i, a) {
|
|
|
2465
1728
|
"size",
|
|
2466
1729
|
"disabled",
|
|
2467
1730
|
"onClick"
|
|
2468
|
-
])), [[f,
|
|
2469
|
-
|
|
1731
|
+
])), [[f, o.crud.getPermission("editBtn", n, r)]]) : D("v-if", !0),
|
|
1732
|
+
o.optVal(o.crud.tableOption.copyBtn, a.config.copyBtn) ? G((R(), E(s, {
|
|
2470
1733
|
key: 3,
|
|
2471
|
-
type:
|
|
2472
|
-
icon:
|
|
2473
|
-
size:
|
|
1734
|
+
type: o.menuText("primary"),
|
|
1735
|
+
icon: o.crud.getBtnIcon("copyBtn"),
|
|
1736
|
+
size: o.crud.isMediumSize,
|
|
2474
1737
|
disabled: e.btnDisabled,
|
|
2475
|
-
onClick:
|
|
1738
|
+
onClick: K((e) => o.crud.rowCopy(n), ["stop"])
|
|
2476
1739
|
}, {
|
|
2477
|
-
default:
|
|
1740
|
+
default: W(() => [o.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("copyBtn")), 1)], 64))]),
|
|
2478
1741
|
_: 1
|
|
2479
1742
|
}, 8, [
|
|
2480
1743
|
"type",
|
|
@@ -2482,16 +1745,16 @@ function jr(e, t, n, r, i, a) {
|
|
|
2482
1745
|
"size",
|
|
2483
1746
|
"disabled",
|
|
2484
1747
|
"onClick"
|
|
2485
|
-
])), [[f,
|
|
2486
|
-
|
|
1748
|
+
])), [[f, o.crud.getPermission("copyBtn", n, r)]]) : D("v-if", !0),
|
|
1749
|
+
o.optVal(o.crud.tableOption.delBtn, a.config.delBtn) && !n.$cellEdit ? G((R(), E(s, {
|
|
2487
1750
|
key: 4,
|
|
2488
|
-
type:
|
|
2489
|
-
icon:
|
|
2490
|
-
size:
|
|
1751
|
+
type: o.menuText("danger"),
|
|
1752
|
+
icon: o.crud.getBtnIcon("delBtn"),
|
|
1753
|
+
size: o.crud.isMediumSize,
|
|
2491
1754
|
disabled: e.btnDisabled,
|
|
2492
|
-
onClick:
|
|
1755
|
+
onClick: K((e) => o.crud.rowDel(n, r), ["stop"])
|
|
2493
1756
|
}, {
|
|
2494
|
-
default:
|
|
1757
|
+
default: W(() => [o.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("delBtn")), 1)], 64))]),
|
|
2495
1758
|
_: 1
|
|
2496
1759
|
}, 8, [
|
|
2497
1760
|
"type",
|
|
@@ -2499,12 +1762,12 @@ function jr(e, t, n, r, i, a) {
|
|
|
2499
1762
|
"size",
|
|
2500
1763
|
"disabled",
|
|
2501
1764
|
"onClick"
|
|
2502
|
-
])), [[f,
|
|
2503
|
-
], 64)) :
|
|
1765
|
+
])), [[f, o.crud.getPermission("delBtn", n, r)]]) : D("v-if", !0)
|
|
1766
|
+
], 64)) : D("v-if", !0), B(e.$slots, "menu", {
|
|
2504
1767
|
row: n,
|
|
2505
|
-
type:
|
|
2506
|
-
disabled:
|
|
2507
|
-
size:
|
|
1768
|
+
type: o.menuText("primary"),
|
|
1769
|
+
disabled: o.crud.btnDisabled,
|
|
1770
|
+
size: o.crud.isMediumSize,
|
|
2508
1771
|
index: r
|
|
2509
1772
|
})]),
|
|
2510
1773
|
_: 3
|
|
@@ -2514,19 +1777,19 @@ function jr(e, t, n, r, i, a) {
|
|
|
2514
1777
|
"align",
|
|
2515
1778
|
"header-align",
|
|
2516
1779
|
"width"
|
|
2517
|
-
])) :
|
|
1780
|
+
])) : D("v-if", !0)], 2112);
|
|
2518
1781
|
}
|
|
2519
|
-
var
|
|
1782
|
+
var Zt = /* @__PURE__ */ t(Yt, [["render", Xt]]), Qt = {
|
|
2520
1783
|
name: "ColumnDefault",
|
|
2521
1784
|
inject: ["crud"],
|
|
2522
1785
|
data() {
|
|
2523
|
-
return { config:
|
|
1786
|
+
return { config: X };
|
|
2524
1787
|
},
|
|
2525
1788
|
mounted() {
|
|
2526
1789
|
this.setSort();
|
|
2527
1790
|
},
|
|
2528
1791
|
methods: {
|
|
2529
|
-
optVal:
|
|
1792
|
+
optVal: h,
|
|
2530
1793
|
indexMethod(e) {
|
|
2531
1794
|
return e + 1 + ((this.crud.page.currentPage || 1) - 1) * (this.crud.page.pageSize || 10);
|
|
2532
1795
|
},
|
|
@@ -2554,26 +1817,26 @@ var Mr = /* @__PURE__ */ y(Ar, [["render", jr]]), Nr = {
|
|
|
2554
1817
|
}
|
|
2555
1818
|
}
|
|
2556
1819
|
};
|
|
2557
|
-
function
|
|
2558
|
-
let o =
|
|
2559
|
-
return
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
a.crud.tableOption.expand ? (
|
|
1820
|
+
function $t(e, t, n, r, i, a) {
|
|
1821
|
+
let o = w;
|
|
1822
|
+
return R(), O(T, null, [
|
|
1823
|
+
M(o, { width: "1px" }),
|
|
1824
|
+
D(" 折叠面板 "),
|
|
1825
|
+
a.crud.tableOption.expand ? (R(), E(o, {
|
|
2563
1826
|
key: "expand",
|
|
2564
1827
|
type: "expand",
|
|
2565
1828
|
width: a.crud.tableOption.expandWidth || i.config.expandWidth,
|
|
2566
1829
|
fixed: a.optVal(a.crud.tableOption.expandFixed, i.config.expandFixed),
|
|
2567
1830
|
align: "center"
|
|
2568
1831
|
}, {
|
|
2569
|
-
default:
|
|
1832
|
+
default: W(({ row: t }) => [B(e.$slots, "expand", {
|
|
2570
1833
|
row: t,
|
|
2571
1834
|
index: t.$index
|
|
2572
1835
|
})]),
|
|
2573
1836
|
_: 3
|
|
2574
|
-
}, 8, ["width", "fixed"])) :
|
|
2575
|
-
|
|
2576
|
-
a.crud.tableOption.selection ? (
|
|
1837
|
+
}, 8, ["width", "fixed"])) : D("v-if", !0),
|
|
1838
|
+
D(" 选择框 "),
|
|
1839
|
+
a.crud.tableOption.selection ? (R(), E(o, {
|
|
2577
1840
|
key: "selection",
|
|
2578
1841
|
fixed: a.optVal(a.crud.tableOption.selectionFixed, i.config.selectionFixed),
|
|
2579
1842
|
type: "selection",
|
|
@@ -2586,9 +1849,9 @@ function Pr(e, t, n, r, i, a) {
|
|
|
2586
1849
|
"selectable",
|
|
2587
1850
|
"reserve-selection",
|
|
2588
1851
|
"width"
|
|
2589
|
-
])) :
|
|
2590
|
-
|
|
2591
|
-
a.optVal(a.crud.tableOption.index) ? (
|
|
1852
|
+
])) : D("v-if", !0),
|
|
1853
|
+
D(" 序号 "),
|
|
1854
|
+
a.optVal(a.crud.tableOption.index) ? (R(), E(o, {
|
|
2592
1855
|
key: "index",
|
|
2593
1856
|
fixed: a.optVal(a.crud.tableOption.indexFixed, i.config.indexFixed),
|
|
2594
1857
|
label: a.crud.tableOption.indexLabel || i.config.indexLabel,
|
|
@@ -2601,12 +1864,12 @@ function Pr(e, t, n, r, i, a) {
|
|
|
2601
1864
|
"label",
|
|
2602
1865
|
"width",
|
|
2603
1866
|
"index"
|
|
2604
|
-
])) :
|
|
1867
|
+
])) : D("v-if", !0)
|
|
2605
1868
|
], 64);
|
|
2606
1869
|
}
|
|
2607
|
-
var
|
|
1870
|
+
var en = /* @__PURE__ */ t(Qt, [["render", $t]]), tn = {
|
|
2608
1871
|
name: "HeaderMenu",
|
|
2609
|
-
directives: { permission:
|
|
1872
|
+
directives: { permission: Q },
|
|
2610
1873
|
inject: ["crud"],
|
|
2611
1874
|
data() {
|
|
2612
1875
|
return {
|
|
@@ -2648,14 +1911,14 @@ var Fr = /* @__PURE__ */ y(Nr, [["render", Pr]]), Ir = {
|
|
|
2648
1911
|
}
|
|
2649
1912
|
}
|
|
2650
1913
|
] },
|
|
2651
|
-
config:
|
|
1914
|
+
config: X
|
|
2652
1915
|
};
|
|
2653
1916
|
},
|
|
2654
1917
|
created() {
|
|
2655
1918
|
this.initFun();
|
|
2656
1919
|
},
|
|
2657
1920
|
methods: {
|
|
2658
|
-
optVal:
|
|
1921
|
+
optVal: h,
|
|
2659
1922
|
dateChange(e) {
|
|
2660
1923
|
this.dateCreate ? this.crud.$emit("date-change", e) : this.dateCreate = !0;
|
|
2661
1924
|
},
|
|
@@ -2669,127 +1932,127 @@ var Fr = /* @__PURE__ */ y(Nr, [["render", Pr]]), Ir = {
|
|
|
2669
1932
|
this.$Print(this.crud.$refs.table);
|
|
2670
1933
|
}
|
|
2671
1934
|
}
|
|
2672
|
-
},
|
|
1935
|
+
}, nn = { class: "avue-crud__menu" }, rn = {
|
|
2673
1936
|
key: 0,
|
|
2674
1937
|
class: "avue-crud__left"
|
|
2675
|
-
},
|
|
1938
|
+
}, an = {
|
|
2676
1939
|
key: 1,
|
|
2677
1940
|
class: "avue-crud__right"
|
|
2678
1941
|
};
|
|
2679
|
-
function
|
|
2680
|
-
let
|
|
2681
|
-
return
|
|
2682
|
-
|
|
1942
|
+
function on(e, t, n, r, a, o) {
|
|
1943
|
+
let s = i, c = he, l = V("permission");
|
|
1944
|
+
return R(), O("div", nn, [o.optVal(o.crud.tableOption.menuLeft, !0) ? (R(), O("div", rn, [
|
|
1945
|
+
o.optVal(o.crud.tableOption.addBtn, a.config.addBtn) ? G((R(), E(s, {
|
|
2683
1946
|
key: 0,
|
|
2684
1947
|
type: "primary",
|
|
2685
|
-
icon:
|
|
2686
|
-
size:
|
|
2687
|
-
onClick:
|
|
1948
|
+
icon: o.crud.getBtnIcon("addBtn"),
|
|
1949
|
+
size: o.crud.isMediumSize,
|
|
1950
|
+
onClick: o.crud.rowAdd
|
|
2688
1951
|
}, {
|
|
2689
|
-
default:
|
|
1952
|
+
default: W(() => [o.crud.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("addBtn")), 1)], 64))]),
|
|
2690
1953
|
_: 1
|
|
2691
1954
|
}, 8, [
|
|
2692
1955
|
"icon",
|
|
2693
1956
|
"size",
|
|
2694
1957
|
"onClick"
|
|
2695
|
-
])), [[
|
|
2696
|
-
|
|
1958
|
+
])), [[l, o.crud.getPermission("addBtn")]]) : D("v-if", !0),
|
|
1959
|
+
o.optVal(o.crud.tableOption.addRowBtn, a.config.addRowBtn) ? G((R(), E(s, {
|
|
2697
1960
|
key: 1,
|
|
2698
1961
|
type: "primary",
|
|
2699
|
-
icon:
|
|
2700
|
-
size:
|
|
2701
|
-
onClick:
|
|
1962
|
+
icon: o.crud.getBtnIcon("addBtn"),
|
|
1963
|
+
size: o.crud.isMediumSize,
|
|
1964
|
+
onClick: o.crud.rowCellAdd
|
|
2702
1965
|
}, {
|
|
2703
|
-
default:
|
|
1966
|
+
default: W(() => [o.crud.isIconMenu ? D("v-if", !0) : (R(), O(T, { key: 0 }, [j(U(o.crud.menuIcon("addBtn")), 1)], 64))]),
|
|
2704
1967
|
_: 1
|
|
2705
1968
|
}, 8, [
|
|
2706
1969
|
"icon",
|
|
2707
1970
|
"size",
|
|
2708
1971
|
"onClick"
|
|
2709
|
-
])), [[
|
|
2710
|
-
|
|
2711
|
-
])) :
|
|
2712
|
-
|
|
1972
|
+
])), [[l, o.crud.getPermission("addRowBtn")]]) : D("v-if", !0),
|
|
1973
|
+
B(e.$slots, "menuLeft", { size: o.crud.isMediumSize })
|
|
1974
|
+
])) : D("v-if", !0), o.optVal(o.crud.tableOption.menuRight, !0) ? (R(), O("div", an, [
|
|
1975
|
+
o.optVal(o.crud.tableOption.dateBtn, a.config.dateBtn) ? (R(), E(c, {
|
|
2713
1976
|
key: 0,
|
|
2714
1977
|
type: "datetimerange",
|
|
2715
1978
|
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
2716
1979
|
format: "yyyy-MM-dd HH:mm:ss",
|
|
2717
|
-
"picker-options":
|
|
1980
|
+
"picker-options": a.pickerOptions,
|
|
2718
1981
|
style: {
|
|
2719
1982
|
display: "inline-block",
|
|
2720
1983
|
"margin-right": "20px"
|
|
2721
1984
|
},
|
|
2722
|
-
size:
|
|
2723
|
-
onChange:
|
|
1985
|
+
size: o.crud.isMediumSize,
|
|
1986
|
+
onChange: o.dateChange
|
|
2724
1987
|
}, null, 8, [
|
|
2725
1988
|
"picker-options",
|
|
2726
1989
|
"size",
|
|
2727
1990
|
"onChange"
|
|
2728
|
-
])) :
|
|
2729
|
-
|
|
2730
|
-
|
|
1991
|
+
])) : D("v-if", !0),
|
|
1992
|
+
B(e.$slots, "menuRight", { size: o.crud.isMediumSize }),
|
|
1993
|
+
o.optVal(o.crud.tableOption.excelBtn, a.config.excelBtn) ? G((R(), E(s, {
|
|
2731
1994
|
key: 1,
|
|
2732
|
-
icon:
|
|
1995
|
+
icon: o.crud.getBtnIcon("excelBtn"),
|
|
2733
1996
|
circle: "",
|
|
2734
|
-
size:
|
|
2735
|
-
onClick:
|
|
1997
|
+
size: o.crud.isMediumSize,
|
|
1998
|
+
onClick: o.rowExcel
|
|
2736
1999
|
}, null, 8, [
|
|
2737
2000
|
"icon",
|
|
2738
2001
|
"size",
|
|
2739
2002
|
"onClick"
|
|
2740
|
-
])), [[
|
|
2741
|
-
|
|
2003
|
+
])), [[l, o.crud.getPermission("excelBtn")]]) : D("v-if", !0),
|
|
2004
|
+
o.optVal(o.crud.tableOption.printBtn, a.config.printBtn) ? G((R(), E(s, {
|
|
2742
2005
|
key: 2,
|
|
2743
|
-
icon:
|
|
2006
|
+
icon: o.crud.getBtnIcon("printBtn"),
|
|
2744
2007
|
circle: "",
|
|
2745
|
-
size:
|
|
2746
|
-
onClick:
|
|
2008
|
+
size: o.crud.isMediumSize,
|
|
2009
|
+
onClick: o.rowPrint
|
|
2747
2010
|
}, null, 8, [
|
|
2748
2011
|
"icon",
|
|
2749
2012
|
"size",
|
|
2750
2013
|
"onClick"
|
|
2751
|
-
])), [[
|
|
2752
|
-
|
|
2014
|
+
])), [[l, o.crud.getPermission("printBtn")]]) : D("v-if", !0),
|
|
2015
|
+
o.optVal(o.crud.tableOption.refreshBtn, a.config.refreshBtn) ? G((R(), E(s, {
|
|
2753
2016
|
key: 3,
|
|
2754
|
-
icon:
|
|
2017
|
+
icon: o.crud.getBtnIcon("refreshBtn"),
|
|
2755
2018
|
circle: "",
|
|
2756
|
-
size:
|
|
2757
|
-
onClick:
|
|
2019
|
+
size: o.crud.isMediumSize,
|
|
2020
|
+
onClick: o.crud.refreshChange
|
|
2758
2021
|
}, null, 8, [
|
|
2759
2022
|
"icon",
|
|
2760
2023
|
"size",
|
|
2761
2024
|
"onClick"
|
|
2762
|
-
])), [[
|
|
2763
|
-
|
|
2025
|
+
])), [[l, o.crud.getPermission("refreshBtn")]]) : D("v-if", !0),
|
|
2026
|
+
o.optVal(o.crud.tableOption.columnBtn, a.config.columnBtn) ? G((R(), E(s, {
|
|
2764
2027
|
key: 4,
|
|
2765
|
-
icon:
|
|
2028
|
+
icon: o.crud.getBtnIcon("columnBtn"),
|
|
2766
2029
|
circle: "",
|
|
2767
|
-
size:
|
|
2768
|
-
onClick: t[0] || (t[0] = (e) =>
|
|
2769
|
-
}, null, 8, ["icon", "size"])), [[
|
|
2770
|
-
(
|
|
2030
|
+
size: o.crud.isMediumSize,
|
|
2031
|
+
onClick: t[0] || (t[0] = (e) => o.crud.$refs.dialogColumn.handleShow())
|
|
2032
|
+
}, null, 8, ["icon", "size"])), [[l, o.crud.getPermission("columnBtn")]]) : D("v-if", !0),
|
|
2033
|
+
(o.crud.$refs.headerSearch || {}).searchFlag && o.optVal(o.crud.tableOption.searchShowBtn, !0) ? (R(), E(s, {
|
|
2771
2034
|
key: 5,
|
|
2772
|
-
icon:
|
|
2035
|
+
icon: o.crud.getBtnIcon("searchBtn"),
|
|
2773
2036
|
circle: "",
|
|
2774
|
-
size:
|
|
2775
|
-
onClick: t[1] || (t[1] = (e) =>
|
|
2776
|
-
}, null, 8, ["icon", "size"])) :
|
|
2777
|
-
|
|
2037
|
+
size: o.crud.isMediumSize,
|
|
2038
|
+
onClick: t[1] || (t[1] = (e) => o.crud.$refs.headerSearch.handleSearchShow())
|
|
2039
|
+
}, null, 8, ["icon", "size"])) : D("v-if", !0),
|
|
2040
|
+
o.optVal(o.crud.tableOption.filterBtn, a.config.filterBtn) ? G((R(), E(s, {
|
|
2778
2041
|
key: 6,
|
|
2779
|
-
icon:
|
|
2042
|
+
icon: o.crud.getBtnIcon("filterBtn"),
|
|
2780
2043
|
circle: "",
|
|
2781
|
-
size:
|
|
2782
|
-
onClick: t[2] || (t[2] = (e) =>
|
|
2783
|
-
}, null, 8, ["icon", "size"])), [[
|
|
2784
|
-
])) :
|
|
2044
|
+
size: o.crud.isMediumSize,
|
|
2045
|
+
onClick: t[2] || (t[2] = (e) => o.crud.$refs.dialogFilter.handleShow())
|
|
2046
|
+
}, null, 8, ["icon", "size"])), [[l, o.crud.getPermission("filterBtn")]]) : D("v-if", !0)
|
|
2047
|
+
])) : D("v-if", !0)]);
|
|
2785
2048
|
}
|
|
2786
|
-
var
|
|
2049
|
+
var sn = /* @__PURE__ */ t(tn, [["render", on]]), cn = {
|
|
2787
2050
|
name: "HeaderSearch",
|
|
2788
|
-
mixins: [
|
|
2051
|
+
mixins: [y],
|
|
2789
2052
|
inject: {
|
|
2790
2053
|
crud: { from: "crud" },
|
|
2791
2054
|
AVUE: {
|
|
2792
|
-
from:
|
|
2055
|
+
from: r,
|
|
2793
2056
|
default: null
|
|
2794
2057
|
}
|
|
2795
2058
|
},
|
|
@@ -2812,7 +2075,7 @@ var Vr = /* @__PURE__ */ y(Ir, [["render", Br]]), Hr = {
|
|
|
2812
2075
|
},
|
|
2813
2076
|
option() {
|
|
2814
2077
|
let e = this.crud.option, t = (t = []) => {
|
|
2815
|
-
t =
|
|
2078
|
+
t = c(t);
|
|
2816
2079
|
let n = [], r = 0;
|
|
2817
2080
|
return t = t.sort((e, t) => (t.searchOrder || 0) - (e.searchOrder || 0)), t.forEach((t) => {
|
|
2818
2081
|
if (t.search) {
|
|
@@ -2825,13 +2088,13 @@ var Vr = /* @__PURE__ */ y(Ir, [["render", Br]]), Hr = {
|
|
|
2825
2088
|
r = r.replace(r[0], r[0].toLowerCase()), a[r] = t[e];
|
|
2826
2089
|
}
|
|
2827
2090
|
}), t = Object.assign(t, a, {
|
|
2828
|
-
type:
|
|
2091
|
+
type: oe(t),
|
|
2829
2092
|
detail: !1,
|
|
2830
|
-
dicFlag: t.cascader ? !0 :
|
|
2831
|
-
span: t.searchSpan || e.searchSpan ||
|
|
2093
|
+
dicFlag: t.cascader ? !0 : h(t.dicFlag, !1),
|
|
2094
|
+
span: t.searchSpan || e.searchSpan || X.searchSpan,
|
|
2832
2095
|
control: t.searchControl,
|
|
2833
|
-
gutter: t.searchGutter || e.searchGutter ||
|
|
2834
|
-
labelWidth: t.searchLabelWidth || e.searchLabelWidth ||
|
|
2096
|
+
gutter: t.searchGutter || e.searchGutter || X.searchGutter,
|
|
2097
|
+
labelWidth: t.searchLabelWidth || e.searchLabelWidth || X.searchLabelWidth,
|
|
2835
2098
|
labelPosition: t.searchLabelPosition || e.searchLabelPosition,
|
|
2836
2099
|
size: t.searchSize || e.searchSize,
|
|
2837
2100
|
value: t.searchValue,
|
|
@@ -2846,7 +2109,7 @@ var Vr = /* @__PURE__ */ y(Ir, [["render", Br]]), Hr = {
|
|
|
2846
2109
|
}), n;
|
|
2847
2110
|
};
|
|
2848
2111
|
return ((n) => {
|
|
2849
|
-
let r =
|
|
2112
|
+
let r = c(n);
|
|
2850
2113
|
return r.column = t(this.crud.propOption), r = Object.assign(r, {
|
|
2851
2114
|
rowKey: e.searchRowKey || "null",
|
|
2852
2115
|
tabs: !1,
|
|
@@ -2859,10 +2122,10 @@ var Vr = /* @__PURE__ */ y(Ir, [["render", Br]]), Hr = {
|
|
|
2859
2122
|
enter: e.searchEnter,
|
|
2860
2123
|
size: e.searchSize,
|
|
2861
2124
|
submitText: e.searchBtnText || "搜 索",
|
|
2862
|
-
submitBtn:
|
|
2125
|
+
submitBtn: h(e.searchBtn, X.searchSubBtn),
|
|
2863
2126
|
submitIcon: this.crud.getBtnIcon("searchBtn"),
|
|
2864
2127
|
emptyText: e.emptyBtnText || "清 空",
|
|
2865
|
-
emptyBtn:
|
|
2128
|
+
emptyBtn: h(e.emptyBtn, X.emptyBtn),
|
|
2866
2129
|
emptyIcon: this.crud.getBtnIcon("emptyBtn"),
|
|
2867
2130
|
menuSpan: this.show || !this.isSearchIcon || e.searchMenuSpan < 6 ? e.searchMenuSpan : 6,
|
|
2868
2131
|
menuPosition: e.searchMenuPosition || "center",
|
|
@@ -2873,7 +2136,7 @@ var Vr = /* @__PURE__ */ y(Ir, [["render", Br]]), Hr = {
|
|
|
2873
2136
|
},
|
|
2874
2137
|
isSearchIcon() {
|
|
2875
2138
|
var e;
|
|
2876
|
-
return
|
|
2139
|
+
return h(this.crud.option.searchIcon, (e = this.AVUE) == null ? void 0 : e.searchIcon) && this.searchLen > this.searchIndex;
|
|
2877
2140
|
},
|
|
2878
2141
|
searchLen() {
|
|
2879
2142
|
let e = 0;
|
|
@@ -2920,7 +2183,7 @@ var Vr = /* @__PURE__ */ y(Ir, [["render", Br]]), Hr = {
|
|
|
2920
2183
|
return e.replace("Search", "");
|
|
2921
2184
|
},
|
|
2922
2185
|
searchChange(e, t) {
|
|
2923
|
-
e =
|
|
2186
|
+
e = u(e), this.crud.propOption.forEach((t) => {
|
|
2924
2187
|
t.searchProp && (e[t.searchProp] = e[t.prop], delete e[t.prop]);
|
|
2925
2188
|
}), this.crud.$emit("search-change", e, t);
|
|
2926
2189
|
},
|
|
@@ -2935,52 +2198,52 @@ var Vr = /* @__PURE__ */ y(Ir, [["render", Br]]), Hr = {
|
|
|
2935
2198
|
},
|
|
2936
2199
|
dataFormat() {
|
|
2937
2200
|
let e = this.crud.option;
|
|
2938
|
-
this.searchShow =
|
|
2201
|
+
this.searchShow = h(e.searchShow, X.searchShow);
|
|
2939
2202
|
}
|
|
2940
2203
|
}
|
|
2941
2204
|
};
|
|
2942
|
-
function
|
|
2943
|
-
let
|
|
2944
|
-
return
|
|
2205
|
+
function ln(e, t, n, r, a, o) {
|
|
2206
|
+
let s = i, c = $, l = Ie;
|
|
2207
|
+
return o.searchFlag ? G((R(), E(l, {
|
|
2945
2208
|
key: 0,
|
|
2946
|
-
shadow:
|
|
2209
|
+
shadow: o.crud.isCard,
|
|
2947
2210
|
class: "avue-crud__search"
|
|
2948
2211
|
}, {
|
|
2949
|
-
default:
|
|
2950
|
-
row:
|
|
2951
|
-
search:
|
|
2952
|
-
size:
|
|
2953
|
-
}),
|
|
2212
|
+
default: W(() => [B(e.$slots, "search", {
|
|
2213
|
+
row: o.searchForm,
|
|
2214
|
+
search: o.searchForm,
|
|
2215
|
+
size: o.crud.controlSize
|
|
2216
|
+
}), M(c, {
|
|
2954
2217
|
ref: "form",
|
|
2955
|
-
modelValue:
|
|
2956
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
2957
|
-
option:
|
|
2958
|
-
onSubmit:
|
|
2959
|
-
onResetChange:
|
|
2218
|
+
modelValue: o.searchForm,
|
|
2219
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => o.searchForm = e),
|
|
2220
|
+
option: o.option,
|
|
2221
|
+
onSubmit: o.searchChange,
|
|
2222
|
+
onResetChange: o.resetChange
|
|
2960
2223
|
}, {
|
|
2961
|
-
menuForm:
|
|
2962
|
-
search:
|
|
2963
|
-
row:
|
|
2964
|
-
})))),
|
|
2224
|
+
menuForm: W((n) => [B(e.$slots, "searchMenu", I(N(Object.assign(n, {
|
|
2225
|
+
search: o.searchForm,
|
|
2226
|
+
row: o.searchForm
|
|
2227
|
+
})))), o.isSearchIcon ? (R(), O(T, { key: 0 }, [a.show === !1 ? (R(), E(s, {
|
|
2965
2228
|
key: 0,
|
|
2966
2229
|
text: "",
|
|
2967
2230
|
icon: "el-icon-arrow-down",
|
|
2968
|
-
onClick: t[0] || (t[0] = (e) =>
|
|
2231
|
+
onClick: t[0] || (t[0] = (e) => a.show = !0)
|
|
2969
2232
|
}, {
|
|
2970
|
-
default:
|
|
2233
|
+
default: W(() => [...t[3] || (t[3] = [j("展 开", -1)])]),
|
|
2971
2234
|
_: 1
|
|
2972
|
-
})) :
|
|
2235
|
+
})) : D("v-if", !0), a.show === !0 ? (R(), E(s, {
|
|
2973
2236
|
key: 1,
|
|
2974
2237
|
text: "",
|
|
2975
2238
|
icon: "el-icon-arrow-up",
|
|
2976
|
-
onClick: t[1] || (t[1] = (e) =>
|
|
2239
|
+
onClick: t[1] || (t[1] = (e) => a.show = !1)
|
|
2977
2240
|
}, {
|
|
2978
|
-
default:
|
|
2241
|
+
default: W(() => [...t[4] || (t[4] = [j("收 缩", -1)])]),
|
|
2979
2242
|
_: 1
|
|
2980
|
-
})) :
|
|
2981
|
-
default:
|
|
2982
|
-
search:
|
|
2983
|
-
row:
|
|
2243
|
+
})) : D("v-if", !0)], 64)) : D("v-if", !0)]),
|
|
2244
|
+
default: W(() => [(R(!0), O(T, null, z(o.crud.searchSlot, (t) => B(e.$slots, t, P({ ref_for: !0 }, Object.assign(e.scope, {
|
|
2245
|
+
search: o.searchForm,
|
|
2246
|
+
row: o.searchForm
|
|
2984
2247
|
})))), 256))]),
|
|
2985
2248
|
_: 3
|
|
2986
2249
|
}, 8, [
|
|
@@ -2990,12 +2253,12 @@ function Ur(e, t, n, r, i, a) {
|
|
|
2990
2253
|
"onResetChange"
|
|
2991
2254
|
])]),
|
|
2992
2255
|
_: 3
|
|
2993
|
-
}, 8, ["shadow"])), [[
|
|
2256
|
+
}, 8, ["shadow"])), [[rt, a.searchShow && o.searchFlag]]) : D("v-if", !0);
|
|
2994
2257
|
}
|
|
2995
|
-
var
|
|
2996
|
-
mixins: [
|
|
2258
|
+
var un = /* @__PURE__ */ t(cn, [["render", ln]]), dn = {
|
|
2259
|
+
mixins: [y],
|
|
2997
2260
|
inject: { AVUE: {
|
|
2998
|
-
from:
|
|
2261
|
+
from: r,
|
|
2999
2262
|
default: null
|
|
3000
2263
|
} },
|
|
3001
2264
|
props: {
|
|
@@ -3054,10 +2317,10 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3054
2317
|
},
|
|
3055
2318
|
computed: {
|
|
3056
2319
|
resultOption() {
|
|
3057
|
-
return Object.assign(
|
|
2320
|
+
return Object.assign(c(this.tableOption), { column: this.propOption });
|
|
3058
2321
|
},
|
|
3059
2322
|
rowKey() {
|
|
3060
|
-
return this.tableOption.rowKey ||
|
|
2323
|
+
return this.tableOption.rowKey || a.rowKey;
|
|
3061
2324
|
},
|
|
3062
2325
|
formRules() {
|
|
3063
2326
|
let e = {};
|
|
@@ -3085,7 +2348,7 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3085
2348
|
},
|
|
3086
2349
|
updateDic(e, t) {
|
|
3087
2350
|
let n = this.findObject(this.propOption, e);
|
|
3088
|
-
|
|
2351
|
+
q(t) && q(e) ? this.handleLoadDic() : q(t) && !q(n.dicUrl) ? b({ column: n }).then((t) => {
|
|
3089
2352
|
this.DIC[e] = t;
|
|
3090
2353
|
}) : this.DIC[e] = t;
|
|
3091
2354
|
},
|
|
@@ -3095,19 +2358,19 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3095
2358
|
});
|
|
3096
2359
|
},
|
|
3097
2360
|
handleLocalDic() {
|
|
3098
|
-
this.handleSetDic(this.DIC,
|
|
2361
|
+
this.handleSetDic(this.DIC, _e(this.resultOption));
|
|
3099
2362
|
},
|
|
3100
2363
|
handleLoadDic() {
|
|
3101
|
-
|
|
2364
|
+
ye(this.resultOption).then((e) => this.handleSetDic(this.DIC, e));
|
|
3102
2365
|
},
|
|
3103
2366
|
handleLoadCascaderDic() {
|
|
3104
|
-
|
|
2367
|
+
ve(this.propOption, this.data).then((e) => this.handleSetDic(this.cascaderDIC, e));
|
|
3105
2368
|
}
|
|
3106
2369
|
}
|
|
3107
|
-
},
|
|
2370
|
+
}, fn = {
|
|
3108
2371
|
name: "FyCurd",
|
|
3109
|
-
directives: { permission:
|
|
3110
|
-
mixins: [
|
|
2372
|
+
directives: { permission: Q },
|
|
2373
|
+
mixins: [dn],
|
|
3111
2374
|
provide() {
|
|
3112
2375
|
return { crud: this };
|
|
3113
2376
|
},
|
|
@@ -3164,7 +2427,7 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3164
2427
|
return {
|
|
3165
2428
|
reload: Math.random(),
|
|
3166
2429
|
cellForm: { list: [] },
|
|
3167
|
-
config:
|
|
2430
|
+
config: X,
|
|
3168
2431
|
list: [],
|
|
3169
2432
|
listError: {},
|
|
3170
2433
|
tableForm: {},
|
|
@@ -3194,13 +2457,13 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3194
2457
|
return this.tableOption.columnSort;
|
|
3195
2458
|
},
|
|
3196
2459
|
rowParentKey() {
|
|
3197
|
-
return this.option.rowParentKey ||
|
|
2460
|
+
return this.option.rowParentKey || a.rowParentKey;
|
|
3198
2461
|
},
|
|
3199
2462
|
childrenKey() {
|
|
3200
|
-
return this.treeProps.children ||
|
|
2463
|
+
return this.treeProps.children || a.children;
|
|
3201
2464
|
},
|
|
3202
2465
|
hasChildrenKey() {
|
|
3203
|
-
return this.treeProps.hasChildren ||
|
|
2466
|
+
return this.treeProps.hasChildren || a.hasChildren;
|
|
3204
2467
|
},
|
|
3205
2468
|
treeProps() {
|
|
3206
2469
|
return this.tableOption.treeProps || {};
|
|
@@ -3236,7 +2499,7 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3236
2499
|
Array.isArray(n.children) ? t(n.children) : e.push(n);
|
|
3237
2500
|
});
|
|
3238
2501
|
}
|
|
3239
|
-
return t(this.columnOption), e =
|
|
2502
|
+
return t(this.columnOption), e = ae(e), e;
|
|
3240
2503
|
},
|
|
3241
2504
|
isShowSummary() {
|
|
3242
2505
|
return this.option.showSummary;
|
|
@@ -3300,8 +2563,8 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3300
2563
|
this.dataInit(), this.getTableHeight(), this.refreshTable();
|
|
3301
2564
|
},
|
|
3302
2565
|
methods: {
|
|
3303
|
-
setPx:
|
|
3304
|
-
optVal:
|
|
2566
|
+
setPx: f,
|
|
2567
|
+
optVal: h,
|
|
3305
2568
|
handleValidate(e, t, n) {
|
|
3306
2569
|
this.listError[e] || (this.listError[e] = {
|
|
3307
2570
|
valid: !1,
|
|
@@ -3309,7 +2572,7 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3309
2572
|
}), this.listError[e].valid = !t, this.listError[e].msg = n;
|
|
3310
2573
|
},
|
|
3311
2574
|
getPermission(e, t, n) {
|
|
3312
|
-
return typeof this.permission == "function" ? this.permission(e, t, n) :
|
|
2575
|
+
return typeof this.permission == "function" ? this.permission(e, t, n) : q(this.permission[e]) ? !0 : this.permission[e];
|
|
3313
2576
|
},
|
|
3314
2577
|
getTableHeight() {
|
|
3315
2578
|
this.isAutoHeight ? this.$nextTick(() => {
|
|
@@ -3333,17 +2596,17 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3333
2596
|
});
|
|
3334
2597
|
},
|
|
3335
2598
|
menuIcon(e) {
|
|
3336
|
-
return
|
|
2599
|
+
return h(this.tableOption[`${e}Text`], de(`crud.${e}`));
|
|
3337
2600
|
},
|
|
3338
2601
|
getBtnIcon(e) {
|
|
3339
2602
|
let t = `${e}Icon`;
|
|
3340
|
-
return this.tableOption[t] ||
|
|
2603
|
+
return this.tableOption[t] || X[t];
|
|
3341
2604
|
},
|
|
3342
2605
|
validateField(e) {
|
|
3343
2606
|
return this.$refs.dialogForm.$refs.tableForm.validateField(e);
|
|
3344
2607
|
},
|
|
3345
2608
|
selectClear() {
|
|
3346
|
-
this.$emit("selection-clear",
|
|
2609
|
+
this.$emit("selection-clear", c(this.tableSelect)), this.$refs.table.clearSelection();
|
|
3347
2610
|
},
|
|
3348
2611
|
toggleRowSelection(e, t) {
|
|
3349
2612
|
this.$refs.table.toggleRowSelection(e, t);
|
|
@@ -3356,7 +2619,7 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3356
2619
|
},
|
|
3357
2620
|
dataInit() {
|
|
3358
2621
|
this.list = this.data, this.list.forEach((e, t) => {
|
|
3359
|
-
e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] =
|
|
2622
|
+
e.$cellEdit && !this.cascaderFormList[t] && (this.cascaderFormList[t] = c(e)), e.$cellEdit = e.$cellEdit || !1, e.$index = t;
|
|
3360
2623
|
});
|
|
3361
2624
|
},
|
|
3362
2625
|
headerDragend(e, t, n, r) {
|
|
@@ -3429,8 +2692,8 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3429
2692
|
this.$emit("cell-dblclick", e, t, n, r);
|
|
3430
2693
|
},
|
|
3431
2694
|
rowCellAdd(e = {}) {
|
|
3432
|
-
let t = this.list.length, n =
|
|
3433
|
-
e =
|
|
2695
|
+
let t = this.list.length, n = ce(this.propOption).tableForm;
|
|
2696
|
+
e = c({
|
|
3434
2697
|
$cellEdit: !0,
|
|
3435
2698
|
$index: t,
|
|
3436
2699
|
...n,
|
|
@@ -3438,22 +2701,22 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3438
2701
|
}), this.list.push(e);
|
|
3439
2702
|
},
|
|
3440
2703
|
rowCancel(e, t) {
|
|
3441
|
-
|
|
2704
|
+
q(e[this.rowKey]) ? (this.list.splice(t, 1), delete this.cascaderDIC[t]) : (this.cascaderFormList[t].$cellEdit = !1, this.cascaderDIC[t] = this.cascaderDicList[t], this.list[t] = this.cascaderFormList[t]), delete this.cascaderDicList[t], delete this.cascaderFormList[t], this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1);
|
|
3442
2705
|
},
|
|
3443
2706
|
rowCell(e, t) {
|
|
3444
2707
|
e.$cellEdit ? this.rowCellUpdate(e, t) : this.rowCellEdit(e, t);
|
|
3445
2708
|
},
|
|
3446
2709
|
rowCellUpdate(e, t) {
|
|
3447
|
-
e =
|
|
2710
|
+
e = c(e);
|
|
3448
2711
|
let n = this.validateCellField(t), r = () => {
|
|
3449
2712
|
this.btnDisabledList[t] = !1, this.btnDisabled = !1, this.list[t].$cellEdit = !1, this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t), 1), delete this.cascaderFormList[t];
|
|
3450
2713
|
}, i = () => {
|
|
3451
2714
|
this.btnDisabledList[t] = !1, this.btnDisabled = !1;
|
|
3452
2715
|
};
|
|
3453
|
-
n && (this.btnDisabledList[t] = !0, this.btnDisabled = !0,
|
|
2716
|
+
n && (this.btnDisabledList[t] = !0, this.btnDisabled = !0, q(e[this.rowKey]) ? this.$emit("row-save", e, r, i) : this.$emit("row-update", e, t, r, i));
|
|
3454
2717
|
},
|
|
3455
2718
|
rowCellEdit(e, t) {
|
|
3456
|
-
e.$cellEdit = !0, this.cascaderFormList[t] =
|
|
2719
|
+
e.$cellEdit = !0, this.cascaderFormList[t] = c(e), this.cascaderDicList[t] = c(this.cascaderDIC[t]);
|
|
3457
2720
|
},
|
|
3458
2721
|
validateCellForm() {
|
|
3459
2722
|
return new Promise((e) => {
|
|
@@ -3488,13 +2751,13 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3488
2751
|
this.$emit("update:modelValue", this.tableForm), this.$emit("change", this.tableForm);
|
|
3489
2752
|
},
|
|
3490
2753
|
rowEdit(e, t) {
|
|
3491
|
-
this.tableForm =
|
|
2754
|
+
this.tableForm = c(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("edit");
|
|
3492
2755
|
},
|
|
3493
2756
|
rowCopy(e) {
|
|
3494
|
-
this.tableForm =
|
|
2757
|
+
this.tableForm = c(e), delete this.tableForm[this.rowKey], this.tableIndex = -1, this.setVal(), this.$refs.dialogForm.show("add");
|
|
3495
2758
|
},
|
|
3496
2759
|
rowView(e, t) {
|
|
3497
|
-
this.tableForm =
|
|
2760
|
+
this.tableForm = c(e), this.tableIndex = t, this.setVal(), this.$refs.dialogForm.show("view");
|
|
3498
2761
|
},
|
|
3499
2762
|
rowDel(e, t) {
|
|
3500
2763
|
this.$emit("row-del", e, t, () => {
|
|
@@ -3537,12 +2800,12 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3537
2800
|
tableDrop(e, t, n) {
|
|
3538
2801
|
if (!(this.isSortable !== !0 && (e === "row" && !this.isRowSort || e === "column" && !this.isColumnSort))) {
|
|
3539
2802
|
if (!window.Sortable) {
|
|
3540
|
-
|
|
2803
|
+
xe.logs("Sortable");
|
|
3541
2804
|
return;
|
|
3542
2805
|
}
|
|
3543
2806
|
window.Sortable.create(t, {
|
|
3544
|
-
ghostClass:
|
|
3545
|
-
chosenClass:
|
|
2807
|
+
ghostClass: X.ghostClass,
|
|
2808
|
+
chosenClass: X.ghostClass,
|
|
3546
2809
|
animation: 500,
|
|
3547
2810
|
delay: 0,
|
|
3548
2811
|
onEnd: (e) => n(e)
|
|
@@ -3563,83 +2826,83 @@ var Wr = /* @__PURE__ */ y(Hr, [["render", Ur]]), Gr = {
|
|
|
3563
2826
|
return n(this.list), t;
|
|
3564
2827
|
}
|
|
3565
2828
|
}
|
|
3566
|
-
},
|
|
3567
|
-
function
|
|
3568
|
-
let
|
|
3569
|
-
return
|
|
3570
|
-
e.tableOption.title ? (
|
|
2829
|
+
}, pn = { class: "avue-crud avue-crud--card" }, mn = { class: "avue-crud__tip-name" }, hn = { class: "avue-crud__tip-count" };
|
|
2830
|
+
function gn(e, t, n, r, a, o) {
|
|
2831
|
+
let s = un, c = sn, l = i, u = Qe, d = en, f = Zt, p = Jt, m = Ue, h = Xe, g = We, ee = Mt, te = kt, _ = Et, ne = St, re = _t, ie = V("permission"), v = Ke;
|
|
2832
|
+
return R(), O("div", pn, [
|
|
2833
|
+
e.tableOption.title ? (R(), E(H(e.tableOption.titleSize || "h2"), {
|
|
3571
2834
|
key: 0,
|
|
3572
|
-
style:
|
|
2835
|
+
style: L(e.tableOption.titleStyle)
|
|
3573
2836
|
}, {
|
|
3574
|
-
default:
|
|
2837
|
+
default: W(() => [j(U(e.tableOption.title), 1)]),
|
|
3575
2838
|
_: 1
|
|
3576
|
-
}, 8, ["style"])) :
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
search:
|
|
3580
|
-
searchMenu:
|
|
2839
|
+
}, 8, ["style"])) : D("v-if", !0),
|
|
2840
|
+
D(" 搜索组件 "),
|
|
2841
|
+
M(s, { ref: "headerSearch" }, A({
|
|
2842
|
+
search: W((t) => [B(e.$slots, "search", I(N(t)))]),
|
|
2843
|
+
searchMenu: W((t) => [B(e.$slots, "searchMenu", I(N(t)))]),
|
|
3581
2844
|
_: 2
|
|
3582
|
-
}, [
|
|
2845
|
+
}, [z(o.searchSlot, (t) => ({
|
|
3583
2846
|
name: t,
|
|
3584
|
-
fn:
|
|
2847
|
+
fn: W((n) => [B(e.$slots, t, I(N(n)))])
|
|
3585
2848
|
}))]), 1536),
|
|
3586
|
-
|
|
3587
|
-
|
|
2849
|
+
D(" 表格功能列 "),
|
|
2850
|
+
o.optVal(e.tableOption.header, !0) ? (R(), E(c, {
|
|
3588
2851
|
key: 1,
|
|
3589
2852
|
ref: "headerMenu"
|
|
3590
2853
|
}, {
|
|
3591
|
-
menuLeft:
|
|
3592
|
-
menuRight:
|
|
2854
|
+
menuLeft: W((t) => [B(e.$slots, "menuLeft", I(N(t)))]),
|
|
2855
|
+
menuRight: W((t) => [B(e.$slots, "menuRight", I(N(t)))]),
|
|
3593
2856
|
_: 3
|
|
3594
|
-
}, 512)) :
|
|
3595
|
-
|
|
2857
|
+
}, 512)) : D("v-if", !0),
|
|
2858
|
+
o.optVal(e.tableOption.tip, a.config.tip) && e.tableOption.selection ? (R(), E(u, {
|
|
3596
2859
|
key: 2,
|
|
3597
2860
|
"disable-transitions": "",
|
|
3598
2861
|
class: "avue-crud__tip"
|
|
3599
2862
|
}, {
|
|
3600
|
-
default:
|
|
3601
|
-
|
|
3602
|
-
t[0] || (t[0] =
|
|
3603
|
-
|
|
3604
|
-
t[1] || (t[1] =
|
|
2863
|
+
default: W(() => [
|
|
2864
|
+
k("span", mn, [
|
|
2865
|
+
t[0] || (t[0] = j(" 当前表格已选择 ", -1)),
|
|
2866
|
+
k("span", hn, U(o.selectLen), 1),
|
|
2867
|
+
t[1] || (t[1] = j(" 项 ", -1))
|
|
3605
2868
|
]),
|
|
3606
|
-
|
|
2869
|
+
o.optVal(e.tableOption.selectClearBtn, a.config.selectClearBtn) && e.tableOption.selection ? G((R(), E(l, {
|
|
3607
2870
|
key: 0,
|
|
3608
2871
|
text: "",
|
|
3609
|
-
onClick:
|
|
2872
|
+
onClick: o.selectClear
|
|
3610
2873
|
}, {
|
|
3611
|
-
default:
|
|
2874
|
+
default: W(() => [...t[2] || (t[2] = [j(" 清 空 ", -1)])]),
|
|
3612
2875
|
_: 1
|
|
3613
|
-
}, 8, ["onClick"])), [[
|
|
3614
|
-
|
|
2876
|
+
}, 8, ["onClick"])), [[ie, o.getPermission("selectClearBtn")]]) : D("v-if", !0),
|
|
2877
|
+
B(e.$slots, "tip")
|
|
3615
2878
|
]),
|
|
3616
2879
|
_: 3
|
|
3617
|
-
})) :
|
|
3618
|
-
|
|
3619
|
-
|
|
2880
|
+
})) : D("v-if", !0),
|
|
2881
|
+
B(e.$slots, "header"),
|
|
2882
|
+
M(g, {
|
|
3620
2883
|
ref: "cellForm",
|
|
3621
|
-
model:
|
|
2884
|
+
model: a.cellForm,
|
|
3622
2885
|
"show-message": !1,
|
|
3623
|
-
onValidate:
|
|
2886
|
+
onValidate: o.handleValidate
|
|
3624
2887
|
}, {
|
|
3625
|
-
default:
|
|
2888
|
+
default: W(() => {
|
|
3626
2889
|
var t;
|
|
3627
|
-
return [
|
|
3628
|
-
key:
|
|
2890
|
+
return [G((R(), E(h, {
|
|
2891
|
+
key: a.reload,
|
|
3629
2892
|
ref: "table",
|
|
3630
|
-
data:
|
|
2893
|
+
data: a.cellForm.list,
|
|
3631
2894
|
"row-key": e.rowKey,
|
|
3632
|
-
class:
|
|
2895
|
+
class: F({ "avue-crud--indeterminate": o.optVal(e.tableOption.indeterminate, !1) }),
|
|
3633
2896
|
size: ((t = e.AVUE) == null ? void 0 : t.tableSize) || e.controlSize,
|
|
3634
|
-
lazy:
|
|
3635
|
-
load:
|
|
3636
|
-
"tree-props":
|
|
2897
|
+
lazy: o.optVal(e.tableOption.lazy, !1),
|
|
2898
|
+
load: o.treeLoad,
|
|
2899
|
+
"tree-props": o.treeProps,
|
|
3637
2900
|
"expand-row-keys": e.tableOption.expandRowKeys,
|
|
3638
2901
|
"default-expand-all": e.tableOption.defaultExpandAll,
|
|
3639
2902
|
"highlight-current-row": e.tableOption.highlightCurrentRow,
|
|
3640
2903
|
"show-summary": e.tableOption.showSummary,
|
|
3641
|
-
"summary-method":
|
|
3642
|
-
"span-method":
|
|
2904
|
+
"summary-method": o.tableSummaryMethod,
|
|
2905
|
+
"span-method": o.tableSpanMethod,
|
|
3643
2906
|
stripe: e.tableOption.stripe,
|
|
3644
2907
|
"show-header": e.tableOption.showHeader,
|
|
3645
2908
|
"default-sort": e.tableOption.defaultSort,
|
|
@@ -3649,76 +2912,76 @@ function Xr(e, t, n, r, i, a) {
|
|
|
3649
2912
|
"cell-style": n.cellStyle,
|
|
3650
2913
|
fit: e.tableOption.fit,
|
|
3651
2914
|
"header-cell-class-name": n.headerCellClassName,
|
|
3652
|
-
"max-height":
|
|
3653
|
-
height:
|
|
3654
|
-
width:
|
|
2915
|
+
"max-height": o.isAutoHeight ? a.tableHeight : e.tableOption.maxHeight,
|
|
2916
|
+
height: a.tableHeight,
|
|
2917
|
+
width: o.setPx(e.tableOption.width, a.config.width),
|
|
3655
2918
|
border: e.tableOption.border,
|
|
3656
|
-
onCurrentChange:
|
|
3657
|
-
onExpandChange:
|
|
3658
|
-
onHeaderDragend:
|
|
3659
|
-
onRowClick:
|
|
3660
|
-
onRowDblclick:
|
|
3661
|
-
onCellMouseEnter:
|
|
3662
|
-
onCellMouseLeave:
|
|
3663
|
-
onCellClick:
|
|
3664
|
-
onHeaderClick:
|
|
3665
|
-
onRowContextmenu:
|
|
3666
|
-
onHeaderContextmenu:
|
|
3667
|
-
onCellDblclick:
|
|
3668
|
-
onFilterChange:
|
|
3669
|
-
onSelectionChange:
|
|
3670
|
-
onSelect:
|
|
3671
|
-
onSelectAll:
|
|
3672
|
-
onSortChange:
|
|
2919
|
+
onCurrentChange: o.currentRowChange,
|
|
2920
|
+
onExpandChange: o.expandChange,
|
|
2921
|
+
onHeaderDragend: o.headerDragend,
|
|
2922
|
+
onRowClick: o.rowClick,
|
|
2923
|
+
onRowDblclick: o.rowDblclick,
|
|
2924
|
+
onCellMouseEnter: o.cellMouseEnter,
|
|
2925
|
+
onCellMouseLeave: o.cellMouseLeave,
|
|
2926
|
+
onCellClick: o.cellClick,
|
|
2927
|
+
onHeaderClick: o.headerClick,
|
|
2928
|
+
onRowContextmenu: o.rowContextmenu,
|
|
2929
|
+
onHeaderContextmenu: o.headerContextmenu,
|
|
2930
|
+
onCellDblclick: o.cellDblclick,
|
|
2931
|
+
onFilterChange: o.filterChange,
|
|
2932
|
+
onSelectionChange: o.selectionChange,
|
|
2933
|
+
onSelect: o.select,
|
|
2934
|
+
onSelectAll: o.selectAll,
|
|
2935
|
+
onSortChange: o.sortChange
|
|
3673
2936
|
}, {
|
|
3674
|
-
empty:
|
|
2937
|
+
empty: W(() => [e.$slots.empty ? B(e.$slots, "empty", { key: 0 }) : (R(), E(m, {
|
|
3675
2938
|
key: 1,
|
|
3676
2939
|
"image-size": 100,
|
|
3677
2940
|
class: "avue-crud__empty",
|
|
3678
2941
|
description: e.tableOption.emptyText
|
|
3679
2942
|
}, null, 8, ["description"]))]),
|
|
3680
|
-
default:
|
|
3681
|
-
header:
|
|
3682
|
-
expand:
|
|
2943
|
+
default: W(() => [M(p, { "column-option": o.columnOption }, A({
|
|
2944
|
+
header: W(() => [M(d, { ref: "columnDefault" }, {
|
|
2945
|
+
expand: W(({ row: t, index: n }) => [B(e.$slots, "expand", {
|
|
3683
2946
|
row: t,
|
|
3684
2947
|
index: n
|
|
3685
2948
|
})]),
|
|
3686
2949
|
_: 3
|
|
3687
2950
|
}, 512)]),
|
|
3688
|
-
footer:
|
|
3689
|
-
menu:
|
|
3690
|
-
menuBtn:
|
|
2951
|
+
footer: W(() => [M(f, null, {
|
|
2952
|
+
menu: W((t) => [B(e.$slots, "menu", I(N(t)))]),
|
|
2953
|
+
menuBtn: W((t) => [B(e.$slots, "menuBtn", I(N(t)))]),
|
|
3691
2954
|
_: 3
|
|
3692
2955
|
})]),
|
|
3693
2956
|
_: 2
|
|
3694
|
-
}, [
|
|
2957
|
+
}, [z(o.mainSlot, (t) => ({
|
|
3695
2958
|
name: t,
|
|
3696
|
-
fn:
|
|
2959
|
+
fn: W((n) => [B(e.$slots, t, I(N(n)))])
|
|
3697
2960
|
}))]), 1032, ["column-option"])]),
|
|
3698
2961
|
_: 3
|
|
3699
|
-
}, 8, /* @__PURE__ */ "data.row-key.class.size.lazy.load.tree-props.expand-row-keys.default-expand-all.highlight-current-row.show-summary.summary-method.span-method.stripe.show-header.default-sort.row-class-name.cell-class-name.row-style.cell-style.fit.header-cell-class-name.max-height.height.width.border.onCurrentChange.onExpandChange.onHeaderDragend.onRowClick.onRowDblclick.onCellMouseEnter.onCellMouseLeave.onCellClick.onHeaderClick.onRowContextmenu.onHeaderContextmenu.onCellDblclick.onFilterChange.onSelectionChange.onSelect.onSelectAll.onSortChange".split("."))), [[
|
|
2962
|
+
}, 8, /* @__PURE__ */ "data.row-key.class.size.lazy.load.tree-props.expand-row-keys.default-expand-all.highlight-current-row.show-summary.summary-method.span-method.stripe.show-header.default-sort.row-class-name.cell-class-name.row-style.cell-style.fit.header-cell-class-name.max-height.height.width.border.onCurrentChange.onExpandChange.onHeaderDragend.onRowClick.onRowDblclick.onCellMouseEnter.onCellMouseLeave.onCellClick.onHeaderClick.onRowContextmenu.onHeaderContextmenu.onCellDblclick.onFilterChange.onSelectionChange.onSelect.onSelectAll.onSortChange".split("."))), [[v, n.tableLoading]])];
|
|
3700
2963
|
}),
|
|
3701
2964
|
_: 3
|
|
3702
2965
|
}, 8, ["model", "onValidate"]),
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
menuForm:
|
|
2966
|
+
B(e.$slots, "footer"),
|
|
2967
|
+
D(" 分页 "),
|
|
2968
|
+
M(ee, { ref: "tablePage" }, null, 512),
|
|
2969
|
+
D(" 表单 "),
|
|
2970
|
+
M(te, { ref: "dialogForm" }, A({
|
|
2971
|
+
menuForm: W((t) => [B(e.$slots, "menuForm", I(N(t)))]),
|
|
3709
2972
|
_: 2
|
|
3710
|
-
}, [
|
|
2973
|
+
}, [z(o.formSlot, (t) => ({
|
|
3711
2974
|
name: t,
|
|
3712
|
-
fn:
|
|
2975
|
+
fn: W((n) => [B(e.$slots, t, I(N(n)))])
|
|
3713
2976
|
}))]), 1536),
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
2977
|
+
M(_, { ref: "dialogColumn" }, null, 512),
|
|
2978
|
+
M(ne, { ref: "dialogExcel" }, null, 512),
|
|
2979
|
+
M(re, { ref: "dialogFilter" }, null, 512)
|
|
3717
2980
|
]);
|
|
3718
2981
|
}
|
|
3719
|
-
var
|
|
2982
|
+
var _n = /* @__PURE__ */ t(fn, [["render", gn]]), vn = {
|
|
3720
2983
|
name: "FyDynamic",
|
|
3721
|
-
mixins: [
|
|
2984
|
+
mixins: [se, ue],
|
|
3722
2985
|
props: {
|
|
3723
2986
|
max: Number,
|
|
3724
2987
|
columnSlot: {
|
|
@@ -3744,7 +3007,7 @@ var Zr = /* @__PURE__ */ y(Kr, [["render", Xr]]), Qr = {
|
|
|
3744
3007
|
return this.max ? this.text.length !== this.max : !0;
|
|
3745
3008
|
},
|
|
3746
3009
|
showIndex() {
|
|
3747
|
-
return
|
|
3010
|
+
return h(this.children.index, !0);
|
|
3748
3011
|
},
|
|
3749
3012
|
showType() {
|
|
3750
3013
|
return this.children.type || "crud";
|
|
@@ -3802,7 +3065,7 @@ var Zr = /* @__PURE__ */ y(Kr, [["render", Xr]]), Qr = {
|
|
|
3802
3065
|
emptyBtn: !1,
|
|
3803
3066
|
submitBtn: !1,
|
|
3804
3067
|
...(() => {
|
|
3805
|
-
let e =
|
|
3068
|
+
let e = c(this.children);
|
|
3806
3069
|
return delete e.column, e;
|
|
3807
3070
|
})(),
|
|
3808
3071
|
...(() => {
|
|
@@ -3818,7 +3081,7 @@ var Zr = /* @__PURE__ */ y(Kr, [["render", Xr]]), Qr = {
|
|
|
3818
3081
|
width: 50
|
|
3819
3082
|
}];
|
|
3820
3083
|
return this.columnOption.forEach((t) => {
|
|
3821
|
-
e.push(Object.assign(t, { cell:
|
|
3084
|
+
e.push(Object.assign(t, { cell: h(t.cell, this.isCrud) }));
|
|
3822
3085
|
}), { column: e };
|
|
3823
3086
|
})()
|
|
3824
3087
|
};
|
|
@@ -3831,7 +3094,7 @@ var Zr = /* @__PURE__ */ y(Kr, [["render", Xr]]), Qr = {
|
|
|
3831
3094
|
this.initData();
|
|
3832
3095
|
},
|
|
3833
3096
|
methods: {
|
|
3834
|
-
deepClone:
|
|
3097
|
+
deepClone: c,
|
|
3835
3098
|
handleSelectionChange(e) {
|
|
3836
3099
|
var t;
|
|
3837
3100
|
(t = this.selectionChange) == null || t.call(this, e);
|
|
@@ -3869,7 +3132,7 @@ var Zr = /* @__PURE__ */ y(Kr, [["render", Xr]]), Qr = {
|
|
|
3869
3132
|
},
|
|
3870
3133
|
delRow(e) {
|
|
3871
3134
|
let t = () => {
|
|
3872
|
-
let t =
|
|
3135
|
+
let t = c(this.text);
|
|
3873
3136
|
t.splice(e, 1), this.text = t, this.reload = Math.random();
|
|
3874
3137
|
};
|
|
3875
3138
|
typeof this.rowDel == "function" ? this.rowDel(this.text[e], t) : t();
|
|
@@ -3881,77 +3144,77 @@ var Zr = /* @__PURE__ */ y(Kr, [["render", Xr]]), Qr = {
|
|
|
3881
3144
|
typeof this.rowAdd == "function" ? this.rowAdd(e) : e();
|
|
3882
3145
|
}
|
|
3883
3146
|
}
|
|
3884
|
-
},
|
|
3885
|
-
function
|
|
3886
|
-
let
|
|
3887
|
-
return
|
|
3888
|
-
key:
|
|
3147
|
+
}, yn = { class: "avue-dynamic__header" }, bn = ["onMouseenter", "onMouseleave"], xn = { key: 1 };
|
|
3148
|
+
function Sn(e, t, n, r, a, o) {
|
|
3149
|
+
let s = i, c = $, l = _n;
|
|
3150
|
+
return R(), O("div", {
|
|
3151
|
+
key: a.reload,
|
|
3889
3152
|
class: "avue-dynamic"
|
|
3890
|
-
}, [
|
|
3153
|
+
}, [o.isForm ? (R(), O(T, { key: 0 }, [k("div", yn, [!e.readonly && !e.disabled && !o.addBtn ? (R(), E(s, {
|
|
3891
3154
|
key: 0,
|
|
3892
3155
|
circle: "",
|
|
3893
3156
|
disabled: e.disabled,
|
|
3894
3157
|
type: "primary",
|
|
3895
3158
|
icon: "el-icon-plus",
|
|
3896
|
-
onClick:
|
|
3897
|
-
}, null, 8, ["disabled", "onClick"])) :
|
|
3159
|
+
onClick: o.addRow
|
|
3160
|
+
}, null, 8, ["disabled", "onClick"])) : D("v-if", !0)]), k("div", null, [(R(!0), O(T, null, z(e.text, (t, r) => (R(), O("div", {
|
|
3898
3161
|
key: r,
|
|
3899
3162
|
class: "avue-dynamic__row",
|
|
3900
|
-
onMouseenter: (e) =>
|
|
3901
|
-
onMouseleave: (e) =>
|
|
3902
|
-
}, [!e.readonly && !e.disabled && !
|
|
3163
|
+
onMouseenter: (e) => o.cellMouseenter({ $index: r }),
|
|
3164
|
+
onMouseleave: (e) => o.cellMouseLeave({ $index: r })
|
|
3165
|
+
}, [!e.readonly && !e.disabled && !o.delBtn && a.hoverList[r] ? (R(), E(s, {
|
|
3903
3166
|
key: 0,
|
|
3904
3167
|
type: "danger",
|
|
3905
3168
|
class: "avue-dynamic__menu",
|
|
3906
3169
|
disabled: e.disabled,
|
|
3907
3170
|
icon: "el-icon-delete",
|
|
3908
3171
|
circle: "",
|
|
3909
|
-
onClick: (e) =>
|
|
3910
|
-
}, null, 8, ["disabled", "onClick"])) :
|
|
3172
|
+
onClick: (e) => o.delRow(t.$index)
|
|
3173
|
+
}, null, 8, ["disabled", "onClick"])) : D("v-if", !0), (R(), E(c, {
|
|
3911
3174
|
key: r,
|
|
3912
3175
|
ref_for: !0,
|
|
3913
3176
|
ref: "main",
|
|
3914
3177
|
modelValue: e.text[r],
|
|
3915
3178
|
"onUpdate:modelValue": (t) => e.text[r] = t,
|
|
3916
|
-
option:
|
|
3917
|
-
},
|
|
3918
|
-
_index:
|
|
3179
|
+
option: o.deepClone(o.option)
|
|
3180
|
+
}, A({
|
|
3181
|
+
_index: W(({}) => [k("div", null, [k("span", null, U(t.$index + 1), 1)])]),
|
|
3919
3182
|
_: 2
|
|
3920
|
-
}, [
|
|
3183
|
+
}, [z(n.columnSlot, (t) => ({
|
|
3921
3184
|
name: t,
|
|
3922
|
-
fn:
|
|
3185
|
+
fn: W((n) => [B(e.$slots, t, P({ ref_for: !0 }, Object.assign(n, { row: e.text[r] })))])
|
|
3923
3186
|
}))]), 1032, [
|
|
3924
3187
|
"modelValue",
|
|
3925
3188
|
"onUpdate:modelValue",
|
|
3926
3189
|
"option"
|
|
3927
|
-
]))], 40,
|
|
3190
|
+
]))], 40, bn))), 128))])], 64)) : o.isCrud ? (R(), E(l, {
|
|
3928
3191
|
key: 1,
|
|
3929
3192
|
ref: "main",
|
|
3930
|
-
option:
|
|
3193
|
+
option: o.option,
|
|
3931
3194
|
disabled: e.disabled,
|
|
3932
3195
|
data: e.text,
|
|
3933
|
-
onCellMouseEnter:
|
|
3934
|
-
onCellMouseLeave:
|
|
3935
|
-
onSelectionChange:
|
|
3936
|
-
onSortableChange:
|
|
3196
|
+
onCellMouseEnter: o.cellMouseenter,
|
|
3197
|
+
onCellMouseLeave: o.cellMouseLeave,
|
|
3198
|
+
onSelectionChange: o.handleSelectionChange,
|
|
3199
|
+
onSortableChange: o.handleSortableChange
|
|
3937
3200
|
}, {
|
|
3938
|
-
_indexHeader:
|
|
3201
|
+
_indexHeader: W(() => [!(o.addBtn || e.readonly) && o.maxFlag ? (R(), E(s, {
|
|
3939
3202
|
key: 0,
|
|
3940
3203
|
type: "primary",
|
|
3941
3204
|
disabled: e.disabled,
|
|
3942
3205
|
icon: "el-icon-plus",
|
|
3943
3206
|
circle: "",
|
|
3944
|
-
onClick: t[0] || (t[0] = (e) =>
|
|
3945
|
-
}, null, 8, ["disabled"])) :
|
|
3946
|
-
_index:
|
|
3207
|
+
onClick: t[0] || (t[0] = (e) => o.addRow())
|
|
3208
|
+
}, null, 8, ["disabled"])) : D("v-if", !0)]),
|
|
3209
|
+
_index: W((t) => [!e.readonly && !e.disabled && !o.delBtn && a.hoverList[t.row.$index] ? (R(), E(s, {
|
|
3947
3210
|
key: 0,
|
|
3948
3211
|
type: "danger",
|
|
3949
3212
|
disabled: e.disabled,
|
|
3950
3213
|
icon: "el-icon-delete",
|
|
3951
3214
|
circle: "",
|
|
3952
|
-
onClick: (e) =>
|
|
3953
|
-
}, null, 8, ["disabled", "onClick"])) : (
|
|
3954
|
-
default:
|
|
3215
|
+
onClick: (e) => o.delRow(t.row.$index)
|
|
3216
|
+
}, null, 8, ["disabled", "onClick"])) : (R(), O("div", xn, U(t.row.$index + 1), 1))]),
|
|
3217
|
+
default: W(() => [(R(!0), O(T, null, z(n.columnSlot, (t) => B(e.$slots, t, P({ ref_for: !0 }, e.scope))), 256))]),
|
|
3955
3218
|
_: 3
|
|
3956
3219
|
}, 8, [
|
|
3957
3220
|
"option",
|
|
@@ -3961,34 +3224,34 @@ function ni(e, t, n, r, i, a) {
|
|
|
3961
3224
|
"onCellMouseLeave",
|
|
3962
3225
|
"onSelectionChange",
|
|
3963
3226
|
"onSortableChange"
|
|
3964
|
-
])) :
|
|
3227
|
+
])) : D("v-if", !0)]);
|
|
3965
3228
|
}
|
|
3966
|
-
var
|
|
3229
|
+
var Cn = /* @__PURE__ */ t(vn, [["render", Sn]]), wn = {
|
|
3967
3230
|
name: "FormTemp",
|
|
3968
3231
|
components: {
|
|
3969
|
-
FyUEditor:
|
|
3970
|
-
FyInputTable:
|
|
3971
|
-
FyInputTree:
|
|
3972
|
-
FyArray:
|
|
3973
|
-
FyCascader:
|
|
3974
|
-
FyCheckbox:
|
|
3975
|
-
FyDate:
|
|
3976
|
-
FyDynamic:
|
|
3977
|
-
FyInput:
|
|
3978
|
-
FyInputColor:
|
|
3979
|
-
FyInputIcon:
|
|
3980
|
-
FyInputMap:
|
|
3981
|
-
FyInputNumber:
|
|
3982
|
-
FyRadio:
|
|
3983
|
-
FyRate:
|
|
3984
|
-
FySelect:
|
|
3985
|
-
FySlider:
|
|
3986
|
-
FySwitch:
|
|
3987
|
-
FyTime:
|
|
3988
|
-
FyTitle:
|
|
3989
|
-
FyUpload:
|
|
3232
|
+
FyUEditor: et(() => import("../fy-u-editor/index.mjs")),
|
|
3233
|
+
FyInputTable: et(() => import("../fy-input-table/index.mjs")),
|
|
3234
|
+
FyInputTree: Pe,
|
|
3235
|
+
FyArray: fe,
|
|
3236
|
+
FyCascader: pe,
|
|
3237
|
+
FyCheckbox: me,
|
|
3238
|
+
FyDate: he,
|
|
3239
|
+
FyDynamic: Cn,
|
|
3240
|
+
FyInput: ge,
|
|
3241
|
+
FyInputColor: we,
|
|
3242
|
+
FyInputIcon: Te,
|
|
3243
|
+
FyInputMap: Ee,
|
|
3244
|
+
FyInputNumber: De,
|
|
3245
|
+
FyRadio: Oe,
|
|
3246
|
+
FyRate: Ce,
|
|
3247
|
+
FySelect: be,
|
|
3248
|
+
FySlider: ke,
|
|
3249
|
+
FySwitch: Ae,
|
|
3250
|
+
FyTime: je,
|
|
3251
|
+
FyTitle: Me,
|
|
3252
|
+
FyUpload: Ne
|
|
3990
3253
|
},
|
|
3991
|
-
mixins: [
|
|
3254
|
+
mixins: [y],
|
|
3992
3255
|
props: {
|
|
3993
3256
|
modelValue: [
|
|
3994
3257
|
String,
|
|
@@ -4046,9 +3309,9 @@ var ri = /* @__PURE__ */ y(Qr, [["render", ni]]), ii = {
|
|
|
4046
3309
|
}
|
|
4047
3310
|
},
|
|
4048
3311
|
methods: {
|
|
4049
|
-
uploadFun:
|
|
4050
|
-
getComponent:
|
|
4051
|
-
getPlaceholder:
|
|
3312
|
+
uploadFun: _,
|
|
3313
|
+
getComponent: le,
|
|
3314
|
+
getPlaceholder: v,
|
|
4052
3315
|
enterChange() {
|
|
4053
3316
|
typeof this.column.enter == "function" ? this.column.enter({
|
|
4054
3317
|
value: this.text,
|
|
@@ -4056,9 +3319,9 @@ var ri = /* @__PURE__ */ y(Qr, [["render", ni]]), ii = {
|
|
|
4056
3319
|
}) : this.enter && this.$emit("enter");
|
|
4057
3320
|
}
|
|
4058
3321
|
}
|
|
4059
|
-
},
|
|
4060
|
-
function
|
|
4061
|
-
return
|
|
3322
|
+
}, Tn = ["innerHTML"];
|
|
3323
|
+
function En(e, t, n, r, i, a) {
|
|
3324
|
+
return R(), E(H(a.getComponent(n.column.type, n.column.component)), P(Object.assign(n.column, a.uploadFun(n.column)), {
|
|
4062
3325
|
ref: "temp",
|
|
4063
3326
|
modelValue: a.text,
|
|
4064
3327
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.text = e),
|
|
@@ -4073,18 +3336,18 @@ function oi(e, t, n, r, i, a) {
|
|
|
4073
3336
|
"table-data": n.tableData,
|
|
4074
3337
|
type: n.type || n.column.type,
|
|
4075
3338
|
"column-slot": n.columnSlot
|
|
4076
|
-
},
|
|
4077
|
-
default:
|
|
3339
|
+
}, nt(a.event), { onKeyup: it(a.enterChange, ["enter"]) }), A({
|
|
3340
|
+
default: W(() => [a.params.html ? (R(), O("span", {
|
|
4078
3341
|
key: 0,
|
|
4079
3342
|
innerHTML: a.params.html
|
|
4080
|
-
}, null, 8,
|
|
3343
|
+
}, null, 8, Tn)) : D("v-if", !0)]),
|
|
4081
3344
|
_: 2
|
|
4082
|
-
}, [
|
|
3345
|
+
}, [z(e.getSlotName(n.column, "T", e.$slots) ? [n.column] : [], (t) => ({
|
|
4083
3346
|
name: t,
|
|
4084
|
-
fn:
|
|
4085
|
-
})),
|
|
3347
|
+
fn: W((n) => [B(e.$slots, e.getSlotName(t, "T"), I(N(n)))])
|
|
3348
|
+
})), z(n.columnSlot, (t) => ({
|
|
4086
3349
|
name: t,
|
|
4087
|
-
fn:
|
|
3350
|
+
fn: W((n) => [B(e.$slots, t, I(N(n || {})))])
|
|
4088
3351
|
}))]), 1040, [
|
|
4089
3352
|
"modelValue",
|
|
4090
3353
|
"column",
|
|
@@ -4101,10 +3364,10 @@ function oi(e, t, n, r, i, a) {
|
|
|
4101
3364
|
"onKeyup"
|
|
4102
3365
|
]);
|
|
4103
3366
|
}
|
|
4104
|
-
var
|
|
3367
|
+
var Dn = /* @__PURE__ */ t(wn, [["render", En]]), On = (e, t, n, r) => {
|
|
4105
3368
|
if (!r) return;
|
|
4106
3369
|
if (!window.Mock) {
|
|
4107
|
-
|
|
3370
|
+
xe.logs("mock");
|
|
4108
3371
|
return;
|
|
4109
3372
|
}
|
|
4110
3373
|
let i = (window.Mock || {}).Random, a = {};
|
|
@@ -4185,9 +3448,9 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4185
3448
|
});
|
|
4186
3449
|
}
|
|
4187
3450
|
return p(), a;
|
|
4188
|
-
},
|
|
3451
|
+
}, kn = {
|
|
4189
3452
|
name: "FyForm",
|
|
4190
|
-
mixins: [
|
|
3453
|
+
mixins: [dn],
|
|
4191
3454
|
provide() {
|
|
4192
3455
|
return { formSafe: this };
|
|
4193
3456
|
},
|
|
@@ -4260,7 +3523,7 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4260
3523
|
return this.boxType === "view";
|
|
4261
3524
|
},
|
|
4262
3525
|
gutter() {
|
|
4263
|
-
return
|
|
3526
|
+
return f((this.parentOption.gutter || 10) / 2);
|
|
4264
3527
|
},
|
|
4265
3528
|
detail() {
|
|
4266
3529
|
return this.parentOption.detail;
|
|
@@ -4295,7 +3558,7 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4295
3558
|
return this.tableOption || {};
|
|
4296
3559
|
},
|
|
4297
3560
|
columnOption() {
|
|
4298
|
-
let e = this.tableOption.column || [], t =
|
|
3561
|
+
let e = this.tableOption.column || [], t = c(this.tableOption.group) || [], n = this.tableOption.footer || [];
|
|
4299
3562
|
return t.unshift({
|
|
4300
3563
|
header: !1,
|
|
4301
3564
|
column: e
|
|
@@ -4304,8 +3567,8 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4304
3567
|
column: n
|
|
4305
3568
|
}), t.forEach((e) => {
|
|
4306
3569
|
e.column = e.column || [], e.column.forEach((e, t) => {
|
|
4307
|
-
e.display !== !1 && !this.isMobile && (e =
|
|
4308
|
-
}), e.column =
|
|
3570
|
+
e.display !== !1 && !this.isMobile && (e = ie(e, this.itemSpanDefault, t === 0));
|
|
3571
|
+
}), e.column = ae(e.column), e.column = e.column.sort((e, t) => (t.order || 0) - (e.order || 0));
|
|
4309
3572
|
}), t;
|
|
4310
3573
|
},
|
|
4311
3574
|
menuPosition() {
|
|
@@ -4371,11 +3634,11 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4371
3634
|
});
|
|
4372
3635
|
},
|
|
4373
3636
|
methods: {
|
|
4374
|
-
setPx:
|
|
4375
|
-
deepClone:
|
|
4376
|
-
getComponent:
|
|
4377
|
-
getPlaceholder:
|
|
4378
|
-
uploadFun:
|
|
3637
|
+
setPx: f,
|
|
3638
|
+
deepClone: c,
|
|
3639
|
+
getComponent: le,
|
|
3640
|
+
getPlaceholder: v,
|
|
3641
|
+
uploadFun: _,
|
|
4379
3642
|
getDisabled(e) {
|
|
4380
3643
|
return this.vaildDetail(e) || this.isDetail || this.vaildDisabled(e) || this.allDisabled;
|
|
4381
3644
|
},
|
|
@@ -4386,10 +3649,10 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4386
3649
|
return this.isTabs ? `${t}` === this.activeName || t === 0 : !0;
|
|
4387
3650
|
},
|
|
4388
3651
|
dataFormat() {
|
|
4389
|
-
let e =
|
|
3652
|
+
let e = ce(this.propOption).tableForm, t = this.modelValue, n = {};
|
|
4390
3653
|
Object.entries(Object.assign(e, t)).forEach((e) => {
|
|
4391
3654
|
let r = e[0], i = e[1];
|
|
4392
|
-
|
|
3655
|
+
q(t[r]) ? n[r] = i : n[r] = t[r];
|
|
4393
3656
|
}), this.form = n, this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
|
|
4394
3657
|
this.formCreate = !0, this.clearValidate();
|
|
4395
3658
|
});
|
|
@@ -4401,11 +3664,11 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4401
3664
|
let i = [];
|
|
4402
3665
|
if (n) {
|
|
4403
3666
|
let e = this.$watch(`form.${t}`, (e, t) => {
|
|
4404
|
-
e !== t &&
|
|
3667
|
+
e !== t && p(this.form, n, e);
|
|
4405
3668
|
}), r = this.$watch(`form.${n}`, (e, n) => {
|
|
4406
3669
|
e !== n && (this.form[t] = e);
|
|
4407
3670
|
});
|
|
4408
|
-
i.push(e), i.push(r), this.form[t] =
|
|
3671
|
+
i.push(e), i.push(r), this.form[t] = d(this.form, n);
|
|
4409
3672
|
}
|
|
4410
3673
|
if (r) {
|
|
4411
3674
|
let n = () => {
|
|
@@ -4432,10 +3695,10 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4432
3695
|
this.$emit("update:modelValue", this.form), this.$emit("change", this.form);
|
|
4433
3696
|
},
|
|
4434
3697
|
setLabel() {
|
|
4435
|
-
this.tableOption.filterNull === !0 && (this.form =
|
|
3698
|
+
this.tableOption.filterNull === !0 && (this.form = u(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = u(this.form, ["$"], !1) : this.propOption.forEach((e) => {
|
|
4436
3699
|
let t = this.DIC[e.prop];
|
|
4437
|
-
if (
|
|
4438
|
-
let n =
|
|
3700
|
+
if (q(t)) return;
|
|
3701
|
+
let n = Y(this.form, e, this.tableOption, t);
|
|
4439
3702
|
n ? this.form[`$${e.prop}`] = n : delete this.form[`$${e.prop}`];
|
|
4440
3703
|
});
|
|
4441
3704
|
},
|
|
@@ -4447,7 +3710,7 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4447
3710
|
},
|
|
4448
3711
|
getLabelWidth(e, t) {
|
|
4449
3712
|
let n;
|
|
4450
|
-
return n =
|
|
3713
|
+
return n = q(e.labelWidth) ? q(t.labelWidth) ? this.parentOption.labelWidth : t.labelWidth : e.labelWidth, f(n, this.labelWidth);
|
|
4451
3714
|
},
|
|
4452
3715
|
validateField(e) {
|
|
4453
3716
|
return this.$refs.form.validateField(e);
|
|
@@ -4462,17 +3725,17 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4462
3725
|
this.$nextTick(() => {
|
|
4463
3726
|
let n = t.cascader, r = n.join(",");
|
|
4464
3727
|
n.forEach((i) => {
|
|
4465
|
-
let
|
|
4466
|
-
|
|
3728
|
+
let o = i, s = this.form[t.prop], c = this.findObject(e, o);
|
|
3729
|
+
q(c) || (this.formList.includes(r) && n.forEach((e) => {
|
|
4467
3730
|
this.form[e] = "", this.DIC[e] = [];
|
|
4468
|
-
}), !(
|
|
4469
|
-
column:
|
|
4470
|
-
value:
|
|
3731
|
+
}), !(q(n) || q(s) || q(c)) && b({
|
|
3732
|
+
column: c,
|
|
3733
|
+
value: s,
|
|
4471
3734
|
form: this.form
|
|
4472
3735
|
}).then((e) => {
|
|
4473
3736
|
this.formList.includes(r) || this.formList.push(r);
|
|
4474
3737
|
let t = e || [];
|
|
4475
|
-
this.DIC[
|
|
3738
|
+
this.DIC[o] = t, !q(t) && !q(t) && !q(c.cascaderIndex) && q(this.form[o]) && (this.form[o] = t[c.cascaderIndex][(c.props || {}).value || a.value]);
|
|
4476
3739
|
}));
|
|
4477
3740
|
});
|
|
4478
3741
|
});
|
|
@@ -4485,8 +3748,8 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4485
3748
|
},
|
|
4486
3749
|
handleMock() {
|
|
4487
3750
|
this.isMock && (this.columnOption.forEach((e) => {
|
|
4488
|
-
let t =
|
|
4489
|
-
|
|
3751
|
+
let t = On(e.column, this.DIC, this.form, this.isMock);
|
|
3752
|
+
q(t) || Object.keys(t).forEach((e) => {
|
|
4490
3753
|
this.form[e] = t[e];
|
|
4491
3754
|
});
|
|
4492
3755
|
}), this.$nextTick(() => {
|
|
@@ -4496,7 +3759,7 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4496
3759
|
vaildDetail(e) {
|
|
4497
3760
|
let t;
|
|
4498
3761
|
if (this.detail) return !1;
|
|
4499
|
-
if (!
|
|
3762
|
+
if (!q(e.detail)) t = "detail";
|
|
4500
3763
|
else if (this.isAdd) t = "addDetail";
|
|
4501
3764
|
else if (this.isEdit) t = "editDetail";
|
|
4502
3765
|
else if (this.isView) return !1;
|
|
@@ -4505,7 +3768,7 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4505
3768
|
vaildDisabled(e) {
|
|
4506
3769
|
let t;
|
|
4507
3770
|
if (this.disabled) return !0;
|
|
4508
|
-
if (!
|
|
3771
|
+
if (!q(e.disabled)) t = "disabled";
|
|
4509
3772
|
else if (this.isAdd) t = "addDisabled";
|
|
4510
3773
|
else if (this.isEdit) t = "editDisabled";
|
|
4511
3774
|
else if (this.isView) return !0;
|
|
@@ -4513,7 +3776,7 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4513
3776
|
},
|
|
4514
3777
|
vaildDisplay(e) {
|
|
4515
3778
|
let t;
|
|
4516
|
-
return
|
|
3779
|
+
return q(e.display) ? this.isAdd ? t = "addDisplay" : this.isEdit ? t = "editDisplay" : this.isView && (t = "viewDisplay") : t = "display", t ? h(e[t], !0) : !0;
|
|
4517
3780
|
},
|
|
4518
3781
|
clearValidate(e) {
|
|
4519
3782
|
var t;
|
|
@@ -4531,22 +3794,22 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4531
3794
|
let r = [], i = [], a = {};
|
|
4532
3795
|
this.dynamicOption.forEach((e) => {
|
|
4533
3796
|
let t = e.children.type === "form";
|
|
4534
|
-
i.push(e.prop), t ?
|
|
3797
|
+
i.push(e.prop), t ? q(this.$refs[e.prop][0].$refs.temp.$refs.main) || this.$refs[e.prop][0].$refs.temp.$refs.main.forEach((e) => {
|
|
4535
3798
|
r.push(e.validateCellForm());
|
|
4536
3799
|
}) : r.push(this.$refs[e.prop][0].$refs.temp.$refs.main.validateCellForm());
|
|
4537
3800
|
}), Promise.all(r).then((t) => {
|
|
4538
3801
|
t.forEach((e, t) => {
|
|
4539
|
-
|
|
3802
|
+
q(e) || (a[i[t]] = e);
|
|
4540
3803
|
});
|
|
4541
3804
|
let r = Object.assign(a, n);
|
|
4542
|
-
|
|
3805
|
+
q(r) ? (this.show(), e(!0, this.hide)) : e(!1, this.hide, r);
|
|
4543
3806
|
});
|
|
4544
3807
|
});
|
|
4545
3808
|
},
|
|
4546
3809
|
resetForm(e = !0) {
|
|
4547
3810
|
if (e) {
|
|
4548
3811
|
let e = this.propOption.map((e) => e.prop);
|
|
4549
|
-
this.form =
|
|
3812
|
+
this.form = g(this.form, e, (this.tableOption.filterParams || []).concat([this.rowKey]));
|
|
4550
3813
|
}
|
|
4551
3814
|
this.$nextTick(() => {
|
|
4552
3815
|
this.clearValidate(), this.$emit("reset-change");
|
|
@@ -4563,18 +3826,18 @@ var si = /* @__PURE__ */ y(ii, [["render", oi]]), ci = (e, t, n, r) => {
|
|
|
4563
3826
|
},
|
|
4564
3827
|
submit() {
|
|
4565
3828
|
this.validate((e, t) => {
|
|
4566
|
-
e ? this.$emit("submit",
|
|
3829
|
+
e ? this.$emit("submit", u(this.form, ["$"]), this.hide) : this.$emit("error", t);
|
|
4567
3830
|
});
|
|
4568
3831
|
}
|
|
4569
3832
|
}
|
|
4570
|
-
},
|
|
4571
|
-
function
|
|
3833
|
+
}, An = ["innerHTML"];
|
|
3834
|
+
function jn(e, t, n, r, i, a) {
|
|
4572
3835
|
var o;
|
|
4573
|
-
let s =
|
|
4574
|
-
return
|
|
4575
|
-
class:
|
|
4576
|
-
style:
|
|
4577
|
-
}, [
|
|
3836
|
+
let s = Ye, c = Ze, l = $e, u = Dn, d = C, f = x, p = ft, m = lt, h = Je, g = We;
|
|
3837
|
+
return R(), O("div", {
|
|
3838
|
+
class: F(["avue-form", { "avue--detail": a.isDetail }]),
|
|
3839
|
+
style: L({ width: a.setPx(a.parentOption.formWidth, "100%") })
|
|
3840
|
+
}, [M(g, {
|
|
4578
3841
|
ref: "form",
|
|
4579
3842
|
"status-icon": a.parentOption.statusIcon,
|
|
4580
3843
|
model: i.form,
|
|
@@ -4582,13 +3845,13 @@ function di(e, t, n, r, i, a) {
|
|
|
4582
3845
|
size: ((o = e.AVUE) == null ? void 0 : o.formSize) || e.controlSize,
|
|
4583
3846
|
"label-position": a.parentOption.labelPosition,
|
|
4584
3847
|
"label-width": a.setPx(a.parentOption.labelWidth, i.labelWidth),
|
|
4585
|
-
onSubmit: t[1] || (t[1] =
|
|
3848
|
+
onSubmit: t[1] || (t[1] = K(() => {}, ["prevent"]))
|
|
4586
3849
|
}, {
|
|
4587
|
-
default:
|
|
3850
|
+
default: W(() => [M(h, {
|
|
4588
3851
|
span: 24,
|
|
4589
|
-
class:
|
|
3852
|
+
class: F({ "avue-form__tabs": a.isTabs })
|
|
4590
3853
|
}, {
|
|
4591
|
-
default:
|
|
3854
|
+
default: W(() => [(R(!0), O(T, null, z(a.columnOption, (n, r) => (R(), E(m, {
|
|
4592
3855
|
key: n.prop,
|
|
4593
3856
|
tabs: a.isTabs,
|
|
4594
3857
|
arrow: n.arrow,
|
|
@@ -4600,8 +3863,8 @@ function di(e, t, n, r, i, a) {
|
|
|
4600
3863
|
active: i.activeName,
|
|
4601
3864
|
label: n.label,
|
|
4602
3865
|
onChange: a.handleGroupClick
|
|
4603
|
-
},
|
|
4604
|
-
tabs:
|
|
3866
|
+
}, A({
|
|
3867
|
+
tabs: W(() => [a.isTabs && r === 1 ? (R(), E(c, {
|
|
4605
3868
|
key: 0,
|
|
4606
3869
|
modelValue: i.activeName,
|
|
4607
3870
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.activeName = e),
|
|
@@ -4609,25 +3872,25 @@ function di(e, t, n, r, i, a) {
|
|
|
4609
3872
|
type: a.tabsType,
|
|
4610
3873
|
onTabClick: a.handleTabClick
|
|
4611
3874
|
}, {
|
|
4612
|
-
default:
|
|
3875
|
+
default: W(() => [(R(!0), O(T, null, z(a.columnOption, (t, n) => (R(), O(T, null, [a.vaildDisplay(t) && n !== 0 ? (R(), E(s, {
|
|
4613
3876
|
key: n,
|
|
4614
3877
|
name: `${n}`
|
|
4615
3878
|
}, {
|
|
4616
|
-
label:
|
|
3879
|
+
label: W(() => [k("span", null, [e.getSlotName(t, "H", e.$slots) ? B(e.$slots, e.getSlotName(t, "H"), {
|
|
4617
3880
|
key: 0,
|
|
4618
3881
|
column: e.column
|
|
4619
|
-
}) : (
|
|
3882
|
+
}) : (R(), O(T, { key: 1 }, [k("i", { class: F(t.icon) }, "\xA0", 2), j(" " + U(t.label), 1)], 64))])]),
|
|
4620
3883
|
_: 2
|
|
4621
|
-
}, 1032, ["name"])) :
|
|
3884
|
+
}, 1032, ["name"])) : D("v-if", !0)], 64))), 256))]),
|
|
4622
3885
|
_: 3
|
|
4623
3886
|
}, 8, [
|
|
4624
3887
|
"modelValue",
|
|
4625
3888
|
"type",
|
|
4626
3889
|
"onTabClick"
|
|
4627
|
-
])) :
|
|
4628
|
-
default:
|
|
3890
|
+
])) : D("v-if", !0)]),
|
|
3891
|
+
default: W(() => [G(k("div", { class: F(["avue-form__group", { "avue-form__group--flex": n.flex === !1 }]) }, [(R(!0), O(T, null, z(n.column, (r, o) => (R(), O(T, null, [a.vaildDisplay(r) ? (R(), E(f, {
|
|
4629
3892
|
key: o,
|
|
4630
|
-
style:
|
|
3893
|
+
style: L({
|
|
4631
3894
|
paddingLeft: a.gutter,
|
|
4632
3895
|
paddingRight: a.gutter
|
|
4633
3896
|
}),
|
|
@@ -4638,27 +3901,27 @@ function di(e, t, n, r, i, a) {
|
|
|
4638
3901
|
offset: r.offset || n.offset,
|
|
4639
3902
|
push: r.push || n.push,
|
|
4640
3903
|
pull: r.pull || n.pull,
|
|
4641
|
-
class:
|
|
3904
|
+
class: F([
|
|
4642
3905
|
"avue-form__row",
|
|
4643
3906
|
{ "avue--detail avue--detail__column": a.vaildDetail(r) },
|
|
4644
3907
|
r.className
|
|
4645
3908
|
])
|
|
4646
3909
|
}, {
|
|
4647
|
-
default:
|
|
3910
|
+
default: W(() => [M(d, {
|
|
4648
3911
|
prop: r.prop,
|
|
4649
3912
|
label: r.label,
|
|
4650
3913
|
rules: r.rules,
|
|
4651
|
-
class:
|
|
3914
|
+
class: F(`avue-form__item--${r.labelPosition || n.labelPosition || ""}`),
|
|
4652
3915
|
"label-position": r.labelPosition || n.labelPosition || a.parentOption.labelPosition,
|
|
4653
3916
|
"label-width": a.getLabelWidth(r, n)
|
|
4654
|
-
},
|
|
4655
|
-
default:
|
|
3917
|
+
}, A({
|
|
3918
|
+
default: W(() => [(R(), E(H(a.validTip(r) ? "div" : "elTooltip"), {
|
|
4656
3919
|
class: "avue-form-item-input-wrapper",
|
|
4657
3920
|
disabled: a.validTip(r),
|
|
4658
3921
|
content: r.tip || a.getPlaceholder(r),
|
|
4659
3922
|
placement: r.tipPlacement
|
|
4660
3923
|
}, {
|
|
4661
|
-
default:
|
|
3924
|
+
default: W(() => [e.$slots[r.prop] ? B(e.$slots, r.prop, {
|
|
4662
3925
|
key: 0,
|
|
4663
3926
|
modelValue: i.form[r.prop],
|
|
4664
3927
|
column: r,
|
|
@@ -4667,7 +3930,7 @@ function di(e, t, n, r, i, a) {
|
|
|
4667
3930
|
readonly: a.readonly || r.readonly,
|
|
4668
3931
|
disabled: a.getDisabled(r),
|
|
4669
3932
|
dic: e.DIC[r.prop]
|
|
4670
|
-
}) : (
|
|
3933
|
+
}) : (R(), E(u, P({
|
|
4671
3934
|
key: 1,
|
|
4672
3935
|
ref_for: !0,
|
|
4673
3936
|
ref: r.prop
|
|
@@ -4685,12 +3948,12 @@ function di(e, t, n, r, i, a) {
|
|
|
4685
3948
|
"column-slot": a.columnSlot,
|
|
4686
3949
|
onEnter: a.submit,
|
|
4687
3950
|
onChange: (e) => a.propChange(n.column, r)
|
|
4688
|
-
}),
|
|
4689
|
-
default:
|
|
3951
|
+
}), A({
|
|
3952
|
+
default: W(() => [(R(!0), O(T, null, z(e.getSlotName(r, "T", e.$slots) ? [r] : [], (t) => B(e.$slots, e.getSlotName(t, "T"), P({ ref_for: !0 }, e.scope))), 256))]),
|
|
4690
3953
|
_: 2
|
|
4691
|
-
}, [
|
|
3954
|
+
}, [z(a.columnSlot, (t) => ({
|
|
4692
3955
|
name: t,
|
|
4693
|
-
fn:
|
|
3956
|
+
fn: W((n) => [B(e.$slots, t, P({ ref_for: !0 }, n))])
|
|
4694
3957
|
}))]), 1040, [
|
|
4695
3958
|
"modelValue",
|
|
4696
3959
|
"onUpdate:modelValue",
|
|
@@ -4715,7 +3978,7 @@ function di(e, t, n, r, i, a) {
|
|
|
4715
3978
|
_: 2
|
|
4716
3979
|
}, [e.getSlotName(r, "L", e.$slots) ? {
|
|
4717
3980
|
name: "label",
|
|
4718
|
-
fn:
|
|
3981
|
+
fn: W(() => [B(e.$slots, e.getSlotName(r, "L"), {
|
|
4719
3982
|
column: r,
|
|
4720
3983
|
modelValue: i.form[r.prop],
|
|
4721
3984
|
readonly: r.readonly || a.readonly,
|
|
@@ -4726,19 +3989,19 @@ function di(e, t, n, r, i, a) {
|
|
|
4726
3989
|
key: "0"
|
|
4727
3990
|
} : r.labelTip ? {
|
|
4728
3991
|
name: "label",
|
|
4729
|
-
fn:
|
|
3992
|
+
fn: W(() => [M(l, {
|
|
4730
3993
|
class: "item",
|
|
4731
3994
|
effect: "dark",
|
|
4732
3995
|
placement: r.labelTipPlacement || "top-start"
|
|
4733
3996
|
}, {
|
|
4734
|
-
content:
|
|
4735
|
-
default:
|
|
3997
|
+
content: W(() => [k("div", { innerHTML: r.labelTip }, null, 8, An)]),
|
|
3998
|
+
default: W(() => [t[2] || (t[2] = k("i", { class: "el-icon-info" }, null, -1))]),
|
|
4736
3999
|
_: 2
|
|
4737
|
-
}, 1032, ["placement"]),
|
|
4000
|
+
}, 1032, ["placement"]), k("span", null, U(r.label) + U(a.labelSuffix), 1)]),
|
|
4738
4001
|
key: "1"
|
|
4739
4002
|
} : void 0, e.getSlotName(r, "E", e.$slots) ? {
|
|
4740
4003
|
name: "error",
|
|
4741
|
-
fn:
|
|
4004
|
+
fn: W((t) => [B(e.$slots, e.getSlotName(r, "E"), P({ ref_for: !0 }, Object.assign(t, {
|
|
4742
4005
|
column: r,
|
|
4743
4006
|
value: i.form[r.prop],
|
|
4744
4007
|
readonly: a.readonly || r.readonly,
|
|
@@ -4766,18 +4029,18 @@ function di(e, t, n, r, i, a) {
|
|
|
4766
4029
|
"push",
|
|
4767
4030
|
"pull",
|
|
4768
4031
|
"class"
|
|
4769
|
-
])) :
|
|
4032
|
+
])) : D("v-if", !0), a.vaildDisplay(r) && r.row && r.span !== 24 && r.count ? (R(), O("div", {
|
|
4770
4033
|
key: `line${o}`,
|
|
4771
4034
|
class: "avue-form__line",
|
|
4772
|
-
style:
|
|
4773
|
-
}, null, 4)) :
|
|
4774
|
-
menuForm:
|
|
4035
|
+
style: L({ width: `${r.count / 24 * 100}%` })
|
|
4036
|
+
}, null, 4)) : D("v-if", !0)], 64))), 256)), !a.isDetail && !a.isMenu ? (R(), E(p, { key: 0 }, {
|
|
4037
|
+
menuForm: W((t) => [B(e.$slots, "menuForm", P({ ref_for: !0 }, t))]),
|
|
4775
4038
|
_: 3
|
|
4776
|
-
})) :
|
|
4039
|
+
})) : D("v-if", !0)], 2), [[rt, a.isGroupShow(n, r)]])]),
|
|
4777
4040
|
_: 2
|
|
4778
4041
|
}, [e.getSlotName(n, "H", e.$slots) ? {
|
|
4779
4042
|
name: "header",
|
|
4780
|
-
fn:
|
|
4043
|
+
fn: W(() => [B(e.$slots, e.getSlotName(n, "H"), { column: n })]),
|
|
4781
4044
|
key: "0"
|
|
4782
4045
|
} : void 0]), 1032, [
|
|
4783
4046
|
"tabs",
|
|
@@ -4790,10 +4053,10 @@ function di(e, t, n, r, i, a) {
|
|
|
4790
4053
|
"active",
|
|
4791
4054
|
"label",
|
|
4792
4055
|
"onChange"
|
|
4793
|
-
]))), 128)), !a.isDetail && a.isMenu ? (
|
|
4794
|
-
menuForm:
|
|
4056
|
+
]))), 128)), !a.isDetail && a.isMenu ? (R(), E(p, { key: 0 }, {
|
|
4057
|
+
menuForm: W((t) => [B(e.$slots, "menuForm", I(N(t)))]),
|
|
4795
4058
|
_: 3
|
|
4796
|
-
})) :
|
|
4059
|
+
})) : D("v-if", !0)]),
|
|
4797
4060
|
_: 3
|
|
4798
4061
|
}, 8, ["class"])]),
|
|
4799
4062
|
_: 3
|
|
@@ -4806,6 +4069,6 @@ function di(e, t, n, r, i, a) {
|
|
|
4806
4069
|
"label-width"
|
|
4807
4070
|
])], 6);
|
|
4808
4071
|
}
|
|
4809
|
-
var
|
|
4072
|
+
var $ = /* @__PURE__ */ t(kn, [["render", jn]]);
|
|
4810
4073
|
//#endregion
|
|
4811
|
-
export {
|
|
4074
|
+
export { Q as i, Cn as n, _n as r, $ as t };
|