@pubinfo-nightly/module-rbac 2025.11.14
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/LICENSE +21 -0
- package/dist/ComponentSelect-ZLey_5w7.js +4 -0
- package/dist/ComponentSelect.css +1 -0
- package/dist/ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js +3981 -0
- package/dist/DynamicRoutesForm-BU4EAISs.js +4 -0
- package/dist/DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js +179 -0
- package/dist/HCheckList-Dkxhu1br.js +4 -0
- package/dist/HCheckList.vue_vue_type_script_setup_true_lang-n_QczT28.js +41 -0
- package/dist/HoverCard-7agF2aDO.js +4 -0
- package/dist/HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js +62 -0
- package/dist/IconSelect-DtNpk3Rj.js +4 -0
- package/dist/IconSelect.css +1 -0
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +757 -0
- package/dist/ImportExport-DAe_Sl13.js +4 -0
- package/dist/ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js +456 -0
- package/dist/LayoutForm-Pv6UyKl3.js +173 -0
- package/dist/LayoutForm.css +1 -0
- package/dist/MetaForm-BMPtZc0g.js +42413 -0
- package/dist/MetaForm.css +1 -0
- package/dist/OrgAndPosition-R-YixdXG.js +4 -0
- package/dist/OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js +195 -0
- package/dist/ResourceEdit-D59JUDvG.js +4 -0
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-IWn27Vz1.js +429 -0
- package/dist/ResourceRelation-CeM9Eq39.js +90 -0
- package/dist/ResourceRelation-qhIdXLAy.js +111 -0
- package/dist/ResourceRelation.css +1 -0
- package/dist/ResourceRelation2.css +1 -0
- package/dist/RoleRelation-BuqK0cnl.js +4 -0
- package/dist/RoleRelation.vue_vue_type_script_setup_true_lang-BjEOlM2g.js +93 -0
- package/dist/RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js +352 -0
- package/dist/TenantEdit-C61O1pSu.js +4 -0
- package/dist/TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js +306 -0
- package/dist/UserAuthorization-Ch_iKzms.js +273 -0
- package/dist/UserAuthorization.css +1 -0
- package/dist/UserEdit-B1fnFcSC.js +4 -0
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +315 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/add-child-B9gDBQjZ.js +4 -0
- package/dist/animation_item-BZ1HNA6o.js +4 -0
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-CmwThjHB.js +4858 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +43 -0
- package/dist/api/modules/assist/index.d.ts +3 -0
- package/dist/api/modules/assist/qunzujiekou.d.ts +43 -0
- package/dist/api/modules/assist/quyujiekou.d.ts +36 -0
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/dist/api/modules/configData/index.d.ts +3 -0
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/dist/api/modules/configData/zidifuwu.d.ts +71 -0
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/denglurizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/index.d.ts +2 -0
- package/dist/api/modules/rbac/gangweijiekou.d.ts +43 -0
- package/dist/api/modules/rbac/index.d.ts +12 -0
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +50 -0
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/dist/api/modules/rbac/yonghujiekou.d.ts +106 -0
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +43 -0
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +92 -0
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/dist/api/request.d.ts +1 -0
- package/dist/authority-B-0S66Fv.js +4 -0
- package/dist/authorize-DnyYvAo3.js +4 -0
- package/dist/blacklist-disable-DzVU8JLV.js +4 -0
- package/dist/blacklist-enable-BmWQR1i4.js +4 -0
- package/dist/browser-chrome-O9MASusF.js +4 -0
- package/dist/browser-edge-Dk6N_uRy.js +4 -0
- package/dist/browser-ie-Dtz7hQTC.js +4 -0
- package/dist/browser-other-Crzi8vov.js +4 -0
- package/dist/browser-safari-DF0pVlrn.js +4 -0
- package/dist/browserType-DQySszjD.js +4 -0
- package/dist/browserType.vue_vue_type_script_setup_true_lang-od1-AmrS.js +32 -0
- package/dist/cloneDeep-BOLZdR62.js +8 -0
- package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +7 -0
- package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -0
- package/dist/components/GroupSelector/index.vue.d.ts +15 -0
- package/dist/components/GroupSelector/interface.d.ts +6 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +68 -0
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +72 -0
- package/dist/components/OrgUserSelector/index.d.ts +9 -0
- package/dist/components/OrgUserSelector/provider.d.ts +24 -0
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +26 -0
- package/dist/components/ResourceIcones/Select.vue.d.ts +58 -0
- package/dist/components/ResourceSelector/enum.d.ts +5 -0
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +29 -0
- package/dist/components/ResourceSelector/index.vue.d.ts +24 -0
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +19 -0
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +20 -0
- package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +8 -0
- package/dist/components/RoleSelector/index.d.ts +2 -0
- package/dist/components/RoleSelector/interface.d.ts +4 -0
- package/dist/components/RoleSelector/useRole.d.ts +13 -0
- package/dist/composables/useLottie.d.ts +11 -0
- package/dist/composables/useWebSocketManager.d.ts +8 -0
- package/dist/context.d.ts +2 -0
- package/dist/createAndEditDataPermission-DPeFulie.js +4 -0
- package/dist/createAndEditDataPermission.css +1 -0
- package/dist/createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js +528 -0
- package/dist/dayjs.min-B2Yn1Frg.js +284 -0
- package/dist/drawerBlackWhiteList-eWyKScZN.js +4 -0
- package/dist/drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js +173 -0
- package/dist/drawerDictionary-BRGmcIFT.js +4 -0
- package/dist/drawerDictionary.vue_vue_type_script_setup_true_lang-0zsptmrP.js +146 -0
- package/dist/drawerDictionaryItem-CFBfyhEw.js +4 -0
- package/dist/drawerDictionaryItem.vue_vue_type_script_setup_true_lang-DeJblyyZ.js +158 -0
- package/dist/drawerGroup-Bs1Z8XPo.js +4 -0
- package/dist/drawerGroup.vue_vue_type_script_setup_true_lang-ClG-M0Ru.js +202 -0
- package/dist/drawerOrganization-Bs0YtPuo.js +4 -0
- package/dist/drawerOrganization.vue_vue_type_script_setup_true_lang-5YJaULAh.js +250 -0
- package/dist/drawerPosition-BA_gLotd.js +4 -0
- package/dist/drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js +181 -0
- package/dist/drawerRegion-CauOP4lh.js +4 -0
- package/dist/drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js +235 -0
- package/dist/drawerRole-CXGVqxPX.js +4 -0
- package/dist/drawerRole-CfJjf3v_.js +4 -0
- package/dist/drawerRole-nmMTIQYS.js +4 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js +243 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js +197 -0
- package/dist/drawerRole.vue_vue_type_script_setup_true_lang-Surpf3ov.js +191 -0
- package/dist/edit-B69fMWPH.js +4 -0
- package/dist/enum-C9ihxJe7.js +4 -0
- package/dist/enum-D5iPiZiT.js +17 -0
- package/dist/enum-DDKThkSw.js +24 -0
- package/dist/enum-DkSNwGbC.js +74 -0
- package/dist/gangweijiekou-CUGlx4Ni.js +48 -0
- package/dist/icard-C4FaIC0V.js +4 -0
- package/dist/icon_animation-CfRxn8ne.js +4 -0
- package/dist/icon_breadcrumb-CAPCH16K.js +4 -0
- package/dist/icon_copyright-T9HuRtib.js +4 -0
- package/dist/icon_jt-BZgxEG_D.js +4 -0
- package/dist/icon_layout-BynQzkfn.js +4 -0
- package/dist/icon_mainpage-Bu_lyj_6.js +4 -0
- package/dist/icon_menu-D41hl_4p.js +4 -0
- package/dist/icon_page_size-Bioi61il.js +4 -0
- package/dist/icon_position_type-QpezzPDJ.js +4 -0
- package/dist/icon_safe_manage-ByWMOnwf.js +4 -0
- package/dist/icon_screen_scale-CuPyb7Ni.js +4 -0
- package/dist/icon_system_manage-BxRLv7Nw.js +4 -0
- package/dist/icon_tabbar-CetwmJHN.js +4 -0
- package/dist/icon_toolbar-DXt_LXp8.js +4 -0
- package/dist/icon_topbar-C186yIiC.js +4 -0
- package/dist/icon_watermark-DhaloO3m.js +4 -0
- package/dist/index-B0zXLUdu.js +350 -0
- package/dist/index-B5aP0re3.js +170 -0
- package/dist/index-BEB4liGe.js +151 -0
- package/dist/index-BNwGLzXe.js +168 -0
- package/dist/index-BXvJhqJD.js +97 -0
- package/dist/index-BhZNbJp6.js +189 -0
- package/dist/index-Bm3WQuJD.js +226 -0
- package/dist/index-C2G4xRrJ.js +144 -0
- package/dist/index-C5WD-YUu.js +246 -0
- package/dist/index-CJQB8KAz.js +186 -0
- package/dist/index-CLnFLvHy.js +193 -0
- package/dist/index-CbVJdR5M.js +194 -0
- package/dist/index-ChWnVs6j.js +196 -0
- package/dist/index-CoZM8pyH.js +197 -0
- package/dist/index-Copy5kiW.js +17701 -0
- package/dist/index-D3Xw_aOi.js +144 -0
- package/dist/index-DHVEXch0.js +253 -0
- package/dist/index-DQhQqT_Z.js +269 -0
- package/dist/index-Dl0hWfIE.js +118 -0
- package/dist/index-En8oOf9e.js +168 -0
- package/dist/index-VZuizuKs.js +257 -0
- package/dist/index-XhYtVVT9.js +88 -0
- package/dist/index-iBmBJd50.js +181 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +7496 -0
- package/dist/index10.css +1 -0
- package/dist/index11.css +1 -0
- package/dist/index12.css +1 -0
- package/dist/index13.css +1 -0
- package/dist/index14.css +1 -0
- package/dist/index15.css +1 -0
- package/dist/index16.css +1 -0
- package/dist/index17.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/index8.css +1 -0
- package/dist/index9.css +1 -0
- package/dist/interface.d.ts +71 -0
- package/dist/isEmpty-BgDIb4aS.js +20 -0
- package/dist/itemlist-zTYJtoSs.js +172 -0
- package/dist/jiaosejiekou-p42Hm9h3.js +58 -0
- package/dist/log-center-Bw9UlmOq.js +4 -0
- package/dist/loginHistoryDetail-BZVwG8m2.js +105 -0
- package/dist/loginHistoryDetail.css +1 -0
- package/dist/login_history-CMZGS2PN.js +221 -0
- package/dist/login_history.css +1 -0
- package/dist/not-data-BDuvYboz.js +4 -0
- package/dist/operateHistoryDetail-Badx3zl-.js +123 -0
- package/dist/operateHistoryDetail.css +1 -0
- package/dist/operate_history-B42WNY1u.js +217 -0
- package/dist/operate_history.css +1 -0
- package/dist/org-main-DfWpX8Wv.js +4 -0
- package/dist/org-unmain-DrX63NH5.js +4 -0
- package/dist/remove-D2ES5tEr.js +4 -0
- package/dist/resource-app-1lqF6C6F.js +4 -0
- package/dist/resource-btn-Cfo6ddAY.js +4 -0
- package/dist/resource-dynamic-BAwkCWS4.js +4 -0
- package/dist/resource-index-BS4V5uy8.js +4 -0
- package/dist/resource-menu-CEWU8Iis.js +4 -0
- package/dist/resource-micro-9S0h5AlK.js +4 -0
- package/dist/resource-nonmenu-BZ9e4ynT.js +4 -0
- package/dist/routes/index.d.ts +16 -0
- package/dist/routes/modules/authority.manage.menu.d.ts +3 -0
- package/dist/routes/modules/log.manage.menu.d.ts +3 -0
- package/dist/routes/modules/safe.manage.menu.d.ts +3 -0
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +3 -0
- package/dist/routes/modules/system.manage.menu.d.ts +3 -0
- package/dist/setItem-Blb3dox4.js +87 -0
- package/dist/setItem.css +1 -0
- package/dist/setting-manage-Xj_s0OoK.js +4 -0
- package/dist/shujuquanxianzhubiaokongzhiqi-SpN37fyO.js +65 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/view.d.ts +56 -0
- package/dist/theme-check-mark-D58efagJ.js +4 -0
- package/dist/theme-title-CYUX2SBW.js +4 -0
- package/dist/useAppAndResource-DDywX2iz.js +54 -0
- package/dist/utils/dict.d.ts +6 -0
- package/dist/utils/routeSystem.d.ts +55 -0
- package/dist/utils/validateObjectStructure.d.ts +11 -0
- package/dist/vanilla-picker-BAEwS4Fy.js +536 -0
- package/dist/view-BCWU0JWM.js +4 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +14 -0
- package/dist/views/blackWhiteList/enum.d.ts +7 -0
- package/dist/views/blackWhiteList/index.vue.d.ts +1535 -0
- package/dist/views/blackWhiteList/types.d.ts +4 -0
- package/dist/views/breadcrumb_setting/animationData.d.ts +7 -0
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -0
- package/dist/views/components/HCheckList.vue.d.ts +20 -0
- package/dist/views/components/animation_item.vue.d.ts +14 -0
- package/dist/views/components/setItem.vue.d.ts +61 -0
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +172 -0
- package/dist/views/data-permission/enum.d.ts +34 -0
- package/dist/views/data-permission/index.vue.d.ts +1691 -0
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +12 -0
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +12 -0
- package/dist/views/dictionary/enum.d.ts +8 -0
- package/dist/views/dictionary/index.vue.d.ts +1532 -0
- package/dist/views/dictionary/itemlist.vue.d.ts +1532 -0
- package/dist/views/group/components/drawerGroup.vue.d.ts +12 -0
- package/dist/views/group/enum.d.ts +21 -0
- package/dist/views/group/index.vue.d.ts +1532 -0
- package/dist/views/layout_setting/index.vue.d.ts +2 -0
- package/dist/views/log_center/components/browserType.vue.d.ts +12 -0
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/login_history.vue.d.ts +1511 -0
- package/dist/views/log_center/operate_history.vue.d.ts +1511 -0
- package/dist/views/menu_setting/animationData.d.ts +13 -0
- package/dist/views/menu_setting/index.vue.d.ts +2 -0
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +12 -0
- package/dist/views/organization/components/drawerRole.vue.d.ts +44 -0
- package/dist/views/organization/enum.d.ts +25 -0
- package/dist/views/organization/index.vue.d.ts +81 -0
- package/dist/views/other_setting/animationData.d.ts +7 -0
- package/dist/views/other_setting/index.vue.d.ts +2 -0
- package/dist/views/other_setting/interface.d.ts +23 -0
- package/dist/views/page_animation_setting/animationData.d.ts +11 -0
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -0
- package/dist/views/page_w_setting/index.vue.d.ts +2 -0
- package/dist/views/position/components/drawerPosition.vue.d.ts +12 -0
- package/dist/views/position/enum.d.ts +8 -0
- package/dist/views/position/index.vue.d.ts +1532 -0
- package/dist/views/region/components/drawerRegion.vue.d.ts +12 -0
- package/dist/views/region/enum.d.ts +22 -0
- package/dist/views/region/index.vue.d.ts +1533 -0
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +14 -0
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +13 -0
- package/dist/views/resource/components/HoverCard.vue.d.ts +21 -0
- package/dist/views/resource/components/IconSelect.vue.d.ts +10 -0
- package/dist/views/resource/components/ImportExport.vue.d.ts +13 -0
- package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
- package/dist/views/resource/components/MetaForm.vue.d.ts +10 -0
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +16 -0
- package/dist/views/resource/components/RoleRelation.vue.d.ts +6 -0
- package/dist/views/resource/enum.d.ts +23 -0
- package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
- package/dist/views/resource/hooks/useMetaForm.d.ts +6 -0
- package/dist/views/resource/index.vue.d.ts +1571 -0
- package/dist/views/resource/interface.d.ts +9 -0
- package/dist/views/resource/model.d.ts +53 -0
- package/dist/views/role/components/ResourceRelation.vue.d.ts +1515 -0
- package/dist/views/role/components/drawerRole.vue.d.ts +49 -0
- package/dist/views/role/enum.d.ts +25 -0
- package/dist/views/role/index.vue.d.ts +3090 -0
- package/dist/views/role/interface.d.ts +6 -0
- package/dist/views/role_group/components/drawerRole.vue.d.ts +45 -0
- package/dist/views/role_group/enum.d.ts +21 -0
- package/dist/views/role_group/index.vue.d.ts +1565 -0
- package/dist/views/role_group/interface.d.ts +6 -0
- package/dist/views/safe_setting/index.vue.d.ts +4 -0
- package/dist/views/tabbar_setting/animationData.d.ts +11 -0
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -0
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +14 -0
- package/dist/views/tenant/enum.d.ts +7 -0
- package/dist/views/tenant/index.vue.d.ts +1534 -0
- package/dist/views/tenant/interface.d.ts +6 -0
- package/dist/views/theme_setting/index.vue.d.ts +2 -0
- package/dist/views/toolbar_setting/animationData.d.ts +15 -0
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -0
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +14 -0
- package/dist/views/user/components/UserAuthorization.vue.d.ts +47 -0
- package/dist/views/user/components/UserEdit.vue.d.ts +16 -0
- package/dist/views/user/enum.d.ts +13 -0
- package/dist/views/user/index.vue.d.ts +1594 -0
- package/dist/views/user/interface.d.ts +39 -0
- package/dist/views/watermark_setting/animationData.d.ts +3 -0
- package/dist/views/watermark_setting/index.vue.d.ts +31 -0
- package/dist/xitongpeizhifuwu-BoCbGEk7.js +23 -0
- package/dist/zddata-DQP5Kx3c.js +4 -0
- package/dist/ziyuanjiekou-BC65-bFK.js +69 -0
- package/dist/zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js +28 -0
- package/dist/zy_checked-Bb6zRsYe.js +4 -0
- package/dist/zy_default-BGjhoury.js +4 -0
- package/package.json +59 -0
- package/src/api/modules/assist/gonggaofuwu.ts +124 -0
- package/src/api/modules/assist/index.ts +3 -0
- package/src/api/modules/assist/qunzujiekou.ts +128 -0
- package/src/api/modules/assist/quyujiekou.ts +108 -0
- package/src/api/modules/assist/typings.d.ts +368 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +106 -0
- package/src/api/modules/configData/index.ts +3 -0
- package/src/api/modules/configData/typings.d.ts +357 -0
- package/src/api/modules/configData/xitongpeizhifuwu.ts +346 -0
- package/src/api/modules/configData/zidifuwu.ts +227 -0
- package/src/api/modules/log/caozuorizhifuwu.ts +43 -0
- package/src/api/modules/log/denglurizhifuwu.ts +43 -0
- package/src/api/modules/log/index.ts +2 -0
- package/src/api/modules/log/typings.d.ts +183 -0
- package/src/api/modules/rbac/gangweijiekou.ts +132 -0
- package/src/api/modules/rbac/index.ts +12 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +139 -0
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +152 -0
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +200 -0
- package/src/api/modules/rbac/typings.d.ts +2124 -0
- package/src/api/modules/rbac/yonghujiekou.ts +327 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +110 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +82 -0
- package/src/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.ts +158 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +262 -0
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +100 -0
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +85 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +189 -0
- package/src/api/request.ts +4 -0
- package/src/assets/icons/add-child.svg +1 -0
- package/src/assets/icons/authority.svg +1 -0
- package/src/assets/icons/authorize.svg +1 -0
- package/src/assets/icons/blacklist-disable.svg +1 -0
- package/src/assets/icons/blacklist-enable.svg +1 -0
- package/src/assets/icons/browser-chrome.svg +1 -0
- package/src/assets/icons/browser-edge.svg +1 -0
- package/src/assets/icons/browser-ie.svg +1 -0
- package/src/assets/icons/browser-other.svg +1 -0
- package/src/assets/icons/browser-safari.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/icard.svg +1 -0
- package/src/assets/icons/icon_animation.svg +1 -0
- package/src/assets/icons/icon_breadcrumb.svg +1 -0
- package/src/assets/icons/icon_copyright.svg +1 -0
- package/src/assets/icons/icon_jt.svg +1 -0
- package/src/assets/icons/icon_layout.svg +1 -0
- package/src/assets/icons/icon_mainpage.svg +1 -0
- package/src/assets/icons/icon_menu.svg +1 -0
- package/src/assets/icons/icon_page_size.svg +1 -0
- package/src/assets/icons/icon_position_type.svg +1 -0
- package/src/assets/icons/icon_safe_manage.svg +1 -0
- package/src/assets/icons/icon_screen_scale.svg +6 -0
- package/src/assets/icons/icon_system_manage.svg +1 -0
- package/src/assets/icons/icon_tabbar.svg +1 -0
- package/src/assets/icons/icon_toolbar.svg +1 -0
- package/src/assets/icons/icon_topbar.svg +1 -0
- package/src/assets/icons/icon_watermark.svg +1 -0
- package/src/assets/icons/log-center.svg +1 -0
- package/src/assets/icons/not-data.svg +1 -0
- package/src/assets/icons/org-main.svg +1 -0
- package/src/assets/icons/org-unmain.svg +1 -0
- package/src/assets/icons/remove.svg +1 -0
- package/src/assets/icons/resource-app.svg +1 -0
- package/src/assets/icons/resource-btn.svg +1 -0
- package/src/assets/icons/resource-dynamic.svg +39 -0
- package/src/assets/icons/resource-index.svg +1 -0
- package/src/assets/icons/resource-menu.svg +1 -0
- package/src/assets/icons/resource-micro.svg +40 -0
- package/src/assets/icons/resource-nonmenu.svg +1 -0
- package/src/assets/icons/setting-manage.svg +1 -0
- package/src/assets/icons/theme-check-mark.svg +1 -0
- package/src/assets/icons/theme-title.svg +1 -0
- package/src/assets/icons/view.svg +1 -0
- package/src/assets/icons/zddata.svg +1 -0
- package/src/assets/icons/zy_checked.svg +1 -0
- package/src/assets/icons/zy_default.svg +1 -0
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/assets/lottie/breadcrumb/dark/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/style.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/light/style.json +1 -0
- package/src/assets/lottie/layout/data-test.json +1 -0
- package/src/assets/lottie/layout/data.json +1 -0
- package/src/assets/lottie/menu/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/dark/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/dark/isRounded.json +1 -0
- package/src/assets/lottie/menu/dark/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/menu/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/light/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/light/isRounded.json +1 -0
- package/src/assets/lottie/menu/light/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/light/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/light/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/other/dark/enableCopyright.json +1 -0
- package/src/assets/lottie/other/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/dark/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/other/light/enableCopyright.json +1 -0
- package/src/assets/lottie/other/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/light/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop_old.json +1 -0
- package/src/assets/lottie/page_animation/light/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/light/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/light/toleft.json +1 -0
- package/src/assets/lottie/page_animation/light/toright.json +1 -0
- package/src/assets/lottie/page_animation/light/totop.json +1 -0
- package/src/assets/lottie/tabbar/dark/enable.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/dark/style.json +1 -0
- package/src/assets/lottie/tabbar/light/enable.json +1 -0
- package/src/assets/lottie/tabbar/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/light/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/light/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/light/style.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/dark/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/toolbar/light/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/light/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/light/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/light/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/light/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/light/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/watermark/dark/enableWatermark.json +1 -0
- package/src/assets/lottie/watermark/light/enableWatermark.json +1 -0
- package/src/assets/styles/vxe-table.css +13 -0
- package/src/components/DirectoryIcones/ComponentsIcones.vue +18 -0
- package/src/components/DirectoryIcones/FolderIcones.vue +18 -0
- package/src/components/DirectoryIcones/ModuleIcones.vue +18 -0
- package/src/components/DirectoryIcones/PackagesIcones.vue +18 -0
- package/src/components/DirectoryIcones/SrcIcones.vue +18 -0
- package/src/components/DirectoryIcones/ViewIcones.vue +18 -0
- package/src/components/DirectoryIcones/VueIcones.vue +9 -0
- package/src/components/GroupSelector/index.vue +280 -0
- package/src/components/GroupSelector/interface.ts +6 -0
- package/src/components/JsonEditorModal/index.vue +59 -0
- package/src/components/OrgTree/index.vue +91 -0
- package/src/components/OrgUserSelector/OrgSelector.vue +135 -0
- package/src/components/OrgUserSelector/UserSelector.vue +164 -0
- package/src/components/OrgUserSelector/index.ts +52 -0
- package/src/components/OrgUserSelector/provider.ts +373 -0
- package/src/components/ResourceIcones/BoxColorPicker.vue +228 -0
- package/src/components/ResourceIcones/Select.vue +474 -0
- package/src/components/ResourceSelector/enum.ts +5 -0
- package/src/components/ResourceSelector/hooks/useAppAndResource.ts +96 -0
- package/src/components/ResourceSelector/index.vue +414 -0
- package/src/components/RoleSelector/RoleSearch.vue +60 -0
- package/src/components/RoleSelector/RoleSelector.vue +174 -0
- package/src/components/RoleSelector/TooltipLabel.vue +24 -0
- package/src/components/RoleSelector/index.ts +2 -0
- package/src/components/RoleSelector/interface.ts +4 -0
- package/src/components/RoleSelector/useRole.ts +56 -0
- package/src/composables/useLottie.ts +65 -0
- package/src/composables/useWebSocketManager.ts +103 -0
- package/src/context.ts +4 -0
- package/src/index.ts +51 -0
- package/src/interface.ts +83 -0
- package/src/routes/index.ts +160 -0
- package/src/routes/modules/authority.manage.menu.ts +92 -0
- package/src/routes/modules/log.manage.menu.ts +37 -0
- package/src/routes/modules/safe.manage.menu.ts +59 -0
- package/src/routes/modules/stylesetting.manage.menu.ts +114 -0
- package/src/routes/modules/system.manage.menu.ts +82 -0
- package/src/stores/index.ts +1 -0
- package/src/stores/view.ts +292 -0
- package/src/utils/dict.ts +21 -0
- package/src/utils/routeSystem.ts +53 -0
- package/src/utils/validateObjectStructure.ts +47 -0
- package/src/views/blackWhiteList/components/drawerBlackWhiteList.vue +132 -0
- package/src/views/blackWhiteList/enum.ts +7 -0
- package/src/views/blackWhiteList/index.vue +297 -0
- package/src/views/blackWhiteList/types.ts +4 -0
- package/src/views/breadcrumb_setting/animationData.ts +15 -0
- package/src/views/breadcrumb_setting/index.vue +147 -0
- package/src/views/components/HCheckList.vue +47 -0
- package/src/views/components/animation_item.vue +37 -0
- package/src/views/components/setItem.vue +119 -0
- package/src/views/data-permission/components/createAndEditDataPermission.vue +354 -0
- package/src/views/data-permission/enum.ts +59 -0
- package/src/views/data-permission/index.vue +187 -0
- package/src/views/dictionary/components/drawerDictionary.vue +108 -0
- package/src/views/dictionary/components/drawerDictionaryItem.vue +115 -0
- package/src/views/dictionary/enum.ts +8 -0
- package/src/views/dictionary/index.vue +194 -0
- package/src/views/dictionary/itemlist.vue +164 -0
- package/src/views/group/components/drawerGroup.vue +177 -0
- package/src/views/group/enum.ts +25 -0
- package/src/views/group/index.vue +202 -0
- package/src/views/layout_setting/index.vue +296 -0
- package/src/views/log_center/components/browserType.vue +35 -0
- package/src/views/log_center/components/loginHistoryDetail.vue +69 -0
- package/src/views/log_center/components/operateHistoryDetail.vue +78 -0
- package/src/views/log_center/login_history.vue +234 -0
- package/src/views/log_center/operate_history.vue +228 -0
- package/src/views/menu_setting/animationData.ts +27 -0
- package/src/views/menu_setting/index.vue +207 -0
- package/src/views/organization/components/drawerOrganization.vue +161 -0
- package/src/views/organization/components/drawerRole.vue +161 -0
- package/src/views/organization/enum.ts +26 -0
- package/src/views/organization/index.vue +497 -0
- package/src/views/other_setting/animationData.ts +15 -0
- package/src/views/other_setting/index.vue +250 -0
- package/src/views/other_setting/interface.ts +26 -0
- package/src/views/page_animation_setting/animationData.ts +23 -0
- package/src/views/page_animation_setting/index.vue +192 -0
- package/src/views/page_w_setting/index.vue +255 -0
- package/src/views/position/components/drawerPosition.vue +131 -0
- package/src/views/position/enum.ts +8 -0
- package/src/views/position/index.vue +167 -0
- package/src/views/region/components/drawerRegion.vue +143 -0
- package/src/views/region/enum.ts +24 -0
- package/src/views/region/index.vue +246 -0
- package/src/views/resource/components/ComponentSelect.vue +303 -0
- package/src/views/resource/components/DynamicRoutesForm.vue +84 -0
- package/src/views/resource/components/HoverCard.vue +62 -0
- package/src/views/resource/components/IconSelect.vue +188 -0
- package/src/views/resource/components/ImportExport.vue +313 -0
- package/src/views/resource/components/LayoutForm.vue +92 -0
- package/src/views/resource/components/MetaForm.vue +216 -0
- package/src/views/resource/components/ResourceEdit.vue +331 -0
- package/src/views/resource/components/RoleRelation.vue +100 -0
- package/src/views/resource/enum.ts +33 -0
- package/src/views/resource/hooks/useLayoutForm.ts +57 -0
- package/src/views/resource/hooks/useMetaForm.ts +130 -0
- package/src/views/resource/index.vue +261 -0
- package/src/views/resource/interface.ts +10 -0
- package/src/views/resource/model.ts +81 -0
- package/src/views/role/components/ResourceRelation.vue +112 -0
- package/src/views/role/components/drawerRole.vue +191 -0
- package/src/views/role/enum.ts +26 -0
- package/src/views/role/index.vue +183 -0
- package/src/views/role/interface.ts +6 -0
- package/src/views/role_group/components/ResourceRelation.vue +90 -0
- package/src/views/role_group/components/drawerRole.vue +154 -0
- package/src/views/role_group/enum.ts +22 -0
- package/src/views/role_group/index.vue +170 -0
- package/src/views/role_group/interface.ts +6 -0
- package/src/views/safe_setting/index.vue +235 -0
- package/src/views/tabbar_setting/animationData.ts +23 -0
- package/src/views/tabbar_setting/index.vue +186 -0
- package/src/views/tenant/components/TenantEdit.vue +219 -0
- package/src/views/tenant/enum.ts +7 -0
- package/src/views/tenant/index.vue +185 -0
- package/src/views/tenant/interface.ts +4 -0
- package/src/views/theme_setting/index.vue +436 -0
- package/src/views/toolbar_setting/animationData.ts +38 -0
- package/src/views/toolbar_setting/index.vue +176 -0
- package/src/views/user/components/OrgAndPosition.vue +156 -0
- package/src/views/user/components/UserAuthorization.vue +261 -0
- package/src/views/user/components/UserEdit.vue +267 -0
- package/src/views/user/enum.ts +13 -0
- package/src/views/user/index.vue +266 -0
- package/src/views/user/interface.ts +43 -0
- package/src/views/watermark_setting/animationData.ts +7 -0
- package/src/views/watermark_setting/index.vue +229 -0
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
import { Input as ue, InputNumber as _e, Tooltip as he, FormItemRest as we, Modal as Ce, Pagination as ze, Empty as Ie, RadioGroup as Se, RadioButton as Re, Button as $e, FormItem as Me } from "ant-design-vue/es";
|
|
2
|
+
import { defineComponent as ne, ref as b, watch as R, createElementBlock as C, openBlock as x, createElementVNode as l, createVNode as u, withCtx as v, normalizeStyle as le, normalizeClass as W, useModel as U, computed as z, Fragment as X, renderSlot as Pe, unref as a, createCommentVNode as q, renderList as re, toDisplayString as H, createBlock as T, createTextVNode as J, reactive as je } from "vue";
|
|
3
|
+
import { getAllIconModules as Ee, PubinfoIcon as h, RESOURCE_TYPE as L } from "pubinfo-nightly";
|
|
4
|
+
import * as Ne from "@ant-design/icons-vue";
|
|
5
|
+
import { Empty as Ue } from "ant-design-vue";
|
|
6
|
+
import { _ as Fe } from "./index.js";
|
|
7
|
+
import "./enum-D5iPiZiT.js";
|
|
8
|
+
import './IconSelect.css';const Oe = { class: "flex flex-col gap-3 w-full select-none" }, Ae = { class: "flex items-center gap-3" }, Te = { class: "relative inline-flex items-center" }, Ve = ["disabled"], Be = ["value", "disabled"], De = { class: "flex items-center gap-3" }, Le = { class: "relative inline-flex items-center" }, We = ["disabled"], qe = ["value", "disabled"], Ge = { class: "flex items-center gap-3" }, Ye = { class: "flex items-center gap-3" }, Ke = { class: "flex items-center gap-3" }, Xe = /* @__PURE__ */ ne({
|
|
9
|
+
name: "ResourceIconesBoxColorPicker",
|
|
10
|
+
__name: "BoxColorPicker",
|
|
11
|
+
props: {
|
|
12
|
+
angle: {},
|
|
13
|
+
background: {},
|
|
14
|
+
radius: {},
|
|
15
|
+
iconSize: {},
|
|
16
|
+
disabled: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:angle", "update:background", "update:radius", "update:iconSize"],
|
|
19
|
+
setup(I, { emit: p }) {
|
|
20
|
+
const c = I, k = p;
|
|
21
|
+
function d(e) {
|
|
22
|
+
if (typeof e == "number" && Number.isFinite(e))
|
|
23
|
+
return (e % 360 + 360) % 360;
|
|
24
|
+
if (typeof e == "string") {
|
|
25
|
+
const o = Number.parseFloat(e);
|
|
26
|
+
if (Number.isFinite(o))
|
|
27
|
+
return (o % 360 + 360) % 360;
|
|
28
|
+
}
|
|
29
|
+
return 65;
|
|
30
|
+
}
|
|
31
|
+
function M(e) {
|
|
32
|
+
return e ? typeof e == "string" ? { from: e, to: e } : { from: e.from, to: e.to } : { from: "#65E54A", to: "#35C724" };
|
|
33
|
+
}
|
|
34
|
+
function P(e) {
|
|
35
|
+
if (typeof e == "string" && e.trim().endsWith("%")) {
|
|
36
|
+
const o = Number.parseFloat(e);
|
|
37
|
+
if (Number.isFinite(o))
|
|
38
|
+
return f(o);
|
|
39
|
+
}
|
|
40
|
+
if (typeof e == "number" && Number.isFinite(e))
|
|
41
|
+
return f(e);
|
|
42
|
+
if (typeof e == "string") {
|
|
43
|
+
const o = Number.parseFloat(e);
|
|
44
|
+
if (Number.isFinite(o))
|
|
45
|
+
return f(o);
|
|
46
|
+
}
|
|
47
|
+
return 50;
|
|
48
|
+
}
|
|
49
|
+
function j(e) {
|
|
50
|
+
if (typeof e == "string" && e.trim().endsWith("%")) {
|
|
51
|
+
const o = Number.parseFloat(e);
|
|
52
|
+
if (Number.isFinite(o))
|
|
53
|
+
return s(o);
|
|
54
|
+
}
|
|
55
|
+
if (typeof e == "number" && Number.isFinite(e))
|
|
56
|
+
return s(e);
|
|
57
|
+
if (typeof e == "string") {
|
|
58
|
+
const o = Number.parseFloat(e);
|
|
59
|
+
if (Number.isFinite(o))
|
|
60
|
+
return s(o);
|
|
61
|
+
}
|
|
62
|
+
return 50;
|
|
63
|
+
}
|
|
64
|
+
function f(e) {
|
|
65
|
+
return Math.min(50, Math.max(0, e));
|
|
66
|
+
}
|
|
67
|
+
function s(e) {
|
|
68
|
+
return Math.min(100, Math.max(0, e));
|
|
69
|
+
}
|
|
70
|
+
const _ = M(c.background), i = b(_.from), y = b(_.to), S = b(d(c.angle)), g = b(P(c.radius)), E = b(j(c.iconSize)), N = b(null), V = b(null);
|
|
71
|
+
function G() {
|
|
72
|
+
if (c.disabled)
|
|
73
|
+
return;
|
|
74
|
+
const e = N.value;
|
|
75
|
+
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
76
|
+
}
|
|
77
|
+
function Z() {
|
|
78
|
+
if (c.disabled)
|
|
79
|
+
return;
|
|
80
|
+
const e = V.value;
|
|
81
|
+
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
82
|
+
}
|
|
83
|
+
return R([i, y, S, g], () => {
|
|
84
|
+
k("update:background", { from: i.value, to: y.value }), k("update:angle", S.value), k("update:radius", `${g.value}%`);
|
|
85
|
+
}, { immediate: !0 }), R(E, () => {
|
|
86
|
+
k("update:iconSize", `${E.value}%`);
|
|
87
|
+
}, { immediate: !0 }), R(() => c.background, (e) => {
|
|
88
|
+
if (e == null)
|
|
89
|
+
return;
|
|
90
|
+
const o = M(e);
|
|
91
|
+
i.value = o.from, y.value = o.to;
|
|
92
|
+
}), R(() => c.angle, (e) => {
|
|
93
|
+
e != null && (S.value = d(e));
|
|
94
|
+
}), R(() => c.radius, (e) => {
|
|
95
|
+
e != null && (g.value = P(e));
|
|
96
|
+
}), R(() => c.iconSize, (e) => {
|
|
97
|
+
e != null && (E.value = j(e));
|
|
98
|
+
}), (e, o) => {
|
|
99
|
+
const Y = ue, B = _e;
|
|
100
|
+
return x(), C("div", Oe, [
|
|
101
|
+
l("div", Ae, [
|
|
102
|
+
o[7] || (o[7] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "起始色", -1)),
|
|
103
|
+
u(Y, {
|
|
104
|
+
value: i.value,
|
|
105
|
+
"onUpdate:value": o[1] || (o[1] = (m) => i.value = m),
|
|
106
|
+
disabled: c.disabled,
|
|
107
|
+
placeholder: "#65E54A",
|
|
108
|
+
size: "small",
|
|
109
|
+
class: "flex-1 min-w-0"
|
|
110
|
+
}, {
|
|
111
|
+
prefix: v(() => [
|
|
112
|
+
l("div", Te, [
|
|
113
|
+
l("button", {
|
|
114
|
+
type: "button",
|
|
115
|
+
disabled: c.disabled,
|
|
116
|
+
class: W(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", c.disabled ? "opacity-50 cursor-not-allowed" : ""]),
|
|
117
|
+
style: le({ background: i.value }),
|
|
118
|
+
onClick: G
|
|
119
|
+
}, null, 14, Ve),
|
|
120
|
+
l("input", {
|
|
121
|
+
ref_key: "fromColorPickerRef",
|
|
122
|
+
ref: N,
|
|
123
|
+
type: "color",
|
|
124
|
+
value: i.value,
|
|
125
|
+
disabled: c.disabled,
|
|
126
|
+
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
127
|
+
style: { width: "16px", height: "16px" },
|
|
128
|
+
onInput: o[0] || (o[0] = (m) => i.value = m.target.value)
|
|
129
|
+
}, null, 40, Be)
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["value", "disabled"])
|
|
134
|
+
]),
|
|
135
|
+
l("div", De, [
|
|
136
|
+
o[8] || (o[8] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "结束色", -1)),
|
|
137
|
+
u(Y, {
|
|
138
|
+
value: y.value,
|
|
139
|
+
"onUpdate:value": o[3] || (o[3] = (m) => y.value = m),
|
|
140
|
+
disabled: c.disabled,
|
|
141
|
+
placeholder: "#35C724",
|
|
142
|
+
size: "small",
|
|
143
|
+
class: "flex-1 min-w-0"
|
|
144
|
+
}, {
|
|
145
|
+
prefix: v(() => [
|
|
146
|
+
l("div", Le, [
|
|
147
|
+
l("button", {
|
|
148
|
+
type: "button",
|
|
149
|
+
disabled: c.disabled,
|
|
150
|
+
class: W(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", c.disabled ? "opacity-50 cursor-not-allowed" : ""]),
|
|
151
|
+
style: le({ background: y.value }),
|
|
152
|
+
onClick: Z
|
|
153
|
+
}, null, 14, We),
|
|
154
|
+
l("input", {
|
|
155
|
+
ref_key: "toColorPickerRef",
|
|
156
|
+
ref: V,
|
|
157
|
+
type: "color",
|
|
158
|
+
value: y.value,
|
|
159
|
+
disabled: c.disabled,
|
|
160
|
+
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
161
|
+
style: { width: "16px", height: "16px" },
|
|
162
|
+
onInput: o[2] || (o[2] = (m) => y.value = m.target.value)
|
|
163
|
+
}, null, 40, qe)
|
|
164
|
+
])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["value", "disabled"])
|
|
168
|
+
]),
|
|
169
|
+
l("div", Ge, [
|
|
170
|
+
o[9] || (o[9] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "角度", -1)),
|
|
171
|
+
u(B, {
|
|
172
|
+
value: S.value,
|
|
173
|
+
"onUpdate:value": o[4] || (o[4] = (m) => S.value = m),
|
|
174
|
+
disabled: c.disabled,
|
|
175
|
+
min: 0,
|
|
176
|
+
max: 360,
|
|
177
|
+
step: 1,
|
|
178
|
+
size: "small",
|
|
179
|
+
class: "w-28"
|
|
180
|
+
}, null, 8, ["value", "disabled"]),
|
|
181
|
+
o[10] || (o[10] = l("span", { class: "text-12px opacity-70" }, "deg", -1))
|
|
182
|
+
]),
|
|
183
|
+
l("div", Ye, [
|
|
184
|
+
o[11] || (o[11] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "圆角", -1)),
|
|
185
|
+
u(B, {
|
|
186
|
+
value: g.value,
|
|
187
|
+
"onUpdate:value": o[5] || (o[5] = (m) => g.value = m),
|
|
188
|
+
disabled: c.disabled,
|
|
189
|
+
min: 0,
|
|
190
|
+
max: 50,
|
|
191
|
+
step: 1,
|
|
192
|
+
size: "small",
|
|
193
|
+
class: "w-28"
|
|
194
|
+
}, null, 8, ["value", "disabled"]),
|
|
195
|
+
o[12] || (o[12] = l("span", { class: "text-12px opacity-70" }, "%", -1))
|
|
196
|
+
]),
|
|
197
|
+
l("div", Ke, [
|
|
198
|
+
o[13] || (o[13] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "图标大小", -1)),
|
|
199
|
+
u(B, {
|
|
200
|
+
value: E.value,
|
|
201
|
+
"onUpdate:value": o[6] || (o[6] = (m) => E.value = m),
|
|
202
|
+
disabled: c.disabled,
|
|
203
|
+
min: 0,
|
|
204
|
+
max: 100,
|
|
205
|
+
step: 1,
|
|
206
|
+
size: "small",
|
|
207
|
+
class: "w-28"
|
|
208
|
+
}, null, 8, ["value", "disabled"]),
|
|
209
|
+
o[14] || (o[14] = l("span", { class: "text-12px opacity-70" }, "%", -1))
|
|
210
|
+
])
|
|
211
|
+
]);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}), He = { class: "flex gap-4 min-h-[600px]" }, Je = { class: "w-58 flex flex-col border-r border-[#e5e7eb] dark:border-[#30363d] pr-3" }, Qe = { class: "mb-3" }, Ze = { class: "flex-1 overflow-auto space-y-1 pr-1" }, et = ["onClick"], tt = { class: "truncate max-w-[120px]" }, ot = { 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]" }, lt = { class: "flex-1 flex flex-col min-w-0" }, nt = { class: "grid grid-cols-6 gap-3 auto-rows-[96px] overflow-auto flex-1 p-1" }, at = { class: "text-12px leading-tight space-y-1" }, st = { class: "font-medium" }, it = {
|
|
215
|
+
key: 0,
|
|
216
|
+
class: "opacity-70"
|
|
217
|
+
}, rt = ["onClick"], ut = { class: "mt-4 flex justify-center select-none" }, dt = {
|
|
218
|
+
key: 1,
|
|
219
|
+
class: "flex-1 flex items-center justify-center"
|
|
220
|
+
}, ct = {
|
|
221
|
+
key: 0,
|
|
222
|
+
class: "relative w-60 flex flex-col border-l border-[#e5e7eb] dark:border-[#30363d] pl-4 min-h-0"
|
|
223
|
+
}, ft = { 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" }, pt = { class: "shrink-0 flex justify-center items-center pb-4 border-b border-b-dashed border-b-[#d0d7de] dark:border-b-[#30363d]" }, vt = { class: "w-8 h-8 flex justify-center items-center" }, mt = { class: "w-8 h-8 flex justify-center items-center" }, bt = { class: "w-8 h-8 flex justify-center items-center" }, xt = { class: "flex-1 w-full mt-3 px-2 overflow-auto space-y-3" }, gt = { class: "flex flex-col justify-start w-full opacity-100" }, yt = { class: "flex items-center gap-3 mb-0! w-full flex-col" }, kt = { class: "flex" }, _t = { class: "text-12px opacity-70 w-14 shrink-0 flex items-center" }, ht = { class: "flex flex-col" }, wt = { class: "relative inline-flex items-center" }, Ct = ["disabled"], zt = ["value", "disabled"], It = { class: "w-full mt-auto flex aspect-square" }, St = { 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" }, Rt = {
|
|
224
|
+
key: 0,
|
|
225
|
+
class: "w-full h-full flex items-center justify-center"
|
|
226
|
+
}, $t = { class: "mt-4 flex justify-end gap-2" }, Q = 30, oe = 24, Mt = 4, Pt = /* @__PURE__ */ ne({
|
|
227
|
+
name: "ResourceIconesSelect",
|
|
228
|
+
__name: "Select",
|
|
229
|
+
props: {
|
|
230
|
+
modelValue: {},
|
|
231
|
+
modelModifiers: {},
|
|
232
|
+
boxType: { default: "null" },
|
|
233
|
+
boxTypeModifiers: {},
|
|
234
|
+
angle: { default: 65 },
|
|
235
|
+
angleModifiers: {},
|
|
236
|
+
background: { default: { from: "#65E54A", to: "#35C724" } },
|
|
237
|
+
backgroundModifiers: {},
|
|
238
|
+
radius: { default: "50%" },
|
|
239
|
+
radiusModifiers: {},
|
|
240
|
+
iconColor: { default: "" },
|
|
241
|
+
iconColorModifiers: {},
|
|
242
|
+
iconSize: { default: "50%" },
|
|
243
|
+
iconSizeModifiers: {}
|
|
244
|
+
},
|
|
245
|
+
emits: ["update:modelValue", "update:boxType", "update:angle", "update:background", "update:radius", "update:iconColor", "update:iconSize"],
|
|
246
|
+
setup(I) {
|
|
247
|
+
const p = U(I, "modelValue"), c = U(I, "boxType"), k = U(I, "angle"), d = U(I, "background"), M = U(I, "radius"), P = U(I, "iconColor"), j = U(I, "iconSize"), f = b(p.value), s = b(c.value || "null"), _ = b(k.value ?? 65), i = b(d.value ?? { from: "#65E54A", to: "#35C724" }), y = b(M.value ?? "50%"), S = b(j.value ?? "50%"), g = b(P.value ?? ""), E = b(null), N = b(!1);
|
|
248
|
+
function V() {
|
|
249
|
+
f.value = p.value, s.value = c.value || "null", _.value = k.value ?? 65;
|
|
250
|
+
const t = d.value;
|
|
251
|
+
i.value = typeof t == "string" ? t : t ? { ...t } : { from: "#65E54A", to: "#35C724" }, y.value = M.value ?? "50%", S.value = j.value ?? "50%", g.value = P.value ?? "", N.value = !0;
|
|
252
|
+
}
|
|
253
|
+
function G() {
|
|
254
|
+
N.value = !1;
|
|
255
|
+
}
|
|
256
|
+
function Z() {
|
|
257
|
+
p.value = f.value, c.value = s.value, k.value = _.value;
|
|
258
|
+
const t = i.value;
|
|
259
|
+
d.value = typeof t == "string" ? t : t && { ...t }, M.value = y.value, j.value = S.value, P.value = g.value, N.value = !1;
|
|
260
|
+
}
|
|
261
|
+
function e(t) {
|
|
262
|
+
return (t.split(/[\\/]/).pop() || t).replace(/\.(svg|png|jpe?g)$/i, "");
|
|
263
|
+
}
|
|
264
|
+
const o = z(() => {
|
|
265
|
+
const t = /* @__PURE__ */ new Map(), n = Ee();
|
|
266
|
+
for (const [$, w] of n.entries()) {
|
|
267
|
+
const ee = Object.keys(w).map(e).sort();
|
|
268
|
+
t.set($, ee);
|
|
269
|
+
}
|
|
270
|
+
return t;
|
|
271
|
+
}), Y = z(
|
|
272
|
+
() => Object.keys(Ne).filter((t) => /(?:Outlined|Filled|TwoTone)$/.test(t)).map((t) => `antd:${t}`).sort()
|
|
273
|
+
), B = z(() => {
|
|
274
|
+
const t = Array.from(o.value.keys()), n = t.includes("local"), $ = t.filter((w) => w !== "local").sort();
|
|
275
|
+
return [
|
|
276
|
+
{ label: "全部", value: "all" },
|
|
277
|
+
...n ? [{ label: "本地", value: "local" }] : [],
|
|
278
|
+
...$.map((w) => ({ label: w, value: w })),
|
|
279
|
+
{ label: "Ant Design", value: "antd" }
|
|
280
|
+
];
|
|
281
|
+
}), m = b("all"), K = b(""), F = z(() => {
|
|
282
|
+
const t = [];
|
|
283
|
+
for (const [n, $] of o.value.entries())
|
|
284
|
+
$.forEach((w) => {
|
|
285
|
+
n === "local" ? t.push({ name: w, module: n }) : t.push({ name: `${n}-[${w}]`, module: n });
|
|
286
|
+
});
|
|
287
|
+
return Y.value.forEach((n) => t.push({ name: n, module: "antd" })), t;
|
|
288
|
+
}), ae = z(() => m.value === "all" ? F.value : m.value === "antd" ? F.value.filter((t) => t.module === "antd") : F.value.filter((t) => t.module === m.value)), D = z(() => {
|
|
289
|
+
const t = K.value.trim().toLowerCase();
|
|
290
|
+
return t ? ae.value.filter((n) => n.name.toLowerCase().includes(t)) : ae.value;
|
|
291
|
+
});
|
|
292
|
+
function de(t) {
|
|
293
|
+
return t === "all" ? F.value.length : t === "antd" ? F.value.filter((n) => n.module === "antd").length : F.value.filter((n) => n.module === t).length;
|
|
294
|
+
}
|
|
295
|
+
const O = b(1), se = z(() => Math.max(1, Math.ceil(D.value.length / Q))), ce = z(() => {
|
|
296
|
+
const t = (O.value - 1) * Q;
|
|
297
|
+
return D.value.slice(t, t + Q);
|
|
298
|
+
});
|
|
299
|
+
R([K, m], () => {
|
|
300
|
+
O.value = 1;
|
|
301
|
+
}), R(D, () => {
|
|
302
|
+
O.value > se.value && (O.value = se.value);
|
|
303
|
+
});
|
|
304
|
+
function fe(t) {
|
|
305
|
+
O.value = t;
|
|
306
|
+
}
|
|
307
|
+
function pe(t) {
|
|
308
|
+
f.value = t.name;
|
|
309
|
+
}
|
|
310
|
+
const ve = Ue.PRESENTED_IMAGE_SIMPLE;
|
|
311
|
+
function me() {
|
|
312
|
+
if (!(f.value || "").startsWith("antd:"))
|
|
313
|
+
return;
|
|
314
|
+
const t = E.value;
|
|
315
|
+
t && (t.style.width = "16px", t.style.height = "16px", t.click());
|
|
316
|
+
}
|
|
317
|
+
const A = z(() => (f.value || "").startsWith("antd:"));
|
|
318
|
+
return R(s, (t, n) => {
|
|
319
|
+
n === "null" && t !== "null" && !g.value && (g.value = "#ffffff");
|
|
320
|
+
}), (t, n) => {
|
|
321
|
+
const $ = he, w = ue, ee = ze, be = Ie, te = Re, xe = Se, ie = $e, ge = Ce, ye = we;
|
|
322
|
+
return x(), C(X, null, [
|
|
323
|
+
Pe(t.$slots, "default", { open: V }, () => [
|
|
324
|
+
u(w, {
|
|
325
|
+
value: p.value,
|
|
326
|
+
readonly: "",
|
|
327
|
+
onClick: V
|
|
328
|
+
}, {
|
|
329
|
+
addonAfter: v(() => [
|
|
330
|
+
u($, null, {
|
|
331
|
+
title: v(() => [
|
|
332
|
+
u(a(h), {
|
|
333
|
+
name: p.value || "",
|
|
334
|
+
size: "40px",
|
|
335
|
+
class: "cursor-default"
|
|
336
|
+
}, null, 8, ["name"])
|
|
337
|
+
]),
|
|
338
|
+
default: v(() => [
|
|
339
|
+
u(a(h), {
|
|
340
|
+
name: p.value || "",
|
|
341
|
+
size: "20px",
|
|
342
|
+
class: "cursor-default"
|
|
343
|
+
}, null, 8, ["name"])
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
})
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
}, 8, ["value"])
|
|
350
|
+
], !0),
|
|
351
|
+
u(ye, null, {
|
|
352
|
+
default: v(() => [
|
|
353
|
+
u(ge, {
|
|
354
|
+
open: N.value,
|
|
355
|
+
"onUpdate:open": n[8] || (n[8] = (r) => N.value = r),
|
|
356
|
+
title: "选择图标",
|
|
357
|
+
width: "1200px",
|
|
358
|
+
footer: null,
|
|
359
|
+
"destroy-on-close": "",
|
|
360
|
+
onCancel: G
|
|
361
|
+
}, {
|
|
362
|
+
default: v(() => [
|
|
363
|
+
l("div", He, [
|
|
364
|
+
l("div", Je, [
|
|
365
|
+
l("div", Qe, [
|
|
366
|
+
u(w, {
|
|
367
|
+
value: K.value,
|
|
368
|
+
"onUpdate:value": n[0] || (n[0] = (r) => K.value = r),
|
|
369
|
+
"allow-clear": "",
|
|
370
|
+
bordered: !0,
|
|
371
|
+
placeholder: "搜索图标",
|
|
372
|
+
class: "h-9 text-13px"
|
|
373
|
+
}, {
|
|
374
|
+
prefix: v(() => [
|
|
375
|
+
u(a(h), {
|
|
376
|
+
name: "i-carbon-search",
|
|
377
|
+
size: "16",
|
|
378
|
+
class: "text-[#7a869a]"
|
|
379
|
+
})
|
|
380
|
+
]),
|
|
381
|
+
_: 1
|
|
382
|
+
}, 8, ["value"])
|
|
383
|
+
]),
|
|
384
|
+
l("div", Ze, [
|
|
385
|
+
(x(!0), C(X, null, re(B.value, (r) => (x(), C("div", {
|
|
386
|
+
key: r.value,
|
|
387
|
+
class: W(["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", m.value === r.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
|
|
388
|
+
onClick: (ke) => m.value = r.value
|
|
389
|
+
}, [
|
|
390
|
+
l("span", tt, H(r.label), 1),
|
|
391
|
+
l("span", ot, H(de(r.value)), 1)
|
|
392
|
+
], 10, et))), 128))
|
|
393
|
+
])
|
|
394
|
+
]),
|
|
395
|
+
l("div", lt, [
|
|
396
|
+
D.value.length ? (x(), C(X, { key: 0 }, [
|
|
397
|
+
l("div", nt, [
|
|
398
|
+
(x(!0), C(X, null, re(ce.value, (r) => (x(), T($, {
|
|
399
|
+
key: `${r.module || ""}:${r.name}`,
|
|
400
|
+
"mouse-enter-delay": 0.35
|
|
401
|
+
}, {
|
|
402
|
+
title: v(() => [
|
|
403
|
+
l("div", at, [
|
|
404
|
+
l("div", st, H(r.name), 1),
|
|
405
|
+
r.module ? (x(), C("div", it, " 模块: " + H(r.module), 1)) : q("", !0)
|
|
406
|
+
])
|
|
407
|
+
]),
|
|
408
|
+
default: v(() => [
|
|
409
|
+
l("div", {
|
|
410
|
+
class: W(["group relative flex flex-col items-center justify-center cursor-pointer rounded-md border", f.value === r.name ? "border-solid border-[#1677ff]" : "border-dashed border-[#e5e7eb] dark:border-[#30363d]"]),
|
|
411
|
+
onClick: (ke) => pe(r)
|
|
412
|
+
}, [
|
|
413
|
+
u(a(h), {
|
|
414
|
+
name: r.name,
|
|
415
|
+
size: "30px"
|
|
416
|
+
}, null, 8, ["name"])
|
|
417
|
+
], 10, rt)
|
|
418
|
+
]),
|
|
419
|
+
_: 2
|
|
420
|
+
}, 1024))), 128))
|
|
421
|
+
]),
|
|
422
|
+
l("div", ut, [
|
|
423
|
+
u(ee, {
|
|
424
|
+
current: O.value,
|
|
425
|
+
"page-size": Q,
|
|
426
|
+
total: D.value.length,
|
|
427
|
+
"show-size-changer": !1,
|
|
428
|
+
"show-quick-jumper": "",
|
|
429
|
+
onChange: fe
|
|
430
|
+
}, null, 8, ["current", "total"])
|
|
431
|
+
])
|
|
432
|
+
], 64)) : (x(), C("div", dt, [
|
|
433
|
+
u(be, {
|
|
434
|
+
image: a(ve),
|
|
435
|
+
description: "没有匹配的图标"
|
|
436
|
+
}, null, 8, ["image"])
|
|
437
|
+
]))
|
|
438
|
+
]),
|
|
439
|
+
f.value ? (x(), C("div", ct, [
|
|
440
|
+
l("div", ft, [
|
|
441
|
+
l("div", pt, [
|
|
442
|
+
u(xe, {
|
|
443
|
+
value: s.value,
|
|
444
|
+
"onUpdate:value": n[1] || (n[1] = (r) => s.value = r),
|
|
445
|
+
class: "flex justify-center items-center"
|
|
446
|
+
}, {
|
|
447
|
+
default: v(() => [
|
|
448
|
+
u(te, { value: "null" }, {
|
|
449
|
+
default: v(() => [
|
|
450
|
+
l("div", vt, [
|
|
451
|
+
u(a(h), {
|
|
452
|
+
name: f.value,
|
|
453
|
+
size: oe - Mt * 2
|
|
454
|
+
}, null, 8, ["name", "size"])
|
|
455
|
+
])
|
|
456
|
+
]),
|
|
457
|
+
_: 1
|
|
458
|
+
}),
|
|
459
|
+
u(te, { value: "square" }, {
|
|
460
|
+
default: v(() => [
|
|
461
|
+
l("div", mt, [
|
|
462
|
+
u(a(h), {
|
|
463
|
+
name: f.value,
|
|
464
|
+
box: "square",
|
|
465
|
+
size: oe,
|
|
466
|
+
radius: "25%",
|
|
467
|
+
color: "#ffffff"
|
|
468
|
+
}, null, 8, ["name"])
|
|
469
|
+
])
|
|
470
|
+
]),
|
|
471
|
+
_: 1
|
|
472
|
+
}),
|
|
473
|
+
u(te, { value: "prism" }, {
|
|
474
|
+
default: v(() => [
|
|
475
|
+
l("div", bt, [
|
|
476
|
+
u(a(h), {
|
|
477
|
+
name: f.value,
|
|
478
|
+
box: "prism",
|
|
479
|
+
size: oe,
|
|
480
|
+
color: "#ffffff",
|
|
481
|
+
radius: "2%"
|
|
482
|
+
}, null, 8, ["name"])
|
|
483
|
+
])
|
|
484
|
+
]),
|
|
485
|
+
_: 1
|
|
486
|
+
})
|
|
487
|
+
]),
|
|
488
|
+
_: 1
|
|
489
|
+
}, 8, ["value"])
|
|
490
|
+
]),
|
|
491
|
+
l("div", xt, [
|
|
492
|
+
l("div", gt, [
|
|
493
|
+
n[9] || (n[9] = l("div", { class: "text-12px mb-2 opacity-70" }, " 背景设置 ", -1)),
|
|
494
|
+
u(Xe, {
|
|
495
|
+
angle: _.value,
|
|
496
|
+
"onUpdate:angle": n[2] || (n[2] = (r) => _.value = r),
|
|
497
|
+
background: i.value,
|
|
498
|
+
"onUpdate:background": n[3] || (n[3] = (r) => i.value = r),
|
|
499
|
+
radius: y.value,
|
|
500
|
+
"onUpdate:radius": n[4] || (n[4] = (r) => y.value = r),
|
|
501
|
+
"icon-size": S.value,
|
|
502
|
+
"onUpdate:iconSize": n[5] || (n[5] = (r) => S.value = r),
|
|
503
|
+
disabled: s.value === "null"
|
|
504
|
+
}, null, 8, ["angle", "background", "radius", "icon-size", "disabled"])
|
|
505
|
+
]),
|
|
506
|
+
l("div", yt, [
|
|
507
|
+
l("div", kt, [
|
|
508
|
+
l("label", _t, [
|
|
509
|
+
n[11] || (n[11] = J(" 图标色 ")),
|
|
510
|
+
u($, null, {
|
|
511
|
+
title: v(() => n[10] || (n[10] = [
|
|
512
|
+
J(" 仅 Ant Design 图标有效 ")
|
|
513
|
+
])),
|
|
514
|
+
default: v(() => [
|
|
515
|
+
u(a(h), {
|
|
516
|
+
name: "i-carbon-information",
|
|
517
|
+
size: "12px",
|
|
518
|
+
class: "ml-1 cursor-help"
|
|
519
|
+
})
|
|
520
|
+
]),
|
|
521
|
+
_: 1
|
|
522
|
+
})
|
|
523
|
+
]),
|
|
524
|
+
l("div", ht, [
|
|
525
|
+
u(w, {
|
|
526
|
+
value: g.value,
|
|
527
|
+
"onUpdate:value": n[7] || (n[7] = (r) => g.value = r),
|
|
528
|
+
"allow-clear": "",
|
|
529
|
+
placeholder: s.value === "null" ? "默认" : "#ffffff",
|
|
530
|
+
size: "small",
|
|
531
|
+
class: "flex-1 min-w-0",
|
|
532
|
+
disabled: !A.value
|
|
533
|
+
}, {
|
|
534
|
+
prefix: v(() => [
|
|
535
|
+
l("div", wt, [
|
|
536
|
+
l("button", {
|
|
537
|
+
type: "button",
|
|
538
|
+
disabled: !A.value,
|
|
539
|
+
class: W(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", A.value ? "" : "opacity-50 cursor-not-allowed"]),
|
|
540
|
+
style: le({ background: g.value || "#ffffff" }),
|
|
541
|
+
onClick: me
|
|
542
|
+
}, null, 14, Ct),
|
|
543
|
+
l("input", {
|
|
544
|
+
ref_key: "iconColorPickerRef",
|
|
545
|
+
ref: E,
|
|
546
|
+
type: "color",
|
|
547
|
+
value: g.value || "#ffffff",
|
|
548
|
+
disabled: !A.value,
|
|
549
|
+
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
550
|
+
style: { width: "16px", height: "16px" },
|
|
551
|
+
onInput: n[6] || (n[6] = (r) => g.value = r.target.value)
|
|
552
|
+
}, null, 40, zt)
|
|
553
|
+
])
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
}, 8, ["value", "placeholder", "disabled"])
|
|
557
|
+
])
|
|
558
|
+
])
|
|
559
|
+
]),
|
|
560
|
+
l("div", It, [
|
|
561
|
+
l("div", St, [
|
|
562
|
+
f.value ? (x(), C("div", Rt, [
|
|
563
|
+
s.value === "null" ? (x(), T(a(h), {
|
|
564
|
+
key: 0,
|
|
565
|
+
name: f.value,
|
|
566
|
+
size: 80,
|
|
567
|
+
color: A.value && g.value ? g.value : void 0
|
|
568
|
+
}, null, 8, ["name", "color"])) : (x(), T(a(h), {
|
|
569
|
+
key: 1,
|
|
570
|
+
name: f.value,
|
|
571
|
+
box: s.value,
|
|
572
|
+
size: 80,
|
|
573
|
+
angle: _.value,
|
|
574
|
+
background: i.value,
|
|
575
|
+
radius: y.value,
|
|
576
|
+
"icon-size": S.value,
|
|
577
|
+
color: A.value ? g.value || "#ffffff" : void 0
|
|
578
|
+
}, null, 8, ["name", "box", "angle", "background", "radius", "icon-size", "color"]))
|
|
579
|
+
])) : q("", !0)
|
|
580
|
+
])
|
|
581
|
+
])
|
|
582
|
+
]),
|
|
583
|
+
l("div", $t, [
|
|
584
|
+
u(ie, { onClick: G }, {
|
|
585
|
+
default: v(() => n[12] || (n[12] = [
|
|
586
|
+
J(" 取消 ")
|
|
587
|
+
])),
|
|
588
|
+
_: 1,
|
|
589
|
+
__: [12]
|
|
590
|
+
}),
|
|
591
|
+
u(ie, {
|
|
592
|
+
type: "primary",
|
|
593
|
+
onClick: Z
|
|
594
|
+
}, {
|
|
595
|
+
default: v(() => n[13] || (n[13] = [
|
|
596
|
+
J(" 确定 ")
|
|
597
|
+
])),
|
|
598
|
+
_: 1,
|
|
599
|
+
__: [13]
|
|
600
|
+
})
|
|
601
|
+
])
|
|
602
|
+
])
|
|
603
|
+
])) : q("", !0)
|
|
604
|
+
])
|
|
605
|
+
]),
|
|
606
|
+
_: 1
|
|
607
|
+
}, 8, ["open"])
|
|
608
|
+
]),
|
|
609
|
+
_: 1
|
|
610
|
+
})
|
|
611
|
+
], 64);
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
}), jt = /* @__PURE__ */ Fe(Pt, [["__scopeId", "data-v-877afd5a"]]), Et = ["onClick"], Nt = ["onClick"], Ut = { class: "flex flex-col items-center justify-center" }, Dt = /* @__PURE__ */ ne({
|
|
615
|
+
name: "ResourceIconSelect",
|
|
616
|
+
__name: "IconSelect",
|
|
617
|
+
props: {
|
|
618
|
+
modelValue: {
|
|
619
|
+
default: {
|
|
620
|
+
meta: {
|
|
621
|
+
url: "",
|
|
622
|
+
component: ""
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
modelModifiers: {}
|
|
627
|
+
},
|
|
628
|
+
emits: ["update:modelValue"],
|
|
629
|
+
setup(I) {
|
|
630
|
+
const p = U(I, "modelValue");
|
|
631
|
+
function c() {
|
|
632
|
+
return {
|
|
633
|
+
boxType: "null",
|
|
634
|
+
angle: 65,
|
|
635
|
+
background: { from: "#65E54A", to: "#35C724" },
|
|
636
|
+
radius: "50%",
|
|
637
|
+
iconColor: "",
|
|
638
|
+
iconSize: "50%"
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
const k = z(() => p.value.meta || (p.value.meta = {})), d = je(c());
|
|
642
|
+
R(
|
|
643
|
+
() => k.value.iconOptions,
|
|
644
|
+
(f) => {
|
|
645
|
+
f ? Object.assign(d, c(), f) : Object.assign(d, c());
|
|
646
|
+
},
|
|
647
|
+
{ immediate: !0 }
|
|
648
|
+
), R(
|
|
649
|
+
d,
|
|
650
|
+
(f) => {
|
|
651
|
+
if (!p.value.icon) {
|
|
652
|
+
k.value.iconOptions && Reflect.deleteProperty(k.value, "iconOptions");
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
const s = k.value.iconOptions;
|
|
656
|
+
let _ = !1;
|
|
657
|
+
if (!s)
|
|
658
|
+
_ = !0;
|
|
659
|
+
else {
|
|
660
|
+
const i = /* @__PURE__ */ new Set([...Object.keys(s), ...Object.keys(f)]);
|
|
661
|
+
for (const y of i)
|
|
662
|
+
if (s[y] !== f[y]) {
|
|
663
|
+
_ = !0;
|
|
664
|
+
break;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
_ && (k.value.iconOptions = { ...f });
|
|
668
|
+
},
|
|
669
|
+
{ deep: !0 }
|
|
670
|
+
);
|
|
671
|
+
const M = z(() => {
|
|
672
|
+
const f = p.value.type;
|
|
673
|
+
return {
|
|
674
|
+
icon: [L.DYNAMIC_APP, L.INDEX, L.MENU, L.IFRAME, L.LINK].includes(f)
|
|
675
|
+
};
|
|
676
|
+
}), P = z(() => !0);
|
|
677
|
+
function j(f) {
|
|
678
|
+
f.stopPropagation(), p.value.icon && (p.value.icon = void 0, Reflect.deleteProperty(k.value, "iconOptions"));
|
|
679
|
+
}
|
|
680
|
+
return (f, s) => {
|
|
681
|
+
const _ = Me;
|
|
682
|
+
return a(P) && a(M).icon ? (x(), T(_, {
|
|
683
|
+
key: 0,
|
|
684
|
+
label: "资源图标"
|
|
685
|
+
}, {
|
|
686
|
+
default: v(() => [
|
|
687
|
+
u(jt, {
|
|
688
|
+
modelValue: p.value.icon,
|
|
689
|
+
"onUpdate:modelValue": s[0] || (s[0] = (i) => p.value.icon = i),
|
|
690
|
+
"box-type": a(d).boxType,
|
|
691
|
+
"onUpdate:boxType": s[1] || (s[1] = (i) => a(d).boxType = i),
|
|
692
|
+
angle: a(d).angle,
|
|
693
|
+
"onUpdate:angle": s[2] || (s[2] = (i) => a(d).angle = i),
|
|
694
|
+
background: a(d).background,
|
|
695
|
+
"onUpdate:background": s[3] || (s[3] = (i) => a(d).background = i),
|
|
696
|
+
radius: a(d).radius,
|
|
697
|
+
"onUpdate:radius": s[4] || (s[4] = (i) => a(d).radius = i),
|
|
698
|
+
"icon-color": a(d).iconColor,
|
|
699
|
+
"onUpdate:iconColor": s[5] || (s[5] = (i) => a(d).iconColor = i),
|
|
700
|
+
"icon-size": a(d).iconSize,
|
|
701
|
+
"onUpdate:iconSize": s[6] || (s[6] = (i) => a(d).iconSize = i)
|
|
702
|
+
}, {
|
|
703
|
+
default: v(({ open: i }) => [
|
|
704
|
+
p.value.icon ? (x(), C("div", {
|
|
705
|
+
key: 0,
|
|
706
|
+
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",
|
|
707
|
+
onClick: i
|
|
708
|
+
}, [
|
|
709
|
+
a(d).boxType && a(d).boxType !== "null" ? (x(), T(a(h), {
|
|
710
|
+
key: 0,
|
|
711
|
+
name: p.value.icon,
|
|
712
|
+
box: a(d).boxType,
|
|
713
|
+
size: "48px",
|
|
714
|
+
radius: a(d).radius,
|
|
715
|
+
background: a(d).background,
|
|
716
|
+
angle: a(d).angle,
|
|
717
|
+
"icon-size": a(d).iconSize,
|
|
718
|
+
color: (p.value.icon || "").startsWith("antd:") ? a(d).iconColor || "#ffffff" : void 0
|
|
719
|
+
}, null, 8, ["name", "box", "radius", "background", "angle", "icon-size", "color"])) : (x(), T(a(h), {
|
|
720
|
+
key: 1,
|
|
721
|
+
name: p.value.icon,
|
|
722
|
+
size: "48px",
|
|
723
|
+
color: (p.value.icon || "").startsWith("antd:") && a(d).iconColor || void 0
|
|
724
|
+
}, null, 8, ["name", "color"])),
|
|
725
|
+
p.value.icon ? (x(), C("button", {
|
|
726
|
+
key: 2,
|
|
727
|
+
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",
|
|
728
|
+
type: "button",
|
|
729
|
+
onClick: j
|
|
730
|
+
}, [
|
|
731
|
+
u(a(h), {
|
|
732
|
+
name: "antd:CloseOutlined",
|
|
733
|
+
size: "10px"
|
|
734
|
+
})
|
|
735
|
+
])) : q("", !0)
|
|
736
|
+
], 8, Et)) : (x(), C("div", {
|
|
737
|
+
key: 1,
|
|
738
|
+
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",
|
|
739
|
+
onClick: i
|
|
740
|
+
}, [
|
|
741
|
+
l("div", Ut, [
|
|
742
|
+
u(a(h), { name: "antd:PlusOutlined" }),
|
|
743
|
+
s[7] || (s[7] = l("span", { class: "text-10px mt-1" }, "选择图标", -1))
|
|
744
|
+
])
|
|
745
|
+
], 8, Nt))
|
|
746
|
+
]),
|
|
747
|
+
_: 1
|
|
748
|
+
}, 8, ["modelValue", "box-type", "angle", "background", "radius", "icon-color", "icon-size"])
|
|
749
|
+
]),
|
|
750
|
+
_: 1
|
|
751
|
+
})) : q("", !0);
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
});
|
|
755
|
+
export {
|
|
756
|
+
Dt as _
|
|
757
|
+
};
|