@pubinfo/module-rbac 2.1.10-beta.2 → 2.1.11

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.
Files changed (226) hide show
  1. package/dist/ComponentSelect-A7uGTuHW.js +3498 -0
  2. package/dist/{DynamicRoutesForm-DP_sq_Uu.js → DynamicRoutesForm-DSzy_bh5.js} +43 -42
  3. package/dist/HCheckList-ODQHidN8.js +37 -0
  4. package/dist/HoverCard-CmJCoa2b.js +44 -0
  5. package/dist/{IconSelect-CiLpc63Z.js → IconSelect-DouEg3xY.js} +89 -88
  6. package/dist/ImportExport-DisdLoY8.js +342 -0
  7. package/dist/{LayoutForm-Cp4bBrYl.js → LayoutForm-Bdfs5WeK.js} +35 -34
  8. package/dist/{MetaForm-CVSgktB_.js → MetaForm-CcDwS8vh.js} +6128 -6143
  9. package/dist/{OrgAndPosition-ClASobEv.js → OrgAndPosition-jDX7m0HD.js} +61 -60
  10. package/dist/{ResourceEdit-w8qh1MFO.js → ResourceEdit-0BYZRye_.js} +128 -127
  11. package/dist/{ResourceRelation-ChEwIbWM.js → ResourceRelation-CU-QpUhP.js} +25 -25
  12. package/dist/{ResourceRelation-D_j898zp.js → ResourceRelation-roz0a8Td.js} +35 -34
  13. package/dist/{RoleRelation-DzyVn5dk.js → RoleRelation-BQQFaum0.js} +28 -27
  14. package/dist/{RoleSelector-Cd6_RUsc.js → RoleSelector-gkar_UGG.js} +89 -89
  15. package/dist/{TenantEdit-BOvXk7BZ.js → TenantEdit-BsahDUlf.js} +94 -93
  16. package/dist/{UserAuthorization-DLeivbs7.js → UserAuthorization-2Fl4IGw7.js} +81 -80
  17. package/dist/{UserEdit-YKS1FVW_.js → UserEdit-CX3Qau8T.js} +102 -101
  18. package/dist/{animation_item-BU-LInxP.js → animation_item-DBOz2rcX.js} +20 -22
  19. package/dist/{blackWhiteList-CNQltBqC.js → blackWhiteList-DbG7JH8n.js} +69 -69
  20. package/dist/blackWhiteList.css +1 -1
  21. package/dist/breadcrumb_setting-DTR6CPZQ.js +108 -0
  22. package/dist/{browserType-Dn_hQtAN.js → browserType-B8A1Osvk.js} +11 -10
  23. package/dist/chunk-DiMWNkAf.js +18 -0
  24. package/dist/cloneDeep-CSOSavu3.js +6 -0
  25. package/dist/components/GroupSelector/index.vue.d.ts +7 -1
  26. package/dist/components/ResourceIcones/Select.vue.d.ts +2 -1
  27. package/dist/components/ResourceSelector/index.vue.d.ts +7 -1
  28. package/dist/components/RoleSelector/RoleSearch.vue.d.ts +9 -1
  29. package/dist/components/RoleSelector/RoleSelector.vue.d.ts +7 -1
  30. package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js} +49 -48
  31. package/dist/createAndEditDataPermission.css +1 -1
  32. package/dist/{data-permission-ZRQ-Aoib.js → data-permission-LpuDLDm0.js} +41 -41
  33. package/dist/{dayjs.min-sGDSMYRj.js → dayjs.min-Cb7gQFd4.js} +1 -1
  34. package/dist/{dictionary-CtGgtPfc.js → dictionary-CEaxjqZe.js} +46 -46
  35. package/dist/drawerBlackWhiteList-DXLdWurZ.js +120 -0
  36. package/dist/drawerDictionary-DYJTAZr6.js +126 -0
  37. package/dist/drawerDictionaryItem-BChXD2-q.js +138 -0
  38. package/dist/{drawerGroup-DEuiiDPP.js → drawerGroup-CdnZkZxi.js} +67 -66
  39. package/dist/drawerOrganization-CwtSFUj0.js +247 -0
  40. package/dist/drawerPosition-CfyfeQCN.js +166 -0
  41. package/dist/drawerRegion-DAwY_29K.js +183 -0
  42. package/dist/drawerRole-B7uCfHk-.js +154 -0
  43. package/dist/{drawerRole-Dv61PBZR.js → drawerRole-DK6DrinO.js} +77 -76
  44. package/dist/{drawerRole-DNDyOvXw.js → drawerRole-DrzMHL0O.js} +69 -68
  45. package/dist/{group-BbkZjv5e.js → group-CaOhkh72.js} +48 -48
  46. package/dist/group.css +1 -1
  47. package/dist/index.css +1 -1
  48. package/dist/index.js +613 -689
  49. package/dist/isEmpty-BjEzPyCa.js +12 -0
  50. package/dist/{itemlist-By-FV6pN.js → itemlist-CFwRUV2Y.js} +44 -44
  51. package/dist/json-asset-03f0a035.json +1 -0
  52. package/dist/json-asset-0ee63e7f.json +1 -0
  53. package/dist/json-asset-10eef4fe.json +1 -0
  54. package/dist/json-asset-13f452f1.json +1 -0
  55. package/dist/json-asset-14b7b290.json +1 -0
  56. package/dist/json-asset-15b8cef1.json +1 -0
  57. package/dist/json-asset-15f77960.json +1 -0
  58. package/dist/json-asset-1ae9b726.json +1 -0
  59. package/dist/json-asset-1b02359f.json +1 -0
  60. package/dist/json-asset-1ef286cd.json +1 -0
  61. package/dist/json-asset-23cfd18c.json +1 -0
  62. package/dist/json-asset-265a0a5d.json +1 -0
  63. package/dist/json-asset-28d57c49.json +1 -0
  64. package/dist/json-asset-2b54ed10.json +1 -0
  65. package/dist/json-asset-2bb6f642.json +1 -0
  66. package/dist/json-asset-2cdc07bd.json +1 -0
  67. package/dist/json-asset-31c58607.json +1 -0
  68. package/dist/json-asset-32884f23.json +1 -0
  69. package/dist/json-asset-32fca43a.json +1 -0
  70. package/dist/json-asset-3a75445b.json +1 -0
  71. package/dist/json-asset-3f27d67c.json +1 -0
  72. package/dist/json-asset-4189453f.json +1 -0
  73. package/dist/json-asset-4702b37c.json +1 -0
  74. package/dist/json-asset-520a5c68.json +1 -0
  75. package/dist/json-asset-56bea508.json +1 -0
  76. package/dist/json-asset-57c732a3.json +1 -0
  77. package/dist/json-asset-5be4a28f.json +1 -0
  78. package/dist/json-asset-5e6d7cfa.json +1 -0
  79. package/dist/json-asset-64e176c9.json +1 -0
  80. package/dist/json-asset-6583dca6.json +1 -0
  81. package/dist/json-asset-66c640c6.json +1 -0
  82. package/dist/json-asset-68393156.json +1 -0
  83. package/dist/json-asset-688465aa.json +1 -0
  84. package/dist/json-asset-6bf334f4.json +1 -0
  85. package/dist/json-asset-7b4f72ce.json +1 -0
  86. package/dist/json-asset-837ec087.json +1 -0
  87. package/dist/json-asset-838ac1ba.json +1 -0
  88. package/dist/json-asset-8465c2cf.json +1 -0
  89. package/dist/json-asset-9e9f04a4.json +1 -0
  90. package/dist/json-asset-a13964cb.json +1 -0
  91. package/dist/json-asset-ab93a057.json +1 -0
  92. package/dist/json-asset-abe308fc.json +1 -0
  93. package/dist/json-asset-b24f2cd3.json +1 -0
  94. package/dist/json-asset-bf00eaed.json +1 -0
  95. package/dist/json-asset-cb22efd7.json +1 -0
  96. package/dist/json-asset-cb953f20.json +1 -0
  97. package/dist/json-asset-cc209e34.json +1 -0
  98. package/dist/json-asset-cfdffceb.json +1 -0
  99. package/dist/json-asset-d33c0299.json +1 -0
  100. package/dist/json-asset-d430c8ca.json +1 -0
  101. package/dist/json-asset-d8cfa560.json +1 -0
  102. package/dist/json-asset-da91beb6.json +1 -0
  103. package/dist/json-asset-e2bdf85c.json +1 -0
  104. package/dist/json-asset-e34ad826.json +1 -0
  105. package/dist/json-asset-e80720aa.json +1 -0
  106. package/dist/json-asset-e894bc92.json +1 -0
  107. package/dist/json-asset-f28020f2.json +1 -0
  108. package/dist/json-asset-f71ebbf4.json +1 -0
  109. package/dist/json-asset-fb1f4917.json +1 -0
  110. package/dist/json-asset-ff2e97c4.json +1 -0
  111. package/dist/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
  112. package/dist/layout_setting.css +1 -1
  113. package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
  114. package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
  115. package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
  116. package/dist/login_history.css +1 -1
  117. package/dist/menu_setting-C2GciMXz.js +155 -0
  118. package/dist/not-data-Bml86wdH.js +3 -0
  119. package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
  120. package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
  121. package/dist/operate_history.css +1 -1
  122. package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
  123. package/dist/organization.css +1 -1
  124. package/dist/other_setting-oVuhA70c.js +213 -0
  125. package/dist/other_setting.css +1 -1
  126. package/dist/page_animation_setting-D0CtzyOZ.js +108 -0
  127. package/dist/page_animation_setting.css +1 -1
  128. package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
  129. package/dist/page_w_setting.css +1 -1
  130. package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
  131. package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
  132. package/dist/{resource-C7dXB0EE.js → resource-DaQ7CvM_.js} +69 -69
  133. package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
  134. package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
  135. package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
  136. package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
  137. package/dist/setItem.css +1 -1
  138. package/dist/tabbar_setting-DhrW4Jj5.js +139 -0
  139. package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
  140. package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
  141. package/dist/theme_setting.css +1 -1
  142. package/dist/toolbar_setting-znESrYgi.js +140 -0
  143. package/dist/useAppAndResource-B7FmNfKG.js +52 -0
  144. package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
  145. package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
  146. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
  147. package/dist/views/components/setItem.vue.d.ts +5 -1
  148. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
  149. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
  150. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
  151. package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
  152. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
  153. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
  154. package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
  155. package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
  156. package/dist/views/other_setting/interface.d.ts +1 -2
  157. package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
  158. package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
  159. package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
  160. package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
  161. package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
  162. package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
  163. package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
  164. package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
  165. package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
  166. package/dist/watermark_setting-DYirSIAn.js +191 -0
  167. package/dist/watermark_setting.css +1 -1
  168. package/package.json +13 -13
  169. package/src/views/other_setting/index.vue +2 -2
  170. package/src/views/other_setting/interface.ts +1 -1
  171. package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
  172. package/dist/ComponentSelect-WO-3S5rH.js +0 -2
  173. package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
  174. package/dist/HCheckList-B5Qk_HBI.js +0 -2
  175. package/dist/HCheckList-DLBewmPw.js +0 -36
  176. package/dist/HoverCard-69ZIOivd.js +0 -2
  177. package/dist/HoverCard-BDFcxxvk.js +0 -43
  178. package/dist/IconSelect-C_Gj5G4I.js +0 -3
  179. package/dist/ImportExport-CL5uPlby.js +0 -342
  180. package/dist/ImportExport-CPy2rvv7.js +0 -4
  181. package/dist/LayoutForm-QFjwakyQ.js +0 -4
  182. package/dist/MetaForm-Bb-um1Zo.js +0 -4
  183. package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
  184. package/dist/ResourceEdit-BTaNdwC_.js +0 -10
  185. package/dist/ResourceRelation-BIOzTOKA.js +0 -2
  186. package/dist/RoleRelation-CyTcqRfZ.js +0 -2
  187. package/dist/TenantEdit-BlMmL6q5.js +0 -2
  188. package/dist/UserAuthorization-qGr1Sdat.js +0 -3
  189. package/dist/UserEdit-CwfyqNWf.js +0 -3
  190. package/dist/animation_item-GzGItm3s.js +0 -2
  191. package/dist/breadcrumb_setting-Ds-XJRR1.js +0 -108
  192. package/dist/browserType-BXTT4j6i.js +0 -2
  193. package/dist/chunk-Cpsc_9al.js +0 -18
  194. package/dist/cloneDeep-DDAtsK42.js +0 -7
  195. package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
  196. package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
  197. package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
  198. package/dist/drawerDictionary-D911w7pC.js +0 -2
  199. package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
  200. package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
  201. package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
  202. package/dist/drawerGroup-CEEDMBg9.js +0 -3
  203. package/dist/drawerOrganization-CqEMD3gE.js +0 -246
  204. package/dist/drawerOrganization-mks5NMd9.js +0 -2
  205. package/dist/drawerPosition-Bd0s7qze.js +0 -165
  206. package/dist/drawerPosition-DwlTrlGA.js +0 -2
  207. package/dist/drawerRegion-DUbQAZuV.js +0 -182
  208. package/dist/drawerRegion-DwVzsZfT.js +0 -2
  209. package/dist/drawerRole-BNrbcSmr.js +0 -3
  210. package/dist/drawerRole-BxUIekjh.js +0 -3
  211. package/dist/drawerRole-CyA2oFht.js +0 -4
  212. package/dist/drawerRole-D5X7oHB_.js +0 -153
  213. package/dist/isEmpty-BvRqbmpu.js +0 -13
  214. package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
  215. package/dist/menu_setting-5Jet091Q.js +0 -155
  216. package/dist/not-data-Cx--tk_h.js +0 -2
  217. package/dist/not-data-tyTawN37.js +0 -2
  218. package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
  219. package/dist/other_setting-DQ70WnZK.js +0 -213
  220. package/dist/page_animation_setting-Lp6cMuFM.js +0 -108
  221. package/dist/routeSystem-DXMoWhFo.js +0 -2
  222. package/dist/setItem-Qa7UapHO.js +0 -4
  223. package/dist/tabbar_setting-B3kMhRNm.js +0 -139
  224. package/dist/toolbar_setting-DNBdxeGP.js +0 -140
  225. package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
  226. package/dist/watermark_setting-CXp4Og0Y.js +0 -191
