@utogether/udp-core 2.0.0-beta.4 → 2.0.0-beta.5
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-CekcmGOc.js → 403-y4Id7pky.js} +1 -1
- package/dist/{404-DeSH9KnK.js → 404-DdxstlUr.js} +1 -1
- package/dist/{500-DHOHlmtv.js → 500-BpsDn21g.js} +1 -1
- package/dist/{AuthorityInfo-BC8U3Zk4.js → AuthorityInfo-0CnlrZVd.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DVFi0qOJ.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D5cXM84w.js} +1 -1
- package/dist/{Company-Byq4p14C.js → Company-BPAqJfZm.js} +3 -3
- package/dist/{CompanyPanel-CIHP7rVd.js → CompanyPanel-CCeM96w4.js} +7 -7
- package/dist/{Department-CxgSq34X.js → Department-BsLrIIrS.js} +3 -3
- package/dist/{DepartmentPanel-hYNqywSQ.js → DepartmentPanel-B2YqwLmq.js} +20 -20
- package/dist/{DesignPanel-GEhqXIAx.js → DesignPanel-CVSOCMvU.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DxA6H5Ts.js → DesignPanel.vue_vue_type_style_index_0_lang-Dte8DQnU.js} +2 -2
- package/dist/{DictView-tyGrHFO8.js → DictView-CKVpPtFg.js} +1 -1
- package/dist/{InvOrganization-DjJ4XkxN.js → InvOrganization-BBODO8aK.js} +1 -1
- package/dist/{Org-3eHX7nBU.js → Org-BYRi0OAt.js} +1 -1
- package/dist/{Preview-Cgc3O8vp.js → Preview-COI8NwWh.js} +1 -1
- package/dist/{ReportDefine-FYxHLbPV.js → ReportDefine-Dbh_8ykf.js} +1 -1
- package/dist/{ReportDesign-BTOVgMzz.js → ReportDesign-DOeKYL9V.js} +6 -6
- package/dist/{ReportQuery-Dhy9sk04.js → ReportQuery-Bb4r9lNR.js} +1 -1
- package/dist/{ReportQueryFrom-B1TE8lOG.js → ReportQueryFrom-CavcWtL3.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-D93NL2N7.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-tuLRWEK9.js} +7 -7
- package/dist/{ReportTemplate-C-EuU7mL.js → ReportTemplate-C9NzPxM4.js} +8 -8
- package/dist/{Role-Dc1dZ0o9.js → Role-Bqt4d9Lz.js} +3 -3
- package/dist/{RoleAssign-DDv65izq.js → RoleAssign-CWcytVz3.js} +3 -3
- package/dist/{RolePanel-CiDM8OSr.js → RolePanel-Di5nsMqt.js} +1 -1
- package/dist/{RolePanel-Dw_pTEGV.js → RolePanel-DlU0aCnL.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CG_KY7NS.js → RolePanel.vue_vue_type_script_setup_true_lang-BOq0iJsT.js} +7 -7
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Ctq1lItN.js → RolePanel.vue_vue_type_script_setup_true_lang-hzbUepuW.js} +7 -7
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CyU7XjI3.js → ScrollPanel.vue_vue_type_style_index_0_lang-Bg3rg4P4.js} +1 -1
- package/dist/{Staff-DMh451jL.js → Staff-DXr2Ka1N.js} +3 -3
- package/dist/{StaffInfo-2PhYcVaz.js → StaffInfo-C6lDK0S_.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CrCFms3g.js → StaffInfo.vue_vue_type_script_setup_true_lang-YRJm87-b.js} +1 -1
- package/dist/{StaffPanel-BrvkXT68.js → StaffPanel-WNpg0HWl.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DKr8VVOJ.js → StaffPanel.vue_vue_type_script_setup_true_lang-azLpvFRo.js} +8 -8
- package/dist/{SysUser-DLDd5do7.js → SysUser-Dph6Qi_a.js} +2 -2
- package/dist/{SysUserPanel-DDQxi2Hk.js → SysUserPanel-Iz024NS_.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DvOggZs6.js → SysUserPanel.vue_vue_type_script_setup_true_lang-D8GUQHic.js} +1 -1
- package/dist/{SystemMenu-nFNfz4Nj.js → SystemMenu-6mTYGwbK.js} +6 -6
- package/dist/{UserInfo-B9PLKur5.js → UserInfo-RQ7VgSbk.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BwZNwtQH.js → UserInfo.vue_vue_type_style_index_0_lang-BYp2-i9R.js} +1 -1
- package/dist/{childView-BEDVB_RG.js → childView-B8L4By2o.js} +1 -1
- package/dist/{childView-BRa268Qh.js → childView-nCa8t4tr.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-BcyosNSH.js → childView.vue_vue_type_style_index_0_lang-Bl1MzDS9.js} +7 -7
- package/dist/{childView.vue_vue_type_style_index_0_lang-qsceJGeR.js → childView.vue_vue_type_style_index_0_lang-DDx9z61J.js} +7 -7
- package/dist/{code-rule-CJ4FuOo1.js → code-rule-8dQLPHni.js} +1 -1
- package/dist/core.es.js +10 -10
- package/dist/{cron-task-CXnv7hIa.js → cron-task-aDBWT_Uh.js} +1 -1
- package/dist/{frameView-g5e9PYdE.js → frameView-DM3flfo5.js} +1 -1
- package/dist/{index-BEAth5RR.js → index-ClHeZ3q4.js} +88 -88
- package/dist/{layout-home-bl3JShSF.js → layout-home-DNPOu6R4.js} +1 -1
- package/dist/{layoutView-DmM9xk-X.js → layoutView-Ymyja_uK.js} +1 -1
- package/dist/{log-in-eGoxFTDE.js → log-in-DtHf5ZcG.js} +8 -8
- package/dist/{log-out-CthD_tSk.js → log-out-DZ8OkPM6.js} +3 -3
- package/dist/{login-Dn7iO3SU.js → login-CoX7TNHE.js} +15 -15
- package/dist/{lov-view-Bt23RK6S.js → lov-view-BWtIPBNm.js} +6 -6
- package/dist/{menuInfo-BEmcSaIX.js → menuInfo-wG5Zt00s.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CVuG-x2a.js → menuInfo.vue_vue_type_style_index_0_lang-DiPeALce.js} +1 -1
- package/dist/{pda-app-BKfXoKAs.js → pda-app-9b3JC2he.js} +8 -8
- package/dist/{resource-CshrvEYp.js → resource-DiHXYgfm.js} +4 -4
- package/dist/{su-welcome-CYYy-dzr-D3RKPoB0-DhP783YJ.js → su-welcome-COvSPTOW.js} +20567 -20483
- package/dist/{sys-config-Jqj3l7NK.js → sys-config-Mm50Y0LQ.js} +12 -12
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/plugins/vxe-table/index.ts +116 -116
- package/src/views/ufile/aggregation/File.vue +87 -87
- package/src/views/uhome/components/home-todo.vue +3 -4
- package/src/views/uhome/su-welcome.vue +1 -3
- package/vite.config.ts +0 -1
- package/dist/403-CxOqlq0f-C28ufSE6.js +0 -65
- package/dist/403-WCboRvzZ-ZAPgYStl-Ck7rlpC9.js +0 -65
- package/dist/404-2V0Qi-d7-DkNwQggp-3kilva5o.js +0 -65
- package/dist/404-xdB6lFeQ-DRhUFuKU.js +0 -65
- package/dist/500-BYfzvixf-CGpEieyQ-DLrc9brB.js +0 -67
- package/dist/500-C94bRK2S-_XtNljMI.js +0 -67
- package/dist/AuthorityInfo-DBovfUjB-DpQwT9Q5-ChKFxbGl.js +0 -4
- package/dist/AuthorityInfo-Dy3b_nFN-BBC0HKlV.js +0 -4
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-Bh7IbcdY-BgLN7Lgx.js +0 -100
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-D-l_Az3s-Cw7WmFxz-B8tPqh_7.js +0 -100
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE-DAeYw45g.js +0 -4
- package/dist/AuthorityPanel-CRlAwbaI-G7pZXKdE.js +0 -4
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8-C6jMEDJq.js +0 -114
- package/dist/AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S-CJvk3pW8.js +0 -114
- package/dist/Company-B4vsXy2I-CkNCOqjJ-PjoD0ztY.js +0 -25
- package/dist/Company-gKkfnhLt-BReGxz7n.js +0 -25
- package/dist/CompanyPanel-BF5Pc35s-CtpymP6a.js +0 -206
- package/dist/CompanyPanel-Czcx8Gyw-CvndXwB_-mYpxegRQ.js +0 -206
- package/dist/DataSet-DT-rGICv-DaUfgbxk-YztlXv7w.js +0 -147
- package/dist/DataSet-DT-rGICv-DaUfgbxk.js +0 -147
- package/dist/Department-D0I3QVZe-CfWPT-lY.js +0 -25
- package/dist/Department-D0dVUrGC-C6HJcYI1-DhAtBQym.js +0 -25
- package/dist/DepartmentPanel-2LHODgc7--VCCaEsu.js +0 -254
- package/dist/DepartmentPanel-e91Lxr1j-BS_A-ILd-V3QvVWmJ.js +0 -254
- package/dist/DesignPanel-CtF3cAAQ-FM7zpexb.js +0 -4
- package/dist/DesignPanel-DdFl_ohi-uCwFxcl1-7p3ouXrw.js +0 -4
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BACPrfUI-cC7yL0uY-CoM_RAUN.js +0 -1013
- package/dist/DesignPanel.vue_vue_type_style_index_0_lang-BCYgwoVt-CcCVpy0f.js +0 -1013
- package/dist/DictView-BzQLOf_P-DDicwdmM-B8CFC279.js +0 -111
- package/dist/DictView-H3V5hxg3-BQZWN2zT.js +0 -111
- package/dist/InvOrganization-BiGLnbqe-BK3vgYYR.js +0 -74
- package/dist/InvOrganization-atbhw0CI-BABbVt9V-BT8PkfWL.js +0 -74
- package/dist/Org-BW1YHG-Q-Cow7JWlD-C7ygI7jx.js +0 -39
- package/dist/Org-DQTCQHNY-CEEpGGlZ.js +0 -39
- package/dist/Preview-DJtVsoq1-CCGidQjJ-DQ_OC1-S.js +0 -48
- package/dist/Preview-DXaiis29-BYyNhC1p.js +0 -48
- package/dist/ReportDefine-BLh4CiER-D68a0DWB.js +0 -10
- package/dist/ReportDefine-CNx_ob99-6NQAHK-Q-BL5gB56o.js +0 -10
- package/dist/ReportDesign-FbQ6yTJS-C1pPAUSp-DTsrU_wq.js +0 -165
- package/dist/ReportDesign-Ni1YxrLC-DfziOJc3.js +0 -165
- package/dist/ReportQuery-C5gz8Lgd-Eu2cQmda-c9iy6TZ_.js +0 -75
- package/dist/ReportQuery-C8G88_qF-BKknwX1u.js +0 -75
- package/dist/ReportQueryFrom-C7scua5v-uHXWq8Gy-Cq4havLh.js +0 -4
- package/dist/ReportQueryFrom-CuZKPtB4-B_TaZr-N.js +0 -4
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-BAn_siFW-CdTqG6KF.js +0 -178
- package/dist/ReportQueryFrom.vue_vue_type_style_index_0_lang-DCbz67Wa-vK6r2uCl-kdXwDD3n.js +0 -178
- package/dist/ReportTemplate-BDANdIWv-D_IGjR1w-txJDRw_J.js +0 -161
- package/dist/ReportTemplate-DFnDXWmx-QQkaZRvV.js +0 -161
- package/dist/Role-BQ7hsfPn-BLwTiMMj.js +0 -25
- package/dist/Role-ByB0WbxW-5E8Mb148-WoZV4JKV.js +0 -25
- package/dist/RoleAssign-DW6iC_0v-Bis61auk-BB4DziuB.js +0 -26
- package/dist/RoleAssign-UPCg2d4G-g4V-duK9.js +0 -26
- package/dist/RolePanel-BM2MaQPU-CgcsbfaX-D28vR3Fh.js +0 -4
- package/dist/RolePanel-C-mQ5XRq-JQYWITkX.js +0 -4
- package/dist/RolePanel-ClQy8DBL-DARL4O-o-DrElGZ66.js +0 -4
- package/dist/RolePanel-CoSXOCZN-BdCEhz3b.js +0 -4
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bc_Ao_PU-DMmxr2iI-Bsk0Mun8.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-Bg-t2UhF-CMTLt3Lp.js +0 -154
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-D-o7HYZ8-DPs8J-8D.js +0 -132
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-fthF1zkp-JsbQJoDy-vZfwM6bG.js +0 -154
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-ByWIwajm-BsBf2Vs3-CTeY23xN.js +0 -100
- package/dist/ScrollPanel.vue_vue_type_style_index_0_lang-CCsoxDfk-D-4pB58A.js +0 -100
- package/dist/Staff-CuxzvhD9-D0KTcyRh-Cj8NbX79.js +0 -25
- package/dist/Staff-D-CmvG1R-uwSWH8-m.js +0 -25
- package/dist/StaffInfo-CY7gUICu-EZUhUwIp-C8POP58u.js +0 -4
- package/dist/StaffInfo-Idhvuc6e-COVQmEz0.js +0 -4
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-Dd8gtQz8-Dlkt-eCn-p0kltEdZ.js +0 -108
- package/dist/StaffInfo.vue_vue_type_script_setup_true_lang-MUGKjnHU-Cj9lcXG6.js +0 -108
- package/dist/StaffPanel-CDDmAYE5-mLPGD2Nf.js +0 -4
- package/dist/StaffPanel-CwqG0_xr-CrvzLJoc-AX54GdZ3.js +0 -4
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-Bdilqbee-RiBDcMMj.js +0 -143
- package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DCdBy8Hu-BXrueqi0-DFG90qAT.js +0 -143
- package/dist/SysUser-9Q2UJWhi-DprWXFlR-DUMl4Hfm.js +0 -15
- package/dist/SysUser-a-j5bppr-CpP0s5DW.js +0 -15
- package/dist/SysUserPanel-6V232wwB-DI8apzmL.js +0 -4
- package/dist/SysUserPanel-bJy69O7x-BJtBgFEs-DEXctwBe.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BOtHuMVy-CD9JQp9h.js +0 -356
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DUPFqgz3-BSqRCMen-BBtBr0VU.js +0 -356
- package/dist/SystemMenu-BnVeOSOQ-6HW3jX57.js +0 -156
- package/dist/SystemMenu-DGOAolc1-CJSLHP8i-DIUNb03s.js +0 -156
- package/dist/UserInfo-CKoOHkAM-DDWp0I_U-DEerO-y3.js +0 -4
- package/dist/UserInfo-Cax9b2nw-DBResyaY.js +0 -4
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-BaT53SSu-DsNaAomO-7IKIrGoq.js +0 -160
- package/dist/UserInfo.vue_vue_type_style_index_0_lang-D-cw11i9-B2nI6TLi.js +0 -160
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes-CRQnmLCs.js +0 -10
- package/dist/await-to-js.es5-Bv3Eu4mi-UCggJjes.js +0 -10
- package/dist/childView-0YZQ6GBn-CEqg7k5d-CDGM_XzZ.js +0 -4
- package/dist/childView-DKG3eZo8-CCtKjCU7.js +0 -4
- package/dist/childView-DKkgi3yo-D47ft-vi-B5yI8Dk7.js +0 -4
- package/dist/childView-siumuBz0-CyYKsSPy.js +0 -4
- package/dist/childView.vue_vue_type_style_index_0_lang-ABMrGInv-ClOdE_sa-BnvsyZ35.js +0 -143
- package/dist/childView.vue_vue_type_style_index_0_lang-CUfXDS1q-DNNy6Qe3.js +0 -180
- package/dist/childView.vue_vue_type_style_index_0_lang-CW3EbAmW-D6Jvom5y.js +0 -143
- package/dist/childView.vue_vue_type_style_index_0_lang-CaW106ve-CClTM8PK-ZSgCqafc.js +0 -180
- package/dist/code-rule-Dtoree6F-B4yeNvFw.js +0 -148
- package/dist/code-rule-wQyfgpNL-C4evD4Co-BOJCC1LY.js +0 -148
- package/dist/cron-task-C-kryDtd-C0NuGZCe-DIJuoNx-.js +0 -135
- package/dist/cron-task-GSRgA7S5-D_xfN2g_.js +0 -135
- package/dist/flow-task-B07st2aD-CgQvagSQ-BaPlX6ds.js +0 -10
- package/dist/flow-task-B07st2aD-CgQvagSQ.js +0 -10
- package/dist/frameView-BOGA3ezf-QoSxzmSQ-BWs9F5mT.js +0 -44
- package/dist/frameView-Cy6wxW0K-BLdNZaGh.js +0 -44
- package/dist/layout-home-3Dy4onl4-COK554mq.js +0 -228
- package/dist/layout-home-CYHksXN_-Basy-3IH-Dnun4YUs.js +0 -228
- package/dist/layoutView-BaRvAbIa-xVgfqspc-zL46XaoI.js +0 -3302
- package/dist/layoutView-DMjNscJ--DvK2S5BQ.js +0 -3302
- package/dist/log-in-Cx1dGik8-BVeEHeZ8-D7mV8pl4.js +0 -117
- package/dist/log-in-VAG6Cvcx-B6arurXx.js +0 -117
- package/dist/log-out-COYdxrNC-ftopGZdE-Ch_UgXZv.js +0 -130
- package/dist/log-out-DZGaMCjC-OztBlMPh.js +0 -130
- package/dist/login-CqVMdNHs-CRJ-LWAK.js +0 -241
- package/dist/login-Dg9ofNS8-Bocp1XMA-DY4y3cAG.js +0 -241
- package/dist/login-log-DJBGJVV0-AoOyj0jD-AoOyj0jD.js +0 -70
- package/dist/login-log-DJBGJVV0-AoOyj0jD.js +0 -70
- package/dist/lov-view-C0T5prk8-B2DBmn55-BvzOsVW8.js +0 -97
- package/dist/lov-view-Cc68_28B-y4f2SzBr.js +0 -97
- package/dist/menuInfo-BIrIaJlH-Bxn4KTWH.js +0 -4
- package/dist/menuInfo-BZJ_q7bz-Drho-_QC-BK5n3Shr.js +0 -4
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-BA8xjUo3-BCZ1wipf-DEApwWGK.js +0 -363
- package/dist/menuInfo.vue_vue_type_style_index_0_lang-DlE4w35X-gWYo2VJe.js +0 -363
- package/dist/pda-app-DnjphrRS-4tIZDsnN.js +0 -710
- package/dist/pda-app-m9hsppHo-B4xyja1o-9mD3zI7J.js +0 -710
- package/dist/redirect-BqegffKC-CBCIuqmz-46JkXpSM.js +0 -15
- package/dist/redirect-BqegffKC-CBCIuqmz.js +0 -15
- package/dist/resource-C6KEIXu--B_ddyecm-CFF-A4cr.js +0 -97
- package/dist/resource-DISgPDM7-C4P8jqU0.js +0 -97
- package/dist/su-welcome-BjbuSrBZ-DrInu823.js +0 -49339
- package/dist/su-welcome-t7YusM3U.js +0 -49427
- package/dist/sys-config-DCjJGtht-DARDjlrt-Dx8559bf.js +0 -370
- package/dist/sys-config-Yc9vh1t1-B3bJPd9S.js +0 -370
- package/dist/utogether-MlnyYtNS-CGgjFNPS-CGgjFNPS.js +0 -4
- package/dist/utogether-MlnyYtNS-CGgjFNPS.js +0 -4
|
@@ -1,710 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ne, ref as P, resolveComponent as S, createElementBlock as ve, openBlock as X, createVNode as p, createBlock as me, createCommentVNode as he, Fragment as Y, isVNode as be, computed as G, watch as we, withDirectives as Oe, unref as _, resolveDirective as je, nextTick as Te } from "vue";
|
|
2
|
-
import { useI18n as xe } from "vue-i18n";
|
|
3
|
-
import { c as _e } from "./await-to-js.es5-Bv3Eu4mi-UCggJjes.js";
|
|
4
|
-
import { t as $e, u as Se, W as ke, o as Ce } from "./su-welcome-t7YusM3U.js";
|
|
5
|
-
import { useRender as Ue, withInstall as Ve } from "@utogether/utils";
|
|
6
|
-
import { clone as oe, isString as Z } from "xe-utils";
|
|
7
|
-
import Pe from "qrcode";
|
|
8
|
-
const M = {
|
|
9
|
-
silent: !1,
|
|
10
|
-
logLevel: "warn"
|
|
11
|
-
};
|
|
12
|
-
function x(e) {
|
|
13
|
-
if (typeof e != "object" || e === null)
|
|
14
|
-
return !1;
|
|
15
|
-
const t = Object.getPrototypeOf(e);
|
|
16
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
17
|
-
}
|
|
18
|
-
const Ne = () => ({
|
|
19
|
-
func: () => {
|
|
20
|
-
},
|
|
21
|
-
bool: !0,
|
|
22
|
-
string: "",
|
|
23
|
-
number: 0,
|
|
24
|
-
array: () => [],
|
|
25
|
-
object: () => ({}),
|
|
26
|
-
integer: 0
|
|
27
|
-
}), ae = Object.prototype, ie = ae.toString, qe = ae.hasOwnProperty, se = /^\s*function (\w+)/;
|
|
28
|
-
function ee(e) {
|
|
29
|
-
const t = (e == null ? void 0 : e.type) ?? e;
|
|
30
|
-
if (t) {
|
|
31
|
-
const n = t.toString().match(se);
|
|
32
|
-
return n ? n[1] : "";
|
|
33
|
-
}
|
|
34
|
-
return "";
|
|
35
|
-
}
|
|
36
|
-
function Ae(e) {
|
|
37
|
-
if (e == null)
|
|
38
|
-
return "";
|
|
39
|
-
const t = e.constructor.toString().match(se);
|
|
40
|
-
return t ? t[1].replace(/^Async/, "") : "";
|
|
41
|
-
}
|
|
42
|
-
function te(e) {
|
|
43
|
-
return "structuredClone" in globalThis ? structuredClone(e) : Array.isArray(e) ? [...e] : x(e) ? Object.assign({}, e) : e;
|
|
44
|
-
}
|
|
45
|
-
function le() {
|
|
46
|
-
}
|
|
47
|
-
let d = le;
|
|
48
|
-
process.env.NODE_ENV !== "production" && (d = typeof console < "u" ? function(e, t = M.logLevel) {
|
|
49
|
-
M.silent === !1 && console[t](`[VueTypes warn]: ${e}`);
|
|
50
|
-
} : le);
|
|
51
|
-
const N = (e, t) => qe.call(e, t), Ie = Number.isInteger || function(e) {
|
|
52
|
-
return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
|
|
53
|
-
}, q = Array.isArray || function(e) {
|
|
54
|
-
return ie.call(e) === "[object Array]";
|
|
55
|
-
}, A = (e) => ie.call(e) === "[object Function]", Q = (e, t) => x(e) && N(e, "_vueTypes_name") && (!t || e._vueTypes_name === t), ue = (e) => x(e) && (N(e, "type") || ["_vueTypes_name", "validator", "default", "required"].some(
|
|
56
|
-
(t) => N(e, t)
|
|
57
|
-
));
|
|
58
|
-
function de(e, t) {
|
|
59
|
-
return Object.defineProperty(e.bind(t), "__original", {
|
|
60
|
-
value: e
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function $(e, t, n = !1) {
|
|
64
|
-
let r, o = !0, s = "";
|
|
65
|
-
x(e) ? r = e : r = { type: e };
|
|
66
|
-
const i = Q(r) ? r._vueTypes_name + " - " : "";
|
|
67
|
-
if (ue(r) && r.type !== null) {
|
|
68
|
-
if (r.type === void 0 || r.type === !0 || !r.required && t == null)
|
|
69
|
-
return o;
|
|
70
|
-
q(r.type) ? (o = r.type.some(
|
|
71
|
-
(c) => $(c, t, !0) === !0
|
|
72
|
-
), s = r.type.map((c) => ee(c)).join(" or ")) : (s = ee(r), s === "Array" ? o = q(t) : s === "Object" ? o = x(t) : s === "String" || s === "Number" || s === "Boolean" || s === "Function" ? o = Ae(t) === s : o = t instanceof r.type);
|
|
73
|
-
}
|
|
74
|
-
if (!o) {
|
|
75
|
-
const c = `${i}value "${t}" should be of type "${s}"`;
|
|
76
|
-
return n === !1 ? (d(c), !1) : c;
|
|
77
|
-
}
|
|
78
|
-
if (N(r, "validator") && A(r.validator)) {
|
|
79
|
-
const c = d, y = [];
|
|
80
|
-
if (d = (g) => {
|
|
81
|
-
y.push(g);
|
|
82
|
-
}, o = r.validator(t), d = c, !o) {
|
|
83
|
-
const g = (y.length > 1 ? "* " : "") + y.join(`
|
|
84
|
-
* `);
|
|
85
|
-
return y.length = 0, n === !1 ? (d(g), o) : g;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return o;
|
|
89
|
-
}
|
|
90
|
-
function h(e, t) {
|
|
91
|
-
const n = Object.defineProperties(t, {
|
|
92
|
-
_vueTypes_name: {
|
|
93
|
-
value: e,
|
|
94
|
-
writable: !0
|
|
95
|
-
},
|
|
96
|
-
isRequired: {
|
|
97
|
-
get() {
|
|
98
|
-
return this.required = !0, this;
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
def: {
|
|
102
|
-
value(o) {
|
|
103
|
-
if (o === void 0) {
|
|
104
|
-
if (this.type === Boolean || Array.isArray(this.type) && this.type.includes(Boolean)) {
|
|
105
|
-
this.default = void 0;
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
return N(this, "default") && delete this.default, this;
|
|
109
|
-
}
|
|
110
|
-
return !A(o) && $(this, o, !0) !== !0 ? (d(`${this._vueTypes_name} - invalid default value: "${o}"`), this) : (q(o) ? this.default = () => te(o) : x(o) ? this.default = () => te(o) : this.default = o, this);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}), { validator: r } = n;
|
|
114
|
-
return A(r) && (n.validator = de(r, n)), n;
|
|
115
|
-
}
|
|
116
|
-
function O(e, t) {
|
|
117
|
-
const n = h(e, t);
|
|
118
|
-
return Object.defineProperty(n, "validate", {
|
|
119
|
-
value(r) {
|
|
120
|
-
return A(this.validator) && d(
|
|
121
|
-
`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
122
|
-
${JSON.stringify(
|
|
123
|
-
this
|
|
124
|
-
)}`
|
|
125
|
-
), this.validator = de(r, this), this;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function F(e) {
|
|
130
|
-
return e.replace(/^(?!\s*$)/gm, " ");
|
|
131
|
-
}
|
|
132
|
-
const Le = () => O("any", {}), Re = () => O("function", {
|
|
133
|
-
type: Function
|
|
134
|
-
}), re = () => O("boolean", {
|
|
135
|
-
type: Boolean
|
|
136
|
-
}), De = () => O("string", {
|
|
137
|
-
type: String
|
|
138
|
-
}), Fe = () => O("number", {
|
|
139
|
-
type: Number
|
|
140
|
-
}), Ee = () => O("array", {
|
|
141
|
-
type: Array
|
|
142
|
-
}), Be = () => O("object", {
|
|
143
|
-
type: Object
|
|
144
|
-
}), ze = () => h("integer", {
|
|
145
|
-
type: Number,
|
|
146
|
-
validator(e) {
|
|
147
|
-
const t = Ie(e);
|
|
148
|
-
return t === !1 && d(`integer - "${e}" is not an integer`), t;
|
|
149
|
-
}
|
|
150
|
-
}), Ye = () => h("symbol", {
|
|
151
|
-
validator(e) {
|
|
152
|
-
const t = typeof e == "symbol";
|
|
153
|
-
return t === !1 && d(`symbol - invalid value "${e}"`), t;
|
|
154
|
-
}
|
|
155
|
-
}), Me = () => Object.defineProperty(
|
|
156
|
-
{
|
|
157
|
-
type: null,
|
|
158
|
-
validator(e) {
|
|
159
|
-
const t = e === null;
|
|
160
|
-
return t === !1 && d("nullable - value should be null"), t;
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"_vueTypes_name",
|
|
164
|
-
{ value: "nullable" }
|
|
165
|
-
);
|
|
166
|
-
function Qe(e, t = "custom validation failed") {
|
|
167
|
-
if (typeof e != "function")
|
|
168
|
-
throw new TypeError(
|
|
169
|
-
"[VueTypes error]: You must provide a function as argument"
|
|
170
|
-
);
|
|
171
|
-
return h(e.name || "<<anonymous function>>", {
|
|
172
|
-
type: null,
|
|
173
|
-
validator(n) {
|
|
174
|
-
const r = e(n);
|
|
175
|
-
return r || d(`${this._vueTypes_name} - ${t}`), r;
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
function We(e) {
|
|
180
|
-
if (!q(e))
|
|
181
|
-
throw new TypeError(
|
|
182
|
-
"[VueTypes error]: You must provide an array as argument."
|
|
183
|
-
);
|
|
184
|
-
const t = `oneOf - value should be one of "${e.map((r) => typeof r == "symbol" ? r.toString() : r).join('", "')}".`, n = {
|
|
185
|
-
validator(r) {
|
|
186
|
-
const o = e.indexOf(r) !== -1;
|
|
187
|
-
return o || d(t), o;
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
if (e.indexOf(null) === -1) {
|
|
191
|
-
const r = e.reduce(
|
|
192
|
-
(o, s) => {
|
|
193
|
-
if (s != null) {
|
|
194
|
-
const i = s.constructor;
|
|
195
|
-
o.indexOf(i) === -1 && o.push(i);
|
|
196
|
-
}
|
|
197
|
-
return o;
|
|
198
|
-
},
|
|
199
|
-
[]
|
|
200
|
-
);
|
|
201
|
-
r.length > 0 && (n.type = r);
|
|
202
|
-
}
|
|
203
|
-
return h("oneOf", n);
|
|
204
|
-
}
|
|
205
|
-
function He(e) {
|
|
206
|
-
if (!q(e))
|
|
207
|
-
throw new TypeError(
|
|
208
|
-
"[VueTypes error]: You must provide an array as argument"
|
|
209
|
-
);
|
|
210
|
-
let t = !1, n = !1, r = [];
|
|
211
|
-
for (let s = 0; s < e.length; s += 1) {
|
|
212
|
-
const i = e[s];
|
|
213
|
-
if (ue(i)) {
|
|
214
|
-
if (A(i.validator) && (t = !0), Q(i, "oneOf") && i.type) {
|
|
215
|
-
r = r.concat(i.type);
|
|
216
|
-
continue;
|
|
217
|
-
}
|
|
218
|
-
if (Q(i, "nullable")) {
|
|
219
|
-
n = !0;
|
|
220
|
-
continue;
|
|
221
|
-
}
|
|
222
|
-
if (i.type === !0 || !i.type) {
|
|
223
|
-
d('oneOfType - invalid usage of "true" and "null" as types.');
|
|
224
|
-
continue;
|
|
225
|
-
}
|
|
226
|
-
r = r.concat(i.type);
|
|
227
|
-
} else
|
|
228
|
-
r.push(i);
|
|
229
|
-
}
|
|
230
|
-
r = r.filter((s, i) => r.indexOf(s) === i);
|
|
231
|
-
const o = n === !1 && r.length > 0 ? r : null;
|
|
232
|
-
return t ? h("oneOfType", {
|
|
233
|
-
type: o,
|
|
234
|
-
validator(s) {
|
|
235
|
-
const i = [], c = e.some((y) => {
|
|
236
|
-
const g = $(y, s, !0);
|
|
237
|
-
return typeof g == "string" && i.push(g), g === !0;
|
|
238
|
-
});
|
|
239
|
-
return c || d(
|
|
240
|
-
`oneOfType - provided value does not match any of the ${i.length} passed-in validators:
|
|
241
|
-
${F(i.join(`
|
|
242
|
-
`))}`
|
|
243
|
-
), c;
|
|
244
|
-
}
|
|
245
|
-
}) : h("oneOfType", {
|
|
246
|
-
type: o
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
function Je(e) {
|
|
250
|
-
return h("arrayOf", {
|
|
251
|
-
type: Array,
|
|
252
|
-
validator(t) {
|
|
253
|
-
let n = "";
|
|
254
|
-
const r = t.every((o) => (n = $(e, o, !0), n === !0));
|
|
255
|
-
return r || d(`arrayOf - value validation error:
|
|
256
|
-
${F(n)}`), r;
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
function Ke(e) {
|
|
261
|
-
return h("instanceOf", {
|
|
262
|
-
type: e
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function Xe(e) {
|
|
266
|
-
return h("objectOf", {
|
|
267
|
-
type: Object,
|
|
268
|
-
validator(t) {
|
|
269
|
-
let n = "";
|
|
270
|
-
if (!x(t))
|
|
271
|
-
return !1;
|
|
272
|
-
const r = Object.keys(t).every((o) => (n = $(e, t[o], !0), n === !0));
|
|
273
|
-
return r || d(`objectOf - value validation error:
|
|
274
|
-
${F(n)}`), r;
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
function Ge(e) {
|
|
279
|
-
const t = Object.keys(e), n = t.filter((o) => {
|
|
280
|
-
var s;
|
|
281
|
-
return !!((s = e[o]) != null && s.required);
|
|
282
|
-
}), r = h("shape", {
|
|
283
|
-
type: Object,
|
|
284
|
-
validator(o) {
|
|
285
|
-
if (!x(o))
|
|
286
|
-
return !1;
|
|
287
|
-
const s = Object.keys(o);
|
|
288
|
-
if (n.length > 0 && n.some((i) => s.indexOf(i) === -1)) {
|
|
289
|
-
const i = n.filter(
|
|
290
|
-
(c) => s.indexOf(c) === -1
|
|
291
|
-
);
|
|
292
|
-
return i.length === 1 ? d(`shape - required property "${i[0]}" is not defined.`) : d(
|
|
293
|
-
`shape - required properties "${i.join(
|
|
294
|
-
'", "'
|
|
295
|
-
)}" are not defined.`
|
|
296
|
-
), !1;
|
|
297
|
-
}
|
|
298
|
-
return s.every((i) => {
|
|
299
|
-
if (t.indexOf(i) === -1)
|
|
300
|
-
return this._vueTypes_isLoose === !0 ? !0 : (d(
|
|
301
|
-
`shape - shape definition does not include a "${i}" property. Allowed keys: "${t.join(
|
|
302
|
-
'", "'
|
|
303
|
-
)}".`
|
|
304
|
-
), !1);
|
|
305
|
-
const c = e[i], y = $(c, o[i], !0);
|
|
306
|
-
return typeof y == "string" && d(`shape - "${i}" property validation error:
|
|
307
|
-
${F(y)}`), y === !0;
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
return Object.defineProperty(r, "_vueTypes_isLoose", {
|
|
312
|
-
writable: !0,
|
|
313
|
-
value: !1
|
|
314
|
-
}), Object.defineProperty(r, "loose", {
|
|
315
|
-
get() {
|
|
316
|
-
return this._vueTypes_isLoose = !0, this;
|
|
317
|
-
}
|
|
318
|
-
}), r;
|
|
319
|
-
}
|
|
320
|
-
var Ze = Object.defineProperty, et = (e, t, n) => t in e ? Ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, m = (e, t, n) => (et(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
321
|
-
const tt = /* @__PURE__ */ (() => {
|
|
322
|
-
var e;
|
|
323
|
-
return (
|
|
324
|
-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
325
|
-
e = class {
|
|
326
|
-
static get any() {
|
|
327
|
-
return Le();
|
|
328
|
-
}
|
|
329
|
-
static get func() {
|
|
330
|
-
return Re().def(this.defaults.func);
|
|
331
|
-
}
|
|
332
|
-
static get bool() {
|
|
333
|
-
return this.defaults.bool === void 0 ? re() : re().def(this.defaults.bool);
|
|
334
|
-
}
|
|
335
|
-
static get string() {
|
|
336
|
-
return De().def(this.defaults.string);
|
|
337
|
-
}
|
|
338
|
-
static get number() {
|
|
339
|
-
return Fe().def(this.defaults.number);
|
|
340
|
-
}
|
|
341
|
-
static get array() {
|
|
342
|
-
return Ee().def(this.defaults.array);
|
|
343
|
-
}
|
|
344
|
-
static get object() {
|
|
345
|
-
return Be().def(this.defaults.object);
|
|
346
|
-
}
|
|
347
|
-
static get integer() {
|
|
348
|
-
return ze().def(this.defaults.integer);
|
|
349
|
-
}
|
|
350
|
-
static get symbol() {
|
|
351
|
-
return Ye();
|
|
352
|
-
}
|
|
353
|
-
static get nullable() {
|
|
354
|
-
return Me();
|
|
355
|
-
}
|
|
356
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
357
|
-
static extend(...t) {
|
|
358
|
-
d(
|
|
359
|
-
"VueTypes.extend has been removed. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."
|
|
360
|
-
);
|
|
361
|
-
}
|
|
362
|
-
}, m(e, "defaults", {}), m(e, "sensibleDefaults"), m(e, "config", M), m(e, "custom", Qe), m(e, "oneOf", We), m(e, "instanceOf", Ke), m(e, "oneOfType", He), m(e, "arrayOf", Je), m(e, "objectOf", Xe), m(e, "shape", Ge), m(e, "utils", {
|
|
363
|
-
validate(t, n) {
|
|
364
|
-
return $(n, t, !0) === !0;
|
|
365
|
-
},
|
|
366
|
-
toType(t, n, r = !1) {
|
|
367
|
-
return r ? O(t, n) : h(t, n);
|
|
368
|
-
}
|
|
369
|
-
}), e
|
|
370
|
-
);
|
|
371
|
-
})();
|
|
372
|
-
function ce(e = Ne()) {
|
|
373
|
-
var t;
|
|
374
|
-
return t = class extends tt {
|
|
375
|
-
static get sensibleDefaults() {
|
|
376
|
-
return { ...this.defaults };
|
|
377
|
-
}
|
|
378
|
-
static set sensibleDefaults(n) {
|
|
379
|
-
if (n === !1) {
|
|
380
|
-
this.defaults = {};
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
if (n === !0) {
|
|
384
|
-
this.defaults = { ...e };
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
this.defaults = { ...n };
|
|
388
|
-
}
|
|
389
|
-
}, m(t, "defaults", { ...e }), t;
|
|
390
|
-
}
|
|
391
|
-
class vt extends ce() {
|
|
392
|
-
}
|
|
393
|
-
const rt = ce({
|
|
394
|
-
func: void 0,
|
|
395
|
-
bool: void 0,
|
|
396
|
-
string: void 0,
|
|
397
|
-
number: void 0,
|
|
398
|
-
object: void 0,
|
|
399
|
-
integer: void 0
|
|
400
|
-
});
|
|
401
|
-
class D extends rt {
|
|
402
|
-
// a native-like validator that supports the `.validable` method
|
|
403
|
-
static get style() {
|
|
404
|
-
return O("style", {
|
|
405
|
-
type: [String, Object]
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
static get VNodeChild() {
|
|
409
|
-
return O("VNodeChild", {
|
|
410
|
-
type: void 0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
const nt = {
|
|
415
|
-
// img 或者 canvas,img不支持logo嵌套
|
|
416
|
-
tag: D.string.validate((e) => ["canvas", "img"].includes(e)).def("canvas"),
|
|
417
|
-
// 二维码内容
|
|
418
|
-
text: {
|
|
419
|
-
type: [String, Array],
|
|
420
|
-
default: null
|
|
421
|
-
},
|
|
422
|
-
// qrcode.js配置项
|
|
423
|
-
options: {
|
|
424
|
-
type: Object,
|
|
425
|
-
default: () => ({})
|
|
426
|
-
},
|
|
427
|
-
// 宽度
|
|
428
|
-
width: D.number.def(200),
|
|
429
|
-
// logo
|
|
430
|
-
logo: {
|
|
431
|
-
type: [String, Object],
|
|
432
|
-
default: () => ""
|
|
433
|
-
},
|
|
434
|
-
// 是否过期
|
|
435
|
-
disabled: D.bool.def(!1),
|
|
436
|
-
// 过期提示内容
|
|
437
|
-
disabledText: D.string.def("")
|
|
438
|
-
}, ot = /* @__PURE__ */ ne({
|
|
439
|
-
name: "SuQrcode",
|
|
440
|
-
props: nt,
|
|
441
|
-
emits: ["done", "click", "disabled-click"],
|
|
442
|
-
setup(e, {
|
|
443
|
-
emit: t
|
|
444
|
-
}) {
|
|
445
|
-
const {
|
|
446
|
-
toCanvas: n,
|
|
447
|
-
toDataURL: r
|
|
448
|
-
} = Pe, o = P(!0), s = P(null), i = G(() => String(e.text)), c = G(() => ({
|
|
449
|
-
width: e.width + "px",
|
|
450
|
-
height: e.width + "px"
|
|
451
|
-
})), y = async () => {
|
|
452
|
-
await Te();
|
|
453
|
-
const a = oe(e.options || {}, !0);
|
|
454
|
-
if (e.tag === "canvas") {
|
|
455
|
-
a.errorCorrectionLevel = a.errorCorrectionLevel || k(_(i));
|
|
456
|
-
const l = await E(_(i), a);
|
|
457
|
-
a.scale = e.width === 0 ? void 0 : e.width / l * 4;
|
|
458
|
-
const u = await n(_(s), _(i), a);
|
|
459
|
-
if (e.logo) {
|
|
460
|
-
const f = await g(u);
|
|
461
|
-
t("done", f), o.value = !1;
|
|
462
|
-
} else
|
|
463
|
-
t("done", u.toDataURL()), o.value = !1;
|
|
464
|
-
} else {
|
|
465
|
-
const l = await r(i.value, {
|
|
466
|
-
errorCorrectionLevel: "H",
|
|
467
|
-
width: e.width,
|
|
468
|
-
...a
|
|
469
|
-
});
|
|
470
|
-
_(s).src = l, t("done", l), o.value = !1;
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
we(() => i.value, (a) => {
|
|
474
|
-
a && y();
|
|
475
|
-
}, {
|
|
476
|
-
deep: !0,
|
|
477
|
-
immediate: !0
|
|
478
|
-
});
|
|
479
|
-
const g = (a) => {
|
|
480
|
-
const l = a.width, u = Object.assign({
|
|
481
|
-
logoSize: 0.15,
|
|
482
|
-
bgColor: "#ffffff",
|
|
483
|
-
borderSize: 0.05,
|
|
484
|
-
crossOrigin: "anonymous",
|
|
485
|
-
borderRadius: 8,
|
|
486
|
-
logoRadius: 0
|
|
487
|
-
}, Z(e.logo) ? {} : e.logo), {
|
|
488
|
-
logoSize: f = 0.15,
|
|
489
|
-
bgColor: v = "#ffffff",
|
|
490
|
-
borderSize: w = 0.05,
|
|
491
|
-
crossOrigin: C = "anonymous",
|
|
492
|
-
borderRadius: fe = 8,
|
|
493
|
-
logoRadius: z = 0
|
|
494
|
-
} = u, pe = Z(e.logo) ? e.logo : e.logo.src, j = l * f, T = l * (1 - f) / 2, W = l * (f + w), H = l * (1 - f - w) / 2, b = a.getContext("2d");
|
|
495
|
-
if (!b) return;
|
|
496
|
-
I(b)(H, H, W, W, fe), b.fillStyle = v, b.fill();
|
|
497
|
-
const U = new Image();
|
|
498
|
-
(C || z) && U.setAttribute("crossOrigin", C), U.src = pe;
|
|
499
|
-
const ye = (V) => {
|
|
500
|
-
b.drawImage(V, T, T, j, j);
|
|
501
|
-
}, ge = (V) => {
|
|
502
|
-
const R = document.createElement("canvas");
|
|
503
|
-
R.width = T + j, R.height = T + j;
|
|
504
|
-
const J = R.getContext("2d");
|
|
505
|
-
if (!J || !b || (J.drawImage(V, T, T, j, j), I(b)(T, T, j, j, z), !b)) return;
|
|
506
|
-
const K = b.createPattern(R, "no-repeat");
|
|
507
|
-
K && (b.fillStyle = K, b.fill());
|
|
508
|
-
};
|
|
509
|
-
return new Promise((V) => {
|
|
510
|
-
U.onload = () => {
|
|
511
|
-
z ? ge(U) : ye(U), V(a.toDataURL());
|
|
512
|
-
};
|
|
513
|
-
});
|
|
514
|
-
}, E = async (a, l) => {
|
|
515
|
-
const u = document.createElement("canvas");
|
|
516
|
-
return await n(u, a, l), u.width;
|
|
517
|
-
}, k = (a) => a.length > 36 ? "M" : a.length > 16 ? "Q" : "H", I = (a) => (l, u, f, v, w) => {
|
|
518
|
-
const C = Math.min(f, v);
|
|
519
|
-
return w > C / 2 && (w = C / 2), a.beginPath(), a.moveTo(l + w, u), a.arcTo(l + f, u, l + f, u + v, w), a.arcTo(l + f, u + v, l, u + v, w), a.arcTo(l, u + v, l, u, w), a.arcTo(l, u, l + f, u, w), a.closePath(), a;
|
|
520
|
-
}, L = () => {
|
|
521
|
-
t("click");
|
|
522
|
-
}, B = () => {
|
|
523
|
-
t("disabled-click");
|
|
524
|
-
};
|
|
525
|
-
return () => p(Y, null, [Oe(p("div", {
|
|
526
|
-
class: "qrcode relative inline-block",
|
|
527
|
-
style: _(c)
|
|
528
|
-
}, [e.tag === "canvas" ? p("canvas", {
|
|
529
|
-
ref: s,
|
|
530
|
-
onClick: L
|
|
531
|
-
}, null) : p("img", {
|
|
532
|
-
ref: s,
|
|
533
|
-
onClick: L
|
|
534
|
-
}, null), e.disabled && p("div", {
|
|
535
|
-
class: "qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",
|
|
536
|
-
onClick: B
|
|
537
|
-
}, [p("div", {
|
|
538
|
-
class: "absolute top-[50%] left-[50%] font-bold"
|
|
539
|
-
}, [p(Ce, {
|
|
540
|
-
class: "cursor-pointer",
|
|
541
|
-
icon: "refresh-right",
|
|
542
|
-
width: "30",
|
|
543
|
-
color: "var(--el-color-primary)"
|
|
544
|
-
}, null), p("div", null, [e.disabledText])])])]), [[je("loading"), _(o)]])]);
|
|
545
|
-
}
|
|
546
|
-
}), at = Ve(ot);
|
|
547
|
-
function it(e) {
|
|
548
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !be(e);
|
|
549
|
-
}
|
|
550
|
-
const st = {
|
|
551
|
-
name: "PdaApp"
|
|
552
|
-
}, lt = /* @__PURE__ */ ne({
|
|
553
|
-
...st,
|
|
554
|
-
setup(e) {
|
|
555
|
-
const t = Se(), n = Ue(), {
|
|
556
|
-
t: r
|
|
557
|
-
} = xe(), o = "/upms/v1/app-manage", s = P(null), i = P({}), c = [{
|
|
558
|
-
type: "checkbox",
|
|
559
|
-
width: 45,
|
|
560
|
-
align: "center"
|
|
561
|
-
}, {
|
|
562
|
-
field: "appVersion",
|
|
563
|
-
title: "message.udp.appVersion",
|
|
564
|
-
width: 110
|
|
565
|
-
}, {
|
|
566
|
-
field: "buildNo",
|
|
567
|
-
title: "message.udp.buildNo",
|
|
568
|
-
width: 130
|
|
569
|
-
}, {
|
|
570
|
-
field: "isForceUpdate",
|
|
571
|
-
title: "message.udp.isForceUpdate",
|
|
572
|
-
width: 130,
|
|
573
|
-
formatter: ({
|
|
574
|
-
row: a
|
|
575
|
-
}) => a.isForceUpdate === "Y" ? r("message.udp.forceUpdate") : r("message.udp.freeUpdate")
|
|
576
|
-
}, {
|
|
577
|
-
field: "versionInfo",
|
|
578
|
-
title: "message.udp.versionInfo",
|
|
579
|
-
miWidth: 200
|
|
580
|
-
}, {
|
|
581
|
-
field: "enabled",
|
|
582
|
-
title: "message.status",
|
|
583
|
-
width: 90,
|
|
584
|
-
formatter: ({
|
|
585
|
-
row: a
|
|
586
|
-
}) => a.enabled === "1" ? r("message.udp.appupper") : r("message.udp.applower")
|
|
587
|
-
}, {
|
|
588
|
-
field: "creationDate",
|
|
589
|
-
width: 140
|
|
590
|
-
}, {
|
|
591
|
-
field: "operate",
|
|
592
|
-
width: 260,
|
|
593
|
-
fixed: "right",
|
|
594
|
-
slots: {
|
|
595
|
-
default: ({
|
|
596
|
-
row: a
|
|
597
|
-
}) => {
|
|
598
|
-
const l = a.enabled === "1" ? "applower" : "appupper", u = a.enabled === "1" ? "warning" : "primary", f = a.enabled === "1" ? "ri-inbox-archive-line" : "ri-inbox-unarchive-line";
|
|
599
|
-
return a.enabled !== "1" ? [p(S("ut-button"), {
|
|
600
|
-
content: l,
|
|
601
|
-
icon: f,
|
|
602
|
-
status: u,
|
|
603
|
-
onTap: () => y(a)
|
|
604
|
-
}, null)] : [
|
|
605
|
-
p(Y, null, [p("div", {
|
|
606
|
-
style: "display: flex; justify-content: space-between;"
|
|
607
|
-
}, [p(S("ut-button"), {
|
|
608
|
-
content: l,
|
|
609
|
-
icon: f,
|
|
610
|
-
status: u,
|
|
611
|
-
onTap: () => y(a)
|
|
612
|
-
}, null), p(S("el-popover"), {
|
|
613
|
-
placement: "left"
|
|
614
|
-
}, {
|
|
615
|
-
default: () => [p(Y, null, [p(at, {
|
|
616
|
-
text: t + "/ufil/" + a.downloadUrl
|
|
617
|
-
}, null)])],
|
|
618
|
-
reference: () => {
|
|
619
|
-
let v;
|
|
620
|
-
return p(S("el-button"), {
|
|
621
|
-
type: "success"
|
|
622
|
-
}, it(v = r("message.btn.scan")) ? v : {
|
|
623
|
-
default: () => [v]
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
})])])
|
|
627
|
-
// <el-popover
|
|
628
|
-
// placement="left"
|
|
629
|
-
// v-slots={{
|
|
630
|
-
// reference: () => <el-button type="primary">外网下载</el-button>
|
|
631
|
-
// }}
|
|
632
|
-
// >
|
|
633
|
-
// <>
|
|
634
|
-
// <SuQrcode text={'http://jemes.uzuo.cn/gateway/ufil/' + row.downloadUrl} />
|
|
635
|
-
// </>
|
|
636
|
-
// </el-popover>
|
|
637
|
-
];
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}], y = async (a) => {
|
|
641
|
-
const l = oe(a, !0);
|
|
642
|
-
l.enabled = a.enabled === "1" ? "0" : "1", await _e(ke().put(o, l)), s.value.refreshData();
|
|
643
|
-
}, g = (a) => {
|
|
644
|
-
a === "add" && I(), a === "del" && L();
|
|
645
|
-
}, E = [{
|
|
646
|
-
field: "appVersion",
|
|
647
|
-
title: "message.udp.appVersion",
|
|
648
|
-
required: !0
|
|
649
|
-
}, {
|
|
650
|
-
field: "buildNo",
|
|
651
|
-
title: "message.udp.buildNo",
|
|
652
|
-
required: !0
|
|
653
|
-
}, {
|
|
654
|
-
field: "isForceUpdate",
|
|
655
|
-
title: "message.udp.isForceUpdate",
|
|
656
|
-
required: !0,
|
|
657
|
-
itemRender: n.renderSwitch({
|
|
658
|
-
openLabel: r("message.udp.forceUpdate"),
|
|
659
|
-
closeLabel: r("message.udp.freeUpdate"),
|
|
660
|
-
openValue: "Y",
|
|
661
|
-
closeValue: "N"
|
|
662
|
-
})
|
|
663
|
-
}, {
|
|
664
|
-
field: "versionInfo",
|
|
665
|
-
title: "message.udp.versionInfo",
|
|
666
|
-
required: !0,
|
|
667
|
-
itemRender: n.renderTextarea()
|
|
668
|
-
}, {
|
|
669
|
-
field: "downloadUrl",
|
|
670
|
-
required: !1,
|
|
671
|
-
title: "message.udp.downloadUrl",
|
|
672
|
-
itemRender: n.renderUpload()
|
|
673
|
-
}], k = P(!1), I = () => {
|
|
674
|
-
i.value = {
|
|
675
|
-
// downloadUrl: 'https://vxeui.com/resource/img/fj577.jpg'
|
|
676
|
-
// downloadUrl: '/resource/image/20250817/15806d21e3f445dcae0e2e0825c76a79.jpg'
|
|
677
|
-
}, k.value = !0;
|
|
678
|
-
}, L = () => {
|
|
679
|
-
s.value.getInstance().commitProxy("delete");
|
|
680
|
-
}, B = () => {
|
|
681
|
-
s.value.refreshData();
|
|
682
|
-
};
|
|
683
|
-
return (a, l) => {
|
|
684
|
-
const u = S("ut-grid"), f = S("ut-modal-form");
|
|
685
|
-
return X(), ve("div", null, [p(u, {
|
|
686
|
-
ref_key: "xgrid",
|
|
687
|
-
ref: s,
|
|
688
|
-
columns: c,
|
|
689
|
-
url: o,
|
|
690
|
-
mode: "form",
|
|
691
|
-
onButtonClick: g
|
|
692
|
-
}, null, 512), k.value ? (X(), me(f, {
|
|
693
|
-
key: 0,
|
|
694
|
-
record: i.value,
|
|
695
|
-
items: E,
|
|
696
|
-
width: 420,
|
|
697
|
-
height: 450,
|
|
698
|
-
title: a.$t("message.title.appAdd"),
|
|
699
|
-
url: o,
|
|
700
|
-
class: "ut-app-form",
|
|
701
|
-
"data-status": "add",
|
|
702
|
-
onClose: l[0] || (l[0] = (v) => k.value = !1),
|
|
703
|
-
onConfirm: B
|
|
704
|
-
}, null, 8, ["record", "title"])) : he("", !0)]);
|
|
705
|
-
};
|
|
706
|
-
}
|
|
707
|
-
}), mt = /* @__PURE__ */ $e(lt, [["__scopeId", "data-v-4c7392db"]]);
|
|
708
|
-
export {
|
|
709
|
-
mt as default
|
|
710
|
-
};
|