@pubinfo-nightly/module-rbac 2025.12.9 → 2025.12.25
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/ComponentSelect-D0OCk6H1.js +3572 -0
- package/dist/ComponentSelect-WO-3S5rH.js +2 -0
- package/dist/DynamicRoutesForm-DP_sq_Uu.js +168 -0
- package/dist/DynamicRoutesForm-DjZ3eVLW.js +4 -0
- package/dist/HCheckList-B5Qk_HBI.js +2 -0
- package/dist/HCheckList-DLBewmPw.js +36 -0
- package/dist/HoverCard-69ZIOivd.js +2 -0
- package/dist/HoverCard-BDFcxxvk.js +43 -0
- package/dist/IconSelect-1pVgA_5l.js +705 -0
- package/dist/IconSelect-C5KTdyzv.js +3 -0
- package/dist/IconSelect.css +1 -1
- package/dist/ImportExport-CL5uPlby.js +342 -0
- package/dist/ImportExport-CPy2rvv7.js +4 -0
- package/dist/LayoutForm-Cp4bBrYl.js +124 -0
- package/dist/LayoutForm-QFjwakyQ.js +4 -0
- package/dist/MetaForm-Bb-um1Zo.js +4 -0
- package/dist/MetaForm-CVSgktB_.js +38917 -0
- package/dist/OrgAndPosition-ClASobEv.js +183 -0
- package/dist/OrgAndPosition-DoiGY5xb.js +2 -0
- package/dist/ResourceEdit-BX6xdiXV.js +10 -0
- package/dist/ResourceEdit-Dwr5KLyS.js +380 -0
- package/dist/ResourceRelation-BIOzTOKA.js +2 -0
- package/dist/ResourceRelation-ChEwIbWM.js +76 -0
- package/dist/ResourceRelation-D_j898zp.js +90 -0
- package/dist/ResourceRelation.css +1 -1
- package/dist/ResourceRelation2.css +1 -1
- package/dist/RoleRelation-CyTcqRfZ.js +2 -0
- package/dist/RoleRelation-DzyVn5dk.js +78 -0
- package/dist/RoleSelector-Cd6_RUsc.js +275 -0
- package/dist/TenantEdit-BOvXk7BZ.js +245 -0
- package/dist/TenantEdit-BlMmL6q5.js +2 -0
- package/dist/UserAuthorization-DLeivbs7.js +232 -0
- package/dist/UserAuthorization-qGr1Sdat.js +3 -0
- package/dist/UserEdit-CwfyqNWf.js +3 -0
- package/dist/UserEdit-YKS1FVW_.js +319 -0
- package/dist/add-child-CFHHkjfg.js +2 -0
- package/dist/animation_item-BU-LInxP.js +4485 -0
- package/dist/animation_item-GzGItm3s.js +2 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +7 -7
- package/dist/api/modules/assist/qunzujiekou.d.ts +7 -7
- package/dist/api/modules/assist/quyujiekou.d.ts +6 -6
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +6 -6
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +15 -15
- package/dist/api/modules/configData/zidifuwu.d.ts +11 -11
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +3 -3
- package/dist/api/modules/log/denglurizhifuwu.d.ts +3 -3
- package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -7
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +8 -8
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +8 -8
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +10 -10
- package/dist/api/modules/rbac/yonghujiekou.d.ts +16 -16
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +6 -6
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +5 -5
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +7 -7
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +14 -14
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +6 -6
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +5 -5
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +10 -10
- package/dist/api/request.d.ts +1 -1
- package/dist/authority-L7SfiMdP.js +2 -0
- package/dist/authorize-qMpV_BXT.js +2 -0
- package/dist/blackWhiteList-FZezar30.js +210 -0
- package/dist/blackWhiteList.css +1 -0
- package/dist/blacklist-disable-BT6Xx-JG.js +2 -0
- package/dist/blacklist-enable-CJ6DK_V2.js +2 -0
- package/dist/breadcrumb_setting-Ds-XJRR1.js +108 -0
- package/dist/browser-chrome-DuAegVCe.js +2 -0
- package/dist/browser-edge-DzkWdXRd.js +2 -0
- package/dist/browser-ie-DZ9g_MXr.js +2 -0
- package/dist/browser-other-BmkifoYq.js +2 -0
- package/dist/browser-safari-CXrCuF2a.js +2 -0
- package/dist/browserType-BXTT4j6i.js +2 -0
- package/dist/browserType-Dn_hQtAN.js +25 -0
- package/dist/chunk-Cpsc_9al.js +18 -0
- package/dist/cloneDeep-DDAtsK42.js +7 -0
- package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -1
- package/dist/components/GroupSelector/index.vue.d.ts +5 -10
- package/dist/components/JsonEditorModal/index.vue.d.ts +20 -0
- package/dist/components/OrgTree/index.vue.d.ts +6 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/index.d.ts +4 -2
- package/dist/components/OrgUserSelector/provider.d.ts +1 -1
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +4 -6
- package/dist/components/ResourceIcones/Select.vue.d.ts +14 -23
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +16 -7
- package/dist/components/ResourceSelector/index.vue.d.ts +10 -14
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +6 -12
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +8 -12
- package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +3 -2
- package/dist/components/RoleSelector/useRole.d.ts +68 -4
- package/dist/composables/useLottie.d.ts +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/createAndEditDataPermission-CChlLDUm.js +5 -0
- package/dist/createAndEditDataPermission-CaOBJgoV.js +430 -0
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/data-permission-ZRQ-Aoib.js +152 -0
- package/dist/dayjs.min-sGDSMYRj.js +297 -0
- package/dist/dictionary-CtGgtPfc.js +179 -0
- package/dist/drawerBlackWhiteList-BqIDyn2Q.js +2 -0
- package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +119 -0
- package/dist/drawerDictionary-D911w7pC.js +2 -0
- package/dist/drawerDictionary-dMHs-6Cw.js +125 -0
- package/dist/drawerDictionaryItem-CbTa_qL-.js +137 -0
- package/dist/drawerDictionaryItem-DLUI5Yuc.js +2 -0
- package/dist/drawerGroup-CEEDMBg9.js +3 -0
- package/dist/drawerGroup-DEuiiDPP.js +184 -0
- package/dist/drawerOrganization-CqEMD3gE.js +246 -0
- package/dist/drawerOrganization-mks5NMd9.js +2 -0
- package/dist/drawerPosition-Bd0s7qze.js +165 -0
- package/dist/drawerPosition-DwlTrlGA.js +2 -0
- package/dist/drawerRegion-DUbQAZuV.js +182 -0
- package/dist/drawerRegion-DwVzsZfT.js +2 -0
- package/dist/drawerRole-BNrbcSmr.js +3 -0
- package/dist/drawerRole-BxUIekjh.js +3 -0
- package/dist/drawerRole-CyA2oFht.js +4 -0
- package/dist/drawerRole-D5X7oHB_.js +153 -0
- package/dist/drawerRole-DNDyOvXw.js +166 -0
- package/dist/drawerRole-Dv61PBZR.js +208 -0
- package/dist/edit-fZ7h_z_Z.js +2 -0
- package/dist/enum-3E_sUqRF.js +50 -0
- package/dist/enum-3mYayxff.js +61 -0
- package/dist/enum-Cr7uWnB2.js +23 -0
- package/dist/enum-D2UEJsrC.js +4 -0
- package/dist/group-BbkZjv5e.js +172 -0
- package/dist/group.css +1 -0
- package/dist/icard-H-d9Pip-.js +2 -0
- package/dist/icon_animation-BCdRKkE5.js +2 -0
- package/dist/icon_breadcrumb-BR6LK8hP.js +2 -0
- package/dist/icon_copyright-BfWn1s6t.js +2 -0
- package/dist/icon_jt-DOMTq9De.js +2 -0
- package/dist/icon_layout-DKqAThpM.js +2 -0
- package/dist/icon_mainpage-CXB9JMGv.js +2 -0
- package/dist/icon_menu-BYQtWV-Q.js +2 -0
- package/dist/icon_page_size-r-z4oHWp.js +2 -0
- package/dist/icon_position_type-JDFdklRh.js +2 -0
- package/dist/icon_safe_manage-BDTIOduB.js +2 -0
- package/dist/icon_screen_scale-vEaAdr9S.js +2 -0
- package/dist/icon_system_manage-CkhQtieE.js +2 -0
- package/dist/icon_tabbar-DZNj-h-p.js +2 -0
- package/dist/icon_toolbar-BBYhGmEf.js +2 -0
- package/dist/icon_topbar-Bc379eaS.js +2 -0
- package/dist/icon_watermark-CTP8r-e2.js +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7503 -7465
- package/dist/interface.d.ts +2 -2
- package/dist/isEmpty-BvRqbmpu.js +13 -0
- package/dist/itemlist-By-FV6pN.js +156 -0
- package/dist/layout_setting-BUAgQ1Bk.js +68 -0
- package/dist/layout_setting.css +1 -0
- package/dist/log-center-CGT-BGAN.js +2 -0
- package/dist/log-vjU7aBPR.js +14 -0
- package/dist/loginHistoryDetail-C7GT2yME.js +77 -0
- package/dist/loginHistoryDetail-CkH5UUGU.js +3 -0
- package/dist/login_history-D08W00Qu.js +195 -0
- package/dist/login_history.css +1 -1
- package/dist/menu_setting-5Jet091Q.js +155 -0
- package/dist/not-data-Cx--tk_h.js +2 -0
- package/dist/not-data-tyTawN37.js +2 -0
- package/dist/operateHistoryDetail-BaNJRfwy.js +89 -0
- package/dist/operateHistoryDetail-CeVPJzD6.js +3 -0
- package/dist/operate_history-kJwIuPg2.js +190 -0
- package/dist/operate_history.css +1 -1
- package/dist/org-main-DnftBa38.js +2 -0
- package/dist/org-unmain-ByMarqFw.js +2 -0
- package/dist/organization-Cmj3DUXl.js +15322 -0
- package/dist/organization.css +1 -0
- package/dist/other_setting-DQ70WnZK.js +213 -0
- package/dist/other_setting.css +1 -0
- package/dist/page_animation_setting-Lp6cMuFM.js +108 -0
- package/dist/page_animation_setting.css +1 -0
- package/dist/page_w_setting-CD_HtSUv.js +63 -0
- package/dist/page_w_setting.css +1 -0
- package/dist/position-CLpbgKGj.js +166 -0
- package/dist/region-Dd9pt_Si.js +179 -0
- package/dist/remove-DfZZBE2T.js +2 -0
- package/dist/resource-B-gkg5Ti.js +271 -0
- package/dist/resource-app-QSLZ7Hts.js +2 -0
- package/dist/resource-btn-BcB4xMgR.js +2 -0
- package/dist/resource-dynamic-D69oEbaO.js +2 -0
- package/dist/resource-index-BIHr3PZY.js +2 -0
- package/dist/resource-menu-0JSNn7S7.js +2 -0
- package/dist/resource-micro-CcX_pmaJ.js +2 -0
- package/dist/resource-nonmenu-DFItasMT.js +2 -0
- package/dist/role-JGtvRObt.js +192 -0
- package/dist/role_group-CKOb_m63.js +171 -0
- package/dist/routeSystem-DXMoWhFo.js +2 -0
- package/dist/routes/index.d.ts +2 -2
- package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
- package/dist/routes/modules/log.manage.menu.d.ts +1 -1
- package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
- package/dist/routes/modules/system.manage.menu.d.ts +1 -1
- package/dist/safe_setting-G_ZP-jWQ.js +221 -0
- package/dist/setItem-Qa7UapHO.js +4 -0
- package/dist/setItem-yKhjmUh0.js +76 -0
- package/dist/setItem.css +1 -1
- package/dist/setting-manage-C9whamLP.js +2 -0
- package/dist/stores/view.d.ts +127 -22
- package/dist/stores-DPQF8JRt.js +2 -0
- package/dist/tabbar_setting-B3kMhRNm.js +139 -0
- package/dist/tenant-BBiCJkU_.js +177 -0
- package/dist/theme-check-mark-DG4oWCQN.js +2 -0
- package/dist/theme-title-BCYnl2jK.js +2 -0
- package/dist/theme_setting-vhNDLlkc.js +111 -0
- package/dist/theme_setting.css +1 -0
- package/dist/{index-C2G4xRrJ.js → toolbar_setting-DNBdxeGP.js} +140 -144
- package/dist/useAppAndResource-CPL2VpOJ.js +52 -0
- package/dist/user-DvCyUhZW.js +339 -0
- package/dist/utils/routeSystem.d.ts +133 -28
- package/dist/vanilla-picker-DcG96G63.js +724 -0
- package/dist/view-Bnu34EJT.js +2 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +3 -8
- package/dist/views/blackWhiteList/index.vue.d.ts +2 -1534
- package/dist/views/breadcrumb_setting/animationData.d.ts +6 -6
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -1
- package/dist/views/components/HCheckList.vue.d.ts +4 -3
- package/dist/views/components/animation_item.vue.d.ts +4 -5
- package/dist/views/components/setItem.vue.d.ts +3 -35
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -169
- package/dist/views/data-permission/index.vue.d.ts +2 -1690
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +3 -8
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +3 -8
- package/dist/views/dictionary/index.vue.d.ts +2 -1531
- package/dist/views/dictionary/itemlist.vue.d.ts +2 -1531
- package/dist/views/group/components/drawerGroup.vue.d.ts +3 -8
- package/dist/views/group/index.vue.d.ts +2 -1531
- package/dist/views/layout_setting/index.vue.d.ts +2 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +4 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +4 -10
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +4 -10
- package/dist/views/log_center/login_history.vue.d.ts +2 -1510
- package/dist/views/log_center/operate_history.vue.d.ts +2 -1510
- package/dist/views/menu_setting/animationData.d.ts +12 -12
- package/dist/views/menu_setting/index.vue.d.ts +2 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +3 -8
- package/dist/views/organization/components/drawerRole.vue.d.ts +3 -41
- package/dist/views/organization/index.vue.d.ts +2 -80
- package/dist/views/other_setting/animationData.d.ts +6 -6
- package/dist/views/other_setting/index.vue.d.ts +2 -1
- package/dist/views/other_setting/interface.d.ts +1 -1
- package/dist/views/page_animation_setting/animationData.d.ts +10 -10
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -1
- package/dist/views/page_w_setting/index.vue.d.ts +2 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +3 -8
- package/dist/views/position/index.vue.d.ts +2 -1531
- package/dist/views/region/components/drawerRegion.vue.d.ts +3 -8
- package/dist/views/region/index.vue.d.ts +2 -1532
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +5 -6
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +8 -6
- package/dist/views/resource/components/HoverCard.vue.d.ts +9 -12
- package/dist/views/resource/components/IconSelect.vue.d.ts +6 -5
- package/dist/views/resource/components/ImportExport.vue.d.ts +4 -7
- package/dist/views/resource/components/LayoutForm.vue.d.ts +6 -5
- package/dist/views/resource/components/MetaForm.vue.d.ts +6 -5
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +4 -9
- package/dist/views/resource/components/RoleRelation.vue.d.ts +4 -3
- package/dist/views/resource/hooks/useLayoutForm.d.ts +5 -4
- package/dist/views/resource/hooks/useMetaForm.d.ts +12 -3
- package/dist/views/resource/index.vue.d.ts +2 -1570
- package/dist/views/resource/interface.d.ts +1 -1
- package/dist/views/role/components/ResourceRelation.vue.d.ts +4 -1512
- package/dist/views/role/components/drawerRole.vue.d.ts +3 -45
- package/dist/views/role/index.vue.d.ts +2 -3089
- package/dist/views/role_group/components/drawerRole.vue.d.ts +3 -41
- package/dist/views/role_group/index.vue.d.ts +2 -1564
- package/dist/views/safe_setting/index.vue.d.ts +2 -3
- package/dist/views/tabbar_setting/animationData.d.ts +10 -10
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +4 -10
- package/dist/views/tenant/index.vue.d.ts +2 -1533
- package/dist/views/theme_setting/index.vue.d.ts +2 -1
- package/dist/views/toolbar_setting/animationData.d.ts +14 -14
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +8 -7
- package/dist/views/user/components/UserAuthorization.vue.d.ts +3 -41
- package/dist/views/user/components/UserEdit.vue.d.ts +4 -9
- package/dist/views/user/index.vue.d.ts +2 -1593
- package/dist/views/watermark_setting/animationData.d.ts +2 -2
- package/dist/views/watermark_setting/index.vue.d.ts +2 -30
- package/dist/watermark_setting-CXp4Og0Y.js +191 -0
- package/dist/watermark_setting.css +1 -0
- package/dist/zddata-Ceyga3_2.js +2 -0
- package/dist/zy_checked-DvD7k9F8.js +2 -0
- package/dist/zy_default-DJ2tB3Fo.js +2 -0
- package/package.json +7 -5
- package/dist/ComponentSelect-ZLey_5w7.js +0 -4
- package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +0 -3981
- package/dist/DynamicRoutesForm-BU4EAISs.js +0 -4
- package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js +0 -179
- package/dist/HCheckList-Dkxhu1br.js +0 -4
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +0 -41
- package/dist/HoverCard-7agF2aDO.js +0 -4
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js +0 -62
- package/dist/IconSelect-DtNpk3Rj.js +0 -4
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +0 -757
- package/dist/ImportExport-DAe_Sl13.js +0 -4
- package/dist/ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js +0 -456
- package/dist/LayoutForm-Pv6UyKl3.js +0 -173
- package/dist/MetaForm-BMPtZc0g.js +0 -42413
- package/dist/OrgAndPosition-R-YixdXG.js +0 -4
- package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js +0 -195
- package/dist/ResourceEdit-D59JUDvG.js +0 -4
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js +0 -429
- package/dist/ResourceRelation-CeM9Eq39.js +0 -90
- package/dist/ResourceRelation-qhIdXLAy.js +0 -111
- package/dist/RoleRelation-BuqK0cnl.js +0 -4
- package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +0 -93
- package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +0 -352
- package/dist/TenantEdit-C61O1pSu.js +0 -4
- package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js +0 -306
- package/dist/UserAuthorization-Ch_iKzms.js +0 -273
- package/dist/UserEdit-B1fnFcSC.js +0 -4
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +0 -315
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/add-child-B9gDBQjZ.js +0 -4
- package/dist/animation_item-BZ1HNA6o.js +0 -4
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +0 -4858
- package/dist/authority-B-0S66Fv.js +0 -4
- package/dist/authorize-DnyYvAo3.js +0 -4
- package/dist/blacklist-disable-DzVU8JLV.js +0 -4
- package/dist/blacklist-enable-BmWQR1i4.js +0 -4
- package/dist/browser-chrome-O9MASusF.js +0 -4
- package/dist/browser-edge-Dk6N_uRy.js +0 -4
- package/dist/browser-ie-Dtz7hQTC.js +0 -4
- package/dist/browser-other-Crzi8vov.js +0 -4
- package/dist/browser-safari-DF0pVlrn.js +0 -4
- package/dist/browserType-DQySszjD.js +0 -4
- package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +0 -32
- package/dist/cloneDeep-BOLZdR62.js +0 -8
- package/dist/createAndEditDataPermission-DPeFulie.js +0 -4
- package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js +0 -528
- package/dist/dayjs.min-B2Yn1Frg.js +0 -284
- package/dist/drawerBlackWhiteList-eWyKScZN.js +0 -4
- package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js +0 -173
- package/dist/drawerDictionary-BRGmcIFT.js +0 -4
- package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +0 -146
- package/dist/drawerDictionaryItem-CFBfyhEw.js +0 -4
- package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +0 -158
- package/dist/drawerGroup-Bs1Z8XPo.js +0 -4
- package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +0 -202
- package/dist/drawerOrganization-Bs0YtPuo.js +0 -4
- package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +0 -250
- package/dist/drawerPosition-BA_gLotd.js +0 -4
- package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js +0 -181
- package/dist/drawerRegion-CauOP4lh.js +0 -4
- package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js +0 -235
- package/dist/drawerRole-CXGVqxPX.js +0 -4
- package/dist/drawerRole-CfJjf3v_.js +0 -4
- package/dist/drawerRole-nmMTIQYS.js +0 -4
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js +0 -243
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js +0 -197
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +0 -191
- package/dist/edit-B69fMWPH.js +0 -4
- package/dist/enum-C9ihxJe7.js +0 -4
- package/dist/enum-D5iPiZiT.js +0 -17
- package/dist/enum-DDKThkSw.js +0 -24
- package/dist/enum-DkSNwGbC.js +0 -74
- package/dist/gangweijiekou-CUGlx4Ni.js +0 -48
- package/dist/icard-C4FaIC0V.js +0 -4
- package/dist/icon_animation-CfRxn8ne.js +0 -4
- package/dist/icon_breadcrumb-CAPCH16K.js +0 -4
- package/dist/icon_copyright-T9HuRtib.js +0 -4
- package/dist/icon_jt-BZgxEG_D.js +0 -4
- package/dist/icon_layout-BynQzkfn.js +0 -4
- package/dist/icon_mainpage-Bu_lyj_6.js +0 -4
- package/dist/icon_menu-D41hl_4p.js +0 -4
- package/dist/icon_page_size-Bioi61il.js +0 -4
- package/dist/icon_position_type-QpezzPDJ.js +0 -4
- package/dist/icon_safe_manage-ByWMOnwf.js +0 -4
- package/dist/icon_screen_scale-CuPyb7Ni.js +0 -4
- package/dist/icon_system_manage-BxRLv7Nw.js +0 -4
- package/dist/icon_tabbar-CetwmJHN.js +0 -4
- package/dist/icon_toolbar-DXt_LXp8.js +0 -4
- package/dist/icon_topbar-C186yIiC.js +0 -4
- package/dist/icon_watermark-DhaloO3m.js +0 -4
- package/dist/index-B0zXLUdu.js +0 -350
- package/dist/index-B5aP0re3.js +0 -170
- package/dist/index-BEB4liGe.js +0 -151
- package/dist/index-BNwGLzXe.js +0 -168
- package/dist/index-BXvJhqJD.js +0 -97
- package/dist/index-BhZNbJp6.js +0 -189
- package/dist/index-Bm3WQuJD.js +0 -226
- package/dist/index-C5WD-YUu.js +0 -246
- package/dist/index-CJQB8KAz.js +0 -186
- package/dist/index-CLnFLvHy.js +0 -193
- package/dist/index-CbVJdR5M.js +0 -194
- package/dist/index-ChWnVs6j.js +0 -196
- package/dist/index-CoZM8pyH.js +0 -197
- package/dist/index-Copy5kiW.js +0 -17701
- package/dist/index-D3Xw_aOi.js +0 -144
- package/dist/index-DHVEXch0.js +0 -253
- package/dist/index-DQhQqT_Z.js +0 -269
- package/dist/index-Dl0hWfIE.js +0 -118
- package/dist/index-En8oOf9e.js +0 -168
- package/dist/index-VZuizuKs.js +0 -257
- package/dist/index-XhYtVVT9.js +0 -88
- package/dist/index-iBmBJd50.js +0 -181
- package/dist/index10.css +0 -1
- package/dist/index13.css +0 -1
- package/dist/index16.css +0 -1
- package/dist/index17.css +0 -1
- package/dist/index4.css +0 -1
- package/dist/index5.css +0 -1
- package/dist/index7.css +0 -1
- package/dist/index8.css +0 -1
- package/dist/index9.css +0 -1
- package/dist/isEmpty-BgDIb4aS.js +0 -20
- package/dist/itemlist-zTYJtoSs.js +0 -172
- package/dist/jiaosejiekou-p42Hm9h3.js +0 -58
- package/dist/log-center-Bw9UlmOq.js +0 -4
- package/dist/loginHistoryDetail-BZVwG8m2.js +0 -105
- package/dist/login_history-CMZGS2PN.js +0 -221
- package/dist/not-data-BDuvYboz.js +0 -4
- package/dist/operateHistoryDetail-Badx3zl-.js +0 -123
- package/dist/operate_history-B42WNY1u.js +0 -217
- package/dist/org-main-DfWpX8Wv.js +0 -4
- package/dist/org-unmain-DrX63NH5.js +0 -4
- package/dist/remove-D2ES5tEr.js +0 -4
- package/dist/resource-app-1lqF6C6F.js +0 -4
- package/dist/resource-btn-Cfo6ddAY.js +0 -4
- package/dist/resource-dynamic-BAwkCWS4.js +0 -4
- package/dist/resource-index-BS4V5uy8.js +0 -4
- package/dist/resource-menu-CEWU8Iis.js +0 -4
- package/dist/resource-micro-9S0h5AlK.js +0 -4
- package/dist/resource-nonmenu-BZ9e4ynT.js +0 -4
- package/dist/setItem-Blb3dox4.js +0 -87
- package/dist/setting-manage-Xj_s0OoK.js +0 -4
- package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +0 -65
- package/dist/theme-check-mark-D58efagJ.js +0 -4
- package/dist/theme-title-CYUX2SBW.js +0 -4
- package/dist/useAppAndResource-DDywX2iz.js +0 -54
- package/dist/vanilla-picker-BAEwS4Fy.js +0 -536
- package/dist/view-BCWU0JWM.js +0 -4
- package/dist/xitongpeizhifuwu-BoCbGEk7.js +0 -23
- package/dist/zddata-DQP5Kx3c.js +0 -4
- package/dist/ziyuanjiekou-BC65-bFK.js +0 -69
- package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +0 -28
- package/dist/zy_checked-Bb6zRsYe.js +0 -4
- package/dist/zy_default-BGjhoury.js +0 -4
- /package/dist/{index2.css → breadcrumb_setting.css} +0 -0
- /package/dist/{index3.css → data-permission.css} +0 -0
- /package/dist/{index6.css → menu_setting.css} +0 -0
- /package/dist/{index11.css → safe_setting.css} +0 -0
- /package/dist/{index12.css → tabbar_setting.css} +0 -0
- /package/dist/{index14.css → toolbar_setting.css} +0 -0
- /package/dist/{index15.css → user.css} +0 -0
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
import { h as _plugin_vue_export_helper_default } from "./index.js";
|
|
2
|
+
import { r as RESOURCE_TYPE } from "./enum-3E_sUqRF.js";
|
|
3
|
+
import { PubinfoIcon, getAllIconModules } from "pubinfo-nightly";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, reactive, ref, renderList, renderSlot, resolveComponent, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
5
|
+
import * as AntdIcons from "@ant-design/icons-vue";
|
|
6
|
+
import { Empty } from "ant-design-vue";
|
|
7
|
+
import { Button, Empty as Empty$1, FormItem, FormItemRest, Input as Input$1, InputNumber, Modal as Modal$1, Pagination as Pagination$1, RadioButton, RadioGroup, Tooltip as Tooltip$1 } from "ant-design-vue/es";
|
|
8
|
+
import './IconSelect.css';var _hoisted_1$2 = { class: "flex flex-col gap-3 w-full select-none" }, _hoisted_2$2 = { class: "flex items-center gap-3" }, _hoisted_3$2 = { class: "relative inline-flex items-center" }, _hoisted_4$1 = ["disabled"], _hoisted_5$1 = ["value", "disabled"], _hoisted_6$1 = { class: "flex items-center gap-3" }, _hoisted_7$1 = { class: "relative inline-flex items-center" }, _hoisted_8$1 = ["disabled"], _hoisted_9$1 = ["value", "disabled"], _hoisted_10$1 = { class: "flex items-center gap-3" }, _hoisted_11$1 = { class: "flex items-center gap-3" }, _hoisted_12$1 = { class: "flex items-center gap-3" }, BoxColorPicker_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "ResourceIconesBoxColorPicker",
|
|
10
|
+
__name: "BoxColorPicker",
|
|
11
|
+
props: {
|
|
12
|
+
angle: {},
|
|
13
|
+
background: {},
|
|
14
|
+
radius: {},
|
|
15
|
+
iconSize: {},
|
|
16
|
+
disabled: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
emits: [
|
|
19
|
+
"update:angle",
|
|
20
|
+
"update:background",
|
|
21
|
+
"update:radius",
|
|
22
|
+
"update:iconSize"
|
|
23
|
+
],
|
|
24
|
+
setup(e, { emit: t }) {
|
|
25
|
+
let n = e, r = t;
|
|
26
|
+
function i(e) {
|
|
27
|
+
if (typeof e == "number" && Number.isFinite(e)) return (e % 360 + 360) % 360;
|
|
28
|
+
if (typeof e == "string") {
|
|
29
|
+
let t = Number.parseFloat(e);
|
|
30
|
+
if (Number.isFinite(t)) return (t % 360 + 360) % 360;
|
|
31
|
+
}
|
|
32
|
+
return 65;
|
|
33
|
+
}
|
|
34
|
+
function a(e) {
|
|
35
|
+
return e ? typeof e == "string" ? {
|
|
36
|
+
from: e,
|
|
37
|
+
to: e
|
|
38
|
+
} : {
|
|
39
|
+
from: e.from,
|
|
40
|
+
to: e.to
|
|
41
|
+
} : {
|
|
42
|
+
from: "#65E54A",
|
|
43
|
+
to: "#35C724"
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function o(e) {
|
|
47
|
+
if (typeof e == "string" && e.trim().endsWith("%")) {
|
|
48
|
+
let t = Number.parseFloat(e);
|
|
49
|
+
if (Number.isFinite(t)) return c(t);
|
|
50
|
+
}
|
|
51
|
+
if (typeof e == "number" && Number.isFinite(e)) return c(e);
|
|
52
|
+
if (typeof e == "string") {
|
|
53
|
+
let t = Number.parseFloat(e);
|
|
54
|
+
if (Number.isFinite(t)) return c(t);
|
|
55
|
+
}
|
|
56
|
+
return 50;
|
|
57
|
+
}
|
|
58
|
+
function s(e) {
|
|
59
|
+
if (typeof e == "string" && e.trim().endsWith("%")) {
|
|
60
|
+
let t = Number.parseFloat(e);
|
|
61
|
+
if (Number.isFinite(t)) return l(t);
|
|
62
|
+
}
|
|
63
|
+
if (typeof e == "number" && Number.isFinite(e)) return l(e);
|
|
64
|
+
if (typeof e == "string") {
|
|
65
|
+
let t = Number.parseFloat(e);
|
|
66
|
+
if (Number.isFinite(t)) return l(t);
|
|
67
|
+
}
|
|
68
|
+
return 50;
|
|
69
|
+
}
|
|
70
|
+
function c(e) {
|
|
71
|
+
return Math.min(50, Math.max(0, e));
|
|
72
|
+
}
|
|
73
|
+
function l(e) {
|
|
74
|
+
return Math.min(100, Math.max(0, e));
|
|
75
|
+
}
|
|
76
|
+
let f = a(n.background), m = ref(f.from), h = ref(f.to), g = ref(i(n.angle)), _ = ref(o(n.radius)), v = ref(s(n.iconSize)), y = ref(null), x = ref(null);
|
|
77
|
+
function S() {
|
|
78
|
+
if (n.disabled) return;
|
|
79
|
+
let e = y.value;
|
|
80
|
+
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
81
|
+
}
|
|
82
|
+
function C() {
|
|
83
|
+
if (n.disabled) return;
|
|
84
|
+
let e = x.value;
|
|
85
|
+
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
86
|
+
}
|
|
87
|
+
return watch([
|
|
88
|
+
m,
|
|
89
|
+
h,
|
|
90
|
+
g,
|
|
91
|
+
_
|
|
92
|
+
], () => {
|
|
93
|
+
r("update:background", {
|
|
94
|
+
from: m.value,
|
|
95
|
+
to: h.value
|
|
96
|
+
}), r("update:angle", g.value), r("update:radius", `${_.value}%`);
|
|
97
|
+
}, { immediate: !0 }), watch(v, () => {
|
|
98
|
+
r("update:iconSize", `${v.value}%`);
|
|
99
|
+
}, { immediate: !0 }), watch(() => n.background, (e) => {
|
|
100
|
+
if (e == null) return;
|
|
101
|
+
let t = a(e);
|
|
102
|
+
m.value = t.from, h.value = t.to;
|
|
103
|
+
}), watch(() => n.angle, (e) => {
|
|
104
|
+
e != null && (g.value = i(e));
|
|
105
|
+
}), watch(() => n.radius, (e) => {
|
|
106
|
+
e != null && (_.value = o(e));
|
|
107
|
+
}), watch(() => n.iconSize, (e) => {
|
|
108
|
+
e != null && (v.value = s(e));
|
|
109
|
+
}), (e, t) => {
|
|
110
|
+
let r = Input$1, i = InputNumber;
|
|
111
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
112
|
+
createElementVNode("div", _hoisted_2$2, [t[7] ||= createElementVNode("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "起始色", -1), createVNode(r, {
|
|
113
|
+
value: m.value,
|
|
114
|
+
"onUpdate:value": t[1] ||= (e) => m.value = e,
|
|
115
|
+
disabled: n.disabled,
|
|
116
|
+
placeholder: "#65E54A",
|
|
117
|
+
size: "small",
|
|
118
|
+
class: "flex-1 min-w-0"
|
|
119
|
+
}, {
|
|
120
|
+
prefix: withCtx(() => [createElementVNode("div", _hoisted_3$2, [createElementVNode("button", {
|
|
121
|
+
type: "button",
|
|
122
|
+
disabled: n.disabled,
|
|
123
|
+
class: normalizeClass(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", n.disabled ? "opacity-50 cursor-not-allowed" : ""]),
|
|
124
|
+
style: normalizeStyle({ background: m.value }),
|
|
125
|
+
onClick: S
|
|
126
|
+
}, null, 14, _hoisted_4$1), createElementVNode("input", {
|
|
127
|
+
ref_key: "fromColorPickerRef",
|
|
128
|
+
ref: y,
|
|
129
|
+
type: "color",
|
|
130
|
+
value: m.value,
|
|
131
|
+
disabled: n.disabled,
|
|
132
|
+
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
133
|
+
style: {
|
|
134
|
+
width: "16px",
|
|
135
|
+
height: "16px"
|
|
136
|
+
},
|
|
137
|
+
onInput: t[0] ||= (e) => m.value = e.target.value
|
|
138
|
+
}, null, 40, _hoisted_5$1)])]),
|
|
139
|
+
_: 1
|
|
140
|
+
}, 8, ["value", "disabled"])]),
|
|
141
|
+
createElementVNode("div", _hoisted_6$1, [t[8] ||= createElementVNode("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "结束色", -1), createVNode(r, {
|
|
142
|
+
value: h.value,
|
|
143
|
+
"onUpdate:value": t[3] ||= (e) => h.value = e,
|
|
144
|
+
disabled: n.disabled,
|
|
145
|
+
placeholder: "#35C724",
|
|
146
|
+
size: "small",
|
|
147
|
+
class: "flex-1 min-w-0"
|
|
148
|
+
}, {
|
|
149
|
+
prefix: withCtx(() => [createElementVNode("div", _hoisted_7$1, [createElementVNode("button", {
|
|
150
|
+
type: "button",
|
|
151
|
+
disabled: n.disabled,
|
|
152
|
+
class: normalizeClass(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", n.disabled ? "opacity-50 cursor-not-allowed" : ""]),
|
|
153
|
+
style: normalizeStyle({ background: h.value }),
|
|
154
|
+
onClick: C
|
|
155
|
+
}, null, 14, _hoisted_8$1), createElementVNode("input", {
|
|
156
|
+
ref_key: "toColorPickerRef",
|
|
157
|
+
ref: x,
|
|
158
|
+
type: "color",
|
|
159
|
+
value: h.value,
|
|
160
|
+
disabled: n.disabled,
|
|
161
|
+
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
162
|
+
style: {
|
|
163
|
+
width: "16px",
|
|
164
|
+
height: "16px"
|
|
165
|
+
},
|
|
166
|
+
onInput: t[2] ||= (e) => h.value = e.target.value
|
|
167
|
+
}, null, 40, _hoisted_9$1)])]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 8, ["value", "disabled"])]),
|
|
170
|
+
createElementVNode("div", _hoisted_10$1, [
|
|
171
|
+
t[9] ||= createElementVNode("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "角度", -1),
|
|
172
|
+
createVNode(i, {
|
|
173
|
+
value: g.value,
|
|
174
|
+
"onUpdate:value": t[4] ||= (e) => g.value = e,
|
|
175
|
+
disabled: n.disabled,
|
|
176
|
+
min: 0,
|
|
177
|
+
max: 360,
|
|
178
|
+
step: 1,
|
|
179
|
+
size: "small",
|
|
180
|
+
class: "w-28"
|
|
181
|
+
}, null, 8, ["value", "disabled"]),
|
|
182
|
+
t[10] ||= createElementVNode("span", { class: "text-12px opacity-70" }, "deg", -1)
|
|
183
|
+
]),
|
|
184
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
185
|
+
t[11] ||= createElementVNode("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "圆角", -1),
|
|
186
|
+
createVNode(i, {
|
|
187
|
+
value: _.value,
|
|
188
|
+
"onUpdate:value": t[5] ||= (e) => _.value = e,
|
|
189
|
+
disabled: n.disabled,
|
|
190
|
+
min: 0,
|
|
191
|
+
max: 50,
|
|
192
|
+
step: 1,
|
|
193
|
+
size: "small",
|
|
194
|
+
class: "w-28"
|
|
195
|
+
}, null, 8, ["value", "disabled"]),
|
|
196
|
+
t[12] ||= createElementVNode("span", { class: "text-12px opacity-70" }, "%", -1)
|
|
197
|
+
]),
|
|
198
|
+
createElementVNode("div", _hoisted_12$1, [
|
|
199
|
+
t[13] ||= createElementVNode("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "图标大小", -1),
|
|
200
|
+
createVNode(i, {
|
|
201
|
+
value: v.value,
|
|
202
|
+
"onUpdate:value": t[6] ||= (e) => v.value = e,
|
|
203
|
+
disabled: n.disabled,
|
|
204
|
+
min: 0,
|
|
205
|
+
max: 100,
|
|
206
|
+
step: 1,
|
|
207
|
+
size: "small",
|
|
208
|
+
class: "w-28"
|
|
209
|
+
}, null, 8, ["value", "disabled"]),
|
|
210
|
+
t[14] ||= createElementVNode("span", { class: "text-12px opacity-70" }, "%", -1)
|
|
211
|
+
])
|
|
212
|
+
]);
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
}), _hoisted_1$1 = { class: "flex gap-4 min-h-[600px]" }, _hoisted_2$1 = { class: "w-58 flex flex-col border-r border-[#e5e7eb] dark:border-[#30363d] pr-3" }, _hoisted_3$1 = { class: "mb-3" }, _hoisted_4 = { class: "flex-1 overflow-auto space-y-1 pr-1" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "truncate max-w-[120px]" }, _hoisted_7 = { class: "ml-2 inline-block min-w-6 text-center text-11px rounded bg-[#eef1f5] dark:bg-[#2d3339] px-1 text-[#5d6671] dark:text-[#9aa3ad]" }, _hoisted_8 = { class: "flex-1 flex flex-col min-w-0" }, _hoisted_9 = { class: "grid grid-cols-6 gap-3 auto-rows-[96px] overflow-auto flex-1 p-1" }, _hoisted_10 = { class: "text-12px leading-tight space-y-1" }, _hoisted_11 = { class: "font-medium" }, _hoisted_12 = {
|
|
216
|
+
key: 0,
|
|
217
|
+
class: "opacity-70"
|
|
218
|
+
}, _hoisted_13 = ["onClick"], _hoisted_14 = { class: "mt-4 flex justify-center select-none" }, _hoisted_15 = {
|
|
219
|
+
key: 1,
|
|
220
|
+
class: "flex-1 flex items-center justify-center"
|
|
221
|
+
}, _hoisted_16 = {
|
|
222
|
+
key: 0,
|
|
223
|
+
class: "relative w-60 flex flex-col border-l border-[#e5e7eb] dark:border-[#30363d] pl-4 min-h-0"
|
|
224
|
+
}, _hoisted_17 = { class: "flex flex-col flex-1 w-full rounded-md border border-dashed border-[#d0d7de] dark:border-[#30363d] text-12px text-[#6b7280] dark:text-[#94a3b8] p-3 overflow-hidden" }, _hoisted_18 = { class: "shrink-0 flex justify-center items-center pb-4 border-b border-b-dashed border-b-[#d0d7de] dark:border-b-[#30363d]" }, _hoisted_19 = { class: "w-8 h-8 flex justify-center items-center" }, _hoisted_20 = { class: "w-8 h-8 flex justify-center items-center" }, _hoisted_21 = { class: "w-8 h-8 flex justify-center items-center" }, _hoisted_22 = { class: "flex-1 w-full mt-3 px-2 overflow-auto space-y-3" }, _hoisted_23 = { class: "flex flex-col justify-start w-full opacity-100" }, _hoisted_24 = { class: "flex items-center gap-3 mb-0! w-full flex-col" }, _hoisted_25 = { class: "flex" }, _hoisted_26 = { class: "text-12px opacity-70 w-14 shrink-0 flex items-center" }, _hoisted_27 = { class: "flex flex-col" }, _hoisted_28 = { class: "relative inline-flex items-center" }, _hoisted_29 = ["disabled"], _hoisted_30 = ["value", "disabled"], _hoisted_31 = { class: "w-full mt-auto flex aspect-square" }, _hoisted_32 = { class: "flex-1 w-full h-full py-4 rounded-md border-t border-t-dashed border-t-[#d0d7de] dark:border-t-[#30363d] flex flex-col items-center gap-2" }, _hoisted_33 = {
|
|
225
|
+
key: 0,
|
|
226
|
+
class: "w-full h-full flex items-center justify-center"
|
|
227
|
+
}, _hoisted_34 = { class: "mt-4 flex justify-end gap-2" }, pageSize = 30, previewBoxOuter = 24, previewBoxPadding = 4, Select_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
228
|
+
name: "ResourceIconesSelect",
|
|
229
|
+
__name: "Select",
|
|
230
|
+
props: {
|
|
231
|
+
modelValue: {},
|
|
232
|
+
modelModifiers: {},
|
|
233
|
+
boxType: { default: "null" },
|
|
234
|
+
boxTypeModifiers: {},
|
|
235
|
+
angle: { default: 65 },
|
|
236
|
+
angleModifiers: {},
|
|
237
|
+
background: { default: {
|
|
238
|
+
from: "#65E54A",
|
|
239
|
+
to: "#35C724"
|
|
240
|
+
} },
|
|
241
|
+
backgroundModifiers: {},
|
|
242
|
+
radius: { default: "50%" },
|
|
243
|
+
radiusModifiers: {},
|
|
244
|
+
iconColor: { default: "" },
|
|
245
|
+
iconColorModifiers: {},
|
|
246
|
+
iconSize: { default: "50%" },
|
|
247
|
+
iconSizeModifiers: {}
|
|
248
|
+
},
|
|
249
|
+
emits: [
|
|
250
|
+
"update:modelValue",
|
|
251
|
+
"update:boxType",
|
|
252
|
+
"update:angle",
|
|
253
|
+
"update:background",
|
|
254
|
+
"update:radius",
|
|
255
|
+
"update:iconColor",
|
|
256
|
+
"update:iconSize"
|
|
257
|
+
],
|
|
258
|
+
setup(e) {
|
|
259
|
+
let t = useModel(e, "modelValue"), l = useModel(e, "boxType"), f = useModel(e, "angle"), g = useModel(e, "background"), w = useModel(e, "radius"), T = useModel(e, "iconColor"), E = useModel(e, "iconSize"), D = ref(t.value), O = ref(l.value || "null"), k = ref(f.value ?? 65), A = ref(g.value ?? {
|
|
260
|
+
from: "#65E54A",
|
|
261
|
+
to: "#35C724"
|
|
262
|
+
}), j = ref(w.value ?? "50%"), M = ref(E.value ?? "50%"), N = ref(T.value ?? ""), P = ref(null), F = ref(!1);
|
|
263
|
+
function I() {
|
|
264
|
+
D.value = t.value, O.value = l.value || "null", k.value = f.value ?? 65;
|
|
265
|
+
let e = g.value;
|
|
266
|
+
A.value = typeof e == "string" ? e : e ? { ...e } : {
|
|
267
|
+
from: "#65E54A",
|
|
268
|
+
to: "#35C724"
|
|
269
|
+
}, j.value = w.value ?? "50%", M.value = E.value ?? "50%", N.value = T.value ?? "", F.value = !0;
|
|
270
|
+
}
|
|
271
|
+
function L() {
|
|
272
|
+
F.value = !1;
|
|
273
|
+
}
|
|
274
|
+
function R() {
|
|
275
|
+
t.value = D.value, l.value = O.value, f.value = k.value;
|
|
276
|
+
let e = A.value;
|
|
277
|
+
g.value = typeof e == "string" ? e : e && { ...e }, w.value = j.value, E.value = M.value, T.value = N.value, F.value = !1;
|
|
278
|
+
}
|
|
279
|
+
function z(e) {
|
|
280
|
+
return (e.split(/[\\/]/).pop() || e).replace(/\.(svg|png|jpe?g)$/i, "");
|
|
281
|
+
}
|
|
282
|
+
let B = computed(() => {
|
|
283
|
+
let e = /* @__PURE__ */ new Map(), t = getAllIconModules();
|
|
284
|
+
for (let [n, r] of t.entries()) {
|
|
285
|
+
let t = Object.keys(r).map(z).sort();
|
|
286
|
+
e.set(n, t);
|
|
287
|
+
}
|
|
288
|
+
return e;
|
|
289
|
+
}), V = computed(() => Object.keys(AntdIcons).filter((e) => /(?:Outlined|Filled|TwoTone)$/.test(e)).map((e) => `antd:${e}`).sort()), H = computed(() => {
|
|
290
|
+
let e = Array.from(B.value.keys()), t = e.includes("local"), n = e.filter((e) => e !== "local").sort();
|
|
291
|
+
return [
|
|
292
|
+
{
|
|
293
|
+
label: "全部",
|
|
294
|
+
value: "all"
|
|
295
|
+
},
|
|
296
|
+
...t ? [{
|
|
297
|
+
label: "本地",
|
|
298
|
+
value: "local"
|
|
299
|
+
}] : [],
|
|
300
|
+
...n.map((e) => ({
|
|
301
|
+
label: e,
|
|
302
|
+
value: e
|
|
303
|
+
})),
|
|
304
|
+
{
|
|
305
|
+
label: "Ant Design",
|
|
306
|
+
value: "antd"
|
|
307
|
+
}
|
|
308
|
+
];
|
|
309
|
+
}), U = ref("all"), W = ref(""), G = computed(() => {
|
|
310
|
+
let e = [];
|
|
311
|
+
for (let [t, n] of B.value.entries()) n.forEach((n) => {
|
|
312
|
+
t === "local" ? e.push({
|
|
313
|
+
name: n,
|
|
314
|
+
module: t
|
|
315
|
+
}) : e.push({
|
|
316
|
+
name: `${t}-[${n}]`,
|
|
317
|
+
module: t
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
return V.value.forEach((t) => e.push({
|
|
321
|
+
name: t,
|
|
322
|
+
module: "antd"
|
|
323
|
+
})), e;
|
|
324
|
+
}), K = computed(() => U.value === "all" ? G.value : U.value === "antd" ? G.value.filter((e) => e.module === "antd") : G.value.filter((e) => e.module === U.value)), q = computed(() => {
|
|
325
|
+
let e = W.value.trim().toLowerCase();
|
|
326
|
+
return e ? K.value.filter((t) => t.name.toLowerCase().includes(e)) : K.value;
|
|
327
|
+
});
|
|
328
|
+
function J(e) {
|
|
329
|
+
return e === "all" ? G.value.length : e === "antd" ? G.value.filter((e) => e.module === "antd").length : G.value.filter((t) => t.module === e).length;
|
|
330
|
+
}
|
|
331
|
+
let Y = ref(1), X = computed(() => Math.max(1, Math.ceil(q.value.length / pageSize))), Z = computed(() => {
|
|
332
|
+
let e = (Y.value - 1) * pageSize;
|
|
333
|
+
return q.value.slice(e, e + pageSize);
|
|
334
|
+
});
|
|
335
|
+
watch([W, U], () => {
|
|
336
|
+
Y.value = 1;
|
|
337
|
+
}), watch(q, () => {
|
|
338
|
+
Y.value > X.value && (Y.value = X.value);
|
|
339
|
+
});
|
|
340
|
+
function Q(e) {
|
|
341
|
+
Y.value = e;
|
|
342
|
+
}
|
|
343
|
+
function Ze(e) {
|
|
344
|
+
D.value = e.name;
|
|
345
|
+
}
|
|
346
|
+
let Qe = Empty.PRESENTED_IMAGE_SIMPLE;
|
|
347
|
+
function $e() {
|
|
348
|
+
if (!(D.value || "").startsWith("antd:")) return;
|
|
349
|
+
let e = P.value;
|
|
350
|
+
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
351
|
+
}
|
|
352
|
+
let $ = computed(() => (D.value || "").startsWith("antd:"));
|
|
353
|
+
return watch(O, (e, t) => {
|
|
354
|
+
t === "null" && e !== "null" && !N.value && (N.value = "#ffffff");
|
|
355
|
+
}), (e, r) => {
|
|
356
|
+
let a = Tooltip$1, l = Input$1, f = Pagination$1, p = Empty$1, g = RadioButton, y = RadioGroup, b = Button, x = Modal$1, S = FormItemRest;
|
|
357
|
+
return openBlock(), createElementBlock(Fragment, null, [renderSlot(e.$slots, "default", { open: I }, () => [createVNode(l, {
|
|
358
|
+
value: t.value,
|
|
359
|
+
readonly: "",
|
|
360
|
+
onClick: I
|
|
361
|
+
}, {
|
|
362
|
+
addonAfter: withCtx(() => [createVNode(a, null, {
|
|
363
|
+
title: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
364
|
+
name: t.value || "",
|
|
365
|
+
size: "40px",
|
|
366
|
+
class: "cursor-default"
|
|
367
|
+
}, null, 8, ["name"])]),
|
|
368
|
+
default: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
369
|
+
name: t.value || "",
|
|
370
|
+
size: "20px",
|
|
371
|
+
class: "cursor-default"
|
|
372
|
+
}, null, 8, ["name"])]),
|
|
373
|
+
_: 1
|
|
374
|
+
})]),
|
|
375
|
+
_: 1
|
|
376
|
+
}, 8, ["value"])], !0), createVNode(S, null, {
|
|
377
|
+
default: withCtx(() => [createVNode(x, {
|
|
378
|
+
open: F.value,
|
|
379
|
+
"onUpdate:open": r[8] ||= (e) => F.value = e,
|
|
380
|
+
title: "选择图标",
|
|
381
|
+
width: "1200px",
|
|
382
|
+
footer: null,
|
|
383
|
+
"destroy-on-close": "",
|
|
384
|
+
onCancel: L
|
|
385
|
+
}, {
|
|
386
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [
|
|
387
|
+
createElementVNode("div", _hoisted_2$1, [createElementVNode("div", _hoisted_3$1, [createVNode(l, {
|
|
388
|
+
value: W.value,
|
|
389
|
+
"onUpdate:value": r[0] ||= (e) => W.value = e,
|
|
390
|
+
"allow-clear": "",
|
|
391
|
+
bordered: !0,
|
|
392
|
+
placeholder: "搜索图标",
|
|
393
|
+
class: "h-9 text-13px"
|
|
394
|
+
}, {
|
|
395
|
+
prefix: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
396
|
+
name: "i-carbon-search",
|
|
397
|
+
size: "16",
|
|
398
|
+
class: "text-[#7a869a]"
|
|
399
|
+
})]),
|
|
400
|
+
_: 1
|
|
401
|
+
}, 8, ["value"])]), createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(H.value, (e) => (openBlock(), createElementBlock("div", {
|
|
402
|
+
key: e.value,
|
|
403
|
+
class: normalizeClass(["flex items-center justify-between px-3 py-2 rounded-md cursor-pointer text-13px border border-transparent hover:bg-[#f3f6fa] dark:hover:bg-[#262c33] transition", U.value === e.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
|
|
404
|
+
onClick: (t) => U.value = e.value
|
|
405
|
+
}, [createElementVNode("span", _hoisted_6, toDisplayString(e.label), 1), createElementVNode("span", _hoisted_7, toDisplayString(J(e.value)), 1)], 10, _hoisted_5))), 128))])]),
|
|
406
|
+
createElementVNode("div", _hoisted_8, [q.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_9, [(openBlock(!0), createElementBlock(Fragment, null, renderList(Z.value, (e) => (openBlock(), createBlock(a, {
|
|
407
|
+
key: `${e.module || ""}:${e.name}`,
|
|
408
|
+
"mouse-enter-delay": .35
|
|
409
|
+
}, {
|
|
410
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_10, [createElementVNode("div", _hoisted_11, toDisplayString(e.name), 1), e.module ? (openBlock(), createElementBlock("div", _hoisted_12, " 模块: " + toDisplayString(e.module), 1)) : createCommentVNode("", !0)])]),
|
|
411
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
412
|
+
class: normalizeClass(["group relative flex flex-col items-center justify-center cursor-pointer rounded-md border", D.value === e.name ? "border-solid border-[#1677ff]" : "border-dashed border-[#e5e7eb] dark:border-[#30363d]"]),
|
|
413
|
+
onClick: (t) => Ze(e)
|
|
414
|
+
}, [createVNode(unref(PubinfoIcon), {
|
|
415
|
+
name: e.name,
|
|
416
|
+
size: "30px"
|
|
417
|
+
}, null, 8, ["name"])], 10, _hoisted_13)]),
|
|
418
|
+
_: 2
|
|
419
|
+
}, 1024))), 128))]), createElementVNode("div", _hoisted_14, [createVNode(f, {
|
|
420
|
+
current: Y.value,
|
|
421
|
+
"page-size": pageSize,
|
|
422
|
+
total: q.value.length,
|
|
423
|
+
"show-size-changer": !1,
|
|
424
|
+
"show-quick-jumper": "",
|
|
425
|
+
onChange: Q
|
|
426
|
+
}, null, 8, ["current", "total"])])], 64)) : (openBlock(), createElementBlock("div", _hoisted_15, [createVNode(p, {
|
|
427
|
+
image: unref(Qe),
|
|
428
|
+
description: "没有匹配的图标"
|
|
429
|
+
}, null, 8, ["image"])]))]),
|
|
430
|
+
D.value ? (openBlock(), createElementBlock("div", _hoisted_16, [createElementVNode("div", _hoisted_17, [
|
|
431
|
+
createElementVNode("div", _hoisted_18, [createVNode(y, {
|
|
432
|
+
value: O.value,
|
|
433
|
+
"onUpdate:value": r[1] ||= (e) => O.value = e,
|
|
434
|
+
class: "flex justify-center items-center"
|
|
435
|
+
}, {
|
|
436
|
+
default: withCtx(() => [
|
|
437
|
+
createVNode(g, { value: "null" }, {
|
|
438
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_19, [createVNode(unref(PubinfoIcon), {
|
|
439
|
+
name: D.value,
|
|
440
|
+
size: previewBoxOuter - previewBoxPadding * 2
|
|
441
|
+
}, null, 8, ["name", "size"])])]),
|
|
442
|
+
_: 1
|
|
443
|
+
}),
|
|
444
|
+
createVNode(g, { value: "square" }, {
|
|
445
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_20, [createVNode(unref(PubinfoIcon), {
|
|
446
|
+
name: D.value,
|
|
447
|
+
box: "square",
|
|
448
|
+
size: previewBoxOuter,
|
|
449
|
+
radius: "25%",
|
|
450
|
+
color: "#ffffff"
|
|
451
|
+
}, null, 8, ["name"])])]),
|
|
452
|
+
_: 1
|
|
453
|
+
}),
|
|
454
|
+
createVNode(g, { value: "prism" }, {
|
|
455
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_21, [createVNode(unref(PubinfoIcon), {
|
|
456
|
+
name: D.value,
|
|
457
|
+
box: "prism",
|
|
458
|
+
size: previewBoxOuter,
|
|
459
|
+
color: "#ffffff",
|
|
460
|
+
radius: "2%"
|
|
461
|
+
}, null, 8, ["name"])])]),
|
|
462
|
+
_: 1
|
|
463
|
+
})
|
|
464
|
+
]),
|
|
465
|
+
_: 1
|
|
466
|
+
}, 8, ["value"])]),
|
|
467
|
+
createElementVNode("div", _hoisted_22, [
|
|
468
|
+
createElementVNode("div", _hoisted_23, [r[9] ||= createElementVNode("div", { class: "text-12px mb-2 opacity-70" }, " 背景设置 ", -1), createVNode(BoxColorPicker_default, {
|
|
469
|
+
angle: k.value,
|
|
470
|
+
"onUpdate:angle": r[2] ||= (e) => k.value = e,
|
|
471
|
+
background: A.value,
|
|
472
|
+
"onUpdate:background": r[3] ||= (e) => A.value = e,
|
|
473
|
+
radius: j.value,
|
|
474
|
+
"onUpdate:radius": r[4] ||= (e) => j.value = e,
|
|
475
|
+
"icon-size": M.value,
|
|
476
|
+
"onUpdate:iconSize": r[5] ||= (e) => M.value = e,
|
|
477
|
+
disabled: O.value === "null"
|
|
478
|
+
}, null, 8, [
|
|
479
|
+
"angle",
|
|
480
|
+
"background",
|
|
481
|
+
"radius",
|
|
482
|
+
"icon-size",
|
|
483
|
+
"disabled"
|
|
484
|
+
])]),
|
|
485
|
+
createElementVNode("div", _hoisted_24, [createElementVNode("div", _hoisted_25, [createElementVNode("label", _hoisted_26, [r[11] ||= createTextVNode(" 图标色 ", -1), createVNode(a, null, {
|
|
486
|
+
title: withCtx(() => [...r[10] ||= [createTextVNode(" 仅 Ant Design 图标有效 ", -1)]]),
|
|
487
|
+
default: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
488
|
+
name: "i-carbon-information",
|
|
489
|
+
size: "12px",
|
|
490
|
+
class: "ml-1 cursor-help"
|
|
491
|
+
})]),
|
|
492
|
+
_: 1
|
|
493
|
+
})]), createElementVNode("div", _hoisted_27, [createVNode(l, {
|
|
494
|
+
value: N.value,
|
|
495
|
+
"onUpdate:value": r[7] ||= (e) => N.value = e,
|
|
496
|
+
"allow-clear": "",
|
|
497
|
+
placeholder: O.value === "null" ? "默认" : "#ffffff",
|
|
498
|
+
size: "small",
|
|
499
|
+
class: "flex-1 min-w-0",
|
|
500
|
+
disabled: !$.value
|
|
501
|
+
}, {
|
|
502
|
+
prefix: withCtx(() => [createElementVNode("div", _hoisted_28, [createElementVNode("button", {
|
|
503
|
+
type: "button",
|
|
504
|
+
disabled: !$.value,
|
|
505
|
+
class: normalizeClass(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", $.value ? "" : "opacity-50 cursor-not-allowed"]),
|
|
506
|
+
style: normalizeStyle({ background: N.value || "#ffffff" }),
|
|
507
|
+
onClick: $e
|
|
508
|
+
}, null, 14, _hoisted_29), createElementVNode("input", {
|
|
509
|
+
ref_key: "iconColorPickerRef",
|
|
510
|
+
ref: P,
|
|
511
|
+
type: "color",
|
|
512
|
+
value: N.value || "#ffffff",
|
|
513
|
+
disabled: !$.value,
|
|
514
|
+
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
515
|
+
style: {
|
|
516
|
+
width: "16px",
|
|
517
|
+
height: "16px"
|
|
518
|
+
},
|
|
519
|
+
onInput: r[6] ||= (e) => N.value = e.target.value
|
|
520
|
+
}, null, 40, _hoisted_30)])]),
|
|
521
|
+
_: 1
|
|
522
|
+
}, 8, [
|
|
523
|
+
"value",
|
|
524
|
+
"placeholder",
|
|
525
|
+
"disabled"
|
|
526
|
+
])])])]),
|
|
527
|
+
createElementVNode("div", _hoisted_31, [createElementVNode("div", _hoisted_32, [D.value ? (openBlock(), createElementBlock("div", _hoisted_33, [O.value === "null" ? (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
528
|
+
key: 0,
|
|
529
|
+
name: D.value,
|
|
530
|
+
size: 80,
|
|
531
|
+
color: $.value && N.value ? N.value : void 0
|
|
532
|
+
}, null, 8, ["name", "color"])) : (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
533
|
+
key: 1,
|
|
534
|
+
name: D.value,
|
|
535
|
+
box: O.value,
|
|
536
|
+
size: 80,
|
|
537
|
+
angle: k.value,
|
|
538
|
+
background: A.value,
|
|
539
|
+
radius: j.value,
|
|
540
|
+
"icon-size": M.value,
|
|
541
|
+
color: $.value ? N.value || "#ffffff" : void 0
|
|
542
|
+
}, null, 8, [
|
|
543
|
+
"name",
|
|
544
|
+
"box",
|
|
545
|
+
"angle",
|
|
546
|
+
"background",
|
|
547
|
+
"radius",
|
|
548
|
+
"icon-size",
|
|
549
|
+
"color"
|
|
550
|
+
]))])) : createCommentVNode("", !0)])])
|
|
551
|
+
]),
|
|
552
|
+
createElementVNode("div", _hoisted_34, [createVNode(b, { onClick: L }, {
|
|
553
|
+
default: withCtx(() => [...r[12] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
554
|
+
_: 1
|
|
555
|
+
}), createVNode(b, {
|
|
556
|
+
type: "primary",
|
|
557
|
+
onClick: R
|
|
558
|
+
}, {
|
|
559
|
+
default: withCtx(() => [...r[13] ||= [createTextVNode(" 确定 ", -1)]]),
|
|
560
|
+
_: 1
|
|
561
|
+
})])
|
|
562
|
+
])])) : createCommentVNode("", !0)
|
|
563
|
+
])]),
|
|
564
|
+
_: 1
|
|
565
|
+
}, 8, ["open"])]),
|
|
566
|
+
_: 1
|
|
567
|
+
})], 64);
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
}), [["__scopeId", "data-v-877afd5a"]]), _hoisted_1 = ["onClick"], _hoisted_2 = ["onClick"], _hoisted_3 = { class: "flex flex-col items-center justify-center" }, IconSelect_default = /* @__PURE__ */ defineComponent({
|
|
571
|
+
name: "ResourceIconSelect",
|
|
572
|
+
__name: "IconSelect",
|
|
573
|
+
props: {
|
|
574
|
+
modelValue: { default: { meta: {
|
|
575
|
+
url: "",
|
|
576
|
+
component: ""
|
|
577
|
+
} } },
|
|
578
|
+
modelModifiers: {}
|
|
579
|
+
},
|
|
580
|
+
emits: ["update:modelValue"],
|
|
581
|
+
setup(e) {
|
|
582
|
+
let r = useModel(e, "modelValue");
|
|
583
|
+
function i() {
|
|
584
|
+
return {
|
|
585
|
+
boxType: "null",
|
|
586
|
+
angle: 65,
|
|
587
|
+
background: {
|
|
588
|
+
from: "#65E54A",
|
|
589
|
+
to: "#35C724"
|
|
590
|
+
},
|
|
591
|
+
radius: "50%",
|
|
592
|
+
iconColor: "",
|
|
593
|
+
iconSize: "50%"
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
let c = computed(() => r.value.meta || (r.value.meta = {})), l = reactive(i());
|
|
597
|
+
watch(() => c.value.iconOptions, (e) => {
|
|
598
|
+
e ? Object.assign(l, i(), e) : Object.assign(l, i());
|
|
599
|
+
}, { immediate: !0 }), watch(l, (e) => {
|
|
600
|
+
if (!r.value.icon) {
|
|
601
|
+
c.value.iconOptions && Reflect.deleteProperty(c.value, "iconOptions");
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
let t = c.value.iconOptions, n = !1;
|
|
605
|
+
if (!t) n = !0;
|
|
606
|
+
else {
|
|
607
|
+
let r = new Set([...Object.keys(t), ...Object.keys(e)]);
|
|
608
|
+
for (let i of r) if (t[i] !== e[i]) {
|
|
609
|
+
n = !0;
|
|
610
|
+
break;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
n && (c.value.iconOptions = { ...e });
|
|
614
|
+
}, { deep: !0 });
|
|
615
|
+
let u = computed(() => {
|
|
616
|
+
let e = r.value.type;
|
|
617
|
+
return { icon: [
|
|
618
|
+
RESOURCE_TYPE.DYNAMIC_APP,
|
|
619
|
+
RESOURCE_TYPE.INDEX,
|
|
620
|
+
RESOURCE_TYPE.MENU,
|
|
621
|
+
RESOURCE_TYPE.IFRAME,
|
|
622
|
+
RESOURCE_TYPE.LINK
|
|
623
|
+
].includes(e) };
|
|
624
|
+
}), d = computed(() => !0);
|
|
625
|
+
function p(e) {
|
|
626
|
+
e.stopPropagation(), r.value.icon && (r.value.icon = void 0, Reflect.deleteProperty(c.value, "iconOptions"));
|
|
627
|
+
}
|
|
628
|
+
return (e, t) => {
|
|
629
|
+
let i = FormItem;
|
|
630
|
+
return unref(d) && unref(u).icon ? (openBlock(), createBlock(i, {
|
|
631
|
+
key: 0,
|
|
632
|
+
label: "资源图标"
|
|
633
|
+
}, {
|
|
634
|
+
default: withCtx(() => [createVNode(Select_default, {
|
|
635
|
+
modelValue: r.value.icon,
|
|
636
|
+
"onUpdate:modelValue": t[0] ||= (e) => r.value.icon = e,
|
|
637
|
+
"box-type": unref(l).boxType,
|
|
638
|
+
"onUpdate:boxType": t[1] ||= (e) => unref(l).boxType = e,
|
|
639
|
+
angle: unref(l).angle,
|
|
640
|
+
"onUpdate:angle": t[2] ||= (e) => unref(l).angle = e,
|
|
641
|
+
background: unref(l).background,
|
|
642
|
+
"onUpdate:background": t[3] ||= (e) => unref(l).background = e,
|
|
643
|
+
radius: unref(l).radius,
|
|
644
|
+
"onUpdate:radius": t[4] ||= (e) => unref(l).radius = e,
|
|
645
|
+
"icon-color": unref(l).iconColor,
|
|
646
|
+
"onUpdate:iconColor": t[5] ||= (e) => unref(l).iconColor = e,
|
|
647
|
+
"icon-size": unref(l).iconSize,
|
|
648
|
+
"onUpdate:iconSize": t[6] ||= (e) => unref(l).iconSize = e
|
|
649
|
+
}, {
|
|
650
|
+
default: withCtx(({ open: e }) => [r.value.icon ? (openBlock(), createElementBlock("div", {
|
|
651
|
+
key: 0,
|
|
652
|
+
class: "size-64px flex justify-center items-center cursor-pointer rounded-md border-px border-dashed relative group border-[#d9d9d9] dark:border-[#424242] hover:border-[#5794f7] dark:hover:border-[#5187e1] p-8px",
|
|
653
|
+
onClick: e
|
|
654
|
+
}, [unref(l).boxType && unref(l).boxType !== "null" ? (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
655
|
+
key: 0,
|
|
656
|
+
name: r.value.icon,
|
|
657
|
+
box: unref(l).boxType,
|
|
658
|
+
size: "48px",
|
|
659
|
+
radius: unref(l).radius,
|
|
660
|
+
background: unref(l).background,
|
|
661
|
+
angle: unref(l).angle,
|
|
662
|
+
"icon-size": unref(l).iconSize,
|
|
663
|
+
color: (r.value.icon || "").startsWith("antd:") ? unref(l).iconColor || "#ffffff" : void 0
|
|
664
|
+
}, null, 8, [
|
|
665
|
+
"name",
|
|
666
|
+
"box",
|
|
667
|
+
"radius",
|
|
668
|
+
"background",
|
|
669
|
+
"angle",
|
|
670
|
+
"icon-size",
|
|
671
|
+
"color"
|
|
672
|
+
])) : (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
673
|
+
key: 1,
|
|
674
|
+
name: r.value.icon,
|
|
675
|
+
size: "48px",
|
|
676
|
+
color: (r.value.icon || "").startsWith("antd:") && unref(l).iconColor || void 0
|
|
677
|
+
}, null, 8, ["name", "color"])), r.value.icon ? (openBlock(), createElementBlock("button", {
|
|
678
|
+
key: 2,
|
|
679
|
+
class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full cursor-pointer border-none op-65 dark:op-55 hover:op-100",
|
|
680
|
+
type: "button",
|
|
681
|
+
onClick: p
|
|
682
|
+
}, [createVNode(unref(PubinfoIcon), {
|
|
683
|
+
name: "antd:CloseOutlined",
|
|
684
|
+
size: "10px"
|
|
685
|
+
})])) : createCommentVNode("", !0)], 8, _hoisted_1)) : (openBlock(), createElementBlock("div", {
|
|
686
|
+
key: 1,
|
|
687
|
+
class: "size-64px flex justify-center items-center rounded-md border-px border-dashed cursor-pointer border-[#d9d9d9] dark:border-[#424242] hover:border-[#5794f7] dark:hover:border-[#5187e1] text-[#d9d9d9] dark:text-[#424242] hover:text-[#5794f7] dark:hover:text-[#5187e1] transition",
|
|
688
|
+
onClick: e
|
|
689
|
+
}, [createElementVNode("div", _hoisted_3, [createVNode(unref(PubinfoIcon), { name: "antd:PlusOutlined" }), t[7] ||= createElementVNode("span", { class: "text-10px mt-1" }, "选择图标", -1)])], 8, _hoisted_2))]),
|
|
690
|
+
_: 1
|
|
691
|
+
}, 8, [
|
|
692
|
+
"modelValue",
|
|
693
|
+
"box-type",
|
|
694
|
+
"angle",
|
|
695
|
+
"background",
|
|
696
|
+
"radius",
|
|
697
|
+
"icon-color",
|
|
698
|
+
"icon-size"
|
|
699
|
+
])]),
|
|
700
|
+
_: 1
|
|
701
|
+
})) : createCommentVNode("", !0);
|
|
702
|
+
};
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
export { IconSelect_default as t };
|