@@ -1,5 +1,5 @@
1
1
  import { Lt as useToggle, d as getBlackWhiteListDeleteById, h as _plugin_vue_export_helper_default, m as postBlackWhiteListUpdateBlackWhiteList, p as postBlackWhiteListGetBlackWhiteListPageList } from "./index.js";
2
- import { t as drawerBlackWhiteList_default } from "./drawerBlackWhiteList-CkbZ_9PZ.js";
2
+ import { t as drawerBlackWhiteList_default } from "./drawerBlackWhiteList-DXLdWurZ.js";
3
3
  import { PubinfoIcon, useAuth } from "pubinfo";
4
4
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
5
5
  import { PlusCircleOutlined } from "@ant-design/icons-vue";
@@ -16,8 +16,8 @@ var _hoisted_1 = {
16
16
  }, _hoisted_2 = { class: "ml-4px" }, _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, _hoisted_7 = ["onClick"], _hoisted_8 = { class: "ml-4px" }, _hoisted_9 = ["onClick"], _hoisted_10 = { class: "ml-4px" }, blackWhiteList_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
17
17
  name: "BlackWhiteList",
18
18
  __name: "index",
19
- setup(D) {
20
- let P = useRoute(), F = computed(() => P.path.includes("blacklist")), I = computed(() => F.value ? 0 : 1), L = computed(() => F.value ? "blacklist" : "whitelist"), R = computed(() => `${L.value}_add`), z = computed(() => `${L.value}_edit`), B = computed(() => `${L.value}_delete`), V = computed(() => `${L.value}_enable`), H = computed(() => `${L.value}_disable`), { auth: U } = useAuth(), W = ref(), G = ref(), K = [
19
+ setup(n) {
20
+ let l = useRoute(), u = computed(() => l.path.includes("blacklist")), d = computed(() => u.value ? 0 : 1), f = computed(() => u.value ? "blacklist" : "whitelist"), p = computed(() => `${f.value}_add`), m = computed(() => `${f.value}_edit`), h = computed(() => `${f.value}_delete`), g = computed(() => `${f.value}_enable`), _ = computed(() => `${f.value}_disable`), { auth: v } = useAuth(), y = ref(), b = ref(), x = [
21
21
  {
22
22
  valueType: "a-input",
23
23
  minWidth: 60,
@@ -61,81 +61,81 @@ var _hoisted_1 = {
61
61
  width: 200,
62
62
  fixed: "right",
63
63
  hideInTable() {
64
- return !U([
65
- R.value,
66
- z.value,
67
- B.value,
68
- V.value,
69
- H.value
64
+ return !v([
65
+ p.value,
66
+ m.value,
67
+ h.value,
68
+ g.value,
69
+ _.value
70
70
  ]);
71
71
  }
72
72
  }
73
73
  ];
74
- async function q(e) {
75
- let { current: E, pageSize: D, ip: O, enable: A } = e, j = {
76
- ip: O,
77
- pageSize: D,
78
- currentPage: E,
74
+ async function S(e) {
75
+ let { current: t, pageSize: n, ip: r, enable: a } = e, o = {
76
+ ip: r,
77
+ pageSize: n,
78
+ currentPage: t,
79
79
  doSearchTotal: !0,
80
- type: I.value
80
+ type: d.value
81
81
  };
82
- A !== void 0 && (j.enable = A);
83
- let M = await postBlackWhiteListGetBlackWhiteListPageList(j);
82
+ a !== void 0 && (o.enable = a);
83
+ let s = await postBlackWhiteListGetBlackWhiteListPageList(o);
84
84
  return {
85
- success: M.success,
86
- data: M.data?.records ?? [],
87
- total: M.data?.total ?? 0
85
+ success: s.success,
86
+ data: s.data?.records ?? [],
87
+ total: s.data?.total ?? 0
88
88
  };
89
89
  }
90
- function J() {
91
- W.value.reload();
90
+ function C() {
91
+ y.value.reload();
92
92
  }
93
- let [Y, X] = useToggle(!1);
94
- function Z(e, D) {
93
+ let [w, T] = useToggle(!1);
94
+ function E(e, n) {
95
95
  Modal.confirm({
96
96
  title: "删除",
97
97
  content: `确定要删除该条${e}数据吗?`,
98
98
  async onOk() {
99
- X(!0), getBlackWhiteListDeleteById({ id: D?.id }).then((e) => {
100
- e.success && (message.success("删除成功"), J());
101
- }).finally(() => X(!1));
99
+ T(!0), getBlackWhiteListDeleteById({ id: n?.id }).then((e) => {
100
+ e.success && (message.success("删除成功"), C());
101
+ }).finally(() => T(!1));
102
102
  }
103
103
  });
104
104
  }
105
- function Q(e) {
106
- X(!0), postBlackWhiteListUpdateBlackWhiteList({
105
+ function D(e) {
106
+ T(!0), postBlackWhiteListUpdateBlackWhiteList({
107
107
  id: e?.id,
108
108
  enable: !e?.enable
109
- }).then((E) => {
110
- if (E.success) {
111
- let E = "";
112
- E = e?.enable ? "停用成功!" : "启用成功!", message.success(E), J();
109
+ }).then((t) => {
110
+ if (t.success) {
111
+ let t = "";
112
+ t = e?.enable ? "停用成功!" : "启用成功!", message.success(t), C();
113
113
  }
114
- }).finally(() => X(!1));
114
+ }).finally(() => T(!1));
115
115
  }
116
- function $(e, E) {
117
- if (Y.value) return;
118
- let D = "";
119
- switch (D = F.value ? "黑名单" : "白名单", e) {
116
+ function O(e, t) {
117
+ if (w.value) return;
118
+ let n = "";
119
+ switch (n = u.value ? "黑名单" : "白名单", e) {
120
120
  case ACTION.ADD:
121
- G.value.open(e + D, !1);
121
+ b.value.open(e + n, !1);
122
122
  break;
123
123
  case ACTION.EDIT:
124
- G.value.open(e + D, !0, E);
124
+ b.value.open(e + n, !0, t);
125
125
  break;
126
126
  case ACTION.REMOVE:
127
- Z(D, E);
127
+ E(n, t);
128
128
  break;
129
129
  case ACTION.ENABLE:
130
130
  case ACTION.DISABLE:
131
- Q(E);
131
+ D(t);
132
132
  break;
133
133
  }
134
134
  }
135
- return (e, E) => {
136
- let D = PlusCircleOutlined, O = Button, k = PubinfoIcon, M = Space$1, N = resolveDirective("auth");
135
+ return (e, t) => {
136
+ let n = PlusCircleOutlined, r = Button, i = PubinfoIcon, s = Space$1, c = resolveDirective("auth");
137
137
  return openBlock(), createElementBlock("div", {
138
- key: unref(I),
138
+ key: unref(d),
139
139
  "w-full": "",
140
140
  "h-full": "",
141
141
  "py-10px": "",
@@ -145,29 +145,29 @@ var _hoisted_1 = {
145
145
  class: "page-black-white-list"
146
146
  }, [createVNode(unref(ProTable), {
147
147
  ref_key: "tableRef",
148
- ref: W,
148
+ ref: y,
149
149
  "row-key": "id",
150
- request: q,
151
- columns: K,
150
+ request: S,
151
+ columns: x,
152
152
  "auto-height": "",
153
153
  scroll: { x: 1e3 }
154
154
  }, {
155
- toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(O, {
155
+ toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(r, {
156
156
  type: "primary",
157
- onClick: E[0] ||= (e) => $(unref(ACTION).ADD)
157
+ onClick: t[0] ||= (e) => O(unref(ACTION).ADD)
158
158
  }, {
159
- default: withCtx(() => [createVNode(D), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
159
+ default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
160
160
  _: 1
161
- })), [[N, unref(R)]])]),
162
- bodyCell: withCtx(({ column: e, record: E }) => [e.dataIndex === "enable" ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("i", { class: normalizeClass(["status-mark", [{ active: E.enable }]]) }, null, 2), createElementVNode("span", _hoisted_2, toDisplayString(E.enable ? "启用" : "停用"), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(M, { key: 1 }, {
161
+ })), [[c, unref(p)]])]),
162
+ bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "enable" ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("i", { class: normalizeClass(["status-mark", [{ active: t.enable }]]) }, null, 2), createElementVNode("span", _hoisted_2, toDisplayString(t.enable ? "启用" : "停用"), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(s, { key: 1 }, {
163
163
  default: withCtx(() => [
164
164
  withDirectives((openBlock(), createElementBlock("a", {
165
165
  class: "flex items-center hover:opacity-80",
166
- onClick: (e) => $(unref(ACTION).EDIT, E)
167
- }, [createVNode(k, {
166
+ onClick: (e) => O(unref(ACTION).EDIT, t)
167
+ }, [createVNode(i, {
168
168
  name: "edit",
169
169
  class: "text-base"
170
- }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[N, unref(z)]]),
170
+ }), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[c, unref(m)]]),
171
171
  withDirectives((openBlock(), createElementBlock("span", {
172
172
  flex: "",
173
173
  "items-center": "",
@@ -175,35 +175,35 @@ var _hoisted_1 = {
175
175
  "hover:cursor-pointer": "",
176
176
  "hover:text-red-500": "",
177
177
  "hover:opacity-80": "",
178
- onClick: (e) => $(unref(ACTION).REMOVE, E)
179
- }, [createVNode(k, {
178
+ onClick: (e) => O(unref(ACTION).REMOVE, t)
179
+ }, [createVNode(i, {
180
180
  name: "remove",
181
181
  class: "text-base"
182
- }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[N, unref(B)]]),
183
- E.enable ? withDirectives((openBlock(), createElementBlock("a", {
182
+ }), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[c, unref(h)]]),
183
+ t.enable ? withDirectives((openBlock(), createElementBlock("a", {
184
184
  key: 0,
185
185
  class: "flex items-center",
186
- onClick: (e) => $(unref(ACTION).DISABLE, E)
187
- }, [createVNode(k, {
186
+ onClick: (e) => O(unref(ACTION).DISABLE, t)
187
+ }, [createVNode(i, {
188
188
  name: "blacklist-disable",
189
189
  class: "text-20px"
190
- }), createElementVNode("span", _hoisted_8, toDisplayString(unref(ACTION).DISABLE), 1)], 8, _hoisted_7)), [[N, unref(H)]]) : withDirectives((openBlock(), createElementBlock("a", {
190
+ }), createElementVNode("span", _hoisted_8, toDisplayString(unref(ACTION).DISABLE), 1)], 8, _hoisted_7)), [[c, unref(_)]]) : withDirectives((openBlock(), createElementBlock("a", {
191
191
  key: 1,
192
192
  class: "flex items-center",
193
- onClick: (e) => $(unref(ACTION).ENABLE, E)
194
- }, [createVNode(k, {
193
+ onClick: (e) => O(unref(ACTION).ENABLE, t)
194
+ }, [createVNode(i, {
195
195
  name: "blacklist-enable",
196
196
  class: "text-20px"
197
- }), createElementVNode("span", _hoisted_10, toDisplayString(unref(ACTION).ENABLE), 1)], 8, _hoisted_9)), [[N, unref(V)]])
197
+ }), createElementVNode("span", _hoisted_10, toDisplayString(unref(ACTION).ENABLE), 1)], 8, _hoisted_9)), [[c, unref(g)]])
198
198
  ]),
199
199
  _: 2
200
200
  }, 1024)) : createCommentVNode("", !0)]),
201
201
  _: 1
202
202
  }, 512), createVNode(drawerBlackWhiteList_default, {
203
203
  ref_key: "drawerRef",
204
- ref: G,
205
- type: unref(I),
206
- onSubmit: E[1] ||= (e) => J()
204
+ ref: b,
205
+ type: unref(d),
206
+ onSubmit: t[1] ||= (e) => C()
207
207
  }, null, 8, ["type"])]);
208
208
  };
209
209
  }
@@ -1 +1 @@
1
- .page-black-white-list[data-v-f7d838c2] .ant-card.pro-table{border-top-left-radius:0;border-top-right-radius:0}.page-black-white-list .status-mark[data-v-f7d838c2]{--un-bg-opacity:1;background-color:rgb(174 174 174/var(--un-bg-opacity));border-radius:50%;width:.5rem;height:.5rem;margin-right:.25rem;display:inline-block}.page-black-white-list .status-mark.active[data-v-f7d838c2]{background:#01d689}
1
+ .page-black-white-list[data-v-f7d838c2] .ant-card.pro-table{border-top-left-radius:0;border-top-right-radius:0}.page-black-white-list .status-mark[data-v-f7d838c2]{--un-bg-opacity:1;background-color:rgb(174 174 174/var(--un-bg-opacity)) ;border-radius:50%;width:.5rem;height:.5rem;margin-right:.25rem;display:inline-block}.page-black-white-list .status-mark.active[data-v-f7d838c2]{background:#01d689}
@@ -0,0 +1,108 @@
1
+ import { h as _plugin_vue_export_helper_default, l as postSysconfigAddOrEidtSysThemeStyleConfig } from "./index.js";
2
+ import { t as useSettingsStore } from "./stores-DPQF8JRt.js";
3
+ import "./animation_item-DBOz2rcX.js";
4
+ import "./HCheckList-ODQHidN8.js";
5
+ import { t as setItem_default } from "./setItem-Vkcwkj-O.js";
6
+ import { PubinfoIcon } from "pubinfo";
7
+ import { Fragment, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, reactive, renderList, resolveComponent, unref } from "vue";
8
+ import { message } from "ant-design-vue";
9
+ import './breadcrumb_setting.css';var enable_default$1 = new URL("json-asset-2bb6f642.json", import.meta.url).href, enableMainMenu_default$1 = new URL("json-asset-b24f2cd3.json", import.meta.url).href, style_default$1 = new URL("json-asset-7b4f72ce.json", import.meta.url).href, enable_default = new URL("json-asset-2cdc07bd.json", import.meta.url).href, enableMainMenu_default = new URL("json-asset-fb1f4917.json", import.meta.url).href, style_default = new URL("json-asset-03f0a035.json", import.meta.url).href, _hoisted_1 = {
10
+ "w-full": "",
11
+ "h-full": "",
12
+ "p-10px": ""
13
+ }, _hoisted_2 = { class: "w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]" }, _hoisted_3 = { class: "h-[38px] pl-[16px] flex flex-row items-center bar-header" }, _hoisted_4 = {
14
+ class: "mt-[22px] grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px",
15
+ aspect: "[3/2] "
16
+ }, breadcrumb_setting_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
17
+ name: "BreadcrumbSetting",
18
+ __name: "index",
19
+ setup(e) {
20
+ let r = useSettingsStore(), i = reactive([
21
+ {
22
+ name: "是否启用",
23
+ type: "switch",
24
+ descripe: "",
25
+ open: r.globalSettings.breadcrumb.enable,
26
+ activeStyle: "",
27
+ lightData: enable_default,
28
+ darkData: enable_default$1
29
+ },
30
+ {
31
+ name: "风格",
32
+ type: "check",
33
+ descripe: "",
34
+ open: !0,
35
+ activeStyle: r.globalSettings.breadcrumb.style,
36
+ styleOptions: [{
37
+ label: "默认",
38
+ value: ""
39
+ }, {
40
+ label: "现代",
41
+ value: "modern"
42
+ }],
43
+ lightData: style_default,
44
+ darkData: style_default$1
45
+ },
46
+ {
47
+ name: "是否显示主导航",
48
+ type: "switch",
49
+ descripe: "",
50
+ open: r.globalSettings.breadcrumb.enableMainMenu,
51
+ activeStyle: "",
52
+ lightData: enableMainMenu_default,
53
+ darkData: enableMainMenu_default$1
54
+ }
55
+ ]), a = "";
56
+ function o(e, t) {
57
+ switch (e) {
58
+ case 0:
59
+ r.globalSettings.breadcrumb.enable = t, a = JSON.stringify({ breadcrumb: { enable: t } });
60
+ break;
61
+ case 1:
62
+ r.globalSettings.breadcrumb.style = t, a = JSON.stringify({ breadcrumb: { style: t } });
63
+ break;
64
+ case 2:
65
+ r.globalSettings.breadcrumb.enableMainMenu = t, a = JSON.stringify({ breadcrumb: { enableMainMenu: t } });
66
+ break;
67
+ }
68
+ s(a);
69
+ }
70
+ function s(e) {
71
+ postSysconfigAddOrEidtSysThemeStyleConfig({ content: e }).then((e) => {
72
+ e.success && message.success("设置成功");
73
+ });
74
+ }
75
+ return (e, t) => {
76
+ let n = PubinfoIcon;
77
+ return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(n, {
78
+ name: "icon_breadcrumb",
79
+ class: "text-base mr-[6px]",
80
+ size: 22
81
+ }), t[0] ||= createElementVNode("span", { class: "text-[16px] text-[#1d2129] dark:text-[#C9CDD4]" }, "面包屑导航", -1)]), createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(i), (e, t) => (openBlock(), createBlock(setItem_default, {
82
+ key: e.name,
83
+ class: "mb-20px",
84
+ aspect: "[9/6]",
85
+ name: e.name,
86
+ descripe: e.descripe,
87
+ open: e.open,
88
+ type: e.type,
89
+ "active-style": e.activeStyle,
90
+ "style-options": e.styleOptions,
91
+ "light-animation-data": e.lightData,
92
+ "dark-animation-data": e.darkData,
93
+ onChange: (e) => o(t, e)
94
+ }, null, 8, [
95
+ "name",
96
+ "descripe",
97
+ "open",
98
+ "type",
99
+ "active-style",
100
+ "style-options",
101
+ "light-animation-data",
102
+ "dark-animation-data",
103
+ "onChange"
104
+ ]))), 128))])])]);
105
+ };
106
+ }
107
+ }), [["__scopeId", "data-v-b756993c"]]);
108
+ export { breadcrumb_setting_default as default };
@@ -1,25 +1,26 @@
1
+ import { r as __exportAll } from "./chunk-DiMWNkAf.js";
1
2
  import { PubinfoIcon } from "pubinfo";
2
3
  import { createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, resolveComponent, toDisplayString } from "vue";
3
4
  var _hoisted_1 = {
4
5
  flex: "",
5
6
  "items-center": ""
6
- }, browserType_default = /* @__PURE__ */ defineComponent({
7
+ }, browserType_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
8
  __name: "browserType",
8
9
  props: { browserName: {
9
10
  type: String,
10
11
  required: !0
11
12
  } },
12
- setup(s) {
13
- function c(e) {
13
+ setup(e) {
14
+ function t(e) {
14
15
  return e.includes("Chrome") ? "chrome" : e.includes("Edge") ? "edge" : e.includes("Safari") ? "safari" : e.includes("Internet Explorer") ? "ie" : "other";
15
16
  }
16
- return (l, u) => {
17
- let d = PubinfoIcon;
18
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(d, {
19
- name: `browser-${c(s.browserName)}`,
17
+ return (n, r) => {
18
+ let i = PubinfoIcon;
19
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(i, {
20
+ name: `browser-${t(e.browserName)}`,
20
21
  class: "text-20px mr-5px"
21
- }, null, 8, ["name"]), createElementVNode("span", null, toDisplayString(s.browserName), 1)]);
22
+ }, null, 8, ["name"]), createElementVNode("span", null, toDisplayString(e.browserName), 1)]);
22
23
  };
23
24
  }
24
- });
25
- export { browserType_default as t };
25
+ }), browserType_exports = /* @__PURE__ */ __exportAll({ default: () => browserType_default }), browserType_default = browserType_vue_vue_type_script_setup_true_lang_default;
26
+ export { browserType_exports as n, browserType_default as t };
@@ -0,0 +1,18 @@
1
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __exportAll = (e, n) => {
2
+ let r = {};
3
+ for (var i in e) __defProp(r, i, {
4
+ get: e[i],
5
+ enumerable: !0
6
+ });
7
+ return n || __defProp(r, Symbol.toStringTag, { value: "Module" }), r;
8
+ }, __copyProps = (e, i, o, s) => {
9
+ if (i && typeof i == "object" || typeof i == "function") for (var c = __getOwnPropNames(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !__hasOwnProp.call(e, d) && d !== o && __defProp(e, d, {
10
+ get: ((e) => i[e]).bind(null, d),
11
+ enumerable: !(s = __getOwnPropDesc(i, d)) || s.enumerable
12
+ });
13
+ return e;
14
+ }, __reExport = (e, t, n) => (__copyProps(e, t, "default"), n && __copyProps(n, t, "default")), __toESM = (n, r, a) => (a = n == null ? {} : __create(__getProtoOf(n)), __copyProps(r || !n || !n.__esModule ? __defProp(a, "default", {
15
+ value: n,
16
+ enumerable: !0
17
+ }) : a, n)), __toCommonJS = (e) => __hasOwnProp.call(e, "module.exports") ? e["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: !0 }), e);
18
+ export { __toCommonJS as a, __reExport as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
@@ -0,0 +1,6 @@
1
+ import { Ut as baseClone } from "./index.js";
2
+ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
3
+ function cloneDeep(e) {
4
+ return baseClone(e, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
5
+ }
6
+ export { cloneDeep as t };
@@ -5,6 +5,12 @@ type __VLS_ModelProps = {
5
5
  };
6
6
  declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {
7
7
  open: typeof onOpen;
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ select: (...args: any[]) => void;
10
+ "update:open": (value: boolean | undefined) => void;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
12
+ onSelect?: ((...args: any[]) => any) | undefined;
13
+ "onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
15
  declare const _default: typeof __VLS_export;
10
16
  export default _default;
@@ -1,3 +1,4 @@
1
+ declare function handleOpenModal(): void;
1
2
  type __VLS_ModelProps = {
2
3
  modelValue?: string;
3
4
  'boxType'?: 'null' | 'square' | 'prism';
@@ -11,7 +12,7 @@ type __VLS_ModelProps = {
11
12
  'iconSize'?: number | string;
12
13
  };
13
14
  declare var __VLS_1: {
14
- open: any;
15
+ open: typeof handleOpenModal;
15
16
  };
16
17
  type __VLS_Slots = {} & {
17
18
  default?: (props: typeof __VLS_1) => any;
@@ -12,7 +12,13 @@ type __VLS_ModelProps = {
12
12
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
14
14
  open: typeof onOpen;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ select: (...args: any[]) => void;
17
+ "update:open": (value: boolean | undefined) => void;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ onSelect?: ((...args: any[]) => any) | undefined;
20
+ "onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
21
+ }>, {
16
22
  title: string;
17
23
  mode: ResourceMode;
18
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,7 +6,15 @@ type __VLS_ModelProps = {
6
6
  'groupId'?: string;
7
7
  };
8
8
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ select: (...args: any[]) => void;
11
+ "update:modelValue": (value: string | undefined) => void;
12
+ "update:groupId": (value: string | undefined) => void;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ onSelect?: ((...args: any[]) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
16
+ "onUpdate:groupId"?: ((value: string | undefined) => any) | undefined;
17
+ }>, {
10
18
  group: boolean;
11
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
20
  declare const _default: typeof __VLS_export;
@@ -9,7 +9,13 @@ type __VLS_ModelProps = {
9
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
10
  declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
11
11
  open: typeof onOpen;
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ select: (...args: any[]) => void;
14
+ "update:open": (value: boolean | undefined) => void;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ onSelect?: ((...args: any[]) => any) | undefined;
17
+ "onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
18
+ }>, {
13
19
  group: boolean;
14
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
21
  declare const _default: typeof __VLS_export;