@utogether/udp-core 2.0.0-beta.1 → 2.0.0-beta.4
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/dist/{403-CTJDBjz7.js → 403-CekcmGOc.js} +3 -3
- package/dist/403-CxOqlq0f-C28ufSE6.js +65 -0
- package/dist/403-WCboRvzZ-ZAPgYStl-Ck7rlpC9.js +65 -0
- package/dist/404-2V0Qi-d7-DkNwQggp-3kilva5o.js +65 -0
- package/dist/{404-BFYkWIkQ.js → 404-DeSH9KnK.js} +1 -1
- package/dist/404-xdB6lFeQ-DRhUFuKU.js +65 -0
- package/dist/500-BYfzvixf-CGpEieyQ-DLrc9brB.js +67 -0
- package/dist/500-C94bRK2S-_XtNljMI.js +67 -0
- package/dist/{500-DGG3qadg.js → 500-DHOHlmtv.js} +2 -2
- package/dist/{AuthorityInfo-ozZIo1Te.js → AuthorityInfo-BC8U3Zk4.js} +1 -1
- package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5-ChKFxbGl.js +4 -0
- package/dist/AuthorityInfo-Dy3b_nFN-BBC0HKlV.js +4 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY-BgLN7Lgx.js +100 -0
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz-B8tPqh_7.js +100 -0
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DujerENw.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DVFi0qOJ.js} +2 -2
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE-DAeYw45g.js +4 -0
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +4 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8-C6jMEDJq.js +114 -0
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +114 -0
- package/dist/Company-B4vsXy2I-CkNCOqjJ-PjoD0ztY.js +25 -0
- package/dist/{Company-6VJtwh23.js → Company-Byq4p14C.js} +3 -3
- package/dist/Company-gKkfnhLt-BReGxz7n.js +25 -0
- package/dist/CompanyPanel-BF5Pc35s-CtpymP6a.js +206 -0
- package/dist/{CompanyPanel-B2P488mq.js → CompanyPanel-CIHP7rVd.js} +7 -7
- package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_-mYpxegRQ.js +206 -0
- package/dist/DataSet-DT-rGICv-DaUfgbxk-YztlXv7w.js +147 -0
- package/dist/DataSet-DT-rGICv-DaUfgbxk.js +147 -0
- package/dist/{Department-BnwoLEOC.js → Department-CxgSq34X.js} +3 -3
- package/dist/Department-D0I3QVZe-CfWPT-lY.js +25 -0
- package/dist/Department-D0dVUrGC-C6HJcYI1-DhAtBQym.js +25 -0
- package/dist/DepartmentPanel-2LHODgc7--VCCaEsu.js +254 -0
- package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd-V3QvVWmJ.js +254 -0
- package/dist/{DepartmentPanel-CRrrmxtv.js → DepartmentPanel-hYNqywSQ.js} +22 -22
- package/dist/DesignPanel-CtF3cAAQ-FM7zpexb.js +4 -0
- package/dist/DesignPanel-DdFl_ohi-uCwFxcl1-7p3ouXrw.js +4 -0
- package/dist/{DesignPanel-CvbccgX2.js → DesignPanel-GEhqXIAx.js} +1 -1
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY-CoM_RAUN.js +1013 -0
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt-CcCVpy0f.js +1013 -0
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-Dz2tUszs.js → DesignPanel.vue_vue_type_style_index_0_lang-DxA6H5Ts.js} +3 -3
- package/dist/DictView-BzQLOf_P-DDicwdmM-B8CFC279.js +111 -0
- package/dist/DictView-H3V5hxg3-BQZWN2zT.js +111 -0
- package/dist/{DictView-Ce1LoVHh.js → DictView-tyGrHFO8.js} +1 -1
- package/dist/InvOrganization-BiGLnbqe-BK3vgYYR.js +74 -0
- package/dist/{InvOrganization-BwCFZO1X.js → InvOrganization-DjJ4XkxN.js} +2 -2
- package/dist/InvOrganization-atbhw0CI-BABbVt9V-BT8PkfWL.js +74 -0
- package/dist/{Org-0hzs6b0R.js → Org-3eHX7nBU.js} +2 -2
- package/dist/Org-BW1YHG-Q-Cow7JWlD-C7ygI7jx.js +39 -0
- package/dist/Org-DQTCQHNY-CEEpGGlZ.js +39 -0
- package/dist/{Preview--DnEAhwh.js → Preview-Cgc3O8vp.js} +1 -1
- package/dist/Preview-DJtVsoq1-CCGidQjJ-DQ_OC1-S.js +48 -0
- package/dist/Preview-DXaiis29-BYyNhC1p.js +48 -0
- package/dist/ReportDefine-BLh4CiER-D68a0DWB.js +10 -0
- package/dist/ReportDefine-CNx_ob99-6NQAHK-Q-BL5gB56o.js +10 -0
- package/dist/{ReportDefine-Cu983bTN.js → ReportDefine-FYxHLbPV.js} +1 -1
- package/dist/{ReportDesign-QsWXXgvo.js → ReportDesign-BTOVgMzz.js} +7 -7
- package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp-DTsrU_wq.js +165 -0
- package/dist/ReportDesign-Ni1YxrLC-DfziOJc3.js +165 -0
- package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda-c9iy6TZ_.js +75 -0
- package/dist/ReportQuery-C8G88_qF-BKknwX1u.js +75 -0
- package/dist/{ReportQuery-BjKIIhPu.js → ReportQuery-Dhy9sk04.js} +1 -1
- package/dist/{ReportQueryFrom-DIjBO6Fx.js → ReportQueryFrom-B1TE8lOG.js} +1 -1
- package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy-Cq4havLh.js +4 -0
- package/dist/ReportQueryFrom-CuZKPtB4-B_TaZr-N.js +4 -0
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW-CdTqG6KF.js +178 -0
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-0T62cUMK.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-D93NL2N7.js} +7 -7
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl-kdXwDD3n.js +178 -0
- package/dist/ReportTemplate-BDANdIWv-D_IGjR1w-txJDRw_J.js +161 -0
- package/dist/{ReportTemplate-2uk9tJcy.js → ReportTemplate-C-EuU7mL.js} +8 -8
- package/dist/ReportTemplate-DFnDXWmx-QQkaZRvV.js +161 -0
- package/dist/Role-BQ7hsfPn-BLwTiMMj.js +25 -0
- package/dist/Role-ByB0WbxW-5E8Mb148-WoZV4JKV.js +25 -0
- package/dist/{Role-_QP8QEaI.js → Role-Dc1dZ0o9.js} +3 -3
- package/dist/{RoleAssign-C2gkcmEQ.js → RoleAssign-DDv65izq.js} +3 -3
- package/dist/RoleAssign-DW6iC_0v-Bis61auk-BB4DziuB.js +26 -0
- package/dist/RoleAssign-UPCg2d4G-g4V-duK9.js +26 -0
- package/dist/RolePanel-BM2MaQPU-CgcsbfaX-D28vR3Fh.js +4 -0
- package/dist/RolePanel-C-mQ5XRq-JQYWITkX.js +4 -0
- package/dist/{RolePanel-vnl_lXNY.js → RolePanel-CiDM8OSr.js} +1 -1
- package/dist/RolePanel-ClQy8DBL-DARL4O-o-DrElGZ66.js +4 -0
- package/dist/RolePanel-CoSXOCZN-BdCEhz3b.js +4 -0
- package/dist/{RolePanel-B8FPNGaA.js → RolePanel-Dw_pTEGV.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI-Bsk0Mun8.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF-CMTLt3Lp.js +154 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-bxHXrBYl.js → RolePanel.vue_vue_type_script_setup_true_lang-CG_KY7NS.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BuQbYEEI.js → RolePanel.vue_vue_type_script_setup_true_lang-Ctq1lItN.js} +8 -8
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8-DPs8J-8D.js +132 -0
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy-vZfwM6bG.js +154 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3-CTeY23xN.js +100 -0
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk-D-4pB58A.js +100 -0
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-C6yZXBqB.js → ScrollPanel.vue_vue_type_style_index_0_lang-CyU7XjI3.js} +1 -1
- package/dist/Staff-CuxzvhD9-D0KTcyRh-Cj8NbX79.js +25 -0
- package/dist/Staff-D-CmvG1R-uwSWH8-m.js +25 -0
- package/dist/{Staff-CHWrMIEb.js → Staff-DMh451jL.js} +3 -3
- package/dist/{StaffInfo-Cpq2eayz.js → StaffInfo-2PhYcVaz.js} +1 -1
- package/dist/StaffInfo-CY7gUICu-EZUhUwIp-C8POP58u.js +4 -0
- package/dist/StaffInfo-Idhvuc6e-COVQmEz0.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BVCjF2i1.js → StaffInfo.vue_vue_type_script_setup_true_lang-CrCFms3g.js} +1 -1
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn-p0kltEdZ.js +108 -0
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU-Cj9lcXG6.js +108 -0
- package/dist/{StaffPanel-D2BMXt5p.js → StaffPanel-BrvkXT68.js} +1 -1
- package/dist/StaffPanel-CDDmAYE5-mLPGD2Nf.js +4 -0
- package/dist/StaffPanel-CwqG0_xr-CrvzLJoc-AX54GdZ3.js +4 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee-RiBDcMMj.js +143 -0
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0-DFG90qAT.js +143 -0
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B6jAGo-g.js → StaffPanel.vue_vue_type_script_setup_true_lang-DKr8VVOJ.js} +42 -42
- package/dist/SysUser-9Q2UJWhi-DprWXFlR-DUMl4Hfm.js +15 -0
- package/dist/{SysUser-om6H1BeC.js → SysUser-DLDd5do7.js} +2 -2
- package/dist/SysUser-a-j5bppr-CpP0s5DW.js +15 -0
- package/dist/SysUserPanel-6V232wwB-DI8apzmL.js +4 -0
- package/dist/{SysUserPanel-CH0HPP7h.js → SysUserPanel-DDQxi2Hk.js} +1 -1
- package/dist/SysUserPanel-bJy69O7x-BJtBgFEs-DEXctwBe.js +4 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy-CD9JQp9h.js +356 -0
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen-BBtBr0VU.js +356 -0
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Dpl13ee0.js → SysUserPanel.vue_vue_type_script_setup_true_lang-DvOggZs6.js} +2 -2
- package/dist/SystemMenu-BnVeOSOQ-6HW3jX57.js +156 -0
- package/dist/SystemMenu-DGOAolc1-CJSLHP8i-DIUNb03s.js +156 -0
- package/dist/{SystemMenu-BkG_DKxA.js → SystemMenu-nFNfz4Nj.js} +7 -7
- package/dist/{UserInfo-D9croxUe.js → UserInfo-B9PLKur5.js} +1 -1
- package/dist/UserInfo-CKoOHkAM-DDWp0I_U-DEerO-y3.js +4 -0
- package/dist/UserInfo-Cax9b2nw-DBResyaY.js +4 -0
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO-7IKIrGoq.js +160 -0
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DLIP8xpN.js → UserInfo.vue_vue_type_style_index_0_lang-BwZNwtQH.js} +2 -2
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9-B2nI6TLi.js +160 -0
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes-CRQnmLCs.js +10 -0
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +10 -0
- package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
- package/dist/childView-0YZQ6GBn-CEqg7k5d-CDGM_XzZ.js +4 -0
- package/dist/{childView-BY_Ip-l1.js → childView-BEDVB_RG.js} +1 -1
- package/dist/{childView-CHp_TueS.js → childView-BRa268Qh.js} +1 -1
- package/dist/childView-DKG3eZo8-CCtKjCU7.js +4 -0
- package/dist/childView-DKkgi3yo-D47ft-vi-B5yI8Dk7.js +4 -0
- package/dist/childView-siumuBz0-CyYKsSPy.js +4 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa-BnvsyZ35.js +143 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-BNHbDRjt.js → childView.vue_vue_type_style_index_0_lang-BcyosNSH.js} +8 -8
- package/dist/childView.vue_vue_type_style_index_0_lang-CUfXDS1q-DNNy6Qe3.js +180 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CW3EbAmW-D6Jvom5y.js +143 -0
- package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK-ZSgCqafc.js +180 -0
- package/dist/{childView.vue_vue_type_style_index_0_lang-CbjGf7Z7.js → childView.vue_vue_type_style_index_0_lang-qsceJGeR.js} +8 -8
- package/dist/{code-rule-Ce6yWqCq.js → code-rule-CJ4FuOo1.js} +2 -2
- package/dist/code-rule-Dtoree6F-B4yeNvFw.js +148 -0
- package/dist/code-rule-wQyfgpNL-C4evD4Co-BOJCC1LY.js +148 -0
- package/dist/core.es.js +10 -10
- package/dist/cron-task-C-kryDtd-C0NuGZCe-DIJuoNx-.js +135 -0
- package/dist/{cron-task-DziaH0rI.js → cron-task-CXnv7hIa.js} +2 -2
- package/dist/cron-task-GSRgA7S5-D_xfN2g_.js +135 -0
- package/dist/flow-task-B07st2aD-CgQvagSQ-BaPlX6ds.js +10 -0
- package/dist/flow-task-B07st2aD-CgQvagSQ.js +10 -0
- package/dist/frameView-BOGA3ezf-QoSxzmSQ-BWs9F5mT.js +44 -0
- package/dist/frameView-Cy6wxW0K-BLdNZaGh.js +44 -0
- package/dist/{frameView-DNeCVQaY.js → frameView-g5e9PYdE.js} +1 -1
- package/dist/{index-BabfUVv_.js → index-BEAth5RR.js} +1057 -1033
- package/dist/layout-home-3Dy4onl4-COK554mq.js +228 -0
- package/dist/layout-home-CYHksXN_-Basy-3IH-Dnun4YUs.js +228 -0
- package/dist/layout-home-bl3JShSF.js +232 -0
- package/dist/layoutView-BaRvAbIa-xVgfqspc-zL46XaoI.js +3302 -0
- package/dist/layoutView-DMjNscJ--DvK2S5BQ.js +3302 -0
- package/dist/{layoutView-12Mlp9A2.js → layoutView-DmM9xk-X.js} +8 -8
- package/dist/log-in-Cx1dGik8-BVeEHeZ8-D7mV8pl4.js +117 -0
- package/dist/log-in-VAG6Cvcx-B6arurXx.js +117 -0
- package/dist/{log-in-1NGaA5OM.js → log-in-eGoxFTDE.js} +8 -8
- package/dist/log-out-COYdxrNC-ftopGZdE-Ch_UgXZv.js +130 -0
- package/dist/{log-out-B8_atGcQ.js → log-out-CthD_tSk.js} +4 -4
- package/dist/log-out-DZGaMCjC-OztBlMPh.js +130 -0
- package/dist/login-CqVMdNHs-CRJ-LWAK.js +241 -0
- package/dist/login-Dg9ofNS8-Bocp1XMA-DY4y3cAG.js +241 -0
- package/dist/{login-5dydO6GR.js → login-Dn7iO3SU.js} +16 -16
- package/dist/login-log-DJBGJVV0-AoOyj0jD-AoOyj0jD.js +70 -0
- package/dist/login-log-DJBGJVV0-AoOyj0jD.js +70 -0
- package/dist/{lov-view-DPvGUu3h.js → lov-view-Bt23RK6S.js} +7 -7
- package/dist/lov-view-C0T5prk8-B2DBmn55-BvzOsVW8.js +97 -0
- package/dist/lov-view-Cc68_28B-y4f2SzBr.js +97 -0
- package/dist/{menuInfo-DVADYfEK.js → menuInfo-BEmcSaIX.js} +1 -1
- package/dist/menuInfo-BIrIaJlH-Bxn4KTWH.js +4 -0
- package/dist/menuInfo-BZJ_q7bz-Drho-_QC-BK5n3Shr.js +4 -0
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf-DEApwWGK.js +363 -0
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DgsifDrm.js → menuInfo.vue_vue_type_style_index_0_lang-CVuG-x2a.js} +2 -2
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X-gWYo2VJe.js +363 -0
- package/dist/{pda-app-BZXs-2BQ.js → pda-app-BKfXoKAs.js} +9 -9
- package/dist/pda-app-DnjphrRS-4tIZDsnN.js +710 -0
- package/dist/pda-app-m9hsppHo-B4xyja1o-9mD3zI7J.js +710 -0
- package/dist/redirect-BqegffKC-CBCIuqmz-46JkXpSM.js +15 -0
- package/dist/redirect-BqegffKC-CBCIuqmz.js +15 -0
- package/dist/resource-C6KEIXu--B_ddyecm-CFF-A4cr.js +97 -0
- package/dist/{resource-BZA9NFKc.js → resource-CshrvEYp.js} +4 -4
- package/dist/resource-DISgPDM7-C4P8jqU0.js +97 -0
- package/dist/su-welcome-BjbuSrBZ-DrInu823.js +49339 -0
- package/dist/su-welcome-CYYy-dzr-D3RKPoB0-DhP783YJ.js +42089 -0
- package/dist/su-welcome-t7YusM3U.js +49427 -0
- package/dist/sys-config-DCjJGtht-DARDjlrt-Dx8559bf.js +370 -0
- package/dist/{sys-config-DQmNjWH4.js → sys-config-Jqj3l7NK.js} +13 -13
- package/dist/sys-config-Yc9vh1t1-B3bJPd9S.js +370 -0
- package/dist/udp-core.css +1 -1
- package/dist/utogether-MlnyYtNS-CGgjFNPS-CGgjFNPS.js +4 -0
- package/dist/utogether-MlnyYtNS-CGgjFNPS.js +4 -0
- package/package.json +5 -2
- package/src/App.vue +71 -71
- package/src/components/udp/content/index.vue +88 -88
- package/src/components/udp/form-upload/form-upload.vue +492 -492
- package/src/components/udp/grid/index.vue +524 -524
- package/src/components/udp/index.ts +6 -6
- package/src/components/udp/ut-stamp-badge/index.vue +271 -271
- package/src/components/udp/utils.ts +408 -408
- package/src/layout/components/lay-content/index.vue +136 -136
- package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
- package/src/layout/components/lay-setting/index.vue +503 -503
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
- package/src/layout/components/lay-tag/index.vue +598 -598
- package/src/layout/hooks/useNav.ts +176 -176
- package/src/layout/hooks/useTag.ts +227 -227
- package/src/layout/layoutView.vue +216 -216
- package/src/layout/types.ts +93 -93
- package/src/main.ts +111 -112
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/plugins/vxe-table/render.tsx +968 -968
- package/src/router/index.ts +187 -187
- package/src/router/modules/home.ts +32 -32
- package/src/router/utils.ts +420 -420
- package/src/store/modules/epTheme.ts +48 -48
- package/src/style/vxetable.scss +364 -356
- package/src/utils/dataFormat/index.ts +222 -222
- package/src/utils/lifecycle.ts +39 -39
- package/src/views/organization/department/DepartmentPanel.vue +303 -303
- package/src/views/organization/staff/StaffInfo.vue +127 -127
- package/src/views/organization/staff/StaffPanel.vue +3 -3
- package/src/views/system/layout/layout-home.vue +46 -7
- package/src/views/system/menu/AuthorityPanel.vue +141 -141
- package/src/views/system/menu/SystemMenu.vue +194 -194
- package/src/views/system/menu/menuInfo.vue +1 -1
- package/src/views/system/sysUser/SysUserPanel.vue +363 -363
- package/src/views/udev/coderule/code-rule.vue +132 -132
- package/src/views/udev/dict/DictView.vue +118 -118
- package/src/views/udev/dict/childView.vue +184 -184
- package/src/views/udev/lov/childView.vue +174 -174
- package/src/views/uhome/components/common-menu.vue +118 -0
- package/src/views/uhome/components/dynamic-component.vue +66 -0
- package/src/views/uhome/components/home-todo.vue +171 -0
- package/src/views/uhome/components/menu-favorite.vue +315 -315
- package/src/views/uhome/dynamic-card.vue +18 -19
- package/src/views/uhome/su-welcome.vue +47 -117
- package/src/views/ulogin/login.vue +336 -336
- package/src/views/upms/interface/log-in.vue +100 -100
- package/src/views/upms/interface/log-out.vue +104 -104
- package/src/views/upms/user/login-log.vue +54 -54
- package/types/global.d.ts +232 -232
- package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
- package/dist/layout-home-Cis1KlEr.js +0 -195
- package/dist/su-welcome-BXe6Cdp3.js +0 -580
|
@@ -1,492 +1,492 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2022-11-04 14:53:36
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-12-15 16:20:41
|
|
6
|
-
* @Description: form upload
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<div class="flex w-full flex-wrap">
|
|
10
|
-
<div class="ut-upload-list flex flex-wrap items-center">
|
|
11
|
-
<div v-for="(item, idx) in fileList" :key="item" :class="'ut-upload-item--' + size">
|
|
12
|
-
<div class="ut-upload--image flex items-center justify-center">
|
|
13
|
-
<img
|
|
14
|
-
v-if="getItemType(item) === 'img'"
|
|
15
|
-
:src="item.url"
|
|
16
|
-
class="ut-image select-none"
|
|
17
|
-
@click="onPreview(item)"
|
|
18
|
-
/>
|
|
19
|
-
<div v-else-if="renderMode === 'item' || dataStatus !== 'detail'" class="ut-image-hover">
|
|
20
|
-
<div class="ut-image-file--wrapper">
|
|
21
|
-
<i :class="getItemType(item)" class="ut-image-file ut-image" style="line-height: 1" />
|
|
22
|
-
<div class="px-1 ut-image" :style="{ fontSize: size === 'small' ? '11px' : '10px' }">
|
|
23
|
-
{{ maskFilenameFromPath(item) }}
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<i
|
|
27
|
-
class="vxe-icon-download ut-download-icon"
|
|
28
|
-
:style="{ fontSize: renderMode === 'item' ? '60px' : '48px' }"
|
|
29
|
-
@click="onDownload(item)"
|
|
30
|
-
/>
|
|
31
|
-
</div>
|
|
32
|
-
<vxe-tooltip v-else :content="item.name" class="cursor-pointer">
|
|
33
|
-
<div class="ut-image-hover">
|
|
34
|
-
<div class="ut-image-file--wrapper">
|
|
35
|
-
<i :class="getItemType(item)" class="ut-image-file ut-image" style="font-size: 32px" />
|
|
36
|
-
<div class="px-1 ut-image" :style="{ fontSize: size === 'small' ? '11px' : '10px' }">
|
|
37
|
-
{{ maskFilenameFromPath(item) }}
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<i
|
|
41
|
-
class="vxe-icon-download ut-download-icon"
|
|
42
|
-
:style="{ fontSize: renderMode === 'item' ? '60px' : '48px' }"
|
|
43
|
-
@click="onDownload(item)"
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
|
-
</vxe-tooltip>
|
|
47
|
-
</div>
|
|
48
|
-
<div v-if="dataStatus !== 'detail'" class="ut-upload--image-item-btn-wrapper">
|
|
49
|
-
<div class="ut-upload-remove--btn">
|
|
50
|
-
<i class="vxe-icon-close" @click="onRemove(item, idx)" />
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
<div
|
|
55
|
-
v-if="dataStatus !== 'detail'"
|
|
56
|
-
:class="'ut-upload-item--' + size"
|
|
57
|
-
class="ut-upload--btn"
|
|
58
|
-
style="border: 1px dashed var(--vxe-ui-input-border-color)"
|
|
59
|
-
@click="onStartUpload"
|
|
60
|
-
>
|
|
61
|
-
<div class="flex items-center justify-center h-full flex-col cursor-pointer ut-upload--btn">
|
|
62
|
-
<span v-if="!loading" class="vxe-icon-add" style="font-size: 18px" />
|
|
63
|
-
<div v-if="!loading" style="padding: 0 1px; font-size: 11px; text-align: center">点击上传</div>
|
|
64
|
-
<vxe-icon v-if="loading" name="spinner" status="primary" roll style="font-size: 24px" />
|
|
65
|
-
<div v-if="loading" style="padding: 0 1px; font-size: 11px; text-align: center">
|
|
66
|
-
{{ progressText }}
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
<vxe-upload
|
|
72
|
-
ref="xupload"
|
|
73
|
-
v-model="list"
|
|
74
|
-
style="display: none"
|
|
75
|
-
v-bind="$attrs"
|
|
76
|
-
:limit-count="limitCount"
|
|
77
|
-
:limit-size="limitSize"
|
|
78
|
-
:size="size"
|
|
79
|
-
:mode="mode"
|
|
80
|
-
:single-mode="singleMode"
|
|
81
|
-
:image-types="imageTypes"
|
|
82
|
-
:auto-hidden-button="autoHiddenButton"
|
|
83
|
-
:show-error-status="showErrorStatus"
|
|
84
|
-
:remove-method="handleRemove"
|
|
85
|
-
:upload-method="httpRequest"
|
|
86
|
-
:multiple="multiple"
|
|
87
|
-
:show-download-button="showDownloadButton"
|
|
88
|
-
:show-list="false"
|
|
89
|
-
show-progress
|
|
90
|
-
@upload-success="onSuccess"
|
|
91
|
-
/>
|
|
92
|
-
</div>
|
|
93
|
-
</template>
|
|
94
|
-
|
|
95
|
-
<script lang="ts">
|
|
96
|
-
export default { name: 'FormUpload' };
|
|
97
|
-
</script>
|
|
98
|
-
|
|
99
|
-
<script setup lang="ts">
|
|
100
|
-
import { ref, computed, watch, onBeforeMount, getCurrentInstance } from 'vue';
|
|
101
|
-
import { cookies } from '@utogether/utils';
|
|
102
|
-
import compressorjs from 'compressorjs';
|
|
103
|
-
import { isString, isArray } from 'xe-utils';
|
|
104
|
-
import { VxeUI, VxeUploadPropTypes } from 'vxe-pc-ui';
|
|
105
|
-
import axios from 'axios';
|
|
106
|
-
|
|
107
|
-
export interface IProps {
|
|
108
|
-
record: object;
|
|
109
|
-
imageTypes?: Array<string>;
|
|
110
|
-
field: string;
|
|
111
|
-
dataStatus?: string;
|
|
112
|
-
renderMode?: string;
|
|
113
|
-
size?: VxeUploadPropTypes.Size;
|
|
114
|
-
mode?: VxeUploadPropTypes.Mode;
|
|
115
|
-
limitCount?: number;
|
|
116
|
-
limitSize?: number;
|
|
117
|
-
compassorSize?: number;
|
|
118
|
-
quality?: number;
|
|
119
|
-
singleMode?: boolean;
|
|
120
|
-
autoHiddenButton?: boolean;
|
|
121
|
-
showErrorStatus?: boolean;
|
|
122
|
-
showDownloadButton?: boolean;
|
|
123
|
-
multiple?: boolean;
|
|
124
|
-
success?: Function;
|
|
125
|
-
remove?: Function;
|
|
126
|
-
}
|
|
127
|
-
const props = withDefaults(defineProps<IProps>(), {
|
|
128
|
-
record: () => {
|
|
129
|
-
return {};
|
|
130
|
-
},
|
|
131
|
-
imageTypes: () => {
|
|
132
|
-
return ['jpg', 'jpeg', 'png', 'gif'];
|
|
133
|
-
},
|
|
134
|
-
field: '',
|
|
135
|
-
renderMode: 'item',
|
|
136
|
-
dataStatus: '',
|
|
137
|
-
size: 'mini',
|
|
138
|
-
mode: '',
|
|
139
|
-
singleMode: false,
|
|
140
|
-
autoHiddenButton: false,
|
|
141
|
-
showDownloadButton: false,
|
|
142
|
-
multiple: false,
|
|
143
|
-
limitSize: 30,
|
|
144
|
-
limitCount: 9,
|
|
145
|
-
quality: 0.6,
|
|
146
|
-
compassorSize: 2
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
watch(
|
|
150
|
-
() => props.record[props.field],
|
|
151
|
-
val => {
|
|
152
|
-
initData();
|
|
153
|
-
}
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
const instance = getCurrentInstance()!;
|
|
157
|
-
const baseUrl = instance.appContext.config.globalProperties.$url;
|
|
158
|
-
// const serviceApi = instance.appContext.config.globalProperties.$serviceApi;
|
|
159
|
-
const progressText = ref('');
|
|
160
|
-
const loading = ref(false);
|
|
161
|
-
|
|
162
|
-
const imgTypes = ['image/gif', 'image/jpeg', 'image/png'];
|
|
163
|
-
const xupload = ref(null);
|
|
164
|
-
|
|
165
|
-
const headers = computed(() => {
|
|
166
|
-
const kTOKENKEY = 'authorized-token';
|
|
167
|
-
const token = cookies.get(kTOKENKEY)!;
|
|
168
|
-
const data = JSON.parse(token);
|
|
169
|
-
const headers = {
|
|
170
|
-
Authorization: 'Bearer ' + data.accessToken
|
|
171
|
-
};
|
|
172
|
-
return headers;
|
|
173
|
-
});
|
|
174
|
-
const list = ref([]);
|
|
175
|
-
const fileList = ref<any>([]);
|
|
176
|
-
|
|
177
|
-
const httpRequest = options => {
|
|
178
|
-
if (imgTypes.includes(options.file.type) && options.file.size > 1024 * 1024 * props.compassorSize) {
|
|
179
|
-
return new Promise((resolve, reject) => {
|
|
180
|
-
new compressorjs(options.file, {
|
|
181
|
-
quality: props.quality,
|
|
182
|
-
mimeType: options.file.type,
|
|
183
|
-
success(result: File) {
|
|
184
|
-
const file = new File([result], result.name, { type: result.type });
|
|
185
|
-
uploadProcess(resolve, reject, file);
|
|
186
|
-
console.log({ result, file });
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
} else {
|
|
191
|
-
return new Promise((resolve, reject) => uploadProcess(resolve, reject, options.file));
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
const uploadProcess = (resolve, reject, file) => {
|
|
196
|
-
const formBody = new FormData();
|
|
197
|
-
formBody.append('file', file);
|
|
198
|
-
const url = baseUrl + '/ufil/file/uploadMultipart';
|
|
199
|
-
loading.value = true;
|
|
200
|
-
return axios
|
|
201
|
-
.post(url, formBody, {
|
|
202
|
-
headers: Object.assign({ 'Content-Type': 'multipart/form-data' }, headers.value),
|
|
203
|
-
onUploadProgress(progressEvent) {
|
|
204
|
-
const progress = Math.round((progressEvent.loaded * 100) / (progressEvent.total || 0));
|
|
205
|
-
progressText.value = `进度${progress}%`;
|
|
206
|
-
}
|
|
207
|
-
})
|
|
208
|
-
.then(async response => {
|
|
209
|
-
progressText.value = `处理中...`;
|
|
210
|
-
file.path = response.data.data;
|
|
211
|
-
file.url = `${baseUrl}/ufil${file.path}`;
|
|
212
|
-
fileList.value.push(file);
|
|
213
|
-
console.log(file);
|
|
214
|
-
loading.value = false;
|
|
215
|
-
resolve(file);
|
|
216
|
-
})
|
|
217
|
-
.catch(() => {
|
|
218
|
-
loading.value = false;
|
|
219
|
-
reject(null);
|
|
220
|
-
});
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
const onStartUpload = () => {
|
|
224
|
-
xupload.value.choose();
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
const onSuccess = ({ data }) => {
|
|
228
|
-
if (props.success) {
|
|
229
|
-
return props.success(data);
|
|
230
|
-
} else {
|
|
231
|
-
const field = props.field;
|
|
232
|
-
Object.assign(props.record, { [field]: data.path });
|
|
233
|
-
}
|
|
234
|
-
console.log(props.record, fileList);
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
const handleRemove: VxeUploadPropTypes.RemoveMethod = ({ option }) => {
|
|
238
|
-
if (props.remove) {
|
|
239
|
-
return props.remove(option, fileList);
|
|
240
|
-
}
|
|
241
|
-
emit('remove', option, fileList);
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
const onRemove = (file, idx) => {
|
|
245
|
-
fileList.value.splice(idx, 1);
|
|
246
|
-
emit('remove', file, fileList);
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
const onPreview = item => {
|
|
250
|
-
// console.log(item.url);
|
|
251
|
-
VxeUI.previewImage({ activeIndex: 0, urlList: [item.url] });
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
const getItemType = item => {
|
|
255
|
-
const type = item.type || item.url.split('.').pop();
|
|
256
|
-
let icon = '';
|
|
257
|
-
switch (type) {
|
|
258
|
-
case 'jpg':
|
|
259
|
-
case 'png':
|
|
260
|
-
case 'jpeg':
|
|
261
|
-
case 'webp':
|
|
262
|
-
case 'image/jpeg':
|
|
263
|
-
case 'image/png':
|
|
264
|
-
case 'image/gif':
|
|
265
|
-
icon = 'img';
|
|
266
|
-
break;
|
|
267
|
-
case 'doc':
|
|
268
|
-
case 'docx':
|
|
269
|
-
icon = 'vxe-icon-file-word';
|
|
270
|
-
break;
|
|
271
|
-
case 'xlsx':
|
|
272
|
-
case 'xls':
|
|
273
|
-
icon = 'vxe-icon-file-excel';
|
|
274
|
-
break;
|
|
275
|
-
case 'pdf':
|
|
276
|
-
icon = 'vxe-icon-file-pdf';
|
|
277
|
-
break;
|
|
278
|
-
case 'txt':
|
|
279
|
-
icon = 'vxe-icon-file-txt';
|
|
280
|
-
break;
|
|
281
|
-
case 'ppt':
|
|
282
|
-
icon = 'vxe-icon-file-ppt';
|
|
283
|
-
break;
|
|
284
|
-
case 'markdown':
|
|
285
|
-
icon = 'vxe-icon-file-markdown';
|
|
286
|
-
break;
|
|
287
|
-
case 'apk':
|
|
288
|
-
icon = 'ri-android-fill';
|
|
289
|
-
break;
|
|
290
|
-
case 'ipa':
|
|
291
|
-
icon = 'ri-apple-line';
|
|
292
|
-
break;
|
|
293
|
-
|
|
294
|
-
default:
|
|
295
|
-
icon = 'vxe-icon-file';
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
return icon;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
const maskFilenameFromPath = file => {
|
|
302
|
-
let total = props.size === 'small' ? 10 : 9;
|
|
303
|
-
// 提取纯文件名(含扩展名)
|
|
304
|
-
const extractFilename = file => {
|
|
305
|
-
if (file.name) return file.name;
|
|
306
|
-
const path = file.url;
|
|
307
|
-
const separator = path.includes('\\') ? '\\' : '/';
|
|
308
|
-
return path.split(separator).pop();
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
// 处理文件名脱敏
|
|
312
|
-
const maskFilename = filename => {
|
|
313
|
-
const dotPos = filename.lastIndexOf('.');
|
|
314
|
-
const name = dotPos > 0 ? filename.substring(0, dotPos) : filename;
|
|
315
|
-
const ext = dotPos > 0 ? filename.substring(dotPos) : '';
|
|
316
|
-
|
|
317
|
-
if (name.length <= total) return filename;
|
|
318
|
-
|
|
319
|
-
const prefix = props.renderMode === 'item' ? name.substring(0, total - 5) : '';
|
|
320
|
-
const suffix = name.substring(name.length - (total - 6));
|
|
321
|
-
return `${prefix}...${suffix}${ext}`;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
return maskFilename(extractFilename(file));
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
const onDownload = file => {
|
|
328
|
-
console.log(file);
|
|
329
|
-
};
|
|
330
|
-
const emit = defineEmits<{
|
|
331
|
-
(e: 'remove', file: any, fileList: any): void;
|
|
332
|
-
}>();
|
|
333
|
-
|
|
334
|
-
const initData = () => {
|
|
335
|
-
const fileUrl = props.record[props.field];
|
|
336
|
-
fileList.value = [];
|
|
337
|
-
if (fileUrl) {
|
|
338
|
-
if (fileUrl && isString(fileUrl)) {
|
|
339
|
-
const name = fileUrl.match(/[^\/\\]+$/)[0];
|
|
340
|
-
const file = { name, url: `${baseUrl}/ufil${fileUrl}` };
|
|
341
|
-
if (props.singleMode) {
|
|
342
|
-
fileList.value = file;
|
|
343
|
-
} else {
|
|
344
|
-
fileList.value.push(file);
|
|
345
|
-
}
|
|
346
|
-
} else if (isArray(fileUrl)) {
|
|
347
|
-
fileUrl.forEach(file => {
|
|
348
|
-
if (isString(file)) {
|
|
349
|
-
const name = file.match(/[^\/\\]+$/)[0];
|
|
350
|
-
fileList.value.push({ name, url: `${baseUrl}/ufil${file}` });
|
|
351
|
-
} else {
|
|
352
|
-
fileList.value.push({
|
|
353
|
-
name: file.name,
|
|
354
|
-
url: `${baseUrl}/ufil${file.realpath}`
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
|
|
362
|
-
onBeforeMount(() => {
|
|
363
|
-
initData();
|
|
364
|
-
console.log('fileList');
|
|
365
|
-
});
|
|
366
|
-
</script>
|
|
367
|
-
|
|
368
|
-
<style lang="scss">
|
|
369
|
-
.ut-upload-item--small {
|
|
370
|
-
position: relative;
|
|
371
|
-
width: var(--vxe-ui-upload-image-wh-small);
|
|
372
|
-
height: var(--vxe-ui-upload-image-wh-small);
|
|
373
|
-
margin: var(--vxe-ui-layout-padding-half);
|
|
374
|
-
border: 1px solid var(--vxe-ui-input-border-color);
|
|
375
|
-
border-radius: var(--vxe-ui-base-border-radius);
|
|
376
|
-
|
|
377
|
-
.ut-upload--image {
|
|
378
|
-
position: relative;
|
|
379
|
-
width: var(--vxe-ui-upload-image-wh-small);
|
|
380
|
-
height: var(--vxe-ui-upload-image-wh-small);
|
|
381
|
-
border-radius: var(--vxe-ui-base-border-radius);
|
|
382
|
-
|
|
383
|
-
.ut-image-file--wrapper {
|
|
384
|
-
display: flex;
|
|
385
|
-
flex-direction: column;
|
|
386
|
-
align-items: center;
|
|
387
|
-
|
|
388
|
-
.ut-image-file {
|
|
389
|
-
font-size: 48px;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.ut-upload-item--mini {
|
|
396
|
-
position: relative;
|
|
397
|
-
width: var(--vxe-ui-upload-image-wh-mini);
|
|
398
|
-
height: var(--vxe-ui-upload-image-wh-mini);
|
|
399
|
-
margin: var(--vxe-ui-layout-padding-half);
|
|
400
|
-
border: 1px solid var(--vxe-ui-input-border-color);
|
|
401
|
-
border-radius: var(--vxe-ui-base-border-radius);
|
|
402
|
-
|
|
403
|
-
.ut-upload--image {
|
|
404
|
-
position: relative;
|
|
405
|
-
width: var(--vxe-ui-upload-image-wh-mini);
|
|
406
|
-
height: var(--vxe-ui-upload-image-wh-mini);
|
|
407
|
-
border-radius: var(--vxe-ui-base-border-radius);
|
|
408
|
-
|
|
409
|
-
.ut-image-file--wrapper {
|
|
410
|
-
display: flex;
|
|
411
|
-
flex-direction: column;
|
|
412
|
-
align-items: center;
|
|
413
|
-
|
|
414
|
-
.ut-image-file {
|
|
415
|
-
font-size: 42px;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.ut-upload-item--xs {
|
|
422
|
-
position: relative;
|
|
423
|
-
width: 48px;
|
|
424
|
-
height: 48px;
|
|
425
|
-
margin: var(--vxe-ui-layout-padding-half);
|
|
426
|
-
border: 1px solid var(--vxe-ui-input-border-color);
|
|
427
|
-
border-radius: var(--vxe-ui-base-border-radius);
|
|
428
|
-
|
|
429
|
-
.ut-upload--image {
|
|
430
|
-
position: relative;
|
|
431
|
-
width: 48px;
|
|
432
|
-
height: 48px;
|
|
433
|
-
border-radius: var(--vxe-ui-base-border-radius);
|
|
434
|
-
|
|
435
|
-
.ut-image-file--wrapper {
|
|
436
|
-
display: flex;
|
|
437
|
-
flex-direction: column;
|
|
438
|
-
align-items: center;
|
|
439
|
-
|
|
440
|
-
.ut-image-file {
|
|
441
|
-
font-size: 32px;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
.ut-upload--btn:hover {
|
|
448
|
-
color: var(--udp-theme-vxeColor);
|
|
449
|
-
border: 1px dashed var(--udp-theme-vxeColor);
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
.ut-upload--image-item-btn-wrapper {
|
|
453
|
-
position: absolute;
|
|
454
|
-
top: calc(var(--vxe-ui-layout-padding-half) * -1);
|
|
455
|
-
right: calc(var(--vxe-ui-layout-padding-half) * -1);
|
|
456
|
-
display: inline-flex;
|
|
457
|
-
justify-content: center;
|
|
458
|
-
|
|
459
|
-
.ut-upload-remove--btn {
|
|
460
|
-
z-index: 3;
|
|
461
|
-
display: flex;
|
|
462
|
-
flex-direction: row;
|
|
463
|
-
align-items: center;
|
|
464
|
-
justify-content: center;
|
|
465
|
-
width: 1.8em;
|
|
466
|
-
height: 1.8em;
|
|
467
|
-
font-size: 0.8em;
|
|
468
|
-
color: #fff;
|
|
469
|
-
cursor: pointer;
|
|
470
|
-
background-color: var(--vxe-ui-status-error-color);
|
|
471
|
-
border-radius: 50%;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.ut-image {
|
|
476
|
-
height: 100%;
|
|
477
|
-
border-radius: var(--vxe-ui-base-border-radius);
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.ut-image-hover:hover > .ut-image-file--wrapper {
|
|
481
|
-
display: none;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.ut-image-hover:hover > .ut-download-icon {
|
|
485
|
-
display: block;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.ut-download-icon {
|
|
489
|
-
display: none;
|
|
490
|
-
cursor: pointer;
|
|
491
|
-
}
|
|
492
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-11-04 14:53:36
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-12-15 16:20:41
|
|
6
|
+
* @Description: form upload
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div class="flex w-full flex-wrap">
|
|
10
|
+
<div class="ut-upload-list flex flex-wrap items-center">
|
|
11
|
+
<div v-for="(item, idx) in fileList" :key="item" :class="'ut-upload-item--' + size">
|
|
12
|
+
<div class="ut-upload--image flex items-center justify-center">
|
|
13
|
+
<img
|
|
14
|
+
v-if="getItemType(item) === 'img'"
|
|
15
|
+
:src="item.url"
|
|
16
|
+
class="ut-image select-none"
|
|
17
|
+
@click="onPreview(item)"
|
|
18
|
+
/>
|
|
19
|
+
<div v-else-if="renderMode === 'item' || dataStatus !== 'detail'" class="ut-image-hover">
|
|
20
|
+
<div class="ut-image-file--wrapper">
|
|
21
|
+
<i :class="getItemType(item)" class="ut-image-file ut-image" style="line-height: 1" />
|
|
22
|
+
<div class="px-1 ut-image" :style="{ fontSize: size === 'small' ? '11px' : '10px' }">
|
|
23
|
+
{{ maskFilenameFromPath(item) }}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<i
|
|
27
|
+
class="vxe-icon-download ut-download-icon"
|
|
28
|
+
:style="{ fontSize: renderMode === 'item' ? '60px' : '48px' }"
|
|
29
|
+
@click="onDownload(item)"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
<vxe-tooltip v-else :content="item.name" class="cursor-pointer">
|
|
33
|
+
<div class="ut-image-hover">
|
|
34
|
+
<div class="ut-image-file--wrapper">
|
|
35
|
+
<i :class="getItemType(item)" class="ut-image-file ut-image" style="font-size: 32px" />
|
|
36
|
+
<div class="px-1 ut-image" :style="{ fontSize: size === 'small' ? '11px' : '10px' }">
|
|
37
|
+
{{ maskFilenameFromPath(item) }}
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<i
|
|
41
|
+
class="vxe-icon-download ut-download-icon"
|
|
42
|
+
:style="{ fontSize: renderMode === 'item' ? '60px' : '48px' }"
|
|
43
|
+
@click="onDownload(item)"
|
|
44
|
+
/>
|
|
45
|
+
</div>
|
|
46
|
+
</vxe-tooltip>
|
|
47
|
+
</div>
|
|
48
|
+
<div v-if="dataStatus !== 'detail'" class="ut-upload--image-item-btn-wrapper">
|
|
49
|
+
<div class="ut-upload-remove--btn">
|
|
50
|
+
<i class="vxe-icon-close" @click="onRemove(item, idx)" />
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div
|
|
55
|
+
v-if="dataStatus !== 'detail'"
|
|
56
|
+
:class="'ut-upload-item--' + size"
|
|
57
|
+
class="ut-upload--btn"
|
|
58
|
+
style="border: 1px dashed var(--vxe-ui-input-border-color)"
|
|
59
|
+
@click="onStartUpload"
|
|
60
|
+
>
|
|
61
|
+
<div class="flex items-center justify-center h-full flex-col cursor-pointer ut-upload--btn">
|
|
62
|
+
<span v-if="!loading" class="vxe-icon-add" style="font-size: 18px" />
|
|
63
|
+
<div v-if="!loading" style="padding: 0 1px; font-size: 11px; text-align: center">点击上传</div>
|
|
64
|
+
<vxe-icon v-if="loading" name="spinner" status="primary" roll style="font-size: 24px" />
|
|
65
|
+
<div v-if="loading" style="padding: 0 1px; font-size: 11px; text-align: center">
|
|
66
|
+
{{ progressText }}
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<vxe-upload
|
|
72
|
+
ref="xupload"
|
|
73
|
+
v-model="list"
|
|
74
|
+
style="display: none"
|
|
75
|
+
v-bind="$attrs"
|
|
76
|
+
:limit-count="limitCount"
|
|
77
|
+
:limit-size="limitSize"
|
|
78
|
+
:size="size"
|
|
79
|
+
:mode="mode"
|
|
80
|
+
:single-mode="singleMode"
|
|
81
|
+
:image-types="imageTypes"
|
|
82
|
+
:auto-hidden-button="autoHiddenButton"
|
|
83
|
+
:show-error-status="showErrorStatus"
|
|
84
|
+
:remove-method="handleRemove"
|
|
85
|
+
:upload-method="httpRequest"
|
|
86
|
+
:multiple="multiple"
|
|
87
|
+
:show-download-button="showDownloadButton"
|
|
88
|
+
:show-list="false"
|
|
89
|
+
show-progress
|
|
90
|
+
@upload-success="onSuccess"
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
</template>
|
|
94
|
+
|
|
95
|
+
<script lang="ts">
|
|
96
|
+
export default { name: 'FormUpload' };
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<script setup lang="ts">
|
|
100
|
+
import { ref, computed, watch, onBeforeMount, getCurrentInstance } from 'vue';
|
|
101
|
+
import { cookies } from '@utogether/utils';
|
|
102
|
+
import compressorjs from 'compressorjs';
|
|
103
|
+
import { isString, isArray } from 'xe-utils';
|
|
104
|
+
import { VxeUI, VxeUploadPropTypes } from 'vxe-pc-ui';
|
|
105
|
+
import axios from 'axios';
|
|
106
|
+
|
|
107
|
+
export interface IProps {
|
|
108
|
+
record: object;
|
|
109
|
+
imageTypes?: Array<string>;
|
|
110
|
+
field: string;
|
|
111
|
+
dataStatus?: string;
|
|
112
|
+
renderMode?: string;
|
|
113
|
+
size?: VxeUploadPropTypes.Size;
|
|
114
|
+
mode?: VxeUploadPropTypes.Mode;
|
|
115
|
+
limitCount?: number;
|
|
116
|
+
limitSize?: number;
|
|
117
|
+
compassorSize?: number;
|
|
118
|
+
quality?: number;
|
|
119
|
+
singleMode?: boolean;
|
|
120
|
+
autoHiddenButton?: boolean;
|
|
121
|
+
showErrorStatus?: boolean;
|
|
122
|
+
showDownloadButton?: boolean;
|
|
123
|
+
multiple?: boolean;
|
|
124
|
+
success?: Function;
|
|
125
|
+
remove?: Function;
|
|
126
|
+
}
|
|
127
|
+
const props = withDefaults(defineProps<IProps>(), {
|
|
128
|
+
record: () => {
|
|
129
|
+
return {};
|
|
130
|
+
},
|
|
131
|
+
imageTypes: () => {
|
|
132
|
+
return ['jpg', 'jpeg', 'png', 'gif'];
|
|
133
|
+
},
|
|
134
|
+
field: '',
|
|
135
|
+
renderMode: 'item',
|
|
136
|
+
dataStatus: '',
|
|
137
|
+
size: 'mini',
|
|
138
|
+
mode: '',
|
|
139
|
+
singleMode: false,
|
|
140
|
+
autoHiddenButton: false,
|
|
141
|
+
showDownloadButton: false,
|
|
142
|
+
multiple: false,
|
|
143
|
+
limitSize: 30,
|
|
144
|
+
limitCount: 9,
|
|
145
|
+
quality: 0.6,
|
|
146
|
+
compassorSize: 2
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
watch(
|
|
150
|
+
() => props.record[props.field],
|
|
151
|
+
val => {
|
|
152
|
+
initData();
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
const instance = getCurrentInstance()!;
|
|
157
|
+
const baseUrl = instance.appContext.config.globalProperties.$url;
|
|
158
|
+
// const serviceApi = instance.appContext.config.globalProperties.$serviceApi;
|
|
159
|
+
const progressText = ref('');
|
|
160
|
+
const loading = ref(false);
|
|
161
|
+
|
|
162
|
+
const imgTypes = ['image/gif', 'image/jpeg', 'image/png'];
|
|
163
|
+
const xupload = ref(null);
|
|
164
|
+
|
|
165
|
+
const headers = computed(() => {
|
|
166
|
+
const kTOKENKEY = 'authorized-token';
|
|
167
|
+
const token = cookies.get(kTOKENKEY)!;
|
|
168
|
+
const data = JSON.parse(token);
|
|
169
|
+
const headers = {
|
|
170
|
+
Authorization: 'Bearer ' + data.accessToken
|
|
171
|
+
};
|
|
172
|
+
return headers;
|
|
173
|
+
});
|
|
174
|
+
const list = ref([]);
|
|
175
|
+
const fileList = ref<any>([]);
|
|
176
|
+
|
|
177
|
+
const httpRequest = options => {
|
|
178
|
+
if (imgTypes.includes(options.file.type) && options.file.size > 1024 * 1024 * props.compassorSize) {
|
|
179
|
+
return new Promise((resolve, reject) => {
|
|
180
|
+
new compressorjs(options.file, {
|
|
181
|
+
quality: props.quality,
|
|
182
|
+
mimeType: options.file.type,
|
|
183
|
+
success(result: File) {
|
|
184
|
+
const file = new File([result], result.name, { type: result.type });
|
|
185
|
+
uploadProcess(resolve, reject, file);
|
|
186
|
+
console.log({ result, file });
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
} else {
|
|
191
|
+
return new Promise((resolve, reject) => uploadProcess(resolve, reject, options.file));
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
const uploadProcess = (resolve, reject, file) => {
|
|
196
|
+
const formBody = new FormData();
|
|
197
|
+
formBody.append('file', file);
|
|
198
|
+
const url = baseUrl + '/ufil/file/uploadMultipart';
|
|
199
|
+
loading.value = true;
|
|
200
|
+
return axios
|
|
201
|
+
.post(url, formBody, {
|
|
202
|
+
headers: Object.assign({ 'Content-Type': 'multipart/form-data' }, headers.value),
|
|
203
|
+
onUploadProgress(progressEvent) {
|
|
204
|
+
const progress = Math.round((progressEvent.loaded * 100) / (progressEvent.total || 0));
|
|
205
|
+
progressText.value = `进度${progress}%`;
|
|
206
|
+
}
|
|
207
|
+
})
|
|
208
|
+
.then(async response => {
|
|
209
|
+
progressText.value = `处理中...`;
|
|
210
|
+
file.path = response.data.data;
|
|
211
|
+
file.url = `${baseUrl}/ufil${file.path}`;
|
|
212
|
+
fileList.value.push(file);
|
|
213
|
+
console.log(file);
|
|
214
|
+
loading.value = false;
|
|
215
|
+
resolve(file);
|
|
216
|
+
})
|
|
217
|
+
.catch(() => {
|
|
218
|
+
loading.value = false;
|
|
219
|
+
reject(null);
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const onStartUpload = () => {
|
|
224
|
+
xupload.value.choose();
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
const onSuccess = ({ data }) => {
|
|
228
|
+
if (props.success) {
|
|
229
|
+
return props.success(data);
|
|
230
|
+
} else {
|
|
231
|
+
const field = props.field;
|
|
232
|
+
Object.assign(props.record, { [field]: data.path });
|
|
233
|
+
}
|
|
234
|
+
console.log(props.record, fileList);
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
const handleRemove: VxeUploadPropTypes.RemoveMethod = ({ option }) => {
|
|
238
|
+
if (props.remove) {
|
|
239
|
+
return props.remove(option, fileList);
|
|
240
|
+
}
|
|
241
|
+
emit('remove', option, fileList);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
const onRemove = (file, idx) => {
|
|
245
|
+
fileList.value.splice(idx, 1);
|
|
246
|
+
emit('remove', file, fileList);
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
const onPreview = item => {
|
|
250
|
+
// console.log(item.url);
|
|
251
|
+
VxeUI.previewImage({ activeIndex: 0, urlList: [item.url] });
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const getItemType = item => {
|
|
255
|
+
const type = item.type || item.url.split('.').pop();
|
|
256
|
+
let icon = '';
|
|
257
|
+
switch (type) {
|
|
258
|
+
case 'jpg':
|
|
259
|
+
case 'png':
|
|
260
|
+
case 'jpeg':
|
|
261
|
+
case 'webp':
|
|
262
|
+
case 'image/jpeg':
|
|
263
|
+
case 'image/png':
|
|
264
|
+
case 'image/gif':
|
|
265
|
+
icon = 'img';
|
|
266
|
+
break;
|
|
267
|
+
case 'doc':
|
|
268
|
+
case 'docx':
|
|
269
|
+
icon = 'vxe-icon-file-word';
|
|
270
|
+
break;
|
|
271
|
+
case 'xlsx':
|
|
272
|
+
case 'xls':
|
|
273
|
+
icon = 'vxe-icon-file-excel';
|
|
274
|
+
break;
|
|
275
|
+
case 'pdf':
|
|
276
|
+
icon = 'vxe-icon-file-pdf';
|
|
277
|
+
break;
|
|
278
|
+
case 'txt':
|
|
279
|
+
icon = 'vxe-icon-file-txt';
|
|
280
|
+
break;
|
|
281
|
+
case 'ppt':
|
|
282
|
+
icon = 'vxe-icon-file-ppt';
|
|
283
|
+
break;
|
|
284
|
+
case 'markdown':
|
|
285
|
+
icon = 'vxe-icon-file-markdown';
|
|
286
|
+
break;
|
|
287
|
+
case 'apk':
|
|
288
|
+
icon = 'ri-android-fill';
|
|
289
|
+
break;
|
|
290
|
+
case 'ipa':
|
|
291
|
+
icon = 'ri-apple-line';
|
|
292
|
+
break;
|
|
293
|
+
|
|
294
|
+
default:
|
|
295
|
+
icon = 'vxe-icon-file';
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
return icon;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
const maskFilenameFromPath = file => {
|
|
302
|
+
let total = props.size === 'small' ? 10 : 9;
|
|
303
|
+
// 提取纯文件名(含扩展名)
|
|
304
|
+
const extractFilename = file => {
|
|
305
|
+
if (file.name) return file.name;
|
|
306
|
+
const path = file.url;
|
|
307
|
+
const separator = path.includes('\\') ? '\\' : '/';
|
|
308
|
+
return path.split(separator).pop();
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
// 处理文件名脱敏
|
|
312
|
+
const maskFilename = filename => {
|
|
313
|
+
const dotPos = filename.lastIndexOf('.');
|
|
314
|
+
const name = dotPos > 0 ? filename.substring(0, dotPos) : filename;
|
|
315
|
+
const ext = dotPos > 0 ? filename.substring(dotPos) : '';
|
|
316
|
+
|
|
317
|
+
if (name.length <= total) return filename;
|
|
318
|
+
|
|
319
|
+
const prefix = props.renderMode === 'item' ? name.substring(0, total - 5) : '';
|
|
320
|
+
const suffix = name.substring(name.length - (total - 6));
|
|
321
|
+
return `${prefix}...${suffix}${ext}`;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
return maskFilename(extractFilename(file));
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
const onDownload = file => {
|
|
328
|
+
console.log(file);
|
|
329
|
+
};
|
|
330
|
+
const emit = defineEmits<{
|
|
331
|
+
(e: 'remove', file: any, fileList: any): void;
|
|
332
|
+
}>();
|
|
333
|
+
|
|
334
|
+
const initData = () => {
|
|
335
|
+
const fileUrl = props.record[props.field];
|
|
336
|
+
fileList.value = [];
|
|
337
|
+
if (fileUrl) {
|
|
338
|
+
if (fileUrl && isString(fileUrl)) {
|
|
339
|
+
const name = fileUrl.match(/[^\/\\]+$/)[0];
|
|
340
|
+
const file = { name, url: `${baseUrl}/ufil${fileUrl}` };
|
|
341
|
+
if (props.singleMode) {
|
|
342
|
+
fileList.value = file;
|
|
343
|
+
} else {
|
|
344
|
+
fileList.value.push(file);
|
|
345
|
+
}
|
|
346
|
+
} else if (isArray(fileUrl)) {
|
|
347
|
+
fileUrl.forEach(file => {
|
|
348
|
+
if (isString(file)) {
|
|
349
|
+
const name = file.match(/[^\/\\]+$/)[0];
|
|
350
|
+
fileList.value.push({ name, url: `${baseUrl}/ufil${file}` });
|
|
351
|
+
} else {
|
|
352
|
+
fileList.value.push({
|
|
353
|
+
name: file.name,
|
|
354
|
+
url: `${baseUrl}/ufil${file.realpath}`
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
onBeforeMount(() => {
|
|
363
|
+
initData();
|
|
364
|
+
console.log('fileList');
|
|
365
|
+
});
|
|
366
|
+
</script>
|
|
367
|
+
|
|
368
|
+
<style lang="scss">
|
|
369
|
+
.ut-upload-item--small {
|
|
370
|
+
position: relative;
|
|
371
|
+
width: var(--vxe-ui-upload-image-wh-small);
|
|
372
|
+
height: var(--vxe-ui-upload-image-wh-small);
|
|
373
|
+
margin: var(--vxe-ui-layout-padding-half);
|
|
374
|
+
border: 1px solid var(--vxe-ui-input-border-color);
|
|
375
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
376
|
+
|
|
377
|
+
.ut-upload--image {
|
|
378
|
+
position: relative;
|
|
379
|
+
width: var(--vxe-ui-upload-image-wh-small);
|
|
380
|
+
height: var(--vxe-ui-upload-image-wh-small);
|
|
381
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
382
|
+
|
|
383
|
+
.ut-image-file--wrapper {
|
|
384
|
+
display: flex;
|
|
385
|
+
flex-direction: column;
|
|
386
|
+
align-items: center;
|
|
387
|
+
|
|
388
|
+
.ut-image-file {
|
|
389
|
+
font-size: 48px;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ut-upload-item--mini {
|
|
396
|
+
position: relative;
|
|
397
|
+
width: var(--vxe-ui-upload-image-wh-mini);
|
|
398
|
+
height: var(--vxe-ui-upload-image-wh-mini);
|
|
399
|
+
margin: var(--vxe-ui-layout-padding-half);
|
|
400
|
+
border: 1px solid var(--vxe-ui-input-border-color);
|
|
401
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
402
|
+
|
|
403
|
+
.ut-upload--image {
|
|
404
|
+
position: relative;
|
|
405
|
+
width: var(--vxe-ui-upload-image-wh-mini);
|
|
406
|
+
height: var(--vxe-ui-upload-image-wh-mini);
|
|
407
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
408
|
+
|
|
409
|
+
.ut-image-file--wrapper {
|
|
410
|
+
display: flex;
|
|
411
|
+
flex-direction: column;
|
|
412
|
+
align-items: center;
|
|
413
|
+
|
|
414
|
+
.ut-image-file {
|
|
415
|
+
font-size: 42px;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.ut-upload-item--xs {
|
|
422
|
+
position: relative;
|
|
423
|
+
width: 48px;
|
|
424
|
+
height: 48px;
|
|
425
|
+
margin: var(--vxe-ui-layout-padding-half);
|
|
426
|
+
border: 1px solid var(--vxe-ui-input-border-color);
|
|
427
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
428
|
+
|
|
429
|
+
.ut-upload--image {
|
|
430
|
+
position: relative;
|
|
431
|
+
width: 48px;
|
|
432
|
+
height: 48px;
|
|
433
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
434
|
+
|
|
435
|
+
.ut-image-file--wrapper {
|
|
436
|
+
display: flex;
|
|
437
|
+
flex-direction: column;
|
|
438
|
+
align-items: center;
|
|
439
|
+
|
|
440
|
+
.ut-image-file {
|
|
441
|
+
font-size: 32px;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.ut-upload--btn:hover {
|
|
448
|
+
color: var(--udp-theme-vxeColor);
|
|
449
|
+
border: 1px dashed var(--udp-theme-vxeColor);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.ut-upload--image-item-btn-wrapper {
|
|
453
|
+
position: absolute;
|
|
454
|
+
top: calc(var(--vxe-ui-layout-padding-half) * -1);
|
|
455
|
+
right: calc(var(--vxe-ui-layout-padding-half) * -1);
|
|
456
|
+
display: inline-flex;
|
|
457
|
+
justify-content: center;
|
|
458
|
+
|
|
459
|
+
.ut-upload-remove--btn {
|
|
460
|
+
z-index: 3;
|
|
461
|
+
display: flex;
|
|
462
|
+
flex-direction: row;
|
|
463
|
+
align-items: center;
|
|
464
|
+
justify-content: center;
|
|
465
|
+
width: 1.8em;
|
|
466
|
+
height: 1.8em;
|
|
467
|
+
font-size: 0.8em;
|
|
468
|
+
color: #fff;
|
|
469
|
+
cursor: pointer;
|
|
470
|
+
background-color: var(--vxe-ui-status-error-color);
|
|
471
|
+
border-radius: 50%;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ut-image {
|
|
476
|
+
height: 100%;
|
|
477
|
+
border-radius: var(--vxe-ui-base-border-radius);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.ut-image-hover:hover > .ut-image-file--wrapper {
|
|
481
|
+
display: none;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.ut-image-hover:hover > .ut-download-icon {
|
|
485
|
+
display: block;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.ut-download-icon {
|
|
489
|
+
display: none;
|
|
490
|
+
cursor: pointer;
|
|
491
|
+
}
|
|
492
|
+
</style>
|