dlzn-ui 2.0.85 → 2.0.87
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/assets/Index-CUrucwva.css +2 -0
- package/assets/{Index-Co01AdLU.css → Index-CzhpKVu6.css} +1 -1
- package/assets/{Index-CCwQ_Mhh.css → Index-DtjEnN_Z.css} +1 -1
- package/assets/Index-cQ70iKV7.css +1 -0
- package/assets/{card-BA6XkAYT.css → card-BR0CFBsX.css} +1 -1
- package/assets/color-picker-BAHzNZub.css +1 -0
- package/assets/{css-Ctf0Amkf.css → css-CZQicoxs.css} +1 -1
- package/assets/{input-number-CMgDqkh-.css → input-number-DHmV6oBX.css} +1 -1
- package/assets/{provider-Dykek3Ll.css → provider-yh_xhvsD.css} +2 -2
- package/assets/table-Coy5nyE7.css +1 -0
- package/chunks/{AssignUser-DtG1Rahb.mjs → AssignUser-dXEYm2Fo.mjs} +8 -10
- package/chunks/{BasicInfo-CnhUKqtH.mjs → BasicInfo-BvKBHQyo.mjs} +5 -7
- package/chunks/{ColumnInfo-DgjUc7I0.mjs → ColumnInfo-dgZ2uWqw.mjs} +8 -10
- package/chunks/{Common-BiIou-LB.mjs → Common-DgFtn6uk.mjs} +5 -14
- package/chunks/{Day-Cvsz96YB.mjs → Day-D57OuSr1.mjs} +4 -23
- package/chunks/{DictTypeDetail-DsHXi45Y.mjs → DictTypeDetail-mwGuuT_W.mjs} +12 -14
- package/chunks/{GenInfo-BLyJ9SaA.mjs → GenInfo-Cpjb07t9.mjs} +5 -7
- package/chunks/{Hour-wPNa1bZZ.mjs → Hour-C2kHsnWx.mjs} +2 -4
- package/chunks/{Import-hfTfZQyt.mjs → Import-DyFn4JlF.mjs} +8 -10
- package/chunks/{Index-BVighfGs.mjs → Index-5maNo0_u.mjs} +2 -4
- package/chunks/{Index-DOMlymIc.mjs → Index-66i7GuFt.mjs} +2 -4
- package/chunks/{Index-B5dltuvs.mjs → Index-B-bDq6zp.mjs} +2 -4
- package/chunks/{Index-But4jrnW.mjs → Index-B3Qx5yy5.mjs} +2 -4
- package/chunks/{Index-CoNNokMv.mjs → Index-B8cPzq-O.mjs} +3 -5
- package/chunks/{Index-DcEuuuoT.mjs → Index-BHTir2BG.mjs} +7 -8
- package/chunks/{Index-Cesv9ltS.mjs → Index-BJGHcLE6.mjs} +1 -3
- package/chunks/Index-BLw1K1xl.mjs +33 -0
- package/chunks/{Index-DvWanFOZ.mjs → Index-CN9fcAAs.mjs} +3 -5
- package/chunks/{Index-B-O5KGpr.mjs → Index-C_CRE-HW.mjs} +2 -4
- package/chunks/{Index-nDod7VeM.mjs → Index-C_Gf0Jgf.mjs} +2 -4
- package/chunks/{Index-BAwtI6wg.mjs → Index-Cl3E8sdW.mjs} +8 -9
- package/chunks/{Index-BOv4n_q9.mjs → Index-CsLXahGP.mjs} +2 -4
- package/chunks/{Index-C9NFNzgI.mjs → Index-Cuc40XIY.mjs} +2 -4
- package/chunks/Index-DPsmE1uN.mjs +38 -0
- package/chunks/{Index-BuqrJDKe.mjs → Index-DVGoGfWk.mjs} +1 -3
- package/chunks/{Index-sYhv1xn9.mjs → Index-De3s2d1O.mjs} +3 -5
- package/chunks/{Index-vfQoUIwJ.mjs → Index-Dneg8IvT.mjs} +2 -4
- package/chunks/{Index-BKtK-Ikl.mjs → Index-HO2qVQE_.mjs} +2 -4
- package/chunks/{Index-DuOAXN6w.mjs → Index-WrYouWPp.mjs} +2 -3
- package/chunks/{Index-DBQnzqsw.mjs → Index-hqjbydPe.mjs} +2 -4
- package/chunks/{Index-BBRYiUAP.mjs → Index-mMBhiZWU.mjs} +4 -6
- package/chunks/{Index-JdcLvN8t.mjs → Index-qbd9CTh4.mjs} +10 -11
- package/chunks/{Index-DytUHz5x.mjs → Index-tI_8Q-wA.mjs} +3 -5
- package/chunks/{IndexItem-CwX6Dy4s.mjs → IndexItem-COlhUIdm.mjs} +20 -25
- package/chunks/{Log-JeFpHOSL.mjs → Log-DWaoXjBC.mjs} +6 -8
- package/chunks/{LoginBg-BQRX3BBi.mjs → LoginBg-DBc-wBJI.mjs} +13 -14
- package/chunks/{MenuNode-BVu_0JxZ.mjs → MenuNode-BAy8nht3.mjs} +2 -4
- package/chunks/{MenuNode-D7CLxolP.mjs → MenuNode-DtKYtPrd.mjs} +2 -4
- package/chunks/{Minute-B0YUDPlB.mjs → Minute-cq4gHso5.mjs} +2 -4
- package/chunks/{Month-DQ5sKlTC.mjs → Month-RO9Bk7PX.mjs} +2 -4
- package/chunks/{Preview-COHFj4UM.mjs → Preview-Gx0BbBT4.mjs} +9 -10
- package/chunks/{Second-vhXMaWlD.mjs → Second-CKdMmksB.mjs} +2 -4
- package/chunks/{SelectDept-SP61AOdt.mjs → SelectDept-BPAzWxOq.mjs} +8 -9
- package/chunks/{SelectMenu-ClyKOYgw.mjs → SelectMenu-C8m9RvV3.mjs} +8 -9
- package/chunks/{SelectUser-CWPDF06Y.mjs → SelectUser-BtMH0Lzf.mjs} +9 -11
- package/chunks/{UserInfo-Ce6vuxzi.mjs → UserInfo-CDNoS8Vd.mjs} +2 -4
- package/chunks/{Wrapper-64pfjnP6.mjs → Wrapper-CyZp85fe.mjs} +2 -3
- package/chunks/{app-Mh0p7spu.mjs → app-Cd7qvZaM.mjs} +4 -6
- package/chunks/{auto-complete-WniYblq6.mjs → auto-complete-Cq74oVp8.mjs} +1 -2
- package/chunks/{card-Domqu1Hz.mjs → card-fcGTPVWb.mjs} +2 -3
- package/chunks/{checkbox-C-5KTT1a.mjs → checkbox-CVOChDUu.mjs} +1 -2
- package/chunks/{color-picker-BVropPi4.mjs → color-picker-Czz7J_78.mjs} +1 -2
- package/chunks/{custom-page-list-DCiFuqkb.mjs → custom-page-list-TXwek5LF.mjs} +22 -23
- package/chunks/{custom-page-table-CrdyMcN_.mjs → custom-page-table-BKUqbr8k.mjs} +4 -6
- package/chunks/{date-picker-BaOpewZr.mjs → date-picker-BTYY0bWu.mjs} +4 -6
- package/chunks/{dropdown-BeLIkMyl.mjs → dropdown-Bvarrr3c.mjs} +1 -2
- package/chunks/{echarts-C3EKKtvU.mjs → echarts-CYv6gr6J.mjs} +0 -1
- package/chunks/{gradient-text-BAIl_tKw.mjs → gradient-text-9F_lDxuO.mjs} +2 -4
- package/chunks/{icon-DcFIQ_yG.mjs → icon-DnBGEq-n.mjs} +1 -3
- package/chunks/{image-cancjWRE.mjs → image-u3num5z6.mjs} +2 -3
- package/chunks/{image-viewer-CBPx8-8E.mjs → image-viewer-BwKWE8cZ.mjs} +1 -2
- package/chunks/{input-UQjpNb61.mjs → input-CiSr3rcu.mjs} +1 -2
- package/chunks/{input-number-7Y1iWPPV.mjs → input-number-EYeSvRED.mjs} +3 -4
- package/chunks/{job-bzNS6C8h.mjs → job-DW335Rii.mjs} +13 -15
- package/chunks/{link-nbeAJ6Mt.mjs → link-v9WN9zib.mjs} +1 -2
- package/chunks/{menu-WSezH0MQ.mjs → menu-Duz60HI8.mjs} +9 -11
- package/chunks/{overview-BvLGalk-.mjs → overview-Bgxcm5Az.mjs} +1 -2
- package/chunks/{overview-D7FlCbJY.mjs → overview-ub_GTqi8.mjs} +2 -4
- package/chunks/{page-list-eZMLvpT1.mjs → page-list-VyWLkMYr.mjs} +45 -47
- package/chunks/{page-query-CYE1XBgV.mjs → page-query-BmWKqp80.mjs} +3 -9
- package/chunks/{page-table-CJOIrsoN.mjs → page-table-CHZI8kpp.mjs} +27 -29
- package/chunks/{pagination-DTAdYbB6.mjs → pagination-D9VeheYA.mjs} +4 -10
- package/chunks/{plugin-vue_export-helper-B3ysoDQm.mjs → plugin-vue_export-helper-Djzt4Yr7.mjs} +1 -2
- package/chunks/{popconfirm-Bc93K9mT.mjs → popconfirm-BbpDvib_.mjs} +1 -3
- package/chunks/{popup-4CBPH3ga.mjs → popup-F9ChL2Wm.mjs} +1 -3
- package/chunks/{provider-uk86yjXJ.mjs → provider-BeVE1nWg.mjs} +544 -562
- package/chunks/{range-input-PIfE-AxB.mjs → range-input-gb5UN2ZA.mjs} +2 -4
- package/chunks/{scrollbar-CoERe4kE.mjs → scrollbar-DR0tchN3.mjs} +3 -4
- package/chunks/{slider-DSeKLd2m.mjs → slider-B8m9TxnK.mjs} +1 -2
- package/chunks/{switch-DNPmkfa_.mjs → switch-BByqwNgy.mjs} +1 -2
- package/chunks/{tab-panel-yh4fFZ2r.mjs → tab-panel-CX3iLfSb.mjs} +1 -3
- package/chunks/{table-C7q_v7is.mjs → table-C7j_tlGU.mjs} +9 -10
- package/chunks/{tag-CCgXIIZd.mjs → tag-BHcFOaT4.mjs} +2 -3
- package/chunks/{tag-input-BuAFWI1F.mjs → tag-input-Df_v5AwS.mjs} +1 -2
- package/chunks/{textarea-CYirMH7f.mjs → textarea-C9VbFXpr.mjs} +2 -4
- package/chunks/{typography-text-DQ_Vzjjq.mjs → typography-text-BId1eixL.mjs} +1 -3
- package/chunks/{useAppContext-D47amIp5.mjs → useAppContext-DAxNLHY9.mjs} +2 -4
- package/chunks/{utils-ag05P503.mjs → utils-SvnLuaWm.mjs} +1 -2
- package/components/app/index.mjs +1 -2
- package/components/app/src/app.mjs +1 -2
- package/components/auto-complete/index.mjs +1 -2
- package/components/auto-complete/src/auto-complete.mjs +1 -2
- package/components/button/index.mjs +1 -2
- package/components/button/src/button.mjs +1 -2
- package/components/button/src/button.vue.d.ts +7 -5
- package/components/card/index.mjs +1 -2
- package/components/card/src/card.mjs +1 -2
- package/components/checkbox/index.mjs +1 -2
- package/components/checkbox/src/checkbox.mjs +1 -2
- package/components/checkbox-group/index.mjs +1 -2
- package/components/checkbox-group/src/checkbox-group.mjs +1 -2
- package/components/color-picker/index.mjs +1 -2
- package/components/color-picker/src/color-picker.mjs +1 -2
- package/components/color-picker/src/color-picker.vue.d.ts +3 -3
- package/components/cron/index.mjs +1 -2
- package/components/cron/src/Common.mjs +1 -2
- package/components/cron/src/Day.mjs +1 -2
- package/components/cron/src/Hour.mjs +1 -2
- package/components/cron/src/Minute.mjs +1 -2
- package/components/cron/src/Month.mjs +1 -2
- package/components/cron/src/Picker.mjs +41 -42
- package/components/cron/src/Second.mjs +1 -2
- package/components/cron/src/cron.mjs +1 -2
- package/components/custom-page-list/index.mjs +1 -2
- package/components/custom-page-list/src/custom-page-list.mjs +1 -2
- package/components/custom-page-list/src/custom-page-list.vue.d.ts +200 -5
- package/components/custom-page-table/index.mjs +1 -2
- package/components/custom-page-table/src/custom-page-table.mjs +1 -2
- package/components/custom-page-table/src/custom-page-table.vue.d.ts +15 -13
- package/components/date-picker/index.mjs +1 -2
- package/components/date-picker/src/date-picker.mjs +1 -2
- package/components/date-picker/src/date-picker.vue.d.ts +11 -11
- package/components/dialog/index.mjs +1 -2
- package/components/dialog/src/dialog.mjs +1 -2
- package/components/dialog/src/dialog.vue.d.ts +3 -3
- package/components/dropdown/index.mjs +1 -2
- package/components/dropdown/src/dropdown.mjs +1 -2
- package/components/dropdown/src/dropdown.vue.d.ts +1 -1
- package/components/form/index.mjs +1 -2
- package/components/form/src/form.mjs +1 -2
- package/components/form/src/form.vue.d.ts +7 -5
- package/components/gradient-text/index.mjs +1 -2
- package/components/gradient-text/src/gradient-text.mjs +1 -2
- package/components/icon/index.mjs +1 -2
- package/components/icon/src/icon.mjs +1 -2
- package/components/image/index.mjs +1 -2
- package/components/image/src/image.mjs +1 -2
- package/components/image-viewer/index.mjs +1 -2
- package/components/image-viewer/src/image-viewer.mjs +1 -2
- package/components/image-viewer/src/image-viewer.vue.d.ts +2 -2
- package/components/index.mjs +49 -49
- package/components/input/index.mjs +1 -2
- package/components/input/src/input.mjs +1 -2
- package/components/input-number/index.mjs +1 -2
- package/components/input-number/src/input-number.mjs +1 -2
- package/components/link/index.mjs +1 -2
- package/components/link/src/link.mjs +1 -2
- package/components/link/src/link.vue.d.ts +1 -1
- package/components/overview/index.mjs +2 -2
- package/components/overview/src/DicLabel/Index.mjs +1 -2
- package/components/overview/src/IndexItem.mjs +1 -2
- package/components/overview/src/OptionLabel/Index.mjs +1 -2
- package/components/overview/src/overview.mjs +1 -2
- package/components/page-list/index.mjs +1 -2
- package/components/page-list/src/page-list.d.ts +6 -5
- package/components/page-list/src/page-list.mjs +1 -2
- package/components/page-query/index.mjs +1 -2
- package/components/page-query/src/page-query.mjs +1 -2
- package/components/page-query/src/page-query.vue.d.ts +114 -5
- package/components/page-table/index.mjs +1 -2
- package/components/page-table/src/page-table.mjs +1 -2
- package/components/pagination/index.mjs +1 -2
- package/components/pagination/src/pagination.mjs +1 -2
- package/components/pagination/src/pagination.vue.d.ts +3 -3
- package/components/popconfirm/index.mjs +1 -2
- package/components/popconfirm/src/popconfirm.mjs +1 -2
- package/components/popup/index.mjs +1 -2
- package/components/popup/src/popup.mjs +1 -2
- package/components/popup/src/popup.vue.d.ts +1 -1
- package/components/provider/index.mjs +1 -2
- package/components/provider/src/Provider.mjs +1 -2
- package/components/provider/src/Provider.vue.d.ts +5 -3
- package/components/radio-group/index.mjs +1 -2
- package/components/radio-group/src/radio-group.mjs +1 -2
- package/components/range-input/index.mjs +1 -2
- package/components/range-input/src/range-input.mjs +1 -2
- package/components/range-input/src/range-input.vue.d.ts +1 -1
- package/components/scrollbar/index.mjs +1 -2
- package/components/scrollbar/src/scrollbar.mjs +1 -2
- package/components/select/index.mjs +1 -2
- package/components/select/src/select.mjs +1 -2
- package/components/select/src/select.vue.d.ts +1 -1
- package/components/select-sys-user/index.mjs +1 -2
- package/components/select-sys-user/src/Picker.mjs +6 -8
- package/components/select-sys-user/src/select-sys-user.mjs +1 -2
- package/components/slider/index.mjs +1 -2
- package/components/slider/src/slider.mjs +1 -2
- package/components/switch/index.mjs +1 -2
- package/components/switch/src/switch.mjs +1 -2
- package/components/tab-panel/index.mjs +1 -2
- package/components/tab-panel/src/tab-panel.mjs +1 -2
- package/components/table/index.mjs +1 -2
- package/components/table/src/table.mjs +1 -2
- package/components/table/src/table.vue.d.ts +23 -18
- package/components/tag/index.mjs +1 -2
- package/components/tag/src/tag.mjs +1 -2
- package/components/tag-input/index.mjs +1 -2
- package/components/tag-input/src/tag-input.mjs +1 -2
- package/components/textarea/index.mjs +1 -2
- package/components/textarea/src/textarea.mjs +1 -2
- package/components/tree/index.mjs +1 -2
- package/components/tree/src/tree.mjs +1 -2
- package/components/tree/src/tree.vue.d.ts +3 -3
- package/components/tree-select/index.mjs +1 -2
- package/components/tree-select/src/tree-select.mjs +1 -2
- package/components/typography-text/index.mjs +1 -2
- package/components/typography-text/src/copy.mjs +2 -3
- package/components/typography-text/src/typography-text.mjs +1 -2
- package/components/upload/index.mjs +1 -2
- package/components/upload/src/upload.mjs +1 -2
- package/components/upload/src/upload.vue.d.ts +6 -4
- package/constants/index.mjs +1 -2
- package/constants/regs.mjs +1 -2
- package/hooks/useAnimateAuto/index.d.ts +1 -1
- package/hooks/useAnimateAuto/index.mjs +1 -2
- package/hooks/useAppContext/index.mjs +1 -2
- package/hooks/useContextMenu/index.mjs +1 -2
- package/hooks/useContextMenu/menu/index.mjs +1 -2
- package/hooks/useContextMenu/menu/src/MenuNode.mjs +1 -2
- package/hooks/useContextMenu/menu/src/menu.mjs +1 -2
- package/hooks/useDicOptions/index.mjs +1 -2
- package/hooks/useLabel/index.mjs +2 -3
- package/hooks/useList/index.mjs +5 -6
- package/hooks/useMQ/index.mjs +0 -1
- package/hooks/usePrimaryColor/index.mjs +1 -2
- package/hooks/useSysUser/index.mjs +1 -2
- package/layout/Entry.mjs +1 -2
- package/layout/Home.mjs +48 -49
- package/layout/Home1.mjs +48 -50
- package/layout/Login.mjs +9 -19
- package/layout/NotFound.mjs +2 -4
- package/layout/index.mjs +0 -1
- package/layout/modules/Aside.mjs +1 -2
- package/layout/modules/Breadcrumb.mjs +1 -2
- package/layout/modules/Header.mjs +1 -2
- package/layout/modules/LoginBg.mjs +1 -2
- package/layout/modules/LoginBg.vue.d.ts +5 -3
- package/layout/modules/LoginBgBak.mjs +1 -2
- package/layout/modules/LoginBgBak.vue.d.ts +5 -3
- package/layout/modules/MenuNode.mjs +1 -2
- package/layout/profile/Index.mjs +23 -24
- package/layout/profile/ResetPwd.mjs +1 -2
- package/layout/profile/UserInfo.mjs +1 -2
- package/layout/vueBits/Grainient.mjs +1 -2
- package/layout/vueBits/LightRays.mjs +3 -4
- package/layout/vueBits/Plasma.mjs +1 -2
- package/layout/vueBits/Plasma.vue.d.ts +1 -1
- package/layout/vueBits/Prism.mjs +1 -3
- package/layout/vueBits/Prism.vue.d.ts +1 -1
- package/main.mjs +6 -7
- package/package.json +22 -22
- package/plugins/autoImport/$alova/index.mjs +1 -2
- package/plugins/autoImport/$confirm/index.mjs +1 -2
- package/plugins/autoImport/$dialog/index.mjs +1 -2
- package/plugins/autoImport/$drawer/index.mjs +1 -2
- package/plugins/autoImport/$loading/index.mjs +2 -3
- package/plugins/autoImport/$msg/index.mjs +2 -3
- package/plugins/autoImport/$notify/index.mjs +1 -2
- package/plugins/autoImport/dayjs/index.mjs +0 -1
- package/plugins/captcha/captcha.mjs +4 -5
- package/plugins/captcha/index.mjs +2 -3
- package/plugins/directive/index.mjs +2 -3
- package/plugins/echarts/index.mjs +1 -2
- package/plugins/initialize/applyBrandColor.mjs +1 -2
- package/plugins/initialize/index.mjs +1 -10
- package/plugins/initialize/webUpdateNotify.mjs +2 -3
- package/plugins/tableRenders/Wrapper.mjs +1 -2
- package/plugins/tableRenders/Wrapper.vue.d.ts +8 -3
- package/plugins/tableRenders/cell/Avatar/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Checkbox/Index.mjs +1 -2
- package/plugins/tableRenders/cell/ColorPicker/Index.mjs +1 -2
- package/plugins/tableRenders/cell/ColorPicker/Index.vue.d.ts +3 -3
- package/plugins/tableRenders/cell/Default/Index.mjs +1 -2
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -2
- package/plugins/tableRenders/cell/FormatDate/Index.mjs +1 -2
- package/plugins/tableRenders/cell/FormatNumber/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -2
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -2
- package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +2 -2
- package/plugins/tableRenders/cell/Input/Index.mjs +1 -2
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Link/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Link/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Select/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/Switch/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Tags/Index.mjs +1 -2
- package/plugins/tableRenders/cell/Tags/Index.vue.d.ts +26 -1
- package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -2
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -2
- package/plugins/tableRenders/cell/TypographyTextLink/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/index.mjs +56 -57
- package/plugins/tableRenders/title/Default/Index.mjs +1 -2
- package/plugins/tableRenders/title/TypographyText/Index.mjs +1 -2
- package/plugins/tableRenders/title/index.mjs +18 -19
- package/plugins/tableRenders/utils.mjs +1 -2
- package/proj-template/patches/omi.patch +11 -0
- package/proj-template/pnpm-workspace.yaml +1 -1
- package/router/index.mjs +1 -2
- package/store/index.mjs +1 -2
- package/store/modules/common.mjs +1 -2
- package/store/modules/excludeKPname.mjs +1 -2
- package/store/modules/login.mjs +1 -2
- package/store/modules/recentRouters.mjs +1 -2
- package/store/modules/router.mjs +1 -2
- package/store/modules/user.mjs +1 -2
- package/utils/boolean.mjs +1 -2
- package/utils/dom.mjs +1 -2
- package/utils/gather.mjs +1 -2
- package/utils/index.mjs +1 -1
- package/utils/number.mjs +1 -2
- package/utils/string.d.ts +3 -2
- package/utils/string.mjs +12 -8
- package/utils/tool.mjs +1 -2
- package/utils/tree.mjs +1 -2
- package/views/index.mjs +0 -1
- package/views/monitor/cache/index.mjs +11 -12
- package/views/monitor/cacheList/index.mjs +13 -14
- package/views/monitor/job/index.mjs +2 -4
- package/views/monitor/logininfor/index.mjs +12 -14
- package/views/monitor/online/index.mjs +7 -9
- package/views/monitor/operlog/index.mjs +3 -5
- package/views/monitor/server/index.mjs +16 -17
- package/views/system/config/index.mjs +12 -14
- package/views/system/dept/index.mjs +5 -7
- package/views/system/dept/utils.mjs +3 -4
- package/views/system/dict/index.mjs +13 -15
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -2
- package/views/system/menu/index.mjs +6 -8
- package/views/system/menu/utils.mjs +3 -4
- package/views/system/notice/index.mjs +12 -14
- package/views/system/post/index.mjs +12 -14
- package/views/system/role/index.mjs +23 -25
- package/views/system/role/modules/AssignUser.mjs +1 -2
- package/views/system/role/modules/SelectDept.mjs +1 -2
- package/views/system/role/modules/SelectMenu.mjs +1 -2
- package/views/system/role/modules/SelectUser.mjs +1 -2
- package/views/system/user/index.mjs +18 -20
- package/views/tool/gen/editTable/index.mjs +5 -6
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -2
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -2
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -2
- package/views/tool/gen/index.mjs +8 -10
- package/views/tool/gen/modules/Import.mjs +1 -2
- package/views/tool/gen/modules/Preview.mjs +1 -2
- package/views/tool/job/index.mjs +1 -2
- package/views/tool/job/modules/Log.mjs +1 -2
- package/assets/Index-BvnkRedP.css +0 -2
- package/assets/Index-CubAI_w9.css +0 -1
- package/assets/color-picker-DD6DUdBH.css +0 -1
- package/assets/table-DTm4LBhU.css +0 -1
- package/chunks/Index-CU4eFnsQ.mjs +0 -39
- package/chunks/Index-Dux5h5K3.mjs +0 -34
- package/components/page-list/src/page-list.vue.d.ts +0 -28
- package/components/page-table/src/page-table.vue.d.ts +0 -53
- package/proj-template/patches/tdesign-web-components.patch +0 -446
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import '../assets/css-
|
|
2
|
-
import { t as e } from "./icon-
|
|
1
|
+
import '../assets/css-CZQicoxs.css';import '../assets/provider-yh_xhvsD.css';/* empty css */
|
|
2
|
+
import { t as e } from "./icon-DnBGEq-n.mjs";
|
|
3
3
|
import "../components/icon/index.mjs";
|
|
4
|
-
import { t } from "./popconfirm-
|
|
4
|
+
import { t } from "./popconfirm-BbpDvib_.mjs";
|
|
5
5
|
import "../components/popconfirm/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import i from "../plugins/autoImport/$loading/index.mjs";
|
|
8
|
-
import { t as a } from "./checkbox-C-5KTT1a.mjs";
|
|
6
|
+
import n from "../plugins/autoImport/$loading/index.mjs";
|
|
9
7
|
import "../components/checkbox/index.mjs";
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import "./
|
|
8
|
+
import { t as r } from "./checkbox-CVOChDUu.mjs";
|
|
9
|
+
import i from "../hooks/useLabel/index.mjs";
|
|
10
|
+
import { n as a, t as o } from "./useAppContext-DAxNLHY9.mjs";
|
|
11
|
+
import { isFalsy as s, isValidNumberString as c } from "../utils/boolean.mjs";
|
|
12
|
+
import l from "../plugins/autoImport/$msg/index.mjs";
|
|
13
13
|
import { stringDisplay as u } from "../utils/string.mjs";
|
|
14
14
|
import { sanitizeHtml as d, saveAs as f } from "../utils/tool.mjs";
|
|
15
|
-
import p from "../
|
|
16
|
-
import m from "../plugins/autoImport/$msg/index.mjs";
|
|
17
|
-
import h from "../layout/index.mjs";
|
|
18
|
-
import { t as g } from "./scrollbar-CoERe4kE.mjs";
|
|
15
|
+
import p from "../layout/index.mjs";
|
|
19
16
|
import "../components/scrollbar/index.mjs";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { t as b } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
17
|
+
import m from "../hooks/useMQ/index.mjs";
|
|
18
|
+
import { t as ee } from "./scrollbar-DR0tchN3.mjs";
|
|
19
|
+
import h from "../hooks/usePrimaryColor/index.mjs";
|
|
20
|
+
import g from "../store/modules/excludeKPname.mjs";
|
|
25
21
|
import "../components/gradient-text/index.mjs";
|
|
26
|
-
import { t as te } from "./image-cancjWRE.mjs";
|
|
27
22
|
import "../components/image/index.mjs";
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { t as
|
|
23
|
+
import { t as _ } from "./gradient-text-9F_lDxuO.mjs";
|
|
24
|
+
import v from "../views/index.mjs";
|
|
25
|
+
import { t as te } from "./MenuNode-BAy8nht3.mjs";
|
|
26
|
+
import { t as ne } from "./image-u3num5z6.mjs";
|
|
27
|
+
import { t as y } from "./plugin-vue_export-helper-Djzt4Yr7.mjs";
|
|
31
28
|
import "../components/dropdown/index.mjs";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import {
|
|
29
|
+
import re from "../hooks/useContextMenu/index.mjs";
|
|
30
|
+
import { t as ie } from "./dropdown-Bvarrr3c.mjs";
|
|
31
|
+
import ae, { useClearList as oe } from "../hooks/useList/index.mjs";
|
|
32
|
+
import "./utils-SvnLuaWm.mjs";
|
|
35
33
|
import "../components/color-picker/index.mjs";
|
|
36
|
-
import {
|
|
34
|
+
import { t as se } from "./color-picker-Czz7J_78.mjs";
|
|
37
35
|
import "../components/input/index.mjs";
|
|
38
|
-
import { t as
|
|
36
|
+
import { n as ce, t as le } from "./input-CiSr3rcu.mjs";
|
|
39
37
|
import "../components/date-picker/index.mjs";
|
|
40
|
-
import { t as
|
|
38
|
+
import { t as ue } from "./date-picker-BTYY0bWu.mjs";
|
|
41
39
|
import "../components/input-number/index.mjs";
|
|
42
|
-
import { t as
|
|
40
|
+
import { t as de } from "./input-number-EYeSvRED.mjs";
|
|
43
41
|
import "../components/range-input/index.mjs";
|
|
44
|
-
import {
|
|
42
|
+
import { t as fe } from "./range-input-gb5UN2ZA.mjs";
|
|
45
43
|
import "../components/tag-input/index.mjs";
|
|
46
|
-
import { t as
|
|
44
|
+
import { n as pe, t as me } from "./tag-input-Df_v5AwS.mjs";
|
|
47
45
|
import "../components/slider/index.mjs";
|
|
48
|
-
import { t as
|
|
46
|
+
import { t as he } from "./slider-B8m9TxnK.mjs";
|
|
49
47
|
import "../components/switch/index.mjs";
|
|
50
|
-
import { t as
|
|
48
|
+
import { t as ge } from "./switch-BByqwNgy.mjs";
|
|
51
49
|
import "../components/textarea/index.mjs";
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import gt from "
|
|
59
|
-
import {
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
import { t as _e } from "./textarea-C9VbFXpr.mjs";
|
|
51
|
+
import { passwordReg as ve, passwordRegMessage as ye } from "../constants/regs.mjs";
|
|
52
|
+
import { Fragment as be, KeepAlive as xe, Suspense as Se, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as Ce, createSlots as we, createTextVNode as w, createVNode as T, defineAsyncComponent as Te, defineComponent as E, getCurrentInstance as D, guardReactiveProps as O, h as k, inject as Ee, markRaw as De, mergeDefaults as A, mergeProps as j, nextTick as Oe, normalizeClass as ke, normalizeProps as M, onMounted as Ae, openBlock as N, provide as je, reactive as Me, ref as P, renderList as F, renderSlot as Ne, resolveComponent as Pe, resolveDynamicComponent as I, shallowRef as Fe, toDisplayString as L, unref as R, useAttrs as Ie, useSlots as Le, useTemplateRef as Re, watch as z, withCtx as B, withModifiers as ze } from "vue";
|
|
53
|
+
import { Breadcrumb as Be, BreadcrumbItem as Ve, Button as He, CheckboxGroup as Ue, ConfigProvider as We, Content as Ge, Dialog as Ke, DialogPlugin as qe, Drawer as Je, DrawerPlugin as Ye, Form as Xe, FormItem as Ze, HeadMenu as Qe, Header as $e, InputAdornment as et, Layout as tt, Menu as nt, MenuItem as rt, RadioGroup as it, Select as at, Tree as ot, TreeSelect as st, Upload as ct } from "tdesign-vue-next";
|
|
54
|
+
import { ElConfigProvider as lt } from "element-plus";
|
|
55
|
+
import { useElementSize as ut, useElementVisibility as dt, useFavicon as ft, useFocus as pt, useMutationObserver as mt, useResizeObserver as ht } from "@vueuse/core";
|
|
56
|
+
import { cloneDeep as gt, isPlainObject as _t } from "lodash-es";
|
|
57
|
+
import { defineStore as V } from "pinia";
|
|
58
|
+
import vt from "virtual:dlzn-ui/app-params";
|
|
59
|
+
import { NavigationFailureType as yt, createRouter as bt, createWebHistory as xt, isNavigationFailure as St, useRoute as H, useRouter as U } from "vue-router";
|
|
60
|
+
import { createAlova as Ct } from "alova";
|
|
61
|
+
import wt from "alova/fetch";
|
|
62
|
+
import Tt from "alova/vue";
|
|
63
|
+
import Et from "path-browserify";
|
|
64
|
+
// ../../node_modules/.pnpm/element-plus@2.14.8_vue@3.5.45/node_modules/element-plus/es/locale/lang/zh-cn.mjs
|
|
65
|
+
var Dt = {
|
|
66
66
|
name: "zh-cn",
|
|
67
67
|
el: {
|
|
68
68
|
breadcrumb: { label: "面包屑" },
|
|
@@ -243,15 +243,15 @@ var Et = {
|
|
|
243
243
|
defaultLabel: "请输入第 {index} 位 OTP 字符"
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, Ot = {
|
|
247
247
|
autoIcon: !0,
|
|
248
248
|
autoLoading: !0,
|
|
249
249
|
autoTheme: !0,
|
|
250
250
|
loading: void 0
|
|
251
|
-
},
|
|
251
|
+
}, kt = {
|
|
252
252
|
autoLabelWidth: !0,
|
|
253
253
|
colon: !0,
|
|
254
|
-
data: () =>
|
|
254
|
+
data: () => Me({}),
|
|
255
255
|
disabled: !1,
|
|
256
256
|
labelAlign: "top",
|
|
257
257
|
layout: "inline",
|
|
@@ -261,8 +261,8 @@ var Et = {
|
|
|
261
261
|
requiredMark: void 0,
|
|
262
262
|
resetType: "initial",
|
|
263
263
|
showErrorMessage: !0
|
|
264
|
-
},
|
|
265
|
-
closeBtn: () =>
|
|
264
|
+
}, At = {
|
|
265
|
+
closeBtn: () => k($, {
|
|
266
266
|
icon: "mdi:close",
|
|
267
267
|
shape: "circle",
|
|
268
268
|
size: "small",
|
|
@@ -282,11 +282,11 @@ var Et = {
|
|
|
282
282
|
preventScrollThrough: !0,
|
|
283
283
|
showOverlay: !0,
|
|
284
284
|
width: "fit-content"
|
|
285
|
-
},
|
|
285
|
+
}, jt = /* @__PURE__ */ E({
|
|
286
286
|
inheritAttrs: !1,
|
|
287
287
|
name: "TDialog",
|
|
288
288
|
__name: "dialog",
|
|
289
|
-
props: /*@__PURE__*/
|
|
289
|
+
props: /*@__PURE__*/ A({
|
|
290
290
|
attach: { type: [String, Function] },
|
|
291
291
|
body: {},
|
|
292
292
|
cancelBtn: {},
|
|
@@ -329,70 +329,69 @@ var Et = {
|
|
|
329
329
|
"onUpdate:visible": { type: Function },
|
|
330
330
|
visible: { type: Boolean }
|
|
331
331
|
}, {
|
|
332
|
-
...
|
|
332
|
+
...At,
|
|
333
333
|
attach: "body",
|
|
334
|
-
closeBtn: () =>
|
|
334
|
+
closeBtn: () => At.closeBtn,
|
|
335
335
|
showInAttachedElement: !1
|
|
336
336
|
}),
|
|
337
337
|
setup(e) {
|
|
338
|
-
let t = e, n =
|
|
338
|
+
let t = e, n = b(() => {
|
|
339
339
|
let e = { ...t };
|
|
340
340
|
return Object.keys(e).forEach((t) => {
|
|
341
341
|
e[t] === void 0 && delete e[t];
|
|
342
342
|
}), e;
|
|
343
|
-
}), r =
|
|
343
|
+
}), r = D();
|
|
344
344
|
function i(e) {
|
|
345
345
|
r.exposed = e ?? {};
|
|
346
346
|
}
|
|
347
|
-
return (e, t) => (
|
|
347
|
+
return (e, t) => (N(), x(I(k(R(Ke), j(e.$attrs, {
|
|
348
348
|
...n.value,
|
|
349
349
|
ref: i
|
|
350
350
|
}), e.$slots))));
|
|
351
351
|
}
|
|
352
|
-
}),
|
|
352
|
+
}), Mt = /* @__PURE__ */ function(e) {
|
|
353
353
|
return e.alert = "alert", e.closeAll = "closeAll", e.confirm = "confirm", e;
|
|
354
|
-
}(
|
|
355
|
-
function
|
|
356
|
-
let
|
|
354
|
+
}(Mt || {}), Nt = /* @__PURE__ */ new Set();
|
|
355
|
+
function Pt(e, t, n) {
|
|
356
|
+
let r = b(() => typeof t.body == "function" ? t.body(k) : t.body), i = P(document.activeElement instanceof HTMLElement ? document.activeElement : null), { isVisible: a, stop: s } = dt(i, {
|
|
357
357
|
controls: !0,
|
|
358
358
|
initialValue: !0
|
|
359
359
|
}), c = {
|
|
360
|
-
...
|
|
360
|
+
...At,
|
|
361
361
|
closeWhenCloseAll: !0,
|
|
362
362
|
...t ?? {},
|
|
363
|
-
body: () =>
|
|
363
|
+
body: () => k(Un, {}, { default: () => r.value })
|
|
364
364
|
}, l, u = {
|
|
365
365
|
...c,
|
|
366
366
|
onClosed: () => {
|
|
367
|
-
|
|
367
|
+
i.value !== null && a.value && i.value.focus(), s(), c.onClosed?.(), Nt.delete(l);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
delete u.closeWhenCloseAll;
|
|
371
|
-
let d =
|
|
372
|
-
return l = e === void 0 ?
|
|
371
|
+
let d = o();
|
|
372
|
+
return l = e === void 0 ? qe(u, n ?? d) : qe[e](u, n ?? d), c.closeWhenCloseAll && Nt.add(l), l;
|
|
373
373
|
}
|
|
374
|
-
var
|
|
375
|
-
return
|
|
374
|
+
var Ft = function(...e) {
|
|
375
|
+
return Pt(void 0, ...e);
|
|
376
376
|
};
|
|
377
|
-
Object.values(
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
Object.values(Mt).forEach((e) => {
|
|
378
|
+
Ft[e] = e === "closeAll" ? () => {
|
|
379
|
+
Nt.forEach((e) => {
|
|
380
380
|
e.hide();
|
|
381
381
|
});
|
|
382
|
-
} : (...t) =>
|
|
382
|
+
} : (...t) => Pt(e, ...t);
|
|
383
383
|
});
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
var G = (e, t) => {
|
|
384
|
+
// ../../packages/dlzn-ui/plugins/autoImport/$confirm/index.ts
|
|
385
|
+
var W = (e, t) => {
|
|
387
386
|
let n = { ...typeof e == "string" ? {} : e };
|
|
388
387
|
return delete n.useReject, delete n.onCancelCallback, delete n.onConfirmCallback, new Promise((r, i) => {
|
|
389
|
-
let a =
|
|
388
|
+
let a = Ft(typeof e == "string" ? {
|
|
390
389
|
body: e,
|
|
391
390
|
onConfirm: () => {
|
|
392
391
|
a.hide(), r();
|
|
393
392
|
},
|
|
394
393
|
theme: "warning"
|
|
395
|
-
} :
|
|
394
|
+
} : Me({
|
|
396
395
|
...n,
|
|
397
396
|
onClose: (t) => {
|
|
398
397
|
let { trigger: n } = t;
|
|
@@ -410,9 +409,8 @@ var G = (e, t) => {
|
|
|
410
409
|
}), t);
|
|
411
410
|
});
|
|
412
411
|
};
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
function Ft() {
|
|
412
|
+
// ../../packages/dlzn-ui/store/modules/common.ts
|
|
413
|
+
function It() {
|
|
416
414
|
return VITE_APP_ID === "1" ? X.Get(`yq/oemConfig/getByDomain/${window.location.hostname}`, {
|
|
417
415
|
meta: { useToken: !1 },
|
|
418
416
|
transform(e) {
|
|
@@ -430,20 +428,20 @@ function Ft() {
|
|
|
430
428
|
useToken: !1
|
|
431
429
|
} });
|
|
432
430
|
}
|
|
433
|
-
var
|
|
434
|
-
let e =
|
|
431
|
+
var G = V("common", () => {
|
|
432
|
+
let e = P(!0), t = P(250), n = P({
|
|
435
433
|
appName: "",
|
|
436
434
|
color: "",
|
|
437
435
|
logo: "",
|
|
438
436
|
version: ""
|
|
439
437
|
});
|
|
440
|
-
|
|
438
|
+
z(() => n.value.appName, (e) => {
|
|
441
439
|
e && (document.title = e);
|
|
442
|
-
}),
|
|
443
|
-
e && (
|
|
444
|
-
}),
|
|
440
|
+
}), z(() => n.value.color, (e) => {
|
|
441
|
+
e && (h().value = e);
|
|
442
|
+
}), ft(b(() => n.value.logo || "/favicon.ico"));
|
|
445
443
|
function r() {
|
|
446
|
-
|
|
444
|
+
It().then((e) => {
|
|
447
445
|
n.value = e;
|
|
448
446
|
}).catch((e) => {
|
|
449
447
|
n.value = {
|
|
@@ -454,7 +452,7 @@ var K = ht("common", () => {
|
|
|
454
452
|
}, console.log(`${VITE_APP_NAME} 获取应用信息失败`, e);
|
|
455
453
|
});
|
|
456
454
|
}
|
|
457
|
-
let i =
|
|
455
|
+
let i = P(!0), a = null;
|
|
458
456
|
function o() {
|
|
459
457
|
a !== null && (clearTimeout(a), a = null), i.value = !1, a = setTimeout(() => {
|
|
460
458
|
i.value = !0;
|
|
@@ -468,13 +466,13 @@ var K = ht("common", () => {
|
|
|
468
466
|
isRequestSleep: i,
|
|
469
467
|
requestActive: o
|
|
470
468
|
};
|
|
471
|
-
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }),
|
|
472
|
-
let e =
|
|
469
|
+
}, { persist: { pick: ["drawerOpen", "drawerSize"] } }), K = V("recentRouters", () => {
|
|
470
|
+
let e = P([]), t = H(), n = U();
|
|
473
471
|
function r() {
|
|
474
472
|
e.value = e.value.filter((e) => n.hasRoute(e.name));
|
|
475
473
|
}
|
|
476
474
|
function i(t, n) {
|
|
477
|
-
let r =
|
|
475
|
+
let r = gt(n), i = e.value.findIndex((e) => e.name === r.name || Y(e.name).meta.title === Y(r.name).meta.title);
|
|
478
476
|
if (delete r.query._fromLeftTree, i === -1) {
|
|
479
477
|
let n = e.value.findIndex((e) => e.name === t);
|
|
480
478
|
n === -1 ? e.value.push(r) : e.value.splice(n + 1, 0, r);
|
|
@@ -503,18 +501,17 @@ var K = ht("common", () => {
|
|
|
503
501
|
remove: a
|
|
504
502
|
};
|
|
505
503
|
}, { persist: { pick: ["recentRouters"] } });
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
function It() {
|
|
504
|
+
// ../../packages/dlzn-ui/store/modules/router.ts
|
|
505
|
+
function Lt() {
|
|
509
506
|
return X.Get("getRouters", { meta: {
|
|
510
507
|
useFailMsg: "获取用户路由失败",
|
|
511
508
|
useLoading: "正在获取用户路由..."
|
|
512
509
|
} });
|
|
513
510
|
}
|
|
514
|
-
function
|
|
511
|
+
function Rt(e) {
|
|
515
512
|
return e.children !== void 0 || e.component !== void 0;
|
|
516
513
|
}
|
|
517
|
-
function
|
|
514
|
+
function zt(e) {
|
|
518
515
|
let t = [];
|
|
519
516
|
return e.forEach((e) => {
|
|
520
517
|
e.path === "/" ? t.push({
|
|
@@ -523,7 +520,7 @@ function Rt(e) {
|
|
|
523
520
|
}) : t.push(e);
|
|
524
521
|
}), t;
|
|
525
522
|
}
|
|
526
|
-
function
|
|
523
|
+
function Bt(e) {
|
|
527
524
|
let t = (e, n) => {
|
|
528
525
|
let r = [];
|
|
529
526
|
return e.forEach((e) => {
|
|
@@ -547,12 +544,12 @@ function zt(e) {
|
|
|
547
544
|
e !== void 0 && (i.redirect = { name: e.name });
|
|
548
545
|
}
|
|
549
546
|
}
|
|
550
|
-
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component =
|
|
547
|
+
e.component !== void 0 && !["Layout", "ParentView"].includes(e.component) && (i.component = Wt(e)), Rt(i) && r.push(i);
|
|
551
548
|
}), r;
|
|
552
|
-
}, n =
|
|
549
|
+
}, n = fn();
|
|
553
550
|
return n.children.push(...e), t([n], null);
|
|
554
551
|
}
|
|
555
|
-
function
|
|
552
|
+
function Vt(e) {
|
|
556
553
|
let t = (e) => {
|
|
557
554
|
let n = [...e], r = n.length;
|
|
558
555
|
for (let e = r - 1; e >= 0; e--) {
|
|
@@ -565,97 +562,97 @@ function Bt(e) {
|
|
|
565
562
|
};
|
|
566
563
|
return t(e);
|
|
567
564
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
565
|
+
var Ht = [];
|
|
566
|
+
function Ut(e) {
|
|
570
567
|
return `./${e.split("___")[0]}.vue`;
|
|
571
568
|
}
|
|
572
|
-
function
|
|
569
|
+
function Wt(e) {
|
|
573
570
|
if (typeof e.component == "function" || typeof e.component == "string") {
|
|
574
|
-
let t = e.component, n = typeof t == "string" ?
|
|
571
|
+
let t = e.component, n = typeof t == "string" ? v[Ut(t)] : t;
|
|
575
572
|
if (n === void 0) {
|
|
576
|
-
let e = `路由组件${
|
|
577
|
-
return console.error(e),
|
|
573
|
+
let e = `路由组件${Ut(t)}不存在`;
|
|
574
|
+
return console.error(e), p["./NotFound.vue"];
|
|
578
575
|
}
|
|
579
|
-
return typeof t == "string" &&
|
|
576
|
+
return typeof t == "string" && Ht.push(Ut(t)), () => n().then((t) => ({
|
|
580
577
|
...t.default,
|
|
581
578
|
name: e.name
|
|
582
579
|
}));
|
|
583
580
|
}
|
|
584
581
|
return e.component;
|
|
585
582
|
}
|
|
586
|
-
var
|
|
587
|
-
let e =
|
|
588
|
-
async function
|
|
589
|
-
let
|
|
590
|
-
VITE_MODE === "development" &&
|
|
591
|
-
body: JSON.stringify(
|
|
583
|
+
var Gt = V("router", () => {
|
|
584
|
+
let e = P([]), t = U(), n = Q();
|
|
585
|
+
async function r() {
|
|
586
|
+
let r = await Lt();
|
|
587
|
+
VITE_MODE === "development" && n.isAdmin && fetch("/__dev__/save-folder-alias", {
|
|
588
|
+
body: JSON.stringify(r),
|
|
592
589
|
headers: { "Content-Type": "application/json" },
|
|
593
590
|
method: "POST"
|
|
594
591
|
}).catch((e) => {
|
|
595
592
|
console.warn("[dev-save-folder-alias] 写入本地 json 失败", e);
|
|
596
|
-
}),
|
|
597
|
-
if (!
|
|
593
|
+
}), Ht.length = 0, e.value = De(Vt(Bt(zt(r)))), n.isAdmin && Object.keys(v).forEach((e) => {
|
|
594
|
+
if (!Ht.includes(e) && ![
|
|
598
595
|
"./tool",
|
|
599
596
|
"./system",
|
|
600
597
|
"./monitor"
|
|
601
598
|
].some((t) => e.startsWith(t))) {
|
|
602
599
|
let t = `${e} 页面对应的路由不存在`;
|
|
603
|
-
VITE_MODE === "development" ?
|
|
600
|
+
VITE_MODE === "development" ? a.error(t) : console.error(t);
|
|
604
601
|
}
|
|
605
602
|
}), t.hasRoute("Index") && t.removeRoute("Index"), e.value.forEach((e) => {
|
|
606
603
|
t.addRoute(e);
|
|
607
|
-
}),
|
|
604
|
+
}), K().init();
|
|
608
605
|
}
|
|
609
|
-
function
|
|
606
|
+
function i() {
|
|
610
607
|
e.value.forEach((e) => {
|
|
611
608
|
t.removeRoute(e.name);
|
|
612
609
|
}), e.value = [];
|
|
613
610
|
}
|
|
614
611
|
return {
|
|
615
|
-
clear:
|
|
616
|
-
getRouters:
|
|
612
|
+
clear: i,
|
|
613
|
+
getRouters: r,
|
|
617
614
|
routersRaw: e
|
|
618
615
|
};
|
|
619
|
-
}),
|
|
616
|
+
}), Kt = { class: "ml-2! flex items-center" }, qt = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
620
617
|
__name: "Aside",
|
|
621
618
|
setup(e) {
|
|
622
|
-
let t =
|
|
623
|
-
|
|
619
|
+
let t = H(), n = G(), r = b(() => n.appInfo.appName), i = Gt(), a = P([]);
|
|
620
|
+
z(() => t.name, () => {
|
|
624
621
|
t.matched.map((e) => e.name).forEach((e) => {
|
|
625
622
|
a.value.includes(e) || a.value.push(e);
|
|
626
623
|
});
|
|
627
624
|
}, { immediate: !0 });
|
|
628
|
-
let o =
|
|
625
|
+
let o = b(() => {
|
|
629
626
|
let { hidden: e, parentName: n } = t.meta;
|
|
630
627
|
return n !== "" && e === !0 ? n : t.name;
|
|
631
|
-
}), s =
|
|
632
|
-
return (e, t) => (
|
|
628
|
+
}), s = b(() => n.appInfo.logo || vt.asideTopLogoUrl);
|
|
629
|
+
return (e, t) => (N(), x(R(nt), {
|
|
633
630
|
expanded: a.value,
|
|
634
631
|
"onUpdate:expanded": t[0] ||= (e) => a.value = e,
|
|
635
632
|
class: "w-full!",
|
|
636
633
|
value: o.value
|
|
637
634
|
}, {
|
|
638
|
-
logo:
|
|
635
|
+
logo: B(() => [Ce("div", Kt, [T(R(ne), {
|
|
639
636
|
class: "logo",
|
|
640
637
|
src: s.value,
|
|
641
638
|
style: {
|
|
642
639
|
width: "28px",
|
|
643
640
|
height: "28px"
|
|
644
641
|
}
|
|
645
|
-
}, null, 8, ["src"]),
|
|
642
|
+
}, null, 8, ["src"]), T(R(_), {
|
|
646
643
|
"animation-speed": 8,
|
|
647
644
|
"class-name": "ml-2 text-xl !font-bold",
|
|
648
645
|
"show-border": !1,
|
|
649
646
|
text: r.value
|
|
650
647
|
}, null, 8, ["text"])])]),
|
|
651
|
-
default:
|
|
648
|
+
default: B(() => [T(te, { model: R(i).routersRaw[0]?.children ?? [] }, null, 8, ["model"])]),
|
|
652
649
|
_: 1
|
|
653
650
|
}, 8, ["expanded", "value"]));
|
|
654
651
|
}
|
|
655
|
-
}), [["__scopeId", "data-v-36275803"]]),
|
|
652
|
+
}), [["__scopeId", "data-v-36275803"]]), Jt = /* @__PURE__ */ E({
|
|
656
653
|
__name: "Breadcrumb",
|
|
657
654
|
setup(e, { expose: t }) {
|
|
658
|
-
let n =
|
|
655
|
+
let n = H(), r = U(), i = K(), a = b(() => {
|
|
659
656
|
let e = n.matched.map((e) => ({
|
|
660
657
|
name: e.name,
|
|
661
658
|
title: e.meta.title
|
|
@@ -668,96 +665,95 @@ var Wt = ht("router", () => {
|
|
|
668
665
|
function o(e) {
|
|
669
666
|
r.push(i.recentRouters.find((t) => t.name === e));
|
|
670
667
|
}
|
|
671
|
-
return t({ items: a }), (e, t) => a.value.length > 0 ? (
|
|
668
|
+
return t({ items: a }), (e, t) => a.value.length > 0 ? (N(), x(R(Be), {
|
|
672
669
|
key: 0,
|
|
673
670
|
class: "absolute top-px z-10 py-1!"
|
|
674
671
|
}, {
|
|
675
|
-
default:
|
|
672
|
+
default: B(() => [(N(!0), C(be, null, F(a.value, (e) => (N(), x(R(Ve), {
|
|
676
673
|
key: e.name,
|
|
677
674
|
disabled: e.disabled,
|
|
678
675
|
onClick: (t) => o(e.name)
|
|
679
676
|
}, {
|
|
680
|
-
default:
|
|
677
|
+
default: B(() => [w(L(e.title), 1)]),
|
|
681
678
|
_: 2
|
|
682
679
|
}, 1032, ["disabled", "onClick"]))), 128))]),
|
|
683
680
|
_: 1
|
|
684
|
-
})) :
|
|
681
|
+
})) : S("v-if", !0);
|
|
685
682
|
}
|
|
686
|
-
}),
|
|
687
|
-
function
|
|
683
|
+
}), Yt = /* @__PURE__ */ new Map();
|
|
684
|
+
function Xt(e) {
|
|
688
685
|
let t = X.Post("system/user/listByIds", { userIds: e }, { meta: { useLoading: !1 } }).then((e) => e.map((e) => ({
|
|
689
686
|
...e,
|
|
690
687
|
label: e.userName,
|
|
691
688
|
value: e.userId
|
|
692
689
|
})));
|
|
693
690
|
e.forEach((e) => {
|
|
694
|
-
|
|
691
|
+
Yt.set(e, t.then((t) => t.find((t) => t.value === e)));
|
|
695
692
|
});
|
|
696
693
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
699
|
-
return
|
|
694
|
+
var Zt = [];
|
|
695
|
+
function Qt(e) {
|
|
696
|
+
return Zt.includes(e) || Zt.push(e), new Promise((t) => {
|
|
700
697
|
setTimeout(() => {
|
|
701
|
-
let n =
|
|
702
|
-
n.length > 0 &&
|
|
698
|
+
let n = Zt.filter((e) => !Yt.has(e));
|
|
699
|
+
n.length > 0 && Xt(n), Zt.length = 0, Yt.get(e).then((e) => {
|
|
703
700
|
t(e);
|
|
704
701
|
});
|
|
705
702
|
});
|
|
706
703
|
});
|
|
707
704
|
}
|
|
708
|
-
var
|
|
709
|
-
function
|
|
710
|
-
|
|
705
|
+
var q = /* @__PURE__ */ new Map();
|
|
706
|
+
function $t() {
|
|
707
|
+
Zt.length = 0, Yt.clear(), q.clear();
|
|
711
708
|
}
|
|
712
|
-
function
|
|
713
|
-
|
|
714
|
-
|
|
709
|
+
function en(e) {
|
|
710
|
+
Yt.delete(e), q.has(e) && Qt(e).then((t) => {
|
|
711
|
+
q.get(e).value = t;
|
|
715
712
|
});
|
|
716
713
|
}
|
|
717
|
-
function
|
|
714
|
+
function tn(e) {
|
|
718
715
|
let t;
|
|
719
|
-
return
|
|
716
|
+
return q.has(e) ? t = q.get(e) : (t = P(null), q.set(e, t), Qt(e).then((e) => {
|
|
720
717
|
t.value = e;
|
|
721
718
|
})), t;
|
|
722
719
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
function tn(e) {
|
|
720
|
+
// ../../packages/dlzn-ui/store/modules/login.ts
|
|
721
|
+
function nn(e) {
|
|
726
722
|
return X.Post("login", e, { meta: {
|
|
727
723
|
useLoading: "登录中...",
|
|
728
724
|
useToken: !1
|
|
729
725
|
} });
|
|
730
726
|
}
|
|
731
|
-
function
|
|
727
|
+
function rn() {
|
|
732
728
|
return X.Post("logout", void 0, { meta: {
|
|
733
729
|
useLoading: "退出登录中...",
|
|
734
730
|
useSuccessMsg: !0
|
|
735
731
|
} });
|
|
736
732
|
}
|
|
737
|
-
var
|
|
738
|
-
let e =
|
|
733
|
+
var an = V("login", () => {
|
|
734
|
+
let e = P(""), t = H(), n = U();
|
|
739
735
|
async function r(t) {
|
|
740
|
-
let n = await
|
|
736
|
+
let n = await nn(t);
|
|
741
737
|
e.value = n.token, await Q().getUserInfo();
|
|
742
738
|
}
|
|
743
739
|
function i() {
|
|
744
|
-
e.value = "",
|
|
740
|
+
e.value = "", g().clear(), Gt().clear(), Q().clear(), Sn(), $t(), oe();
|
|
745
741
|
}
|
|
746
|
-
|
|
742
|
+
z(() => t.name, () => {
|
|
747
743
|
t.name === "Login" && i();
|
|
748
744
|
});
|
|
749
745
|
async function a() {
|
|
750
|
-
await
|
|
746
|
+
await rn(), await n.push({ name: "Login" }), i();
|
|
751
747
|
}
|
|
752
748
|
return {
|
|
753
749
|
login: r,
|
|
754
750
|
logout: a,
|
|
755
751
|
token: e
|
|
756
752
|
};
|
|
757
|
-
}, { persist: { pick: ["token"] } }),
|
|
753
|
+
}, { persist: { pick: ["token"] } }), on = { class: "flex items-center justify-between" }, sn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
758
754
|
__name: "Header",
|
|
759
755
|
setup(t) {
|
|
760
|
-
let n =
|
|
756
|
+
let n = H(), r = U(), i = Q(), a = G(), o = K();
|
|
761
757
|
function s(e) {
|
|
762
758
|
r.push(o.recentRouters.find((t) => t.name === e));
|
|
763
759
|
}
|
|
@@ -766,8 +762,8 @@ var rn = ht("login", () => {
|
|
|
766
762
|
}
|
|
767
763
|
let l = async (e) => {
|
|
768
764
|
let { value: t } = e;
|
|
769
|
-
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await
|
|
770
|
-
}, u =
|
|
765
|
+
t === "profile" ? r.push({ name: "Profile" }) : t === "logout" && (await W("确定要退出登录吗?"), an().logout());
|
|
766
|
+
}, u = m.isMd;
|
|
771
767
|
function d(e, t) {
|
|
772
768
|
let i = [], a = o.recentRouters, s = a.findIndex((e) => e.name === t), l = a.findIndex((e) => e.name === n.name), u = a[s];
|
|
773
769
|
o.recentRouters.length > 1 && i.push({
|
|
@@ -788,81 +784,81 @@ var rn = ht("login", () => {
|
|
|
788
784
|
onClick: () => {
|
|
789
785
|
l > s && r.push(u), o.recentRouters = o.recentRouters.slice(0, s + 1);
|
|
790
786
|
}
|
|
791
|
-
}),
|
|
787
|
+
}), re(e, i);
|
|
792
788
|
}
|
|
793
|
-
let f =
|
|
794
|
-
return (t, r) => (
|
|
795
|
-
default:
|
|
789
|
+
let f = p["./modules/HeaderOperations.vue"] ? Te(p["./modules/HeaderOperations.vue"]) : void 0;
|
|
790
|
+
return (t, r) => (N(), x(R($e), { class: "border-b border-b-(--td-border-level-2-color)" }, {
|
|
791
|
+
default: B(() => [T(R(Qe), {
|
|
796
792
|
"expand-type": "popup",
|
|
797
|
-
value:
|
|
793
|
+
value: R(n).name,
|
|
798
794
|
onChange: s
|
|
799
795
|
}, {
|
|
800
|
-
logo:
|
|
796
|
+
logo: B(() => [T(R($), {
|
|
801
797
|
class: "ml-0! shrink-0",
|
|
802
798
|
shape: "circle",
|
|
803
799
|
size: "large",
|
|
804
800
|
variant: "text",
|
|
805
|
-
onClick: r[0] ||= (e) =>
|
|
801
|
+
onClick: r[0] ||= (e) => R(a).drawerOpen = !R(a).drawerOpen
|
|
806
802
|
}, {
|
|
807
|
-
default:
|
|
803
|
+
default: B(() => [T(R(e), { icon: "lineicons:menu-hamburger-1" })]),
|
|
808
804
|
_: 1
|
|
809
805
|
})]),
|
|
810
|
-
operations:
|
|
806
|
+
operations: B(() => [R(f) ? (N(), x(R(f), { key: 0 })) : S("v-if", !0), T(R(ie), {
|
|
811
807
|
options: [{
|
|
812
808
|
content: "个人中心",
|
|
813
809
|
value: "profile",
|
|
814
|
-
prefixIcon: () =>
|
|
810
|
+
prefixIcon: () => k(R(e), {
|
|
815
811
|
icon: "material-symbols:account-circle",
|
|
816
812
|
size: "16"
|
|
817
813
|
})
|
|
818
814
|
}, {
|
|
819
815
|
content: "退出登录",
|
|
820
816
|
value: "logout",
|
|
821
|
-
prefixIcon: () =>
|
|
817
|
+
prefixIcon: () => k(R(e), {
|
|
822
818
|
icon: "material-symbols:logout",
|
|
823
819
|
size: "16"
|
|
824
820
|
})
|
|
825
821
|
}],
|
|
826
822
|
onClick: l
|
|
827
823
|
}, {
|
|
828
|
-
default:
|
|
824
|
+
default: B(() => [R(u) ? (N(), x(R($), {
|
|
829
825
|
key: 0,
|
|
830
826
|
icon: "material-symbols:account-circle",
|
|
831
827
|
shape: "square",
|
|
832
828
|
variant: "text"
|
|
833
|
-
})) : (
|
|
829
|
+
})) : (N(), x(R($), {
|
|
834
830
|
key: 1,
|
|
835
831
|
icon: "material-symbols:account-circle",
|
|
836
832
|
variant: "text"
|
|
837
833
|
}, {
|
|
838
|
-
suffix:
|
|
834
|
+
suffix: B(() => [T(R(e), {
|
|
839
835
|
icon: "icon-park-outline:down",
|
|
840
836
|
size: "18"
|
|
841
837
|
})]),
|
|
842
|
-
default:
|
|
838
|
+
default: B(() => [w(L(R(i).userInfo.userName) + " ", 1)]),
|
|
843
839
|
_: 1
|
|
844
840
|
}))]),
|
|
845
841
|
_: 1
|
|
846
842
|
}, 8, ["options"])]),
|
|
847
|
-
default:
|
|
843
|
+
default: B(() => [(N(!0), C(be, null, F(R(o).recentRouters, (t) => (N(), x(R(rt), {
|
|
848
844
|
key: t.name,
|
|
849
845
|
value: t.name,
|
|
850
846
|
onContextmenu: (e) => d(e, t.name)
|
|
851
847
|
}, {
|
|
852
|
-
default:
|
|
848
|
+
default: B(() => [Ce("div", on, [Ce("span", null, L(R(Y)(t.name).meta.title), 1), R(o).recentRouters.length > 1 ? (N(), x(R($), {
|
|
853
849
|
key: 0,
|
|
854
850
|
class: "ml-1!",
|
|
855
851
|
shape: "square",
|
|
856
852
|
size: "small",
|
|
857
853
|
variant: "text",
|
|
858
|
-
onClick:
|
|
854
|
+
onClick: ze((e) => c(t.name), ["stop"])
|
|
859
855
|
}, {
|
|
860
|
-
icon:
|
|
856
|
+
icon: B(() => [T(R(e), {
|
|
861
857
|
icon: "material-symbols:close",
|
|
862
858
|
style: { "font-size": "12px !important" }
|
|
863
859
|
})]),
|
|
864
860
|
_: 1
|
|
865
|
-
}, 8, ["onClick"])) :
|
|
861
|
+
}, 8, ["onClick"])) : S("v-if", !0)])]),
|
|
866
862
|
_: 2
|
|
867
863
|
}, 1032, ["value", "onContextmenu"]))), 128))]),
|
|
868
864
|
_: 1
|
|
@@ -870,40 +866,40 @@ var rn = ht("login", () => {
|
|
|
870
866
|
_: 1
|
|
871
867
|
}));
|
|
872
868
|
}
|
|
873
|
-
}), [["__scopeId", "data-v-6c2c986c"]]),
|
|
869
|
+
}), [["__scopeId", "data-v-6c2c986c"]]), cn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
874
870
|
__name: "Entry",
|
|
875
871
|
setup(e) {
|
|
876
|
-
let t =
|
|
872
|
+
let t = H(), n = G(), r = K(), i = g(), a = b(() => r.recentRouters.filter((e) => Y(e.name).meta.noCache === !1).map((e) => e.name)), o = Re("breadcrumb"), s = b(() => (o.value?.items.length ?? 0) > 0), c = b(() => m.isMd.value ? { "p-2": !0 } : { "p-3": !0 }), l = m.isMd, u = Re("contentRef"), { height: d } = ut(u);
|
|
877
873
|
function f({ size: e }) {
|
|
878
874
|
n.drawerSize = e;
|
|
879
875
|
}
|
|
880
|
-
let p =
|
|
876
|
+
let p = b(() => t.meta.fullScreen);
|
|
881
877
|
return (e, t) => {
|
|
882
|
-
let r =
|
|
883
|
-
return p.value ? (
|
|
884
|
-
default:
|
|
878
|
+
let r = Pe("RouterView");
|
|
879
|
+
return p.value ? (N(), x(r, { key: 0 }, {
|
|
880
|
+
default: B(({ Component: e }) => [(N(), x(I(e)))]),
|
|
885
881
|
_: 1
|
|
886
|
-
})) : (
|
|
882
|
+
})) : (N(), x(R(tt), {
|
|
887
883
|
key: 1,
|
|
888
884
|
class: "h-full"
|
|
889
885
|
}, {
|
|
890
|
-
default:
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
visible:
|
|
894
|
-
"onUpdate:visible": t[0] ||= (e) =>
|
|
886
|
+
default: B(() => [
|
|
887
|
+
T(sn),
|
|
888
|
+
T(R(Je), {
|
|
889
|
+
visible: R(n).drawerOpen,
|
|
890
|
+
"onUpdate:visible": t[0] ||= (e) => R(n).drawerOpen = e,
|
|
895
891
|
footer: !1,
|
|
896
|
-
mode:
|
|
892
|
+
mode: R(l) ? "overlay" : "push",
|
|
897
893
|
placement: "left",
|
|
898
|
-
"show-overlay":
|
|
899
|
-
size:
|
|
894
|
+
"show-overlay": R(l),
|
|
895
|
+
size: R(l) ? "200px" : `${R(n).drawerSize}px`,
|
|
900
896
|
"size-draggable": {
|
|
901
897
|
max: 450,
|
|
902
898
|
min: 180
|
|
903
899
|
},
|
|
904
900
|
onSizeDragEnd: f
|
|
905
901
|
}, {
|
|
906
|
-
default:
|
|
902
|
+
default: B(() => [T(qt, { class: "no_drawer_body_padding" })]),
|
|
907
903
|
_: 1
|
|
908
904
|
}, 8, [
|
|
909
905
|
"visible",
|
|
@@ -911,28 +907,28 @@ var rn = ht("login", () => {
|
|
|
911
907
|
"show-overlay",
|
|
912
908
|
"size"
|
|
913
909
|
]),
|
|
914
|
-
|
|
910
|
+
T(R(Ge), {
|
|
915
911
|
ref_key: "contentRef",
|
|
916
912
|
ref: u,
|
|
917
913
|
class: "overflow-hidden"
|
|
918
914
|
}, {
|
|
919
|
-
default:
|
|
915
|
+
default: B(() => [T(R(ee), {
|
|
920
916
|
always: "",
|
|
921
|
-
"view-class":
|
|
917
|
+
"view-class": ke(["relative flex flex-col", {
|
|
922
918
|
...c.value,
|
|
923
919
|
"pt-8": s.value
|
|
924
920
|
}]),
|
|
925
921
|
"view-style": {
|
|
926
922
|
minWidth: "1200px",
|
|
927
|
-
minHeight: `${Math.max(
|
|
923
|
+
minHeight: `${Math.max(R(d), 438)}px`
|
|
928
924
|
}
|
|
929
925
|
}, {
|
|
930
|
-
default:
|
|
931
|
-
default:
|
|
932
|
-
exclude:
|
|
926
|
+
default: B(() => [T(Jt, { ref: "breadcrumb" }, null, 512), T(r, null, {
|
|
927
|
+
default: B(({ Component: e }) => [(N(), x(xe, {
|
|
928
|
+
exclude: R(i).excludeKPname,
|
|
933
929
|
include: a.value
|
|
934
|
-
}, [(
|
|
935
|
-
default:
|
|
930
|
+
}, [(N(), x(Se, null, {
|
|
931
|
+
default: B(() => [(N(), x(I(e), { class: "flex-auto" }))]),
|
|
936
932
|
_: 2
|
|
937
933
|
}, 1024))], 1032, ["exclude", "include"]))]),
|
|
938
934
|
_: 1
|
|
@@ -946,9 +942,9 @@ var rn = ht("login", () => {
|
|
|
946
942
|
}));
|
|
947
943
|
};
|
|
948
944
|
}
|
|
949
|
-
}), [["__scopeId", "data-v-f74cbe56"]]),
|
|
950
|
-
function
|
|
951
|
-
let n =
|
|
945
|
+
}), [["__scopeId", "data-v-f74cbe56"]]), ln = /* @__PURE__ */ new Set();
|
|
946
|
+
function un(e, t) {
|
|
947
|
+
let n = b(() => typeof e.body == "function" ? e.body(k) : e.body), r = {
|
|
952
948
|
attach: "#app",
|
|
953
949
|
closeOnEscKeydown: !1,
|
|
954
950
|
closeOnOverlayClick: !1,
|
|
@@ -958,30 +954,29 @@ function ln(e, t) {
|
|
|
958
954
|
lazy: !0,
|
|
959
955
|
sizeDraggable: !0,
|
|
960
956
|
...e ?? {},
|
|
961
|
-
body: () =>
|
|
962
|
-
},
|
|
963
|
-
...
|
|
957
|
+
body: () => k(Un, {}, { default: () => n.value })
|
|
958
|
+
}, i, a = {
|
|
959
|
+
...r,
|
|
964
960
|
onClose: (e) => {
|
|
965
|
-
|
|
961
|
+
r.onClose?.(e), ln.delete(i);
|
|
966
962
|
}
|
|
967
963
|
};
|
|
968
|
-
return delete
|
|
964
|
+
return delete a.closeWhenCloseAll, i = Ye(a, t ?? o()), r.closeWhenCloseAll && ln.add(i), i;
|
|
969
965
|
}
|
|
970
|
-
var
|
|
971
|
-
return
|
|
966
|
+
var dn = function(...e) {
|
|
967
|
+
return un(...e);
|
|
972
968
|
};
|
|
973
|
-
|
|
974
|
-
|
|
969
|
+
dn.closeAll = () => {
|
|
970
|
+
ln.forEach((e) => {
|
|
975
971
|
e.hide?.();
|
|
976
972
|
});
|
|
977
973
|
};
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
function dn() {
|
|
974
|
+
// ../../packages/dlzn-ui/router/index.ts
|
|
975
|
+
function fn() {
|
|
981
976
|
return {
|
|
982
977
|
children: [{
|
|
983
978
|
children: [{
|
|
984
|
-
component:
|
|
979
|
+
component: p["./profile/Index.vue"],
|
|
985
980
|
meta: {
|
|
986
981
|
fullScreen: !1,
|
|
987
982
|
hidden: !0,
|
|
@@ -993,7 +988,7 @@ function dn() {
|
|
|
993
988
|
name: "Profile",
|
|
994
989
|
path: "profile"
|
|
995
990
|
}],
|
|
996
|
-
component:
|
|
991
|
+
component: p["./Home.vue"],
|
|
997
992
|
meta: {
|
|
998
993
|
fullScreen: !1,
|
|
999
994
|
hidden: !1,
|
|
@@ -1005,17 +1000,17 @@ function dn() {
|
|
|
1005
1000
|
name: "Home",
|
|
1006
1001
|
path: "home"
|
|
1007
1002
|
}],
|
|
1008
|
-
component:
|
|
1003
|
+
component: cn,
|
|
1009
1004
|
name: "Index",
|
|
1010
1005
|
path: "/"
|
|
1011
1006
|
};
|
|
1012
1007
|
}
|
|
1013
|
-
var
|
|
1014
|
-
history:
|
|
1008
|
+
var J = bt({
|
|
1009
|
+
history: xt(VITE_BASE_URL),
|
|
1015
1010
|
routes: [
|
|
1016
|
-
|
|
1011
|
+
fn(),
|
|
1017
1012
|
{
|
|
1018
|
-
component:
|
|
1013
|
+
component: p["./Login.vue"],
|
|
1019
1014
|
meta: {
|
|
1020
1015
|
fullScreen: !1,
|
|
1021
1016
|
hidden: !0,
|
|
@@ -1027,8 +1022,8 @@ var Y = vt({
|
|
|
1027
1022
|
name: "Login",
|
|
1028
1023
|
path: "/login"
|
|
1029
1024
|
},
|
|
1030
|
-
...
|
|
1031
|
-
component:
|
|
1025
|
+
...p["./Register.vue"] === void 0 ? [] : [{
|
|
1026
|
+
component: p["./Register.vue"],
|
|
1032
1027
|
meta: {
|
|
1033
1028
|
fullScreen: !1,
|
|
1034
1029
|
hidden: !0,
|
|
@@ -1041,7 +1036,7 @@ var Y = vt({
|
|
|
1041
1036
|
path: "/register"
|
|
1042
1037
|
}],
|
|
1043
1038
|
{
|
|
1044
|
-
component:
|
|
1039
|
+
component: p["./NotFound.vue"],
|
|
1045
1040
|
meta: {
|
|
1046
1041
|
fullScreen: !1,
|
|
1047
1042
|
hidden: !0,
|
|
@@ -1057,16 +1052,16 @@ var Y = vt({
|
|
|
1057
1052
|
sensitive: !0,
|
|
1058
1053
|
strict: !0
|
|
1059
1054
|
});
|
|
1060
|
-
|
|
1061
|
-
if (e.query._fromLeftTree === "true" &&
|
|
1055
|
+
J.beforeEach(async (e) => {
|
|
1056
|
+
if (e.query._fromLeftTree === "true" && g().add(e.name), !["Login", "Register"].includes(e.name)) return an().token === "" ? { name: "Login" } : Gt().routersRaw.length > 0 ? void 0 : (await Q().getUserInfo(), J.resolve({
|
|
1062
1057
|
path: e.path,
|
|
1063
1058
|
query: e.query
|
|
1064
1059
|
}));
|
|
1065
|
-
}),
|
|
1066
|
-
|
|
1060
|
+
}), J.afterEach((e, t, n) => {
|
|
1061
|
+
Ft.closeAll(), dn.closeAll();
|
|
1067
1062
|
let { meta: r, name: i } = e, { fullScreen: a, parentName: o, title: s } = r;
|
|
1068
|
-
document.title = s ||
|
|
1069
|
-
let c =
|
|
1063
|
+
document.title = s || G().appInfo.appName;
|
|
1064
|
+
let c = K();
|
|
1070
1065
|
if (![
|
|
1071
1066
|
"Login",
|
|
1072
1067
|
"NotFound",
|
|
@@ -1078,37 +1073,36 @@ Y.beforeEach(async (e) => {
|
|
|
1078
1073
|
query: e.query
|
|
1079
1074
|
});
|
|
1080
1075
|
}
|
|
1081
|
-
|
|
1076
|
+
g().remove(i), VITE_MODE === "development" && (St(n, yt.aborted) ? l.info("导航被中断") : St(n, yt.cancelled) ? l.info("导航被取消,因为有一个新的导航") : St(n, yt.duplicated) && l.info("导航被阻止,因为我们已经在目标位置了"));
|
|
1082
1077
|
});
|
|
1083
|
-
function
|
|
1084
|
-
if (
|
|
1078
|
+
function Y(e) {
|
|
1079
|
+
if (J.hasRoute(e)) return J.getRoutes().find((t) => t.name === e);
|
|
1085
1080
|
}
|
|
1086
|
-
|
|
1087
|
-
//#region ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1081
|
+
// ../../packages/dlzn-ui/plugins/autoImport/$alova/index.ts
|
|
1088
1082
|
var pn = 15e3, mn = "网络错误,请稍后再试";
|
|
1089
1083
|
function hn(e, t = !0) {
|
|
1090
1084
|
let n = {};
|
|
1091
1085
|
return Object.keys(e).forEach((r) => {
|
|
1092
|
-
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !
|
|
1086
|
+
(!t || (Array.isArray(e[r]) ? e[r].length > 0 : !s(e[r]))) && (n[r] = e[r]);
|
|
1093
1087
|
}), n;
|
|
1094
1088
|
}
|
|
1095
1089
|
function gn(e, t = !0) {
|
|
1096
1090
|
return new URLSearchParams(hn(e, t)).toString();
|
|
1097
1091
|
}
|
|
1098
1092
|
function _n(e) {
|
|
1099
|
-
let { data: t, response:
|
|
1100
|
-
if (typeof
|
|
1093
|
+
let { data: t, response: n, useDownload: r } = e;
|
|
1094
|
+
if (typeof r == "string") f(t, r);
|
|
1101
1095
|
else {
|
|
1102
|
-
let e = new URLSearchParams((
|
|
1103
|
-
e ? f(t, e) :
|
|
1096
|
+
let e = new URLSearchParams((n.headers.get("content-disposition") ?? "").replace(/;\s*/g, "&")).get("filename");
|
|
1097
|
+
e ? f(t, e) : a.error("返回的 response header 没有文件名");
|
|
1104
1098
|
}
|
|
1105
1099
|
}
|
|
1106
|
-
var X =
|
|
1100
|
+
var X = Ct({
|
|
1107
1101
|
baseURL: VITE_BASE_URL,
|
|
1108
1102
|
beforeRequest(e) {
|
|
1109
1103
|
e.config.credentials = e.config.credentials ?? "omit";
|
|
1110
|
-
let [t, ...
|
|
1111
|
-
!e.url.startsWith("http") && !
|
|
1104
|
+
let [t, ...r] = VITE_API_PROXY_PREFIX_ARRAY;
|
|
1105
|
+
!e.url.startsWith("http") && !r.some((t) => Et.join("/", e.url).startsWith(Et.join("/", t, "/"))) && (e.url = Et.join(t, e.url)), e.meta = {
|
|
1112
1106
|
use600Alert: !0,
|
|
1113
1107
|
useDataResult: !0,
|
|
1114
1108
|
useDownload: !1,
|
|
@@ -1125,111 +1119,111 @@ var X = St({
|
|
|
1125
1119
|
useToken: !e.url.startsWith("http"),
|
|
1126
1120
|
...e.meta ?? {}
|
|
1127
1121
|
};
|
|
1128
|
-
let
|
|
1129
|
-
l ||
|
|
1122
|
+
let i = an(), { useEmptyData: a, useEmptyParams: o, useFormData: c, useInPolling: l, useLoading: u, useResponseBlob: d, useToken: f } = e.meta;
|
|
1123
|
+
l || G().requestActive(), f && (i.token ? e.config.headers.Authorization = i.token : e.abort()), u !== !1 && n.show(u === !0 ? void 0 : u);
|
|
1130
1124
|
let p = e.config.params;
|
|
1131
|
-
if (typeof p != "string" && (e.config.params = gn(p, o)), a &&
|
|
1125
|
+
if (typeof p != "string" && (e.config.params = gn(p, o)), a && _t(e.data)) {
|
|
1132
1126
|
let t = {}, n = e.data;
|
|
1133
1127
|
Object.keys(n).forEach((e) => {
|
|
1134
|
-
|
|
1128
|
+
s(n[e]) || (t[e] = n[e]);
|
|
1135
1129
|
}), e.data = t;
|
|
1136
1130
|
}
|
|
1137
|
-
if (
|
|
1131
|
+
if (c) {
|
|
1138
1132
|
let t = new FormData();
|
|
1139
1133
|
Object.keys(e.data).forEach((n) => {
|
|
1140
1134
|
t.append(n, e.data[n]);
|
|
1141
1135
|
}), e.data = t;
|
|
1142
1136
|
}
|
|
1143
|
-
e.config.timeout === pn && (
|
|
1137
|
+
e.config.timeout === pn && (c || e.data instanceof FormData || d) && (e.config.timeout = 0);
|
|
1144
1138
|
},
|
|
1145
1139
|
cacheFor: null,
|
|
1146
|
-
requestAdapter:
|
|
1140
|
+
requestAdapter: wt(),
|
|
1147
1141
|
responded: {
|
|
1148
1142
|
onComplete: (e) => {
|
|
1149
|
-
e.meta.useLoading !== !1 &&
|
|
1143
|
+
e.meta.useLoading !== !1 && n.hide();
|
|
1150
1144
|
},
|
|
1151
1145
|
onError: async (e, t) => {
|
|
1152
1146
|
let { useSysFailMsg: n } = t.meta;
|
|
1153
1147
|
if (e instanceof Error) {
|
|
1154
1148
|
let { message: t } = e;
|
|
1155
1149
|
if (t.toLowerCase().includes("abort")) return Promise.reject(e);
|
|
1156
|
-
if (t.toLowerCase().includes("timeout")) return n &&
|
|
1150
|
+
if (t.toLowerCase().includes("timeout")) return n && l.error("请求超时"), Promise.reject(e);
|
|
1157
1151
|
}
|
|
1158
|
-
return n &&
|
|
1152
|
+
return n && l.error(mn), Promise.reject(e);
|
|
1159
1153
|
},
|
|
1160
1154
|
onSuccess: async (e, t) => {
|
|
1161
1155
|
if (typeof e == "string") return e;
|
|
1162
|
-
let { useDataResult:
|
|
1163
|
-
if (
|
|
1164
|
-
if (
|
|
1156
|
+
let { useDataResult: n, useDownload: r, useFailMsg: i, useResponseBlob: o, useResponseText: s, useSuccessMsg: c, useSysFailMsg: u, useToken: f } = t.meta, { headers: p, ok: m, status: ee } = e;
|
|
1157
|
+
if (m === !1) {
|
|
1158
|
+
if (u) {
|
|
1165
1159
|
let e = {
|
|
1166
1160
|
403: "当前操作没有权限",
|
|
1167
1161
|
404: "访问资源不存在",
|
|
1168
1162
|
500: "服务不可用,请稍后再试或联系管理员!"
|
|
1169
|
-
}[
|
|
1170
|
-
|
|
1163
|
+
}[ee] ?? mn;
|
|
1164
|
+
l.error(e);
|
|
1171
1165
|
}
|
|
1172
1166
|
return Promise.reject(e);
|
|
1173
1167
|
}
|
|
1174
|
-
if (o && !
|
|
1168
|
+
if (o && !p.get("content-type")?.includes("application/json")) {
|
|
1175
1169
|
let t;
|
|
1176
1170
|
try {
|
|
1177
1171
|
t = await e.blob();
|
|
1178
1172
|
} catch (e) {
|
|
1179
|
-
return
|
|
1173
|
+
return a.error("返回的 response 不能被blob() 方法所解析"), Promise.reject(e);
|
|
1180
1174
|
}
|
|
1181
|
-
return
|
|
1175
|
+
return r !== !1 && _n({
|
|
1182
1176
|
data: t,
|
|
1183
1177
|
response: e,
|
|
1184
|
-
useDownload:
|
|
1178
|
+
useDownload: r
|
|
1185
1179
|
}), t;
|
|
1186
1180
|
}
|
|
1187
|
-
if (s && !
|
|
1181
|
+
if (s && !p.get("content-type")?.includes("application/json")) {
|
|
1188
1182
|
let t;
|
|
1189
1183
|
try {
|
|
1190
1184
|
t = await e.text();
|
|
1191
1185
|
} catch (e) {
|
|
1192
|
-
return
|
|
1186
|
+
return a.error("返回的 response 不能被text() 方法所解析"), Promise.reject(e);
|
|
1193
1187
|
}
|
|
1194
1188
|
return t;
|
|
1195
1189
|
}
|
|
1196
|
-
let
|
|
1190
|
+
let h;
|
|
1197
1191
|
try {
|
|
1198
|
-
|
|
1192
|
+
h = await e.json();
|
|
1199
1193
|
} catch (e) {
|
|
1200
|
-
return
|
|
1194
|
+
return a.error("返回的 response 不能被json() 方法所解析"), Promise.reject(e);
|
|
1201
1195
|
}
|
|
1202
|
-
if (
|
|
1203
|
-
let { code: t, data: s, msg:
|
|
1196
|
+
if (h?.code !== void 0) {
|
|
1197
|
+
let { code: t, data: s, msg: u } = h;
|
|
1204
1198
|
if (t >= 400) {
|
|
1205
1199
|
if (t === 600) {
|
|
1206
|
-
if (d(
|
|
1207
|
-
|
|
1208
|
-
body: () =>
|
|
1200
|
+
if (d(u).then((e) => {
|
|
1201
|
+
W({
|
|
1202
|
+
body: () => k("div", { innerHTML: e }),
|
|
1209
1203
|
cancelBtn: null
|
|
1210
1204
|
});
|
|
1211
|
-
}), !o) return
|
|
1212
|
-
} else t === 401 &&
|
|
1213
|
-
return Promise.reject(
|
|
1205
|
+
}), !o) return h;
|
|
1206
|
+
} else t === 401 && f ? J.push({ name: "Login" }) : i !== !1 && l.error(i === !0 ? u : i);
|
|
1207
|
+
return Promise.reject(h);
|
|
1214
1208
|
}
|
|
1215
1209
|
{
|
|
1216
|
-
let
|
|
1210
|
+
let i = vt.alovaResCodeSuccessCb?.({
|
|
1217
1211
|
code: t,
|
|
1218
1212
|
data: s,
|
|
1219
|
-
msg:
|
|
1213
|
+
msg: u
|
|
1220
1214
|
});
|
|
1221
|
-
return
|
|
1215
|
+
return i === void 0 ? (r !== !1 && (typeof r == "string" ? _n({
|
|
1222
1216
|
data: s,
|
|
1223
1217
|
response: e,
|
|
1224
|
-
useDownload:
|
|
1225
|
-
}) :
|
|
1218
|
+
useDownload: r
|
|
1219
|
+
}) : a.error("下载失败,返回的不是一个有效的地址")), c && l(u), n ? s === void 0 ? h : s : h) : i;
|
|
1226
1220
|
}
|
|
1227
1221
|
}
|
|
1228
|
-
return
|
|
1222
|
+
return h;
|
|
1229
1223
|
}
|
|
1230
1224
|
},
|
|
1231
1225
|
shareRequest: !1,
|
|
1232
|
-
statesHook:
|
|
1226
|
+
statesHook: Tt,
|
|
1233
1227
|
timeout: pn
|
|
1234
1228
|
}), vn = /* @__PURE__ */ new Map();
|
|
1235
1229
|
function yn(e) {
|
|
@@ -1261,22 +1255,21 @@ function Sn() {
|
|
|
1261
1255
|
}
|
|
1262
1256
|
function Cn(e, t) {
|
|
1263
1257
|
let n = wn(e);
|
|
1264
|
-
return t === void 0 ?
|
|
1258
|
+
return t === void 0 ? i(n) : i(n, t);
|
|
1265
1259
|
}
|
|
1266
1260
|
function wn(e, t) {
|
|
1267
1261
|
let n;
|
|
1268
|
-
return Z.has(e) ? n = Z.get(e) : (n =
|
|
1262
|
+
return Z.has(e) ? n = Z.get(e) : (n = P([]), Z.set(e, n), xn(e).then((e) => {
|
|
1269
1263
|
n.value = e;
|
|
1270
|
-
})),
|
|
1264
|
+
})), b(() => n.value.filter((e) => t === void 0 || t.includes(e.value)));
|
|
1271
1265
|
}
|
|
1272
1266
|
function Tn(e) {
|
|
1273
1267
|
vn.delete(e), Z.has(e) && xn(e).then((t) => {
|
|
1274
1268
|
Z.get(e).value = t;
|
|
1275
1269
|
});
|
|
1276
1270
|
}
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
var En = /* @__PURE__ */ O({
|
|
1271
|
+
// ../../packages/dlzn-ui/components/checkbox-group/src/checkbox-group.vue
|
|
1272
|
+
var En = /* @__PURE__ */ E({
|
|
1280
1273
|
inheritAttrs: !1,
|
|
1281
1274
|
name: "TCheckboxGroup",
|
|
1282
1275
|
__name: "checkbox-group",
|
|
@@ -1303,44 +1296,44 @@ var En = /* @__PURE__ */ O({
|
|
|
1303
1296
|
},
|
|
1304
1297
|
emits: ["update:modelValue"],
|
|
1305
1298
|
setup(e, { emit: t }) {
|
|
1306
|
-
let
|
|
1299
|
+
let n = e, r = t, i = D();
|
|
1307
1300
|
function o(e) {
|
|
1308
|
-
|
|
1301
|
+
i.exposed = e ?? {};
|
|
1309
1302
|
}
|
|
1310
|
-
let
|
|
1303
|
+
let l = b(() => {
|
|
1311
1304
|
let e;
|
|
1312
|
-
return
|
|
1305
|
+
return n.dicCode ? (n.options && a.error("TCheckboxGroup: dicCode and options cannot be used together"), e = wn(n.dicCode).value) : e = typeof n.options == "string" ? ae(n.options).value : n.options, n.showCheckAll && (e === void 0 ? a.error("TCheckboxGroup: options is required, when showCheckAll is true") : e.unshift({
|
|
1313
1306
|
checkAll: !0,
|
|
1314
1307
|
label: "全选"
|
|
1315
1308
|
})), e;
|
|
1316
|
-
}), u =
|
|
1317
|
-
if (!Array.isArray(
|
|
1318
|
-
else if (
|
|
1319
|
-
let e =
|
|
1320
|
-
if (e) return
|
|
1321
|
-
if (t) return
|
|
1309
|
+
}), u = b(() => {
|
|
1310
|
+
if (!Array.isArray(n.modelValue)) a.error("TCheckboxGroup: modelValue must be an array");
|
|
1311
|
+
else if (l.value !== void 0) {
|
|
1312
|
+
let e = l.value.every((e) => typeof (e.value ?? e) == "string"), t = l.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1313
|
+
if (e) return n.modelValue.map((e) => s(e) ? e : String(e));
|
|
1314
|
+
if (t) return n.modelValue.map((e) => c(e) ? Number(e) : e);
|
|
1322
1315
|
}
|
|
1323
|
-
return
|
|
1324
|
-
}), d =
|
|
1325
|
-
let e = { ...
|
|
1316
|
+
return n.modelValue;
|
|
1317
|
+
}), d = b(() => {
|
|
1318
|
+
let e = { ...n };
|
|
1326
1319
|
return delete e.dicCode, delete e.showCheckAll, Object.keys(e).forEach((t) => {
|
|
1327
1320
|
e[t] === void 0 && delete e[t];
|
|
1328
1321
|
}), e;
|
|
1329
1322
|
});
|
|
1330
|
-
return (e, t) => (
|
|
1323
|
+
return (e, t) => (N(), x(I(k(R(Ue), j(e.$attrs, {
|
|
1331
1324
|
...d.value,
|
|
1332
|
-
options:
|
|
1325
|
+
options: l.value,
|
|
1333
1326
|
modelValue: u.value,
|
|
1334
1327
|
onChange: (...e) => {
|
|
1335
|
-
|
|
1328
|
+
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1336
1329
|
},
|
|
1337
1330
|
ref: o
|
|
1338
1331
|
}), e.$slots))));
|
|
1339
1332
|
}
|
|
1340
|
-
}), Dn = /* @__PURE__ */
|
|
1333
|
+
}), Dn = /* @__PURE__ */ E({
|
|
1341
1334
|
inheritAttrs: !1,
|
|
1342
1335
|
__name: "cron",
|
|
1343
|
-
props: /*@__PURE__*/
|
|
1336
|
+
props: /*@__PURE__*/ A({
|
|
1344
1337
|
modelValue: {},
|
|
1345
1338
|
adornment: {},
|
|
1346
1339
|
align: {},
|
|
@@ -1385,19 +1378,19 @@ var En = /* @__PURE__ */ O({
|
|
|
1385
1378
|
onPaste: { type: Function },
|
|
1386
1379
|
onValidate: { type: Function },
|
|
1387
1380
|
onWheel: { type: Function }
|
|
1388
|
-
},
|
|
1381
|
+
}, ce),
|
|
1389
1382
|
emits: ["update:modelValue"],
|
|
1390
1383
|
setup(e, { emit: t }) {
|
|
1391
|
-
let n = e, r = t, i =
|
|
1384
|
+
let n = e, r = t, i = Ee("isFormDisabled", b(() => !1)), a = Ee("isFormReadonly", b(() => !1)), o = b(() => {
|
|
1392
1385
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1393
1386
|
return {
|
|
1394
1387
|
...n,
|
|
1395
|
-
adornment: { append: () =>
|
|
1388
|
+
adornment: { append: () => k($, {
|
|
1396
1389
|
default: "cron",
|
|
1397
1390
|
onClick: () => {
|
|
1398
|
-
let i =
|
|
1399
|
-
|
|
1400
|
-
body: () =>
|
|
1391
|
+
let i = P(null);
|
|
1392
|
+
W({
|
|
1393
|
+
body: () => k(Te(() => import("../components/cron/src/Picker.mjs")), {
|
|
1401
1394
|
disabled: e,
|
|
1402
1395
|
modelValue: n.modelValue,
|
|
1403
1396
|
onVnodeMounted: (e) => {
|
|
@@ -1419,20 +1412,20 @@ var En = /* @__PURE__ */ O({
|
|
|
1419
1412
|
variant: "text"
|
|
1420
1413
|
}) }
|
|
1421
1414
|
};
|
|
1422
|
-
}), s =
|
|
1415
|
+
}), s = Ie(), c = D();
|
|
1423
1416
|
function l(e) {
|
|
1424
1417
|
c.exposed = e ?? {};
|
|
1425
1418
|
}
|
|
1426
|
-
let u =
|
|
1419
|
+
let u = b(() => j(s, {
|
|
1427
1420
|
...o.value,
|
|
1428
1421
|
onChange: (...e) => {
|
|
1429
1422
|
r("update:modelValue", e[0]), n.onChange?.(...e);
|
|
1430
1423
|
},
|
|
1431
1424
|
ref: l
|
|
1432
1425
|
}));
|
|
1433
|
-
return (e, t) => (
|
|
1426
|
+
return (e, t) => (N(), x(R(le), M(O(u.value)), null, 16));
|
|
1434
1427
|
}
|
|
1435
|
-
}), On = /* @__PURE__ */
|
|
1428
|
+
}), On = /* @__PURE__ */ E({
|
|
1436
1429
|
inheritAttrs: !1,
|
|
1437
1430
|
name: "TRadioGroup",
|
|
1438
1431
|
__name: "radio-group",
|
|
@@ -1462,30 +1455,30 @@ var En = /* @__PURE__ */ O({
|
|
|
1462
1455
|
},
|
|
1463
1456
|
emits: ["update:modelValue"],
|
|
1464
1457
|
setup(e, { emit: t }) {
|
|
1465
|
-
let
|
|
1458
|
+
let n = e, r = t, i = D();
|
|
1466
1459
|
function o(e) {
|
|
1467
|
-
|
|
1460
|
+
i.exposed = e ?? {};
|
|
1468
1461
|
}
|
|
1469
|
-
let
|
|
1470
|
-
let e = { ...
|
|
1462
|
+
let l = b(() => n.dicCode ? (n.options && a.error("TRadioGroup: dicCode and options cannot be used together"), wn(n.dicCode).value) : typeof n.options == "string" ? ae(n.options).value : n.options), d = b(() => {
|
|
1463
|
+
let e = { ...n };
|
|
1471
1464
|
return delete e.dicCode, Object.keys(e).forEach((t) => {
|
|
1472
1465
|
e[t] === void 0 && delete e[t];
|
|
1473
1466
|
}), e;
|
|
1474
|
-
}), f =
|
|
1475
|
-
if (
|
|
1476
|
-
let e =
|
|
1477
|
-
if (e) return u(
|
|
1478
|
-
if (t) return
|
|
1467
|
+
}), f = b(() => {
|
|
1468
|
+
if (l.value !== void 0 && !s(n.modelValue)) {
|
|
1469
|
+
let e = l.value.every((e) => typeof (e.value ?? e) == "string"), t = l.value.every((e) => typeof (e.value ?? e) == "number");
|
|
1470
|
+
if (e) return u(n.modelValue);
|
|
1471
|
+
if (t) return c(n.modelValue) ? Number(n.modelValue) : n.modelValue;
|
|
1479
1472
|
}
|
|
1480
|
-
return
|
|
1473
|
+
return n.modelValue;
|
|
1481
1474
|
});
|
|
1482
|
-
return (e, t) => (
|
|
1475
|
+
return (e, t) => (N(), x(I(k(R(it), j(e.$attrs, {
|
|
1483
1476
|
...d.value,
|
|
1484
|
-
options:
|
|
1477
|
+
options: l.value,
|
|
1485
1478
|
modelValue: f.value,
|
|
1486
1479
|
onChange: (...e) => {
|
|
1487
|
-
let [t, ...
|
|
1488
|
-
|
|
1480
|
+
let [t, ...i] = e, a = R(s)(t) ? "" : t;
|
|
1481
|
+
r("update:modelValue", a), n.onChange?.(a, ...i);
|
|
1489
1482
|
},
|
|
1490
1483
|
ref: o
|
|
1491
1484
|
}), e.$slots))));
|
|
@@ -1511,11 +1504,11 @@ var En = /* @__PURE__ */ O({
|
|
|
1511
1504
|
}),
|
|
1512
1505
|
showArrow: !0,
|
|
1513
1506
|
showCheckAll: !1
|
|
1514
|
-
}, An = /* @__PURE__ */
|
|
1507
|
+
}, An = /* @__PURE__ */ E({
|
|
1515
1508
|
inheritAttrs: !1,
|
|
1516
1509
|
name: "TSelect",
|
|
1517
1510
|
__name: "select",
|
|
1518
|
-
props: /*@__PURE__*/
|
|
1511
|
+
props: /*@__PURE__*/ A({
|
|
1519
1512
|
adornment: {},
|
|
1520
1513
|
dicCode: {},
|
|
1521
1514
|
modelValue: {},
|
|
@@ -1577,72 +1570,72 @@ var En = /* @__PURE__ */ O({
|
|
|
1577
1570
|
onSearch: { type: Function }
|
|
1578
1571
|
}, kn),
|
|
1579
1572
|
setup(e) {
|
|
1580
|
-
let t = e,
|
|
1581
|
-
function
|
|
1582
|
-
|
|
1573
|
+
let t = e, n = D();
|
|
1574
|
+
function r(e) {
|
|
1575
|
+
n.exposed = e ?? {};
|
|
1583
1576
|
}
|
|
1584
|
-
let
|
|
1577
|
+
let i = b(() => {
|
|
1585
1578
|
let e;
|
|
1586
|
-
return t.dicCode === void 0 ? e = typeof t.options == "string" ?
|
|
1579
|
+
return t.dicCode === void 0 ? e = typeof t.options == "string" ? ae(t.options).value : t.options : (t.options && a.error("TSelect: dicCode and options cannot be used together"), e = wn(t.dicCode).value), t.showCheckAll && (t.multiple ? e === void 0 ? a.error("TSelect: options is required, when showCheckAll is true") : e.unshift({
|
|
1587
1580
|
checkAll: !0,
|
|
1588
1581
|
[t.keys?.label ?? "label"]: "全选"
|
|
1589
|
-
}) :
|
|
1590
|
-
}), o =
|
|
1591
|
-
if (
|
|
1592
|
-
let e =
|
|
1582
|
+
}) : a.error("TSelect: showCheckAll is supported only for multiple select")), e;
|
|
1583
|
+
}), o = b(() => {
|
|
1584
|
+
if (i.value !== void 0) {
|
|
1585
|
+
let e = i.value.flatMap((e) => e.children ?? [e]), n = t.keys?.value ?? "value", r = e.every((e) => typeof e[n] == "string"), a = e.every((e) => typeof e[n] == "number");
|
|
1593
1586
|
if (t.multiple) {
|
|
1594
1587
|
if (Array.isArray(t.modelValue)) {
|
|
1595
|
-
if (r) return t.modelValue.map((e) =>
|
|
1596
|
-
if (
|
|
1588
|
+
if (r) return t.modelValue.map((e) => s(e) ? e : String(e));
|
|
1589
|
+
if (a) return t.modelValue.map((e) => c(e) ? Number(e) : e);
|
|
1597
1590
|
}
|
|
1598
1591
|
} else if (r) return u(t.modelValue);
|
|
1599
|
-
else if (
|
|
1592
|
+
else if (a) return c(t.modelValue) ? Number(t.modelValue) : t.modelValue;
|
|
1600
1593
|
}
|
|
1601
1594
|
return t.modelValue;
|
|
1602
|
-
}),
|
|
1595
|
+
}), l = b(() => {
|
|
1603
1596
|
let e = {
|
|
1604
1597
|
...t,
|
|
1605
|
-
filterable: t.filterable ??
|
|
1598
|
+
filterable: t.filterable ?? i.value.length > 8
|
|
1606
1599
|
};
|
|
1607
1600
|
return delete e.dicCode, delete e.showCheckAll, delete e.adornment, Object.keys(e).forEach((t) => {
|
|
1608
1601
|
e[t] === void 0 && delete e[t];
|
|
1609
1602
|
}), e;
|
|
1610
|
-
}), d =
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
d.value =
|
|
1603
|
+
}), d = P(0);
|
|
1604
|
+
Ae(() => {
|
|
1605
|
+
ht(n.exposed.$el, () => {
|
|
1606
|
+
d.value = n.exposed.$el.offsetWidth;
|
|
1614
1607
|
}, { box: "border-box" });
|
|
1615
1608
|
});
|
|
1616
|
-
let f =
|
|
1617
|
-
if (
|
|
1618
|
-
}), p =
|
|
1619
|
-
...
|
|
1609
|
+
let f = b(() => {
|
|
1610
|
+
if (l.value.scroll?.type === "virtual" && i.value.length > (l.value.scroll?.threshold ?? 150)) return "300px";
|
|
1611
|
+
}), p = b(() => ({
|
|
1612
|
+
...l.value,
|
|
1620
1613
|
modelValue: o.value,
|
|
1621
1614
|
onChange: (...e) => {
|
|
1622
|
-
let [n, ...r] = e, i =
|
|
1615
|
+
let [n, ...r] = e, i = s(n) ? "" : n;
|
|
1623
1616
|
t["onUpdate:modelValue"]?.(i), t.onChange?.(i, ...r);
|
|
1624
1617
|
},
|
|
1625
|
-
options:
|
|
1618
|
+
options: i.value,
|
|
1626
1619
|
popupProps: {
|
|
1627
|
-
...
|
|
1620
|
+
...l.value.popupProps ?? {},
|
|
1628
1621
|
overlayInnerStyle: (e, t) => ({
|
|
1629
1622
|
...f.value === void 0 ? {} : { height: f.value },
|
|
1630
1623
|
minWidth: `${d.value}px`,
|
|
1631
1624
|
width: "auto",
|
|
1632
|
-
...typeof
|
|
1625
|
+
...typeof l.value.popupProps?.overlayInnerStyle == "function" ? l.value.popupProps.overlayInnerStyle(e, t) : l.value.popupProps?.overlayInnerStyle ?? {}
|
|
1633
1626
|
})
|
|
1634
1627
|
},
|
|
1635
|
-
ref:
|
|
1636
|
-
})), m =
|
|
1637
|
-
return (t, n) => e.adornment ? (
|
|
1628
|
+
ref: r
|
|
1629
|
+
})), m = et;
|
|
1630
|
+
return (t, n) => e.adornment ? (N(), x(I(k(R(m), t.$attrs, {
|
|
1638
1631
|
...e.adornment,
|
|
1639
|
-
default: () =>
|
|
1640
|
-
})), { key: 0 })) : (
|
|
1632
|
+
default: () => k(R(at), p.value, t.$slots)
|
|
1633
|
+
})), { key: 0 })) : (N(), x(I(k(R(at), j(t.$attrs, p.value), t.$slots)), { key: 1 }));
|
|
1641
1634
|
}
|
|
1642
|
-
}), jn = /* @__PURE__ */
|
|
1635
|
+
}), jn = /* @__PURE__ */ E({
|
|
1643
1636
|
inheritAttrs: !1,
|
|
1644
1637
|
__name: "select-sys-user",
|
|
1645
|
-
props: /*@__PURE__*/
|
|
1638
|
+
props: /*@__PURE__*/ A({
|
|
1646
1639
|
modelValue: {},
|
|
1647
1640
|
adornment: {},
|
|
1648
1641
|
autoWidth: { type: Boolean },
|
|
@@ -1681,19 +1674,19 @@ var En = /* @__PURE__ */ O({
|
|
|
1681
1674
|
onMouseleave: { type: Function },
|
|
1682
1675
|
onPaste: { type: Function },
|
|
1683
1676
|
onRemove: { type: Function }
|
|
1684
|
-
},
|
|
1677
|
+
}, pe),
|
|
1685
1678
|
emits: ["update:modelValue"],
|
|
1686
1679
|
setup(e, { emit: t }) {
|
|
1687
|
-
let n = e, r = t, i =
|
|
1680
|
+
let n = e, r = t, i = Ee("isFormDisabled", b(() => !1)), a = Ee("isFormReadonly", b(() => !1)), o = b(() => {
|
|
1688
1681
|
let e = n.disabled ?? i.value, t = n.readonly ?? a.value;
|
|
1689
1682
|
return {
|
|
1690
1683
|
...n,
|
|
1691
|
-
adornment: e || t ? void 0 : { append: () =>
|
|
1684
|
+
adornment: e || t ? void 0 : { append: () => k($, {
|
|
1692
1685
|
default: "选择用户",
|
|
1693
1686
|
onClick: () => {
|
|
1694
|
-
let e =
|
|
1695
|
-
|
|
1696
|
-
body: () =>
|
|
1687
|
+
let e = P(null);
|
|
1688
|
+
W({
|
|
1689
|
+
body: () => k(Te(() => import("../components/select-sys-user/src/Picker.mjs")), {
|
|
1697
1690
|
max: n.max,
|
|
1698
1691
|
modelValue: n.modelValue,
|
|
1699
1692
|
onVnodeMounted: (t) => {
|
|
@@ -1714,11 +1707,11 @@ var En = /* @__PURE__ */ O({
|
|
|
1714
1707
|
variant: "text"
|
|
1715
1708
|
}) }
|
|
1716
1709
|
};
|
|
1717
|
-
}), s =
|
|
1710
|
+
}), s = Ie(), c = D();
|
|
1718
1711
|
function l(e) {
|
|
1719
1712
|
c.exposed = e ?? {};
|
|
1720
1713
|
}
|
|
1721
|
-
let u =
|
|
1714
|
+
let u = b(() => j(s, {
|
|
1722
1715
|
...o.value,
|
|
1723
1716
|
inputProps: {
|
|
1724
1717
|
readonly: !0,
|
|
@@ -1730,8 +1723,8 @@ var En = /* @__PURE__ */ O({
|
|
|
1730
1723
|
placeholder: "请选择用户",
|
|
1731
1724
|
ref: l
|
|
1732
1725
|
}));
|
|
1733
|
-
return (e, t) => (
|
|
1734
|
-
tag:
|
|
1726
|
+
return (e, t) => (N(), x(R(me), M(O(u.value)), {
|
|
1727
|
+
tag: B(({ value: e }) => [w(L(R(tn)(e).value?.userName), 1)]),
|
|
1735
1728
|
_: 1
|
|
1736
1729
|
}, 16));
|
|
1737
1730
|
}
|
|
@@ -1742,7 +1735,7 @@ var En = /* @__PURE__ */ O({
|
|
|
1742
1735
|
hover: !0,
|
|
1743
1736
|
icon: () => (e, t) => {
|
|
1744
1737
|
let n = "";
|
|
1745
|
-
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null :
|
|
1738
|
+
return t.getChildren && t.getChildren(!1) && (t.expanded ? (n = "cuida:caret-down-outline", t.loading && (n = "line-md:loading-twotone-loop")) : n = "cuida:caret-right-outline"), n === "" ? null : k($, {
|
|
1746
1739
|
icon: n,
|
|
1747
1740
|
shape: "circle",
|
|
1748
1741
|
size: "small",
|
|
@@ -1754,11 +1747,11 @@ var En = /* @__PURE__ */ O({
|
|
|
1754
1747
|
line: !0,
|
|
1755
1748
|
transition: !0,
|
|
1756
1749
|
valueMode: "all"
|
|
1757
|
-
}, Nn = /* @__PURE__ */
|
|
1750
|
+
}, Nn = /* @__PURE__ */ E({
|
|
1758
1751
|
inheritAttrs: !1,
|
|
1759
1752
|
name: "TTree",
|
|
1760
1753
|
__name: "tree",
|
|
1761
|
-
props: /*@__PURE__*/
|
|
1754
|
+
props: /*@__PURE__*/ A({
|
|
1762
1755
|
icon: { type: [Function, Boolean] },
|
|
1763
1756
|
"onUpdate:actived": { type: Function },
|
|
1764
1757
|
"onUpdate:expanded": { type: Function },
|
|
@@ -1769,6 +1762,7 @@ var En = /* @__PURE__ */ O({
|
|
|
1769
1762
|
defaultActived: {},
|
|
1770
1763
|
allowDrop: { type: Function },
|
|
1771
1764
|
allowFoldNodeOnFilter: { type: Boolean },
|
|
1765
|
+
checkAllAffectedBy: {},
|
|
1772
1766
|
checkProps: {},
|
|
1773
1767
|
checkStrictly: { type: Boolean },
|
|
1774
1768
|
checkable: { type: Boolean },
|
|
@@ -1813,21 +1807,21 @@ var En = /* @__PURE__ */ O({
|
|
|
1813
1807
|
treeStore: {}
|
|
1814
1808
|
}, Mn),
|
|
1815
1809
|
setup(e, { expose: t }) {
|
|
1816
|
-
let n = e, r =
|
|
1810
|
+
let n = e, r = Le(), i = b(() => {
|
|
1817
1811
|
let e = { ...n };
|
|
1818
1812
|
return e.expandOnClickNode = e.expandOnClickNode ?? !e.checkable, r.icon && delete e.icon, Object.keys(e).forEach((t) => {
|
|
1819
1813
|
e[t] === void 0 && delete e[t];
|
|
1820
1814
|
}), e;
|
|
1821
|
-
}), a =
|
|
1815
|
+
}), a = D();
|
|
1822
1816
|
function o(e) {
|
|
1823
1817
|
a.exposed = e ?? {};
|
|
1824
1818
|
}
|
|
1825
|
-
return t({}), (e, t) => (
|
|
1819
|
+
return t({}), (e, t) => (N(), x(I(k(R(ot), j(e.$attrs, {
|
|
1826
1820
|
...i.value,
|
|
1827
1821
|
ref: o
|
|
1828
1822
|
}), e.$slots))));
|
|
1829
1823
|
}
|
|
1830
|
-
}), Pn = /* @__PURE__ */
|
|
1824
|
+
}), Pn = /* @__PURE__ */ E({
|
|
1831
1825
|
inheritAttrs: !1,
|
|
1832
1826
|
name: "TTreeSelect",
|
|
1833
1827
|
__name: "tree-select",
|
|
@@ -1894,7 +1888,7 @@ var En = /* @__PURE__ */ O({
|
|
|
1894
1888
|
onSearch: {}
|
|
1895
1889
|
},
|
|
1896
1890
|
setup(e) {
|
|
1897
|
-
let t = e, n =
|
|
1891
|
+
let t = e, n = b(() => typeof t.data == "string" ? ae(t.data).value : t.data), r = b(() => {
|
|
1898
1892
|
let e = { ...t };
|
|
1899
1893
|
return e.selectInputProps = {
|
|
1900
1894
|
minCollapsedNum: 2,
|
|
@@ -1908,16 +1902,16 @@ var En = /* @__PURE__ */ O({
|
|
|
1908
1902
|
}, Object.keys(e).forEach((t) => {
|
|
1909
1903
|
e[t] === void 0 && delete e[t];
|
|
1910
1904
|
}), e;
|
|
1911
|
-
}), i =
|
|
1905
|
+
}), i = D();
|
|
1912
1906
|
function a(e) {
|
|
1913
1907
|
i.exposed = e ?? {};
|
|
1914
1908
|
}
|
|
1915
|
-
let o =
|
|
1916
|
-
return
|
|
1917
|
-
|
|
1909
|
+
let o = P(0);
|
|
1910
|
+
return Ae(() => {
|
|
1911
|
+
ht(i.exposed.$el, () => {
|
|
1918
1912
|
o.value = i.exposed.$el.offsetWidth;
|
|
1919
1913
|
}, { box: "border-box" });
|
|
1920
|
-
}), (e, t) => (
|
|
1914
|
+
}), (e, t) => (N(), x(I(k(R(st), j(e.$attrs, {
|
|
1921
1915
|
...r.value,
|
|
1922
1916
|
data: n.value,
|
|
1923
1917
|
ref: a,
|
|
@@ -1934,7 +1928,7 @@ var En = /* @__PURE__ */ O({
|
|
|
1934
1928
|
}), Fn = ".xlsx,.xls", In = { class: "flex items-center" }, Ln = {
|
|
1935
1929
|
key: 1,
|
|
1936
1930
|
class: "ml-3 text-xs text-(--td-text-color-placeholder)"
|
|
1937
|
-
}, Rn = /*#__PURE__*/
|
|
1931
|
+
}, Rn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
1938
1932
|
inheritAttrs: !1,
|
|
1939
1933
|
name: "TUpload",
|
|
1940
1934
|
__name: "upload",
|
|
@@ -2003,7 +1997,7 @@ var En = /* @__PURE__ */ O({
|
|
|
2003
1997
|
onWaitingUploadFilesChange: {}
|
|
2004
1998
|
},
|
|
2005
1999
|
setup(e, { expose: t }) {
|
|
2006
|
-
let n = e, r =
|
|
2000
|
+
let n = e, r = b(() => {
|
|
2007
2001
|
if (n.requestMethod !== void 0) return (e) => new Promise((t) => {
|
|
2008
2002
|
typeof n.requestMethod == "function" ? n.requestMethod(e).then((e) => {
|
|
2009
2003
|
t({
|
|
@@ -2036,48 +2030,48 @@ var En = /* @__PURE__ */ O({
|
|
|
2036
2030
|
function i() {
|
|
2037
2031
|
typeof n.downloadTemplate == "string" ? f(n.downloadTemplate) : n.downloadTemplate.send();
|
|
2038
2032
|
}
|
|
2039
|
-
let a =
|
|
2033
|
+
let a = b(() => {
|
|
2040
2034
|
let e = { ...n };
|
|
2041
2035
|
return ["image", "image-flow"].includes(e.theme) && (e.accept = e.accept === ".xlsx,.xls" ? "image/*" : e.accept), Object.keys(e).forEach((t) => {
|
|
2042
2036
|
e[t] === void 0 && delete e[t];
|
|
2043
2037
|
}), delete e.downloadTemplate, e.theme === "file" && delete e.tips, e;
|
|
2044
|
-
}), o =
|
|
2038
|
+
}), o = D();
|
|
2045
2039
|
function s(e) {
|
|
2046
2040
|
o.exposed = e ?? {};
|
|
2047
2041
|
}
|
|
2048
|
-
return t({}), (t, o) => (
|
|
2042
|
+
return t({}), (t, o) => (N(), x(I(k(R(ct), j(t.$attrs, {
|
|
2049
2043
|
...a.value,
|
|
2050
2044
|
requestMethod: r.value,
|
|
2051
2045
|
ref: s
|
|
2052
|
-
}, { class: a.value.theme }))), null,
|
|
2046
|
+
}, { class: a.value.theme }))), null, we({ _: 2 }, [F(Object.keys(t.$slots), (e) => ({
|
|
2053
2047
|
name: e,
|
|
2054
|
-
fn:
|
|
2048
|
+
fn: B((n) => [Ne(t.$slots, e, M(O(n)), void 0, !0)])
|
|
2055
2049
|
})), a.value.theme === "file" && !Object.hasOwn(t.$slots, "trigger") ? {
|
|
2056
2050
|
name: "trigger",
|
|
2057
|
-
fn:
|
|
2058
|
-
|
|
2059
|
-
default:
|
|
2051
|
+
fn: B(({ files: t }) => [Ce("div", In, [
|
|
2052
|
+
T(R($), { theme: "primary" }, {
|
|
2053
|
+
default: B(() => [w(L(t.length > 0 ? a.value.multiple ? "继续上传" : "重新上传" : "选择文件"), 1)]),
|
|
2060
2054
|
_: 2
|
|
2061
2055
|
}, 1024),
|
|
2062
|
-
e.downloadTemplate ? (
|
|
2056
|
+
e.downloadTemplate ? (N(), x(R($), {
|
|
2063
2057
|
key: 0,
|
|
2064
2058
|
theme: "primary",
|
|
2065
2059
|
variant: "outline",
|
|
2066
|
-
onClick:
|
|
2060
|
+
onClick: ze(i, ["stop"])
|
|
2067
2061
|
}, {
|
|
2068
|
-
default:
|
|
2062
|
+
default: B(() => [...o[0] ||= [w("下载模板", -1)]]),
|
|
2069
2063
|
_: 1
|
|
2070
|
-
})) :
|
|
2071
|
-
n.tips ? (
|
|
2064
|
+
})) : S("v-if", !0),
|
|
2065
|
+
n.tips ? (N(), C("span", Ln, L(n.tips), 1)) : S("v-if", !0)
|
|
2072
2066
|
])]),
|
|
2073
2067
|
key: "0"
|
|
2074
2068
|
} : void 0]), 1024));
|
|
2075
2069
|
}
|
|
2076
|
-
}), [["__scopeId", "data-v-51889a3b"]]), zn = /*#__PURE__*/
|
|
2070
|
+
}), [["__scopeId", "data-v-51889a3b"]]), zn = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
2077
2071
|
inheritAttrs: !1,
|
|
2078
2072
|
name: "TForm",
|
|
2079
2073
|
__name: "form",
|
|
2080
|
-
props: /*@__PURE__*/
|
|
2074
|
+
props: /*@__PURE__*/ A({
|
|
2081
2075
|
autoLabelWidth: { type: Boolean },
|
|
2082
2076
|
data: {},
|
|
2083
2077
|
items: {},
|
|
@@ -2101,27 +2095,27 @@ var En = /* @__PURE__ */ O({
|
|
|
2101
2095
|
onReset: { type: Function },
|
|
2102
2096
|
onSubmit: { type: Function },
|
|
2103
2097
|
onValidate: { type: Function }
|
|
2104
|
-
},
|
|
2098
|
+
}, kt),
|
|
2105
2099
|
setup(e, { expose: t }) {
|
|
2106
|
-
let
|
|
2100
|
+
let n = e, { customerFormItemComponentInitialValueMap: i = /* @__PURE__ */ new Map(), customerFormItemComponentMap: o = /* @__PURE__ */ new Map() } = vt, c = D(), u = P(null), d = b(() => n.items.map((e) => {
|
|
2107
2101
|
if (typeof e.__others == "function") {
|
|
2108
2102
|
let t = {
|
|
2109
2103
|
...e,
|
|
2110
2104
|
...e.__others({
|
|
2111
|
-
exposed:
|
|
2112
|
-
formData:
|
|
2105
|
+
exposed: u,
|
|
2106
|
+
formData: n.data
|
|
2113
2107
|
})
|
|
2114
2108
|
};
|
|
2115
2109
|
return delete t.__others, t;
|
|
2116
2110
|
}
|
|
2117
2111
|
return e;
|
|
2118
2112
|
}));
|
|
2119
|
-
function
|
|
2120
|
-
|
|
2121
|
-
if (e.model !== void 0 && !Object.hasOwn(
|
|
2113
|
+
function f() {
|
|
2114
|
+
d.value.forEach((e) => {
|
|
2115
|
+
if (e.model !== void 0 && !Object.hasOwn(n.data, e.model)) {
|
|
2122
2116
|
if (i.has(e.component)) {
|
|
2123
2117
|
let t = i.get(e.component);
|
|
2124
|
-
|
|
2118
|
+
n.data[e.model] = t(e);
|
|
2125
2119
|
return;
|
|
2126
2120
|
}
|
|
2127
2121
|
let t = [
|
|
@@ -2139,40 +2133,40 @@ var En = /* @__PURE__ */ O({
|
|
|
2139
2133
|
"yearrange",
|
|
2140
2134
|
"years"
|
|
2141
2135
|
].includes(e.type) || e.component === "TSlider" && e.range === !0;
|
|
2142
|
-
|
|
2136
|
+
n.data[e.model] = t ? [] : e.component === "TCheckbox" || e.component === "TSwitch" ? Array.isArray(e.customValue) ? e.customValue[1] : !1 : "";
|
|
2143
2137
|
}
|
|
2144
2138
|
});
|
|
2145
2139
|
}
|
|
2146
|
-
|
|
2140
|
+
z(d, f, {
|
|
2147
2141
|
deep: 2,
|
|
2148
2142
|
immediate: !0
|
|
2149
|
-
}),
|
|
2150
|
-
|
|
2143
|
+
}), z(() => n.data, () => {
|
|
2144
|
+
a.error("TForm: data is changed");
|
|
2151
2145
|
});
|
|
2152
|
-
let
|
|
2153
|
-
TCheckbox:
|
|
2146
|
+
let p = /* @__PURE__ */ new Map(), m = {
|
|
2147
|
+
TCheckbox: r,
|
|
2154
2148
|
TCheckboxGroup: En,
|
|
2155
|
-
TColorPicker:
|
|
2149
|
+
TColorPicker: se,
|
|
2156
2150
|
TCron: Dn,
|
|
2157
|
-
TDatePicker:
|
|
2158
|
-
TInput:
|
|
2159
|
-
TInputNumber:
|
|
2151
|
+
TDatePicker: ue,
|
|
2152
|
+
TInput: le,
|
|
2153
|
+
TInputNumber: de,
|
|
2160
2154
|
TRadioGroup: On,
|
|
2161
|
-
TRangeInput:
|
|
2155
|
+
TRangeInput: fe,
|
|
2162
2156
|
TSelect: An,
|
|
2163
2157
|
TSelectSysUser: jn,
|
|
2164
|
-
TSlider:
|
|
2165
|
-
TSwitch:
|
|
2166
|
-
TTagInput:
|
|
2167
|
-
TTextarea:
|
|
2158
|
+
TSlider: he,
|
|
2159
|
+
TSwitch: ge,
|
|
2160
|
+
TTagInput: me,
|
|
2161
|
+
TTextarea: _e,
|
|
2168
2162
|
TTree: Nn,
|
|
2169
2163
|
TTreeSelect: Pn,
|
|
2170
2164
|
TUpload: Rn
|
|
2171
2165
|
};
|
|
2172
|
-
function
|
|
2173
|
-
return typeof e == "string" ? o.has(e) ? (
|
|
2166
|
+
function ee(e) {
|
|
2167
|
+
return typeof e == "string" ? o.has(e) ? (p.has(e) || p.set(e, Te(o.get(e))), p.get(e)) : m[e] : le;
|
|
2174
2168
|
}
|
|
2175
|
-
function
|
|
2169
|
+
function h(e) {
|
|
2176
2170
|
let t = {};
|
|
2177
2171
|
for (let n in e) !n.startsWith("_") && ![
|
|
2178
2172
|
"component",
|
|
@@ -2181,15 +2175,15 @@ var En = /* @__PURE__ */ O({
|
|
|
2181
2175
|
].includes(n) && (t[n] = e[n]);
|
|
2182
2176
|
return t;
|
|
2183
2177
|
}
|
|
2184
|
-
function
|
|
2178
|
+
function g(e) {
|
|
2185
2179
|
let t = {};
|
|
2186
2180
|
for (let n in e) n.startsWith("_") && (t[n.slice(1)] = e[n]);
|
|
2187
|
-
let
|
|
2181
|
+
let r = [
|
|
2188
2182
|
"TCheckbox",
|
|
2189
2183
|
"TCheckboxGroup",
|
|
2190
2184
|
"TRadioGroup"
|
|
2191
|
-
].includes(e.component), i = e.component === "TUpload" ? "请上传文件" : typeof t.label == "string" ?
|
|
2192
|
-
return t.required === !0 && (t.rules === void 0 && (t.rules = []), !t.rules.some((e) => e.required === !0) &&
|
|
2185
|
+
].includes(e.component), i = e.component === "TUpload" ? "请上传文件" : typeof t.label == "string" ? r ? `请选择${t.label}` : `请填写${t.label}` : "必填";
|
|
2186
|
+
return t.required === !0 && (t.rules === void 0 && (t.rules = []), !t.rules.some((e) => e.required === !0) && n.rules?.[e.model ?? ""] === void 0 && t.rules.unshift({
|
|
2193
2187
|
message: i,
|
|
2194
2188
|
required: !0
|
|
2195
2189
|
}, {
|
|
@@ -2200,8 +2194,8 @@ var En = /* @__PURE__ */ O({
|
|
|
2200
2194
|
whitespace: !0
|
|
2201
2195
|
}), t;
|
|
2202
2196
|
}
|
|
2203
|
-
let
|
|
2204
|
-
let e = { ...
|
|
2197
|
+
let _ = b(() => {
|
|
2198
|
+
let e = { ...n };
|
|
2205
2199
|
if (e.rules !== void 0) {
|
|
2206
2200
|
let t = {};
|
|
2207
2201
|
Object.keys(e.rules).forEach((n) => {
|
|
@@ -2218,22 +2212,22 @@ var En = /* @__PURE__ */ O({
|
|
|
2218
2212
|
return delete e.items, delete e.msgErrorWhenValidate, delete e.autoLabelWidth, Object.keys(e).forEach((t) => {
|
|
2219
2213
|
e[t] === void 0 && delete e[t];
|
|
2220
2214
|
}), e;
|
|
2221
|
-
}),
|
|
2222
|
-
let e = { ...
|
|
2223
|
-
return
|
|
2215
|
+
}), v = () => {
|
|
2216
|
+
let e = { ...n.data };
|
|
2217
|
+
return d.value.forEach((t) => {
|
|
2224
2218
|
t.show === !1 && delete e[t.model];
|
|
2225
2219
|
}), e;
|
|
2226
2220
|
};
|
|
2227
|
-
function
|
|
2221
|
+
function te(e) {
|
|
2228
2222
|
if (e !== null) {
|
|
2229
2223
|
let t = e;
|
|
2230
2224
|
if (!t.validate._alreadyReplace) {
|
|
2231
2225
|
let e = t.validate;
|
|
2232
|
-
t.validate = (...t) => new Promise((
|
|
2226
|
+
t.validate = (...t) => new Promise((r, i) => {
|
|
2233
2227
|
e(...t).then((e) => {
|
|
2234
|
-
e === !0 ?
|
|
2228
|
+
e === !0 ? r(v()) : (n.msgErrorWhenValidate && Object.keys(e).forEach((t) => {
|
|
2235
2229
|
e[t].forEach((e) => {
|
|
2236
|
-
e.result === !1 &&
|
|
2230
|
+
e.result === !1 && l.error(e.message);
|
|
2237
2231
|
});
|
|
2238
2232
|
}), i(e));
|
|
2239
2233
|
});
|
|
@@ -2243,54 +2237,44 @@ var En = /* @__PURE__ */ O({
|
|
|
2243
2237
|
let e = t.validateOnly;
|
|
2244
2238
|
t.validateOnly = (...t) => new Promise((n, r) => {
|
|
2245
2239
|
e(...t).then((e) => {
|
|
2246
|
-
e === !0 ? n(
|
|
2240
|
+
e === !0 ? n(v()) : r(e);
|
|
2247
2241
|
});
|
|
2248
2242
|
}), t.validateOnly._alreadyReplace = !0;
|
|
2249
2243
|
}
|
|
2250
2244
|
if (!t.clearValidate._alreadyReplace) {
|
|
2251
2245
|
let e = t.clearValidate;
|
|
2252
2246
|
t.clearValidate = (...t) => {
|
|
2253
|
-
|
|
2254
|
-
N(() => {
|
|
2255
|
-
N(() => {
|
|
2256
|
-
N(() => {
|
|
2257
|
-
N(() => {
|
|
2258
|
-
e(...t);
|
|
2259
|
-
});
|
|
2260
|
-
});
|
|
2261
|
-
});
|
|
2262
|
-
});
|
|
2263
|
-
});
|
|
2247
|
+
e(...t);
|
|
2264
2248
|
}, t.clearValidate._alreadyReplace = !0;
|
|
2265
2249
|
}
|
|
2266
|
-
t.getFormData =
|
|
2267
|
-
let { ignoreKeys:
|
|
2268
|
-
Object.keys(
|
|
2269
|
-
|
|
2270
|
-
}), Object.assign(
|
|
2250
|
+
t.getFormData = v, t.setFormData = (e, t) => {
|
|
2251
|
+
let { ignoreKeys: r = [], isNotFalsy: i = !0, numberToStringKeys: a = [], override: o = {}, splitToArrKeys: c = [] } = t ?? {};
|
|
2252
|
+
Object.keys(n.data).forEach((t) => {
|
|
2253
|
+
r.includes(t) || (c.includes(t) ? n.data[t] = typeof e[t] == "string" ? e[t].split(",").filter(Boolean) : [] : i && s(e[t]) || (n.data[t] = e[t]), a.includes(t) && typeof n.data[t] == "number" && (n.data[t] = String(n.data[t])));
|
|
2254
|
+
}), Object.assign(n.data, o);
|
|
2271
2255
|
};
|
|
2272
2256
|
}
|
|
2273
2257
|
let t = e ?? {};
|
|
2274
|
-
|
|
2258
|
+
u.value = t, c.exposed = t;
|
|
2275
2259
|
}
|
|
2276
|
-
let
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2260
|
+
let ne = Fe();
|
|
2261
|
+
Ae(() => {
|
|
2262
|
+
ne.value = c.exposed.$el.getElementsByClassName("t-form__label"), y(), mt(c.exposed.$el, () => {
|
|
2263
|
+
y();
|
|
2280
2264
|
}, {
|
|
2281
2265
|
attributeFilter: ["class"],
|
|
2282
2266
|
characterData: !0,
|
|
2283
2267
|
childList: !0,
|
|
2284
2268
|
subtree: !0
|
|
2285
|
-
}),
|
|
2286
|
-
|
|
2269
|
+
}), ht(c.exposed.$el, () => {
|
|
2270
|
+
y();
|
|
2287
2271
|
});
|
|
2288
2272
|
});
|
|
2289
|
-
function
|
|
2290
|
-
let e = [...
|
|
2273
|
+
function y() {
|
|
2274
|
+
let e = [...ne.value];
|
|
2291
2275
|
if (e.forEach((e) => {
|
|
2292
2276
|
e.style.minWidth = "auto";
|
|
2293
|
-
}),
|
|
2277
|
+
}), n.labelAlign === "top" || !n.autoLabelWidth) return;
|
|
2294
2278
|
let t = 0;
|
|
2295
2279
|
e.forEach((e) => {
|
|
2296
2280
|
t = Math.max(t, e.offsetWidth);
|
|
@@ -2298,29 +2282,29 @@ var En = /* @__PURE__ */ O({
|
|
|
2298
2282
|
e.style.minWidth = `${t}px`;
|
|
2299
2283
|
});
|
|
2300
2284
|
}
|
|
2301
|
-
return
|
|
2302
|
-
...
|
|
2303
|
-
ref:
|
|
2285
|
+
return je("formData", n.data), je("formExposed", u), je("isFormDisabled", b(() => n.disabled)), je("isFormReadonly", b(() => n.readonly)), t({}), (t, n) => (N(), C(be, null, [S(" eslint-disable vue/no-mutating-props "), (N(), x(I(R(Xe)), j(j(t.$attrs, {
|
|
2286
|
+
..._.value,
|
|
2287
|
+
ref: te
|
|
2304
2288
|
}), { "label-width": "fit-content" }), {
|
|
2305
|
-
default:
|
|
2306
|
-
default:
|
|
2289
|
+
default: B(() => [(N(!0), C(be, null, F(d.value.filter((e) => e.show !== !1), (n) => (N(), x(R(Ze), j({ key: n.model ?? n.slot }, { ref_for: !0 }, j({ ...g(n) }, { class: { no_label_item: R(s)(n._label) } }), { name: n.model }), {
|
|
2290
|
+
default: B(() => [n.slot ? Ne(t.$slots, n.slot, {}, void 0, !0, 0) : (N(), x(I(ee(n.component)), j({
|
|
2307
2291
|
key: 1,
|
|
2308
2292
|
modelValue: e.data[n.model],
|
|
2309
2293
|
"onUpdate:modelValue": (t) => e.data[n.model] = t
|
|
2310
|
-
}, { ref_for: !0 },
|
|
2294
|
+
}, { ref_for: !0 }, h(n)), null, 16, ["modelValue", "onUpdate:modelValue"]))]),
|
|
2311
2295
|
_: 2
|
|
2312
2296
|
}, 1040, ["name"]))), 128))]),
|
|
2313
2297
|
_: 3
|
|
2314
2298
|
}, 16))], 2112));
|
|
2315
2299
|
}
|
|
2316
|
-
}), [["__scopeId", "data-v-
|
|
2300
|
+
}), [["__scopeId", "data-v-761be9bc"]]), Bn = /* @__PURE__ */ E({
|
|
2317
2301
|
__name: "ResetPwd",
|
|
2318
2302
|
props: { showFooter: {
|
|
2319
2303
|
type: Boolean,
|
|
2320
2304
|
default: !0
|
|
2321
2305
|
} },
|
|
2322
2306
|
setup(e, { expose: t }) {
|
|
2323
|
-
let n =
|
|
2307
|
+
let n = H(), r = [
|
|
2324
2308
|
{
|
|
2325
2309
|
_label: "旧密码",
|
|
2326
2310
|
_required: !0,
|
|
@@ -2332,8 +2316,8 @@ var En = /* @__PURE__ */ O({
|
|
|
2332
2316
|
_label: "新密码",
|
|
2333
2317
|
_required: !0,
|
|
2334
2318
|
_rules: [{
|
|
2335
|
-
message:
|
|
2336
|
-
pattern:
|
|
2319
|
+
message: ye,
|
|
2320
|
+
pattern: ve
|
|
2337
2321
|
}],
|
|
2338
2322
|
component: "TInput",
|
|
2339
2323
|
model: "newPassword",
|
|
@@ -2351,11 +2335,11 @@ var En = /* @__PURE__ */ O({
|
|
|
2351
2335
|
type: "password"
|
|
2352
2336
|
},
|
|
2353
2337
|
...e.showFooter ? [{ slot: "footer" }] : []
|
|
2354
|
-
], i =
|
|
2338
|
+
], i = Re("form");
|
|
2355
2339
|
function a() {
|
|
2356
|
-
|
|
2340
|
+
K().close(n.name);
|
|
2357
2341
|
}
|
|
2358
|
-
async function
|
|
2342
|
+
async function o() {
|
|
2359
2343
|
let e = await i.value.validate();
|
|
2360
2344
|
await X.Put("system/user/profile/updatePwd", void 0, {
|
|
2361
2345
|
meta: {
|
|
@@ -2366,31 +2350,30 @@ var En = /* @__PURE__ */ O({
|
|
|
2366
2350
|
newPassword: e.newPassword,
|
|
2367
2351
|
oldPassword: e.oldPassword
|
|
2368
2352
|
}
|
|
2369
|
-
}),
|
|
2353
|
+
}), an().logout();
|
|
2370
2354
|
}
|
|
2371
|
-
return t({ handleSubmit:
|
|
2355
|
+
return t({ handleSubmit: o }), (e, t) => (N(), x(R(zn), {
|
|
2372
2356
|
ref: "form",
|
|
2373
2357
|
items: r,
|
|
2374
2358
|
"label-align": "right",
|
|
2375
2359
|
layout: "vertical"
|
|
2376
2360
|
}, {
|
|
2377
|
-
footer:
|
|
2378
|
-
default:
|
|
2361
|
+
footer: B(() => [T(R($), { onClick: o }, {
|
|
2362
|
+
default: B(() => [...t[0] ||= [w("保存", -1)]]),
|
|
2379
2363
|
_: 1
|
|
2380
|
-
}),
|
|
2364
|
+
}), T(R($), {
|
|
2381
2365
|
class: "ml-4!",
|
|
2382
2366
|
theme: "default",
|
|
2383
2367
|
onClick: a
|
|
2384
2368
|
}, {
|
|
2385
|
-
default:
|
|
2369
|
+
default: B(() => [...t[1] ||= [w("关闭", -1)]]),
|
|
2386
2370
|
_: 1
|
|
2387
2371
|
})]),
|
|
2388
2372
|
_: 1
|
|
2389
2373
|
}, 512));
|
|
2390
2374
|
}
|
|
2391
2375
|
});
|
|
2392
|
-
|
|
2393
|
-
//#region ../../packages/dlzn-ui/store/modules/user.ts
|
|
2376
|
+
// ../../packages/dlzn-ui/store/modules/user.ts
|
|
2394
2377
|
function Vn() {
|
|
2395
2378
|
return X.Get("getInfo", { meta: {
|
|
2396
2379
|
useFailMsg: "获取用户信息失败",
|
|
@@ -2404,22 +2387,22 @@ var Hn = {
|
|
|
2404
2387
|
nickName: "",
|
|
2405
2388
|
userId: "",
|
|
2406
2389
|
userName: "",
|
|
2407
|
-
...
|
|
2408
|
-
}, Q =
|
|
2409
|
-
let e =
|
|
2390
|
+
...vt.defaultUserInfo ?? {}
|
|
2391
|
+
}, Q = V("user", () => {
|
|
2392
|
+
let e = P(gt(Hn)), t = P([]), n = P([]);
|
|
2410
2393
|
function r() {
|
|
2411
|
-
e.value =
|
|
2394
|
+
e.value = gt(Hn), t.value = [], n.value = [];
|
|
2412
2395
|
}
|
|
2413
|
-
let i =
|
|
2396
|
+
let i = b(() => e.value.admin), a = P("");
|
|
2414
2397
|
async function o(r = !0) {
|
|
2415
2398
|
let i = await Vn();
|
|
2416
|
-
e.value = i.user, a.value !== e.value.userId &&
|
|
2399
|
+
e.value = i.user, a.value !== e.value.userId && K().clear(), a.value = e.value.userId, t.value = i.permissions, n.value = i.roles, r && await Gt().getRouters();
|
|
2417
2400
|
}
|
|
2418
|
-
|
|
2419
|
-
e === 1 && VITE_FORCE_PWD_CHANGE &&
|
|
2420
|
-
let e =
|
|
2421
|
-
|
|
2422
|
-
body: () =>
|
|
2401
|
+
z(() => e.value.needChangePwd, (e) => {
|
|
2402
|
+
e === 1 && VITE_FORCE_PWD_CHANGE && Oe(() => {
|
|
2403
|
+
let e = P(null);
|
|
2404
|
+
W({
|
|
2405
|
+
body: () => k(Bn, {
|
|
2423
2406
|
labelAlign: "top",
|
|
2424
2407
|
ref: e,
|
|
2425
2408
|
showFooter: !1
|
|
@@ -2450,11 +2433,11 @@ var Hn = {
|
|
|
2450
2433
|
roles: n,
|
|
2451
2434
|
userInfo: e
|
|
2452
2435
|
};
|
|
2453
|
-
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/
|
|
2436
|
+
}, { persist: { pick: ["lastUserId"] } }), $ = /*#__PURE__*/ y(/* @__PURE__ */ E({
|
|
2454
2437
|
inheritAttrs: !1,
|
|
2455
2438
|
name: "TButton",
|
|
2456
2439
|
__name: "button",
|
|
2457
|
-
props: /*@__PURE__*/
|
|
2440
|
+
props: /*@__PURE__*/ A({
|
|
2458
2441
|
autoIcon: { type: Boolean },
|
|
2459
2442
|
autoLoading: { type: Boolean },
|
|
2460
2443
|
autoTheme: { type: Boolean },
|
|
@@ -2491,11 +2474,11 @@ var Hn = {
|
|
|
2491
2474
|
Object,
|
|
2492
2475
|
Array
|
|
2493
2476
|
] }
|
|
2494
|
-
},
|
|
2495
|
-
setup(
|
|
2496
|
-
let
|
|
2477
|
+
}, Ot),
|
|
2478
|
+
setup(r) {
|
|
2479
|
+
let i = r, a = P("");
|
|
2497
2480
|
function o() {
|
|
2498
|
-
if (!
|
|
2481
|
+
if (!i.autoTheme || a.value.trim() === "") return {};
|
|
2499
2482
|
let e = /* @__PURE__ */ new Map([
|
|
2500
2483
|
[{ theme: "danger" }, ["删除", "清除"]],
|
|
2501
2484
|
[{
|
|
@@ -2515,35 +2498,35 @@ var Hn = {
|
|
|
2515
2498
|
}
|
|
2516
2499
|
return t;
|
|
2517
2500
|
}
|
|
2518
|
-
let s =
|
|
2519
|
-
|
|
2501
|
+
let s = P(!1), c = n.isLoading, l = P(null), { focused: u } = pt(l), d, f;
|
|
2502
|
+
z(c, (e) => {
|
|
2520
2503
|
e ? (clearTimeout(f), f = void 0, d = setTimeout(() => {
|
|
2521
2504
|
s.value = u.value, clearTimeout(d), d = void 0;
|
|
2522
2505
|
}, 150)) : d === void 0 ? f = setTimeout(() => {
|
|
2523
2506
|
s.value = !1;
|
|
2524
2507
|
}, 150) : (clearTimeout(d), d = void 0, s.value = !1);
|
|
2525
|
-
}, { immediate: !0 }),
|
|
2508
|
+
}, { immediate: !0 }), z(u, (e) => {
|
|
2526
2509
|
e && c.value && (s.value = !0);
|
|
2527
2510
|
});
|
|
2528
|
-
let p =
|
|
2511
|
+
let p = b(() => i.loading === void 0 ? i.autoLoading ? s.value : !1 : i.loading), m = b(() => {
|
|
2529
2512
|
let e = {
|
|
2530
|
-
...
|
|
2513
|
+
...i,
|
|
2531
2514
|
...o(),
|
|
2532
2515
|
loading: p.value
|
|
2533
2516
|
};
|
|
2534
2517
|
return Object.keys(e).forEach((t) => {
|
|
2535
2518
|
e[t] === void 0 && delete e[t];
|
|
2536
2519
|
}), delete e.permission, delete e.popconfirm, delete e.autoIcon, delete e.autoLoading, delete e.autoTheme, delete e.icon, e;
|
|
2537
|
-
}),
|
|
2538
|
-
function
|
|
2520
|
+
}), ee = D();
|
|
2521
|
+
function h(e) {
|
|
2539
2522
|
let t = e ?? {};
|
|
2540
|
-
|
|
2523
|
+
ee.exposed = t, l.value = t.$el;
|
|
2541
2524
|
}
|
|
2542
|
-
function
|
|
2525
|
+
function g() {
|
|
2543
2526
|
a.value = l.value?.textContent ?? "";
|
|
2544
2527
|
}
|
|
2545
|
-
let
|
|
2546
|
-
if (!
|
|
2528
|
+
let _ = b(() => {
|
|
2529
|
+
if (!i.autoIcon || a.value.trim() === "") return;
|
|
2547
2530
|
let e = {
|
|
2548
2531
|
"mdi:plus": [
|
|
2549
2532
|
"新增",
|
|
@@ -2610,44 +2593,44 @@ var Hn = {
|
|
|
2610
2593
|
break;
|
|
2611
2594
|
}
|
|
2612
2595
|
if (t !== void 0) return t;
|
|
2613
|
-
}),
|
|
2596
|
+
}), v = Ie(), te = b(() => j(v, {
|
|
2614
2597
|
...m.value,
|
|
2615
|
-
ref:
|
|
2616
|
-
}, { class: "flex-shrink-0" })),
|
|
2617
|
-
if (
|
|
2618
|
-
...
|
|
2598
|
+
ref: h
|
|
2599
|
+
}, { class: "flex-shrink-0" })), ne = b(() => {
|
|
2600
|
+
if (i.popconfirm) return {
|
|
2601
|
+
...i.popconfirm,
|
|
2619
2602
|
onVisibleChange: (...e) => {
|
|
2620
|
-
|
|
2603
|
+
i.popconfirm?.onVisibleChange?.(...e), !e[0] && (document.activeElement?.classList.contains("t-popconfirm__confirm") || document.activeElement?.classList.contains("t-popconfirm__cancel")) && (u.value = !0);
|
|
2621
2604
|
}
|
|
2622
2605
|
};
|
|
2623
2606
|
});
|
|
2624
|
-
return (
|
|
2625
|
-
default:
|
|
2626
|
-
onVnodeMounted:
|
|
2627
|
-
onVnodeUpdated:
|
|
2628
|
-
},
|
|
2607
|
+
return (n, i) => R(Q)().checkPermissions(r.permission) ? (N(), C(be, { key: 0 }, [ne.value ? (N(), x(R(t), M(j({ key: 0 }, ne.value)), {
|
|
2608
|
+
default: B(() => [(N(), x(I(k(R(He), te.value)), {
|
|
2609
|
+
onVnodeMounted: g,
|
|
2610
|
+
onVnodeUpdated: g
|
|
2611
|
+
}, we({ _: 2 }, [r.icon || _.value ? {
|
|
2629
2612
|
name: "icon",
|
|
2630
|
-
fn:
|
|
2613
|
+
fn: B(() => [T(R(e), { icon: r.icon || _.value }, null, 8, ["icon"])]),
|
|
2631
2614
|
key: "0"
|
|
2632
|
-
} : void 0,
|
|
2615
|
+
} : void 0, F(Object.keys(n.$slots), (e) => ({
|
|
2633
2616
|
name: e,
|
|
2634
|
-
fn:
|
|
2617
|
+
fn: B((t) => [Ne(n.$slots, e, M(O(t)), void 0, !0)])
|
|
2635
2618
|
}))]), 1536))]),
|
|
2636
2619
|
_: 3
|
|
2637
|
-
}, 16)) : (
|
|
2620
|
+
}, 16)) : (N(), x(I(k(R(He), te.value)), {
|
|
2638
2621
|
key: 1,
|
|
2639
|
-
onVnodeMounted:
|
|
2640
|
-
onVnodeUpdated:
|
|
2641
|
-
},
|
|
2622
|
+
onVnodeMounted: g,
|
|
2623
|
+
onVnodeUpdated: g
|
|
2624
|
+
}, we({ _: 2 }, [r.icon || _.value ? {
|
|
2642
2625
|
name: "icon",
|
|
2643
|
-
fn:
|
|
2626
|
+
fn: B(() => [T(R(e), { icon: r.icon || _.value }, null, 8, ["icon"])]),
|
|
2644
2627
|
key: "0"
|
|
2645
|
-
} : void 0,
|
|
2628
|
+
} : void 0, F(Object.keys(n.$slots), (e) => ({
|
|
2646
2629
|
name: e,
|
|
2647
|
-
fn:
|
|
2648
|
-
}))]), 1536))], 64)) :
|
|
2630
|
+
fn: B((t) => [Ne(n.$slots, e, M(O(t)), void 0, !0)])
|
|
2631
|
+
}))]), 1536))], 64)) : S("v-if", !0);
|
|
2649
2632
|
}
|
|
2650
|
-
}), [["__scopeId", "data-v-
|
|
2633
|
+
}), [["__scopeId", "data-v-2ba81aa7"]]), Un = /* @__PURE__ */ E({
|
|
2651
2634
|
name: "TProvider",
|
|
2652
2635
|
__name: "Provider",
|
|
2653
2636
|
setup(e) {
|
|
@@ -2669,19 +2652,18 @@ var Hn = {
|
|
|
2669
2652
|
variant: "text"
|
|
2670
2653
|
})
|
|
2671
2654
|
} };
|
|
2672
|
-
return (e, n) => (
|
|
2655
|
+
return (e, n) => (N(), x(R(lt), {
|
|
2673
2656
|
"empty-values": [""],
|
|
2674
|
-
locale:
|
|
2657
|
+
locale: R(Dt),
|
|
2675
2658
|
"value-on-clear": "",
|
|
2676
2659
|
"z-index": 5500
|
|
2677
2660
|
}, {
|
|
2678
|
-
default:
|
|
2679
|
-
default:
|
|
2661
|
+
default: B(() => [T(R(We), { "global-config": t }, {
|
|
2662
|
+
default: B(() => [Ne(e.$slots, "default")]),
|
|
2680
2663
|
_: 3
|
|
2681
2664
|
})]),
|
|
2682
2665
|
_: 3
|
|
2683
2666
|
}, 8, ["locale"]));
|
|
2684
2667
|
}
|
|
2685
2668
|
});
|
|
2686
|
-
|
|
2687
|
-
export { on as A, K as B, hn as C, Y as D, dn as E, qt as F, Ot as G, Pt as H, Kt as I, Dt as K, It as L, Qt as M, $t as N, un as O, en as P, Wt as R, X as S, fn as T, At as U, G as V, kt as W, En as _, Bn as a, wn as b, Fn as c, Mn as d, jn as f, Dn as g, On as h, Q as i, rn as j, sn as k, Pn as l, kn as m, $ as n, zn as o, An as p, Vn as r, Rn as s, Un as t, Nn as u, Sn as v, gn as w, Tn as x, Cn as y, q as z };
|
|
2669
|
+
export { sn as A, G as B, hn as C, J as D, fn as E, Jt as F, kt as G, Ft as H, qt as I, Ot as K, Lt as L, $t as M, en as N, dn as O, tn as P, Gt as R, X as S, Y as T, jt as U, W as V, At as W, En as _, Bn as a, wn as b, Fn as c, Mn as d, jn as f, Dn as g, On as h, Q as i, an as j, cn as k, Pn as l, kn as m, $ as n, zn as o, An as p, Vn as r, Rn as s, Un as t, Nn as u, Sn as v, gn as w, Tn as x, Cn as y, K as z };
|