@pubinfo-pr/module-rbac 0.203.3 → 0.203.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ComponentSelect-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
- package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
- package/dist/HCheckList-CAhQwX7m.js +39 -0
- package/dist/HoverCard-B-uU48hF.js +46 -0
- package/dist/IconSelect-CvxGRN_O.js +719 -0
- package/dist/ImportExport-CzZssb7_.js +345 -0
- package/dist/ImportExport-b1SnWRLj.js +6 -0
- package/dist/LayoutForm-Bpdyi_2o.js +129 -0
- package/dist/MetaForm-ZLzLz68d.js +39037 -0
- package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
- package/dist/OrgSelector-C2rPIonI.js +4877 -0
- package/dist/OrgSelector.css +1 -0
- package/dist/ResourceEdit-9fvxbd0K.js +383 -0
- package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
- package/dist/ResourceRelation-BrluMHdX.js +81 -0
- package/dist/ResourceRelation-IJvXnlpo.js +95 -0
- package/dist/RoleRelation-DuRuQG08.js +82 -0
- package/dist/RoleSelector-BTNYbcC6.js +282 -0
- package/dist/TenantEdit-Df3gZKLA.js +249 -0
- package/dist/UserAuthorization-DX7jNDDe.js +237 -0
- package/dist/UserEdit-BLb0n7WM.js +322 -0
- package/dist/_baseClone-C7vkGgsW.js +138 -0
- package/dist/_initCloneObject-r-eWKqzl.js +531 -0
- package/dist/add-child-DPb_m2by.js +4 -0
- package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
- package/dist/assist-BRMYD-oT.js +89 -0
- package/dist/authority-B9wtmsQd.js +4 -0
- package/dist/authorize-DxrutyIG.js +4 -0
- package/dist/blackWhiteList-d6TVsK48.js +214 -0
- package/dist/blacklist-disable-BKSw91qq.js +4 -0
- package/dist/blacklist-enable-CIB1fOHT.js +4 -0
- package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
- package/dist/browser-chrome-CM60RcrG.js +4 -0
- package/dist/browser-edge-4LBRzooM.js +4 -0
- package/dist/browser-ie-BF-wqbf6.js +4 -0
- package/dist/browser-other-iXJH-9iL.js +4 -0
- package/dist/browser-safari-CIpt0yPc.js +4 -0
- package/dist/browserType-Bik20-72.js +28 -0
- package/dist/chunk-WQLz0Won.js +20 -0
- package/dist/cloneDeep-REaxTPsZ.js +8 -0
- package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
- package/dist/data-permission-2pzeFLxP.js +159 -0
- package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
- package/dist/dictionary-DGqlAhRk.js +182 -0
- package/dist/dist-DxAYQq3U.js +21 -0
- package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
- package/dist/drawerDictionary-DhAB-LV9.js +129 -0
- package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
- package/dist/drawerGroup-CTO8Lmbb.js +189 -0
- package/dist/drawerOrganization-DWhTc1fB.js +253 -0
- package/dist/drawerPosition-BmM9mLlP.js +169 -0
- package/dist/drawerRegion-BD-xc1x2.js +189 -0
- package/dist/drawerRole-B348x40k.js +214 -0
- package/dist/drawerRole-CgAPM-0g.js +172 -0
- package/dist/drawerRole-Cjp9iDsa.js +157 -0
- package/dist/edit-Drp8yjRe.js +4 -0
- package/dist/enum-CG0P82pn.js +6 -0
- package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
- package/dist/enum-CYCebJeC.js +62 -0
- package/dist/enum-DS4SGhiF.js +6 -0
- package/dist/enum-zdKA3Jy-.js +23 -0
- package/dist/group-C6Rj3K5I.js +178 -0
- package/dist/icard-BULUUV5m.js +4 -0
- package/dist/icon_animation-DuEY1FMm.js +4 -0
- package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
- package/dist/icon_copyright-C1BER6kq.js +4 -0
- package/dist/icon_jt-ICOdrIF6.js +4 -0
- package/dist/icon_layout-D_wV9rX3.js +4 -0
- package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
- package/dist/icon_menu-y7SblUoR.js +4 -0
- package/dist/icon_page_size-BjwT656E.js +4 -0
- package/dist/icon_position_type-CPxcDgmM.js +4 -0
- package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
- package/dist/icon_screen_scale-DURlkq3C.js +4 -0
- package/dist/icon_system_manage-BLXs2CQg.js +4 -0
- package/dist/icon_tabbar-_0QWhSBV.js +4 -0
- package/dist/icon_toolbar-BXpfu0iq.js +4 -0
- package/dist/icon_topbar-DrwvB8Jw.js +4 -0
- package/dist/icon_watermark-DwNqjAiA.js +4 -0
- package/dist/index.css +1 -1
- package/dist/index.js +588 -6776
- package/dist/isEmpty-2rx9iUQv.js +14 -0
- package/dist/isEqual-CNeQLaCM.js +474 -0
- package/dist/itemlist-BGe-z1IR.js +159 -0
- package/dist/json-asset-03f0a035.json +1 -0
- package/dist/json-asset-0ee63e7f.json +1 -0
- package/dist/json-asset-10eef4fe.json +1 -0
- package/dist/json-asset-13f452f1.json +1 -0
- package/dist/json-asset-14b7b290.json +1 -0
- package/dist/json-asset-15b8cef1.json +1 -0
- package/dist/json-asset-15f77960.json +1 -0
- package/dist/json-asset-1ae9b726.json +1 -0
- package/dist/json-asset-1b02359f.json +1 -0
- package/dist/json-asset-1ef286cd.json +1 -0
- package/dist/json-asset-23cfd18c.json +1 -0
- package/dist/json-asset-265a0a5d.json +1 -0
- package/dist/json-asset-28d57c49.json +1 -0
- package/dist/json-asset-2b54ed10.json +1 -0
- package/dist/json-asset-2bb6f642.json +1 -0
- package/dist/json-asset-2cdc07bd.json +1 -0
- package/dist/json-asset-31c58607.json +1 -0
- package/dist/json-asset-32884f23.json +1 -0
- package/dist/json-asset-32fca43a.json +1 -0
- package/dist/json-asset-3a75445b.json +1 -0
- package/dist/json-asset-3f27d67c.json +1 -0
- package/dist/json-asset-4189453f.json +1 -0
- package/dist/json-asset-4702b37c.json +1 -0
- package/dist/json-asset-520a5c68.json +1 -0
- package/dist/json-asset-56bea508.json +1 -0
- package/dist/json-asset-57c732a3.json +1 -0
- package/dist/json-asset-5be4a28f.json +1 -0
- package/dist/json-asset-5e6d7cfa.json +1 -0
- package/dist/json-asset-64e176c9.json +1 -0
- package/dist/json-asset-6583dca6.json +1 -0
- package/dist/json-asset-66c640c6.json +1 -0
- package/dist/json-asset-68393156.json +1 -0
- package/dist/json-asset-688465aa.json +1 -0
- package/dist/json-asset-6bf334f4.json +1 -0
- package/dist/json-asset-7b4f72ce.json +1 -0
- package/dist/json-asset-837ec087.json +1 -0
- package/dist/json-asset-838ac1ba.json +1 -0
- package/dist/json-asset-8465c2cf.json +1 -0
- package/dist/json-asset-9e9f04a4.json +1 -0
- package/dist/json-asset-a13964cb.json +1 -0
- package/dist/json-asset-ab93a057.json +1 -0
- package/dist/json-asset-abe308fc.json +1 -0
- package/dist/json-asset-b24f2cd3.json +1 -0
- package/dist/json-asset-bf00eaed.json +1 -0
- package/dist/json-asset-cb22efd7.json +1 -0
- package/dist/json-asset-cb953f20.json +1 -0
- package/dist/json-asset-cc209e34.json +1 -0
- package/dist/json-asset-cfdffceb.json +1 -0
- package/dist/json-asset-d33c0299.json +1 -0
- package/dist/json-asset-d430c8ca.json +1 -0
- package/dist/json-asset-d8cfa560.json +1 -0
- package/dist/json-asset-da91beb6.json +1 -0
- package/dist/json-asset-e2bdf85c.json +1 -0
- package/dist/json-asset-e34ad826.json +1 -0
- package/dist/json-asset-e80720aa.json +1 -0
- package/dist/json-asset-e894bc92.json +1 -0
- package/dist/json-asset-f28020f2.json +1 -0
- package/dist/json-asset-f71ebbf4.json +1 -0
- package/dist/json-asset-fb1f4917.json +1 -0
- package/dist/json-asset-ff2e97c4.json +1 -0
- package/dist/layout_setting-Cds3TCHc.js +71 -0
- package/dist/log-DOMU9MyH.js +18 -0
- package/dist/log-center-BrGlNhMd.js +4 -0
- package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
- package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
- package/dist/menu_setting-Br5dOEUk.js +158 -0
- package/dist/not-data-C-MacYF3.js +5 -0
- package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
- package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
- package/dist/org-main-BRMBumDm.js +4 -0
- package/dist/org-unmain-0BHnrNdD.js +4 -0
- package/dist/organization-BbFERZ1l.js +15411 -0
- package/dist/other_setting-D92SlFvl.js +216 -0
- package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
- package/dist/page_w_setting-DryWrqcx.js +66 -0
- package/dist/position-B1bqGly6.js +169 -0
- package/dist/rbac-B59CVHDt.js +460 -0
- package/dist/region-B_n1KXMG.js +182 -0
- package/dist/remove-BTME2Fhs.js +4 -0
- package/dist/request-7X2hpUru.js +5 -0
- package/dist/resource-CPNNd1l0.js +275 -0
- package/dist/resource-app-D8to3Lkn.js +4 -0
- package/dist/resource-btn-Cz-A_EQF.js +4 -0
- package/dist/resource-dynamic-BUqWxUiU.js +4 -0
- package/dist/resource-index-D2roT002.js +4 -0
- package/dist/resource-menu-BRER68rK.js +4 -0
- package/dist/resource-micro-Hyucl9de.js +4 -0
- package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
- package/dist/role-CMd7WDRC.js +195 -0
- package/dist/role_group-DHh2s911.js +174 -0
- package/dist/safe_setting-CuTBmUve.js +225 -0
- package/dist/setItem-BwXZ5Uqx.js +4 -0
- package/dist/setItem-DlhIkIgh.js +78 -0
- package/dist/setting-manage-UHelpLrr.js +4 -0
- package/dist/stores-C-zbXsms.js +2 -0
- package/dist/tabbar_setting-CjW9LGPp.js +142 -0
- package/dist/tenant-B_vgufMG.js +180 -0
- package/dist/theme-check-mark-DRzx4sTs.js +4 -0
- package/dist/theme-title-BRvQ_qPg.js +4 -0
- package/dist/theme_setting-DMP0_nZ1.js +114 -0
- package/dist/toolbar_setting-ClxxvA7R.js +143 -0
- package/dist/useAppAndResource-D6WnpUPR.js +55 -0
- package/dist/user-BhytPqnx.js +348 -0
- package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
- package/dist/view-Cridj7u2.js +4 -0
- package/dist/view-lBxqXfPW.js +114 -0
- package/dist/watermark_setting-b3vBYWwY.js +194 -0
- package/dist/zddata-CnvPWtIW.js +4 -0
- package/dist/zy_checked-C25HQlnr.js +4 -0
- package/dist/zy_default-B7RKtyqy.js +4 -0
- package/package.json +3 -3
- package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
- package/dist/HCheckList-ODQHidN8.js +0 -37
- package/dist/HoverCard-CmJCoa2b.js +0 -44
- package/dist/IconSelect-DouEg3xY.js +0 -717
- package/dist/ImportExport-DisdLoY8.js +0 -342
- package/dist/LayoutForm-Bdfs5WeK.js +0 -125
- package/dist/MetaForm-CcDwS8vh.js +0 -38902
- package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
- package/dist/ResourceEdit-0BYZRye_.js +0 -381
- package/dist/ResourceRelation-CU-QpUhP.js +0 -76
- package/dist/ResourceRelation-roz0a8Td.js +0 -91
- package/dist/RoleRelation-BQQFaum0.js +0 -79
- package/dist/RoleSelector-gkar_UGG.js +0 -275
- package/dist/TenantEdit-BsahDUlf.js +0 -246
- package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
- package/dist/UserEdit-CX3Qau8T.js +0 -320
- package/dist/add-child-CFHHkjfg.js +0 -2
- package/dist/authority-L7SfiMdP.js +0 -2
- package/dist/authorize-qMpV_BXT.js +0 -2
- package/dist/blackWhiteList-DbG7JH8n.js +0 -211
- package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
- package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
- package/dist/breadcrumb_setting-Dx2Li6xt.js +0 -108
- package/dist/browser-chrome-DuAegVCe.js +0 -2
- package/dist/browser-edge-DzkWdXRd.js +0 -2
- package/dist/browser-ie-DZ9g_MXr.js +0 -2
- package/dist/browser-other-BmkifoYq.js +0 -2
- package/dist/browser-safari-CXrCuF2a.js +0 -2
- package/dist/browserType-B8A1Osvk.js +0 -26
- package/dist/chunk-DiMWNkAf.js +0 -18
- package/dist/cloneDeep-CSOSavu3.js +0 -6
- package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
- package/dist/data-permission-LpuDLDm0.js +0 -152
- package/dist/dictionary-CEaxjqZe.js +0 -179
- package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
- package/dist/drawerDictionary-DYJTAZr6.js +0 -126
- package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
- package/dist/drawerGroup-CdnZkZxi.js +0 -185
- package/dist/drawerOrganization-CwtSFUj0.js +0 -247
- package/dist/drawerPosition-CfyfeQCN.js +0 -166
- package/dist/drawerRegion-DAwY_29K.js +0 -183
- package/dist/drawerRole-B7uCfHk-.js +0 -154
- package/dist/drawerRole-DK6DrinO.js +0 -209
- package/dist/drawerRole-DrzMHL0O.js +0 -167
- package/dist/edit-fZ7h_z_Z.js +0 -2
- package/dist/enum-3mYayxff.js +0 -61
- package/dist/enum-Cr7uWnB2.js +0 -23
- package/dist/enum-D2UEJsrC.js +0 -4
- package/dist/group-CaOhkh72.js +0 -172
- package/dist/icard-H-d9Pip-.js +0 -2
- package/dist/icon_animation-BCdRKkE5.js +0 -2
- package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
- package/dist/icon_copyright-BfWn1s6t.js +0 -2
- package/dist/icon_jt-DOMTq9De.js +0 -2
- package/dist/icon_layout-DKqAThpM.js +0 -2
- package/dist/icon_mainpage-CXB9JMGv.js +0 -2
- package/dist/icon_menu-BYQtWV-Q.js +0 -2
- package/dist/icon_page_size-r-z4oHWp.js +0 -2
- package/dist/icon_position_type-JDFdklRh.js +0 -2
- package/dist/icon_safe_manage-BDTIOduB.js +0 -2
- package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
- package/dist/icon_system_manage-CkhQtieE.js +0 -2
- package/dist/icon_tabbar-DZNj-h-p.js +0 -2
- package/dist/icon_toolbar-BBYhGmEf.js +0 -2
- package/dist/icon_topbar-Bc379eaS.js +0 -2
- package/dist/icon_watermark-CTP8r-e2.js +0 -2
- package/dist/isEmpty-BjEzPyCa.js +0 -12
- package/dist/itemlist-CFwRUV2Y.js +0 -156
- package/dist/layout_setting-79srmFgJ.js +0 -68
- package/dist/log-BYris9iT.js +0 -14
- package/dist/log-center-CGT-BGAN.js +0 -2
- package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
- package/dist/menu_setting-ChueWHs4.js +0 -155
- package/dist/not-data-Bml86wdH.js +0 -3
- package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
- package/dist/org-main-DnftBa38.js +0 -2
- package/dist/org-unmain-ByMarqFw.js +0 -2
- package/dist/organization-Dv3FbKke.js +0 -15316
- package/dist/other_setting-BEV_UK0g.js +0 -213
- package/dist/page_animation_setting-Cp5OnFpd.js +0 -108
- package/dist/page_w_setting-Q--ct16C.js +0 -63
- package/dist/position-CCZ2MSMP.js +0 -166
- package/dist/region-D3mjqB8H.js +0 -179
- package/dist/remove-DfZZBE2T.js +0 -2
- package/dist/resource-DaQ7CvM_.js +0 -271
- package/dist/resource-app-QSLZ7Hts.js +0 -2
- package/dist/resource-btn-BcB4xMgR.js +0 -2
- package/dist/resource-dynamic-D69oEbaO.js +0 -2
- package/dist/resource-index-BIHr3PZY.js +0 -2
- package/dist/resource-menu-0JSNn7S7.js +0 -2
- package/dist/resource-micro-CcX_pmaJ.js +0 -2
- package/dist/resource-nonmenu-DFItasMT.js +0 -2
- package/dist/role-4UgEw3nH.js +0 -192
- package/dist/role_group-hkRlCnyl.js +0 -171
- package/dist/safe_setting-4fv3qNRZ.js +0 -221
- package/dist/setItem-Vkcwkj-O.js +0 -77
- package/dist/setting-manage-C9whamLP.js +0 -2
- package/dist/stores-DPQF8JRt.js +0 -2
- package/dist/tabbar_setting-kbuTvrLB.js +0 -139
- package/dist/tenant-lWfGw2u1.js +0 -177
- package/dist/theme-check-mark-DG4oWCQN.js +0 -2
- package/dist/theme-title-BCYnl2jK.js +0 -2
- package/dist/theme_setting-CEb7UYQO.js +0 -111
- package/dist/toolbar_setting-BG-k2UFc.js +0 -140
- package/dist/useAppAndResource-B7FmNfKG.js +0 -52
- package/dist/user-BkUpcQC8.js +0 -339
- package/dist/view-Bnu34EJT.js +0 -2
- package/dist/watermark_setting-Cl2EtPAa.js +0 -191
- package/dist/zddata-Ceyga3_2.js +0 -2
- package/dist/zy_checked-DvD7k9F8.js +0 -2
- package/dist/zy_default-DJ2tB3Fo.js +0 -2
|
@@ -1,717 +0,0 @@
|
|
|
1
|
-
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
-
import { h as _plugin_vue_export_helper_default } from "./index.js";
|
|
3
|
-
import { r as RESOURCE_TYPE } from "./enum-3E_sUqRF.js";
|
|
4
|
-
import { PubinfoIcon, getAllIconModules } from "pubinfo-pr";
|
|
5
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, reactive, ref, renderList, renderSlot, resolveComponent, shallowRef, toDisplayString, unref, useModel, watch, withCtx } from "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 u = a(n.background), p = ref(u.from), h = ref(u.to), g = ref(i(n.angle)), _ = ref(o(n.radius)), v = ref(s(n.iconSize)), y = ref(null), b = ref(null);
|
|
77
|
-
function x() {
|
|
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 = b.value;
|
|
85
|
-
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
86
|
-
}
|
|
87
|
-
return watch([
|
|
88
|
-
p,
|
|
89
|
-
h,
|
|
90
|
-
g,
|
|
91
|
-
_
|
|
92
|
-
], () => {
|
|
93
|
-
r("update:background", {
|
|
94
|
-
from: p.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
|
-
p.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: p.value,
|
|
114
|
-
"onUpdate:value": t[1] ||= (e) => p.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: p.value }),
|
|
125
|
-
onClick: x
|
|
126
|
-
}, null, 14, _hoisted_4$1), createElementVNode("input", {
|
|
127
|
-
ref_key: "fromColorPickerRef",
|
|
128
|
-
ref: y,
|
|
129
|
-
type: "color",
|
|
130
|
-
value: p.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) => p.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: b,
|
|
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 = shallowRef([]), n = ref(!1);
|
|
260
|
-
async function u() {
|
|
261
|
-
if (!(t.value.length > 0 || n.value)) {
|
|
262
|
-
n.value = !0;
|
|
263
|
-
try {
|
|
264
|
-
let e = await import("@ant-design/icons-vue");
|
|
265
|
-
t.value = Object.keys(e).filter((e) => /(?:Outlined|Filled|TwoTone)$/.test(e)).map((e) => `antd:${e}`).sort();
|
|
266
|
-
} finally {
|
|
267
|
-
n.value = !1;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
let p = useModel(e, "modelValue"), _ = useModel(e, "boxType"), w = useModel(e, "angle"), T = useModel(e, "background"), E = useModel(e, "radius"), D = useModel(e, "iconColor"), O = useModel(e, "iconSize"), k = ref(p.value), A = ref(_.value || "null"), j = ref(w.value ?? 65), M = ref(T.value ?? {
|
|
272
|
-
from: "#65E54A",
|
|
273
|
-
to: "#35C724"
|
|
274
|
-
}), N = ref(E.value ?? "50%"), P = ref(O.value ?? "50%"), F = ref(D.value ?? ""), I = ref(null), L = ref(!1);
|
|
275
|
-
function R() {
|
|
276
|
-
u(), k.value = p.value, A.value = _.value || "null", j.value = w.value ?? 65;
|
|
277
|
-
let e = T.value;
|
|
278
|
-
M.value = typeof e == "string" ? e : e ? { ...e } : {
|
|
279
|
-
from: "#65E54A",
|
|
280
|
-
to: "#35C724"
|
|
281
|
-
}, N.value = E.value ?? "50%", P.value = O.value ?? "50%", F.value = D.value ?? "", L.value = !0;
|
|
282
|
-
}
|
|
283
|
-
function z() {
|
|
284
|
-
L.value = !1;
|
|
285
|
-
}
|
|
286
|
-
function B() {
|
|
287
|
-
p.value = k.value, _.value = A.value, w.value = j.value;
|
|
288
|
-
let e = M.value;
|
|
289
|
-
T.value = typeof e == "string" ? e : e && { ...e }, E.value = N.value, O.value = P.value, D.value = F.value, L.value = !1;
|
|
290
|
-
}
|
|
291
|
-
function V(e) {
|
|
292
|
-
return (e.split(/[\\/]/).pop() || e).replace(/\.(svg|png|jpe?g)$/i, "");
|
|
293
|
-
}
|
|
294
|
-
let H = computed(() => {
|
|
295
|
-
let e = /* @__PURE__ */ new Map(), t = getAllIconModules();
|
|
296
|
-
for (let [n, r] of t.entries()) {
|
|
297
|
-
let t = Object.keys(r).map(V).sort();
|
|
298
|
-
e.set(n, t);
|
|
299
|
-
}
|
|
300
|
-
return e;
|
|
301
|
-
}), U = computed(() => t.value), W = computed(() => {
|
|
302
|
-
let e = Array.from(H.value.keys()), t = e.includes("local"), n = e.filter((e) => e !== "local").sort();
|
|
303
|
-
return [
|
|
304
|
-
{
|
|
305
|
-
label: "全部",
|
|
306
|
-
value: "all"
|
|
307
|
-
},
|
|
308
|
-
...t ? [{
|
|
309
|
-
label: "本地",
|
|
310
|
-
value: "local"
|
|
311
|
-
}] : [],
|
|
312
|
-
...n.map((e) => ({
|
|
313
|
-
label: e,
|
|
314
|
-
value: e
|
|
315
|
-
})),
|
|
316
|
-
{
|
|
317
|
-
label: "Ant Design",
|
|
318
|
-
value: "antd"
|
|
319
|
-
}
|
|
320
|
-
];
|
|
321
|
-
}), G = ref("all"), K = ref(""), q = computed(() => {
|
|
322
|
-
let e = [];
|
|
323
|
-
for (let [t, n] of H.value.entries()) n.forEach((n) => {
|
|
324
|
-
t === "local" ? e.push({
|
|
325
|
-
name: n,
|
|
326
|
-
module: t
|
|
327
|
-
}) : e.push({
|
|
328
|
-
name: `${t}-[${n}]`,
|
|
329
|
-
module: t
|
|
330
|
-
});
|
|
331
|
-
});
|
|
332
|
-
return U.value.forEach((t) => e.push({
|
|
333
|
-
name: t,
|
|
334
|
-
module: "antd"
|
|
335
|
-
})), e;
|
|
336
|
-
}), J = computed(() => G.value === "all" ? q.value : G.value === "antd" ? q.value.filter((e) => e.module === "antd") : q.value.filter((e) => e.module === G.value)), Y = computed(() => {
|
|
337
|
-
let e = K.value.trim().toLowerCase();
|
|
338
|
-
return e ? J.value.filter((t) => t.name.toLowerCase().includes(e)) : J.value;
|
|
339
|
-
});
|
|
340
|
-
function X(e) {
|
|
341
|
-
return e === "all" ? q.value.length : e === "antd" ? q.value.filter((e) => e.module === "antd").length : q.value.filter((t) => t.module === e).length;
|
|
342
|
-
}
|
|
343
|
-
let Z = ref(1), Q = computed(() => Math.max(1, Math.ceil(Y.value.length / pageSize))), ee = computed(() => {
|
|
344
|
-
let e = (Z.value - 1) * pageSize;
|
|
345
|
-
return Y.value.slice(e, e + pageSize);
|
|
346
|
-
});
|
|
347
|
-
watch([K, G], () => {
|
|
348
|
-
Z.value = 1;
|
|
349
|
-
}), watch(Y, () => {
|
|
350
|
-
Z.value > Q.value && (Z.value = Q.value);
|
|
351
|
-
});
|
|
352
|
-
function te(e) {
|
|
353
|
-
Z.value = e;
|
|
354
|
-
}
|
|
355
|
-
function ne(e) {
|
|
356
|
-
k.value = e.name;
|
|
357
|
-
}
|
|
358
|
-
let re = Empty.PRESENTED_IMAGE_SIMPLE;
|
|
359
|
-
function ie() {
|
|
360
|
-
if (!(k.value || "").startsWith("antd:")) return;
|
|
361
|
-
let e = I.value;
|
|
362
|
-
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
363
|
-
}
|
|
364
|
-
let $ = computed(() => (k.value || "").startsWith("antd:"));
|
|
365
|
-
return watch(A, (e, t) => {
|
|
366
|
-
t === "null" && e !== "null" && !F.value && (F.value = "#ffffff");
|
|
367
|
-
}), (e, t) => {
|
|
368
|
-
let n = Tooltip$1, i = Input$1, o = Pagination$1, u = Empty$1, m = RadioButton, _ = RadioGroup, v = Button, x = Modal$1, S = FormItemRest;
|
|
369
|
-
return openBlock(), createElementBlock(Fragment, null, [renderSlot(e.$slots, "default", { open: R }, () => [createVNode(i, {
|
|
370
|
-
value: p.value,
|
|
371
|
-
readonly: "",
|
|
372
|
-
onClick: R
|
|
373
|
-
}, {
|
|
374
|
-
addonAfter: withCtx(() => [createVNode(n, null, {
|
|
375
|
-
title: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
376
|
-
name: p.value || "",
|
|
377
|
-
size: "40px",
|
|
378
|
-
class: "cursor-default"
|
|
379
|
-
}, null, 8, ["name"])]),
|
|
380
|
-
default: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
381
|
-
name: p.value || "",
|
|
382
|
-
size: "20px",
|
|
383
|
-
class: "cursor-default"
|
|
384
|
-
}, null, 8, ["name"])]),
|
|
385
|
-
_: 1
|
|
386
|
-
})]),
|
|
387
|
-
_: 1
|
|
388
|
-
}, 8, ["value"])], !0), createVNode(S, null, {
|
|
389
|
-
default: withCtx(() => [createVNode(x, {
|
|
390
|
-
open: L.value,
|
|
391
|
-
"onUpdate:open": t[8] ||= (e) => L.value = e,
|
|
392
|
-
title: "选择图标",
|
|
393
|
-
width: "1200px",
|
|
394
|
-
footer: null,
|
|
395
|
-
"destroy-on-close": "",
|
|
396
|
-
onCancel: z
|
|
397
|
-
}, {
|
|
398
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [
|
|
399
|
-
createElementVNode("div", _hoisted_2$1, [createElementVNode("div", _hoisted_3$1, [createVNode(i, {
|
|
400
|
-
value: K.value,
|
|
401
|
-
"onUpdate:value": t[0] ||= (e) => K.value = e,
|
|
402
|
-
"allow-clear": "",
|
|
403
|
-
bordered: !0,
|
|
404
|
-
placeholder: "搜索图标",
|
|
405
|
-
class: "h-9 text-13px"
|
|
406
|
-
}, {
|
|
407
|
-
prefix: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
408
|
-
name: "i-carbon-search",
|
|
409
|
-
size: "16",
|
|
410
|
-
class: "text-[#7a869a]"
|
|
411
|
-
})]),
|
|
412
|
-
_: 1
|
|
413
|
-
}, 8, ["value"])]), createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(W.value, (e) => (openBlock(), createElementBlock("div", {
|
|
414
|
-
key: e.value,
|
|
415
|
-
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", G.value === e.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
|
|
416
|
-
onClick: (t) => G.value = e.value
|
|
417
|
-
}, [createElementVNode("span", _hoisted_6, toDisplayString(e.label), 1), createElementVNode("span", _hoisted_7, toDisplayString(X(e.value)), 1)], 10, _hoisted_5))), 128))])]),
|
|
418
|
-
createElementVNode("div", _hoisted_8, [Y.value.length ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", _hoisted_9, [(openBlock(!0), createElementBlock(Fragment, null, renderList(ee.value, (e) => (openBlock(), createBlock(n, {
|
|
419
|
-
key: `${e.module || ""}:${e.name}`,
|
|
420
|
-
"mouse-enter-delay": .35
|
|
421
|
-
}, {
|
|
422
|
-
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)])]),
|
|
423
|
-
default: withCtx(() => [createElementVNode("div", {
|
|
424
|
-
class: normalizeClass(["group relative flex flex-col items-center justify-center cursor-pointer rounded-md border", k.value === e.name ? "border-solid border-[#1677ff]" : "border-dashed border-[#e5e7eb] dark:border-[#30363d]"]),
|
|
425
|
-
onClick: (t) => ne(e)
|
|
426
|
-
}, [createVNode(unref(PubinfoIcon), {
|
|
427
|
-
name: e.name,
|
|
428
|
-
size: "30px"
|
|
429
|
-
}, null, 8, ["name"])], 10, _hoisted_13)]),
|
|
430
|
-
_: 2
|
|
431
|
-
}, 1024))), 128))]), createElementVNode("div", _hoisted_14, [createVNode(o, {
|
|
432
|
-
current: Z.value,
|
|
433
|
-
"page-size": pageSize,
|
|
434
|
-
total: Y.value.length,
|
|
435
|
-
"show-size-changer": !1,
|
|
436
|
-
"show-quick-jumper": "",
|
|
437
|
-
onChange: te
|
|
438
|
-
}, null, 8, ["current", "total"])])], 64)) : (openBlock(), createElementBlock("div", _hoisted_15, [createVNode(u, {
|
|
439
|
-
image: unref(re),
|
|
440
|
-
description: "没有匹配的图标"
|
|
441
|
-
}, null, 8, ["image"])]))]),
|
|
442
|
-
k.value ? (openBlock(), createElementBlock("div", _hoisted_16, [createElementVNode("div", _hoisted_17, [
|
|
443
|
-
createElementVNode("div", _hoisted_18, [createVNode(_, {
|
|
444
|
-
value: A.value,
|
|
445
|
-
"onUpdate:value": t[1] ||= (e) => A.value = e,
|
|
446
|
-
class: "flex justify-center items-center"
|
|
447
|
-
}, {
|
|
448
|
-
default: withCtx(() => [
|
|
449
|
-
createVNode(m, { value: "null" }, {
|
|
450
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_19, [createVNode(unref(PubinfoIcon), {
|
|
451
|
-
name: k.value,
|
|
452
|
-
size: previewBoxOuter - previewBoxPadding * 2
|
|
453
|
-
}, null, 8, ["name", "size"])])]),
|
|
454
|
-
_: 1
|
|
455
|
-
}),
|
|
456
|
-
createVNode(m, { value: "square" }, {
|
|
457
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_20, [createVNode(unref(PubinfoIcon), {
|
|
458
|
-
name: k.value,
|
|
459
|
-
box: "square",
|
|
460
|
-
size: previewBoxOuter,
|
|
461
|
-
radius: "25%",
|
|
462
|
-
color: "#ffffff"
|
|
463
|
-
}, null, 8, ["name"])])]),
|
|
464
|
-
_: 1
|
|
465
|
-
}),
|
|
466
|
-
createVNode(m, { value: "prism" }, {
|
|
467
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_21, [createVNode(unref(PubinfoIcon), {
|
|
468
|
-
name: k.value,
|
|
469
|
-
box: "prism",
|
|
470
|
-
size: previewBoxOuter,
|
|
471
|
-
color: "#ffffff",
|
|
472
|
-
radius: "2%"
|
|
473
|
-
}, null, 8, ["name"])])]),
|
|
474
|
-
_: 1
|
|
475
|
-
})
|
|
476
|
-
]),
|
|
477
|
-
_: 1
|
|
478
|
-
}, 8, ["value"])]),
|
|
479
|
-
createElementVNode("div", _hoisted_22, [
|
|
480
|
-
createElementVNode("div", _hoisted_23, [t[9] ||= createElementVNode("div", { class: "text-12px mb-2 opacity-70" }, " 背景设置 ", -1), createVNode(BoxColorPicker_default, {
|
|
481
|
-
angle: j.value,
|
|
482
|
-
"onUpdate:angle": t[2] ||= (e) => j.value = e,
|
|
483
|
-
background: M.value,
|
|
484
|
-
"onUpdate:background": t[3] ||= (e) => M.value = e,
|
|
485
|
-
radius: N.value,
|
|
486
|
-
"onUpdate:radius": t[4] ||= (e) => N.value = e,
|
|
487
|
-
"icon-size": P.value,
|
|
488
|
-
"onUpdate:iconSize": t[5] ||= (e) => P.value = e,
|
|
489
|
-
disabled: A.value === "null"
|
|
490
|
-
}, null, 8, [
|
|
491
|
-
"angle",
|
|
492
|
-
"background",
|
|
493
|
-
"radius",
|
|
494
|
-
"icon-size",
|
|
495
|
-
"disabled"
|
|
496
|
-
])]),
|
|
497
|
-
createElementVNode("div", _hoisted_24, [createElementVNode("div", _hoisted_25, [createElementVNode("label", _hoisted_26, [t[11] ||= createTextVNode(" 图标色 ", -1), createVNode(n, null, {
|
|
498
|
-
title: withCtx(() => [...t[10] ||= [createTextVNode(" 仅 Ant Design 图标有效 ", -1)]]),
|
|
499
|
-
default: withCtx(() => [createVNode(unref(PubinfoIcon), {
|
|
500
|
-
name: "i-carbon-information",
|
|
501
|
-
size: "12px",
|
|
502
|
-
class: "ml-1 cursor-help"
|
|
503
|
-
})]),
|
|
504
|
-
_: 1
|
|
505
|
-
})]), createElementVNode("div", _hoisted_27, [createVNode(i, {
|
|
506
|
-
value: F.value,
|
|
507
|
-
"onUpdate:value": t[7] ||= (e) => F.value = e,
|
|
508
|
-
"allow-clear": "",
|
|
509
|
-
placeholder: A.value === "null" ? "默认" : "#ffffff",
|
|
510
|
-
size: "small",
|
|
511
|
-
class: "flex-1 min-w-0",
|
|
512
|
-
disabled: !$.value
|
|
513
|
-
}, {
|
|
514
|
-
prefix: withCtx(() => [createElementVNode("div", _hoisted_28, [createElementVNode("button", {
|
|
515
|
-
type: "button",
|
|
516
|
-
disabled: !$.value,
|
|
517
|
-
class: normalizeClass(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", $.value ? "" : "opacity-50 cursor-not-allowed"]),
|
|
518
|
-
style: normalizeStyle({ background: F.value || "#ffffff" }),
|
|
519
|
-
onClick: ie
|
|
520
|
-
}, null, 14, _hoisted_29), createElementVNode("input", {
|
|
521
|
-
ref_key: "iconColorPickerRef",
|
|
522
|
-
ref: I,
|
|
523
|
-
type: "color",
|
|
524
|
-
value: F.value || "#ffffff",
|
|
525
|
-
disabled: !$.value,
|
|
526
|
-
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
527
|
-
style: {
|
|
528
|
-
width: "16px",
|
|
529
|
-
height: "16px"
|
|
530
|
-
},
|
|
531
|
-
onInput: t[6] ||= (e) => F.value = e.target.value
|
|
532
|
-
}, null, 40, _hoisted_30)])]),
|
|
533
|
-
_: 1
|
|
534
|
-
}, 8, [
|
|
535
|
-
"value",
|
|
536
|
-
"placeholder",
|
|
537
|
-
"disabled"
|
|
538
|
-
])])])]),
|
|
539
|
-
createElementVNode("div", _hoisted_31, [createElementVNode("div", _hoisted_32, [k.value ? (openBlock(), createElementBlock("div", _hoisted_33, [A.value === "null" ? (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
540
|
-
key: 0,
|
|
541
|
-
name: k.value,
|
|
542
|
-
size: 80,
|
|
543
|
-
color: $.value && F.value ? F.value : void 0
|
|
544
|
-
}, null, 8, ["name", "color"])) : (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
545
|
-
key: 1,
|
|
546
|
-
name: k.value,
|
|
547
|
-
box: A.value,
|
|
548
|
-
size: 80,
|
|
549
|
-
angle: j.value,
|
|
550
|
-
background: M.value,
|
|
551
|
-
radius: N.value,
|
|
552
|
-
"icon-size": P.value,
|
|
553
|
-
color: $.value ? F.value || "#ffffff" : void 0
|
|
554
|
-
}, null, 8, [
|
|
555
|
-
"name",
|
|
556
|
-
"box",
|
|
557
|
-
"angle",
|
|
558
|
-
"background",
|
|
559
|
-
"radius",
|
|
560
|
-
"icon-size",
|
|
561
|
-
"color"
|
|
562
|
-
]))])) : createCommentVNode("", !0)])])
|
|
563
|
-
]),
|
|
564
|
-
createElementVNode("div", _hoisted_34, [createVNode(v, { onClick: z }, {
|
|
565
|
-
default: withCtx(() => [...t[12] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
566
|
-
_: 1
|
|
567
|
-
}), createVNode(v, {
|
|
568
|
-
type: "primary",
|
|
569
|
-
onClick: B
|
|
570
|
-
}, {
|
|
571
|
-
default: withCtx(() => [...t[13] ||= [createTextVNode(" 确定 ", -1)]]),
|
|
572
|
-
_: 1
|
|
573
|
-
})])
|
|
574
|
-
])])) : createCommentVNode("", !0)
|
|
575
|
-
])]),
|
|
576
|
-
_: 1
|
|
577
|
-
}, 8, ["open"])]),
|
|
578
|
-
_: 1
|
|
579
|
-
})], 64);
|
|
580
|
-
};
|
|
581
|
-
}
|
|
582
|
-
}), [["__scopeId", "data-v-21a5fc0d"]]), _hoisted_1 = ["onClick"], _hoisted_2 = ["onClick"], _hoisted_3 = { class: "flex flex-col items-center justify-center" }, IconSelect_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
583
|
-
name: "ResourceIconSelect",
|
|
584
|
-
__name: "IconSelect",
|
|
585
|
-
props: {
|
|
586
|
-
modelValue: { default: { meta: {
|
|
587
|
-
url: "",
|
|
588
|
-
component: ""
|
|
589
|
-
} } },
|
|
590
|
-
modelModifiers: {}
|
|
591
|
-
},
|
|
592
|
-
emits: ["update:modelValue"],
|
|
593
|
-
setup(e) {
|
|
594
|
-
let t = useModel(e, "modelValue");
|
|
595
|
-
function i() {
|
|
596
|
-
return {
|
|
597
|
-
boxType: "null",
|
|
598
|
-
angle: 65,
|
|
599
|
-
background: {
|
|
600
|
-
from: "#65E54A",
|
|
601
|
-
to: "#35C724"
|
|
602
|
-
},
|
|
603
|
-
radius: "50%",
|
|
604
|
-
iconColor: "",
|
|
605
|
-
iconSize: "50%"
|
|
606
|
-
};
|
|
607
|
-
}
|
|
608
|
-
let a = computed(() => t.value.meta || (t.value.meta = {})), l = reactive(i());
|
|
609
|
-
watch(() => a.value.iconOptions, (e) => {
|
|
610
|
-
e ? Object.assign(l, i(), e) : Object.assign(l, i());
|
|
611
|
-
}, { immediate: !0 }), watch(l, (e) => {
|
|
612
|
-
if (!t.value.icon) {
|
|
613
|
-
a.value.iconOptions && Reflect.deleteProperty(a.value, "iconOptions");
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
let n = a.value.iconOptions, r = !1;
|
|
617
|
-
if (!n) r = !0;
|
|
618
|
-
else {
|
|
619
|
-
let t = new Set([...Object.keys(n), ...Object.keys(e)]);
|
|
620
|
-
for (let i of t) if (n[i] !== e[i]) {
|
|
621
|
-
r = !0;
|
|
622
|
-
break;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
r && (a.value.iconOptions = { ...e });
|
|
626
|
-
}, { deep: !0 });
|
|
627
|
-
let u = computed(() => {
|
|
628
|
-
let e = t.value.type;
|
|
629
|
-
return { icon: [
|
|
630
|
-
RESOURCE_TYPE.DYNAMIC_APP,
|
|
631
|
-
RESOURCE_TYPE.INDEX,
|
|
632
|
-
RESOURCE_TYPE.MENU,
|
|
633
|
-
RESOURCE_TYPE.IFRAME,
|
|
634
|
-
RESOURCE_TYPE.LINK
|
|
635
|
-
].includes(e) };
|
|
636
|
-
}), d = computed(() => !0);
|
|
637
|
-
function f(e) {
|
|
638
|
-
e.stopPropagation(), t.value.icon && (t.value.icon = void 0, Reflect.deleteProperty(a.value, "iconOptions"));
|
|
639
|
-
}
|
|
640
|
-
return (e, n) => {
|
|
641
|
-
let i = FormItem;
|
|
642
|
-
return unref(d) && unref(u).icon ? (openBlock(), createBlock(i, {
|
|
643
|
-
key: 0,
|
|
644
|
-
label: "资源图标"
|
|
645
|
-
}, {
|
|
646
|
-
default: withCtx(() => [createVNode(Select_default, {
|
|
647
|
-
modelValue: t.value.icon,
|
|
648
|
-
"onUpdate:modelValue": n[0] ||= (e) => t.value.icon = e,
|
|
649
|
-
"box-type": unref(l).boxType,
|
|
650
|
-
"onUpdate:boxType": n[1] ||= (e) => unref(l).boxType = e,
|
|
651
|
-
angle: unref(l).angle,
|
|
652
|
-
"onUpdate:angle": n[2] ||= (e) => unref(l).angle = e,
|
|
653
|
-
background: unref(l).background,
|
|
654
|
-
"onUpdate:background": n[3] ||= (e) => unref(l).background = e,
|
|
655
|
-
radius: unref(l).radius,
|
|
656
|
-
"onUpdate:radius": n[4] ||= (e) => unref(l).radius = e,
|
|
657
|
-
"icon-color": unref(l).iconColor,
|
|
658
|
-
"onUpdate:iconColor": n[5] ||= (e) => unref(l).iconColor = e,
|
|
659
|
-
"icon-size": unref(l).iconSize,
|
|
660
|
-
"onUpdate:iconSize": n[6] ||= (e) => unref(l).iconSize = e
|
|
661
|
-
}, {
|
|
662
|
-
default: withCtx(({ open: e }) => [t.value.icon ? (openBlock(), createElementBlock("div", {
|
|
663
|
-
key: 0,
|
|
664
|
-
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",
|
|
665
|
-
onClick: e
|
|
666
|
-
}, [unref(l).boxType && unref(l).boxType !== "null" ? (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
667
|
-
key: 0,
|
|
668
|
-
name: t.value.icon,
|
|
669
|
-
box: unref(l).boxType,
|
|
670
|
-
size: "48px",
|
|
671
|
-
radius: unref(l).radius,
|
|
672
|
-
background: unref(l).background,
|
|
673
|
-
angle: unref(l).angle,
|
|
674
|
-
"icon-size": unref(l).iconSize,
|
|
675
|
-
color: (t.value.icon || "").startsWith("antd:") ? unref(l).iconColor || "#ffffff" : void 0
|
|
676
|
-
}, null, 8, [
|
|
677
|
-
"name",
|
|
678
|
-
"box",
|
|
679
|
-
"radius",
|
|
680
|
-
"background",
|
|
681
|
-
"angle",
|
|
682
|
-
"icon-size",
|
|
683
|
-
"color"
|
|
684
|
-
])) : (openBlock(), createBlock(unref(PubinfoIcon), {
|
|
685
|
-
key: 1,
|
|
686
|
-
name: t.value.icon,
|
|
687
|
-
size: "48px",
|
|
688
|
-
color: (t.value.icon || "").startsWith("antd:") && unref(l).iconColor || void 0
|
|
689
|
-
}, null, 8, ["name", "color"])), t.value.icon ? (openBlock(), createElementBlock("button", {
|
|
690
|
-
key: 2,
|
|
691
|
-
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",
|
|
692
|
-
type: "button",
|
|
693
|
-
onClick: f
|
|
694
|
-
}, [createVNode(unref(PubinfoIcon), {
|
|
695
|
-
name: "antd:CloseOutlined",
|
|
696
|
-
size: "10px"
|
|
697
|
-
})])) : createCommentVNode("", !0)], 8, _hoisted_1)) : (openBlock(), createElementBlock("div", {
|
|
698
|
-
key: 1,
|
|
699
|
-
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",
|
|
700
|
-
onClick: e
|
|
701
|
-
}, [createElementVNode("div", _hoisted_3, [createVNode(unref(PubinfoIcon), { name: "antd:PlusOutlined" }), n[7] ||= createElementVNode("span", { class: "text-10px mt-1" }, "选择图标", -1)])], 8, _hoisted_2))]),
|
|
702
|
-
_: 1
|
|
703
|
-
}, 8, [
|
|
704
|
-
"modelValue",
|
|
705
|
-
"box-type",
|
|
706
|
-
"angle",
|
|
707
|
-
"background",
|
|
708
|
-
"radius",
|
|
709
|
-
"icon-color",
|
|
710
|
-
"icon-size"
|
|
711
|
-
])]),
|
|
712
|
-
_: 1
|
|
713
|
-
})) : createCommentVNode("", !0);
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
}), IconSelect_exports = /* @__PURE__ */ __exportAll({ default: () => IconSelect_default }), IconSelect_default = IconSelect_vue_vue_type_script_setup_true_lang_default;
|
|
717
|
-
export { IconSelect_exports as n, IconSelect_default as t };
|