@pubinfo/module-rbac 2.0.4 → 2.0.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.
Files changed (131) hide show
  1. package/dist/ComponentSelect-HWE3OTC2.js +2 -0
  2. package/dist/{ComponentSelect-Bhl9ciUm.js → ComponentSelect-lvLZA7v3.js} +866 -866
  3. package/dist/DynamicRoutesForm--yCRC-TS.js +4 -0
  4. package/dist/{DynamicRoutesForm-CE2RPs7y.js → DynamicRoutesForm-CjrPnJvX.js} +28 -28
  5. package/dist/{IconSelect-BeZfjsl0.js → IconSelect-B0CeuV_a.js} +1 -1
  6. package/dist/{IconSelect-BMlRIxBx.js → IconSelect-BRVj6gBy.js} +18 -18
  7. package/dist/{ImportExport-D8uzaOMz.js → ImportExport-BNLVq0fU.js} +1 -1
  8. package/dist/{ImportExport-ByRTssxP.js → ImportExport-HsLm0AJH.js} +63 -63
  9. package/dist/{ResourceEdit-BSaHxlbT.js → ResourceEdit-DGiYedP0.js} +100 -100
  10. package/dist/{ResourceEdit-Beu0QLBf.js → ResourceEdit-DZP72kyb.js} +4 -4
  11. package/dist/{ResourceRelation-CKolCnHC.js → ResourceRelation-BxGFnyVc.js} +1 -1
  12. package/dist/{ResourceRelation-BRseTUw2.js → ResourceRelation-DCjMjLpg.js} +1 -1
  13. package/dist/{ResourceRelation-B_4woLmP.js → ResourceRelation-DhML3AFe.js} +5 -5
  14. package/dist/ResourceRelation.css +1 -1
  15. package/dist/ResourceRelation2.css +1 -1
  16. package/dist/{ResourceSelector-ConJ30Jd.js → ResourceSelector-BAZ-oIRV.js} +46 -46
  17. package/dist/ResourceSelector.css +1 -1
  18. package/dist/RoleRelation-Bxyd5aMn.js +2 -0
  19. package/dist/{RoleRelation-DXZxscPY.js → RoleRelation-CcgE6TEG.js} +1 -1
  20. package/dist/RoleSelector-QpcO4KoV.js +279 -0
  21. package/dist/{TenantEdit-B5_v0C8I.js → TenantEdit-CRhsWhhw.js} +19 -19
  22. package/dist/{TenantEdit-C28473_2.js → TenantEdit-egH6GbbS.js} +2 -2
  23. package/dist/UserAuthorization-B0lHeayD.js +4 -0
  24. package/dist/{UserAuthorization-DTgmWH5Q.js → UserAuthorization-D-LcHhsj.js} +5 -5
  25. package/dist/UserAuthorization.css +1 -1
  26. package/dist/{UserEdit-EOTBOUZu.js → UserEdit-6MPOr7VK.js} +23 -23
  27. package/dist/{UserEdit-CyCXz7g3.js → UserEdit-DGefh7mk.js} +1 -1
  28. package/dist/{blackWhiteList-DQALdBZf.js → blackWhiteList-CFnWvnIK.js} +8 -8
  29. package/dist/blackWhiteList.css +1 -1
  30. package/dist/{breadcrumb_setting-D3UjJYhA.js → breadcrumb_setting-BbdvbC4M.js} +27 -27
  31. package/dist/breadcrumb_setting.css +1 -1
  32. package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +6 -15
  33. package/dist/components/RoleSelector/useRole.d.ts +4 -68
  34. package/dist/{createAndEditDataPermission-DnAcKvaE.js → createAndEditDataPermission-39GKHtzB.js} +50 -50
  35. package/dist/{createAndEditDataPermission-CAaxueTy.js → createAndEditDataPermission-BBSBwjG4.js} +2 -2
  36. package/dist/createAndEditDataPermission.css +1 -1
  37. package/dist/{data-permission-CLnnLoPt.js → data-permission-35wTSMh2.js} +3 -3
  38. package/dist/data-permission.css +1 -1
  39. package/dist/{dictionary-BFM0Mx0P.js → dictionary-BOuYUlfU.js} +1 -1
  40. package/dist/{drawerBlackWhiteList-BYACpO3D.js → drawerBlackWhiteList-BZccd_CZ.js} +8 -8
  41. package/dist/drawerBlackWhiteList-Bz2trn-w.js +3 -0
  42. package/dist/{drawerDictionary-BUBLrbTi.js → drawerDictionary-C2tWu1lt.js} +11 -11
  43. package/dist/{drawerDictionary-Bk0BgL7i.js → drawerDictionary-Cx-QoHn4.js} +1 -1
  44. package/dist/{drawerDictionaryItem-CfOPleN6.js → drawerDictionaryItem-C4mPbQEA.js} +12 -12
  45. package/dist/{drawerDictionaryItem-Dy2T56AH.js → drawerDictionaryItem-DhwinX1a.js} +1 -1
  46. package/dist/{drawerGroup-ZyzAWXOl.js → drawerGroup-BUx0cx6i.js} +1 -1
  47. package/dist/{drawerGroup-Bly3CWfM.js → drawerGroup-DFeiJOBA.js} +9 -9
  48. package/dist/{drawerOrganization-BhO5-PP5.js → drawerOrganization-BEdhq7Z2.js} +26 -26
  49. package/dist/{drawerOrganization-HSVB8JzO.js → drawerOrganization-ijhmuc8a.js} +1 -1
  50. package/dist/{drawerPosition-vsuG4JYe.js → drawerPosition-shL7hfwJ.js} +1 -1
  51. package/dist/{drawerPosition-CM0NBfoR.js → drawerPosition-xI2PyE2x.js} +14 -14
  52. package/dist/{drawerRegion-CGySAL6D.js → drawerRegion-BwWGUHaY.js} +16 -16
  53. package/dist/{drawerRegion-BXZ751ge.js → drawerRegion-Dl1qXPXz.js} +1 -1
  54. package/dist/{drawerRole-BE0utb7R.js → drawerRole-C1I6-hhT.js} +8 -8
  55. package/dist/{drawerRole-CwilBmOE.js → drawerRole-CZpTYFS3.js} +10 -10
  56. package/dist/drawerRole-CgTIHRCA.js +3 -0
  57. package/dist/{drawerRole-BVeaz3Yb.js → drawerRole-Cmrob1UJ.js} +2 -2
  58. package/dist/drawerRole-D2UxgYXQ.js +215 -0
  59. package/dist/{drawerRole-tan379DU.js → drawerRole-DynkfVMp.js} +2 -2
  60. package/dist/{group-B1gGoTD5.js → group-DOmpCW1J.js} +8 -8
  61. package/dist/group.css +1 -1
  62. package/dist/index.css +1 -1
  63. package/dist/index.js +78 -78
  64. package/dist/{itemlist-uCHnA_We.js → itemlist-QBWRLjTd.js} +1 -1
  65. package/dist/{layout_setting-DMvxwL31.js → layout_setting-BZt_X9vU.js} +17 -17
  66. package/dist/layout_setting.css +1 -1
  67. package/dist/{login_history-BexfCN-1.js → login_history-NTSjr6e5.js} +3 -3
  68. package/dist/login_history.css +1 -1
  69. package/dist/{menu_setting-BXR3EAXD.js → menu_setting-CkoDAYJD.js} +38 -38
  70. package/dist/menu_setting.css +1 -1
  71. package/dist/{operate_history-hXxS3atI.js → operate_history-CXoZlYaT.js} +3 -3
  72. package/dist/operate_history.css +1 -1
  73. package/dist/{organization-cvYm9P9w.js → organization-DmGbwqHI.js} +2642 -2642
  74. package/dist/organization.css +1 -1
  75. package/dist/{other_setting-DjVQevBW.js → other_setting-BqWwlJ2u.js} +64 -64
  76. package/dist/other_setting.css +1 -1
  77. package/dist/{page_animation_setting-DgHHmFEc.js → page_animation_setting-g3bkn7vf.js} +48 -48
  78. package/dist/page_animation_setting.css +1 -1
  79. package/dist/{page_w_setting-B_im6vBo.js → page_w_setting-Db9pP86g.js} +17 -17
  80. package/dist/page_w_setting.css +1 -1
  81. package/dist/{position-BkpbHXYP.js → position-Bq4B3_PK.js} +1 -1
  82. package/dist/{region-DVkbjI9t.js → region-DfxAE8eK.js} +4 -4
  83. package/dist/{resource-UmUb9yZa.js → resource-rP8m6eP_.js} +8 -8
  84. package/dist/{role-B2tKqUvP.js → role-DfWw95NS.js} +3 -3
  85. package/dist/{role_group-DqzFHwKx.js → role_group-B4J4RWQt.js} +2 -2
  86. package/dist/{setItem-9ZBl0BlF.js → setItem-C_jx_5fd.js} +1 -1
  87. package/dist/{setItem-BenNySNl.js → setItem-DnJuD3C0.js} +32 -32
  88. package/dist/setItem.css +1 -1
  89. package/dist/stores/view.d.ts +21 -126
  90. package/dist/{tabbar_setting-HFHrLVgt.js → tabbar_setting-DBPggZ6Q.js} +33 -33
  91. package/dist/tabbar_setting.css +1 -1
  92. package/dist/{tenant-C8kVbfgt.js → tenant-Dbydqvrz.js} +2 -2
  93. package/dist/{theme_setting-QgpSGXxq.js → theme_setting-3l5L7tXt.js} +5 -5
  94. package/dist/theme_setting.css +1 -1
  95. package/dist/{toolbar_setting-Dc_h2Mfe.js → toolbar_setting-rv8EGChc.js} +30 -30
  96. package/dist/toolbar_setting.css +1 -1
  97. package/dist/{user-Dub4HhCZ.js → user-DQE6N5EP.js} +9 -9
  98. package/dist/user.css +1 -1
  99. package/dist/utils/routeSystem.d.ts +21 -126
  100. package/dist/views/blackWhiteList/index.vue.d.ts +40 -40
  101. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +4 -4
  102. package/dist/views/data-permission/index.vue.d.ts +44 -44
  103. package/dist/views/dictionary/index.vue.d.ts +40 -40
  104. package/dist/views/dictionary/itemlist.vue.d.ts +40 -40
  105. package/dist/views/group/index.vue.d.ts +40 -40
  106. package/dist/views/log_center/components/browserType.vue.d.ts +2 -2
  107. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +2 -2
  108. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +2 -2
  109. package/dist/views/log_center/login_history.vue.d.ts +40 -40
  110. package/dist/views/log_center/operate_history.vue.d.ts +40 -40
  111. package/dist/views/position/index.vue.d.ts +40 -40
  112. package/dist/views/region/index.vue.d.ts +40 -40
  113. package/dist/views/resource/hooks/useMetaForm.d.ts +1 -8
  114. package/dist/views/resource/index.vue.d.ts +40 -40
  115. package/dist/views/role/components/ResourceRelation.vue.d.ts +40 -40
  116. package/dist/views/role/index.vue.d.ts +80 -80
  117. package/dist/views/role_group/index.vue.d.ts +40 -40
  118. package/dist/views/tenant/index.vue.d.ts +40 -40
  119. package/dist/views/user/index.vue.d.ts +40 -40
  120. package/dist/{watermark_setting-BcWy6p2_.js → watermark_setting-B_jC4rjv.js} +106 -106
  121. package/dist/watermark_setting.css +1 -1
  122. package/package.json +3 -3
  123. package/src/assets/styles/vxe-table.css +4 -4
  124. package/dist/ComponentSelect-Bhwuc86o.js +0 -2
  125. package/dist/DynamicRoutesForm-D35jFnxF.js +0 -4
  126. package/dist/RoleRelation-YaSQQxQ2.js +0 -2
  127. package/dist/RoleSelector-DOt30OLy.js +0 -279
  128. package/dist/UserAuthorization-C4SLMNmh.js +0 -4
  129. package/dist/drawerBlackWhiteList-C3xS7Kxx.js +0 -3
  130. package/dist/drawerRole-CzTW_I2H.js +0 -3
  131. package/dist/drawerRole-E1jHM3v-.js +0 -215
@@ -2,24 +2,24 @@ import { b as e } from "./cloneDeep-BnvyNhik.js";
2
2
  import { am as t, t as n, x as r, y as i } from "./index.js";
3
3
  import { c as a, d as ee } from "./enum-CYW8g64p.js";
4
4
  import { b as o, c as s, d as c, e as l } from "./enum-BMY6bmPA.js";
5
- import { b as u } from "./DynamicRoutesForm-CE2RPs7y.js";
6
- import { b as d } from "./IconSelect-BMlRIxBx.js";
7
- import { b as f, c as p, d as m } from "./MetaForm-DErrpELP.js";
8
- import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as te, createTextVNode as v, createVNode as y, defineComponent as b, isRef as x, openBlock as S, reactive as C, ref as w, resolveComponent as T, toDisplayString as E, unref as D, withCtx as O } from "vue";
9
- import { DatabaseOutlined as k } from "@ant-design/icons-vue";
10
- import { message as A } from "ant-design-vue";
11
- import { Button as ne, Col as re, Drawer as ie, Form as ae, FormItem as oe, Input as se, InputNumber as ce, RadioGroup as j, Row as M, Select as N, Space as P, Spin as F, Switch as I, Tag as L, Textarea as R } from "ant-design-vue/es";
5
+ import { b as te } from "./DynamicRoutesForm-CjrPnJvX.js";
6
+ import { b as u } from "./IconSelect-BRVj6gBy.js";
7
+ import { b as d, c as f, d as p } from "./MetaForm-DErrpELP.js";
8
+ import { computed as m, createBlock as h, createCommentVNode as g, createElementBlock as ne, createTextVNode as _, createVNode as v, defineComponent as y, isRef as b, openBlock as x, reactive as S, ref as C, resolveComponent as w, toDisplayString as T, unref as E, withCtx as D } from "vue";
9
+ import { DatabaseOutlined as O } from "@ant-design/icons-vue";
10
+ import { message as k } from "ant-design-vue";
11
+ import { Button as A, Col as re, Drawer as ie, Form as ae, FormItem as oe, Input as se, InputNumber as ce, RadioGroup as j, Row as M, Select as N, Space as P, Spin as F, Switch as I, Tag as L, Textarea as R } from "ant-design-vue/es";
12
12
  const z = {
13
13
  key: 0,
14
14
  class: "flex items-center space-x-1"
15
15
  };
16
- var B = /* @__PURE__ */ b({
16
+ var B = /* @__PURE__ */ y({
17
17
  name: "ResourceEdit",
18
18
  __name: "ResourceEdit",
19
19
  props: { dataSource: {} },
20
20
  emits: ["submit"],
21
- setup(b, { expose: T, emit: B }) {
22
- let V = b, H = B, [U, W] = t(!1), G = w(), K = w({}), q = C({
21
+ setup(y, { expose: w, emit: B }) {
22
+ let V = y, H = B, [U, W] = t(!1), G = C(), K = C({}), q = S({
23
23
  title: "",
24
24
  record: {},
25
25
  initData: {
@@ -61,7 +61,7 @@ var B = /* @__PURE__ */ b({
61
61
  message: "请选择是否启用",
62
62
  trigger: "change"
63
63
  }]
64
- }, J = h(() => ue(V.dataSource, (e) => e.id === K.value.parentId) ?? {});
64
+ }, J = m(() => ue(V.dataSource, (e) => e.id === K.value.parentId) ?? {});
65
65
  function ue(e, t) {
66
66
  let n = [...e];
67
67
  for (let e of n) {
@@ -70,7 +70,7 @@ var B = /* @__PURE__ */ b({
70
70
  }
71
71
  return null;
72
72
  }
73
- let Y = h(() => {
73
+ let Y = m(() => {
74
74
  switch (J.value?.type) {
75
75
  case c.APP:
76
76
  case c.MICRO_APP:
@@ -94,14 +94,14 @@ var B = /* @__PURE__ */ b({
94
94
  case c.LINK: return [];
95
95
  default: return l.filter((e) => [c.APP, c.DYNAMIC_APP].includes(e.value));
96
96
  }
97
- }), { show: X, resetIncompatibleOptions: Z } = p(K), [de, Q] = t(!1);
97
+ }), { show: X, resetIncompatibleOptions: Z } = f(K), [de, Q] = t(!1);
98
98
  async function fe(t, r) {
99
99
  q.title = t, K.value = e(q.initData), W(!0);
100
100
  try {
101
101
  if (Q(!0), t === o.ADD_CHILD && (K.value.parentId = r?.id, K.value.type = Y.value[0].value, Z()), t === o.EDIT) {
102
102
  let e = await n({ id: r?.id });
103
103
  e.success && (K.value = e.data ?? {}, K.value.meta = {
104
- ...m,
104
+ ...p,
105
105
  ...e.data?.meta
106
106
  }, Z());
107
107
  }
@@ -122,76 +122,76 @@ var B = /* @__PURE__ */ b({
122
122
  ...t
123
123
  });
124
124
  $(!0), n.then((e) => {
125
- e?.success && (A.success(`${q.title}成功!`), W(!1), H("submit"));
125
+ e?.success && (k.success(`${q.title}成功!`), W(!1), H("submit"));
126
126
  }).finally(() => $(!1));
127
127
  });
128
128
  }
129
- return T({ open: fe }), (e, t) => {
130
- let n = k, r = oe, i = re, a = L, c = j, l = M, p = se, m = ce, h = R, b = I, C = N, w = ae, T = F, A = ne, B = P, V = ie;
131
- return S(), g(V, {
132
- open: D(U),
133
- "onUpdate:open": t[13] ||= (e) => x(U) ? U.value = e : null,
134
- title: q.title,
129
+ return w({ open: fe }), (e, t) => {
130
+ let n = O, r = oe, i = re, a = L, c = j, l = M, f = se, p = ce, m = R, y = I, S = N, C = ae, w = F, k = A, B = P, V = ie;
131
+ return x(), h(V, {
132
+ open: E(U),
133
+ "onUpdate:open": t[13] ||= (e) => b(U) ? U.value = e : null,
134
+ title: E(q).title,
135
135
  placement: "right",
136
136
  width: 800,
137
137
  "destroy-on-close": "",
138
138
  "footer-style": { textAlign: "right" }
139
139
  }, {
140
- footer: O(() => [y(B, null, {
141
- default: O(() => [y(A, { onClick: t[11] ||= (e) => D(W)(!1) }, {
142
- default: O(() => t[15] ||= [v(" 取消 ")]),
140
+ footer: D(() => [v(B, null, {
141
+ default: D(() => [v(k, { onClick: t[11] ||= (e) => E(W)(!1) }, {
142
+ default: D(() => t[15] ||= [_(" 取消 ")]),
143
143
  _: 1,
144
144
  __: [15]
145
- }), y(A, {
145
+ }), v(k, {
146
146
  type: "primary",
147
- loading: D(pe),
147
+ loading: E(pe),
148
148
  onClick: t[12] ||= (e) => me()
149
149
  }, {
150
- default: O(() => t[16] ||= [v(" 提交 ")]),
150
+ default: D(() => t[16] ||= [_(" 提交 ")]),
151
151
  _: 1,
152
152
  __: [16]
153
153
  }, 8, ["loading"])]),
154
154
  _: 1
155
155
  })]),
156
- default: O(() => [y(T, { spinning: D(de) }, {
157
- default: O(() => [y(w, {
156
+ default: D(() => [v(w, { spinning: E(de) }, {
157
+ default: D(() => [v(C, {
158
158
  ref_key: "formRef",
159
159
  ref: G,
160
- model: K.value,
160
+ model: E(K),
161
161
  rules: le,
162
162
  "label-col": { style: { width: "100px" } }
163
163
  }, {
164
- default: O(() => [
165
- y(l, { gutter: 8 }, {
166
- default: O(() => [
167
- J.value?.name ? (S(), g(i, {
164
+ default: D(() => [
165
+ v(l, { gutter: 8 }, {
166
+ default: D(() => [
167
+ E(J)?.name ? (x(), h(i, {
168
168
  key: 0,
169
169
  span: 24
170
170
  }, {
171
- default: O(() => [y(r, { name: "parentId" }, {
172
- label: O(() => [y(n, { class: "mr-1" }), t[14] ||= v(" 父资源 ")]),
173
- default: O(() => [v(" " + E(J.value?.name), 1)]),
171
+ default: D(() => [v(r, { name: "parentId" }, {
172
+ label: D(() => [v(n, { class: "mr-1" }), t[14] ||= _(" 父资源 ")]),
173
+ default: D(() => [_(" " + T(E(J)?.name), 1)]),
174
174
  _: 1
175
175
  })]),
176
176
  _: 1
177
- })) : _("v-if", !0),
178
- y(i, { span: 24 }, {
179
- default: O(() => [y(r, {
177
+ })) : g("v-if", !0),
178
+ v(i, { span: 24 }, {
179
+ default: D(() => [v(r, {
180
180
  label: "资源类型",
181
181
  name: "type"
182
182
  }, {
183
- default: O(() => [q.title === D(o).EDIT ? (S(), te("div", z, [_(" <PubinfoIcon v-if=\"form.type\" :name=\"`resource-${RESOURCE_ICON[Number(form.type)]}`\" class=\"text-xl\" />\n <span>\n {{ resourceComputedOptions.find(e => e.value === form.type)?.label }}\n </span> "), K.value.type ? (S(), g(a, {
183
+ default: D(() => [E(q).title === E(o).EDIT ? (x(), ne("div", z, [g(" <PubinfoIcon v-if=\"form.type\" :name=\"`resource-${RESOURCE_ICON[Number(form.type)]}`\" class=\"text-xl\" />\n <span>\n {{ resourceComputedOptions.find(e => e.value === form.type)?.label }}\n </span> "), E(K).type ? (x(), h(a, {
184
184
  key: 0,
185
- color: D(s)[Number(K.value.type)],
185
+ color: E(s)[Number(E(K).type)],
186
186
  bordered: !1
187
187
  }, {
188
- default: O(() => [v(E(Y.value.find((e) => e.value === K.value.type)?.label), 1)]),
188
+ default: D(() => [_(T(E(Y).find((e) => e.value === E(K).type)?.label), 1)]),
189
189
  _: 1
190
- }, 8, ["color"])) : _("v-if", !0)])) : (S(), g(c, {
190
+ }, 8, ["color"])) : g("v-if", !0)])) : (x(), h(c, {
191
191
  key: 1,
192
- value: K.value.type,
193
- "onUpdate:value": t[0] ||= (e) => K.value.type = e,
194
- options: Y.value,
192
+ value: E(K).type,
193
+ "onUpdate:value": t[0] ||= (e) => E(K).type = e,
194
+ options: E(Y),
195
195
  "option-type": "button",
196
196
  "button-style": "solid"
197
197
  }, null, 8, ["value", "options"]))]),
@@ -199,26 +199,26 @@ var B = /* @__PURE__ */ b({
199
199
  })]),
200
200
  _: 1
201
201
  }),
202
- y(i, { span: 24 }, {
203
- default: O(() => [y(d, {
204
- modelValue: K.value,
205
- "onUpdate:modelValue": t[1] ||= (e) => K.value = e
202
+ v(i, { span: 24 }, {
203
+ default: D(() => [v(u, {
204
+ modelValue: E(K),
205
+ "onUpdate:modelValue": t[1] ||= (e) => b(K) ? K.value = e : null
206
206
  }, null, 8, ["modelValue"])]),
207
207
  _: 1
208
208
  })
209
209
  ]),
210
210
  _: 1
211
211
  }),
212
- y(l, { gutter: 8 }, {
213
- default: O(() => [
214
- y(i, { span: 12 }, {
215
- default: O(() => [y(r, {
212
+ v(l, { gutter: 8 }, {
213
+ default: D(() => [
214
+ v(i, { span: 12 }, {
215
+ default: D(() => [v(r, {
216
216
  label: "资源名称",
217
217
  name: "name"
218
218
  }, {
219
- default: O(() => [y(p, {
220
- value: K.value.name,
221
- "onUpdate:value": t[2] ||= (e) => K.value.name = e,
219
+ default: D(() => [v(f, {
220
+ value: E(K).name,
221
+ "onUpdate:value": t[2] ||= (e) => E(K).name = e,
222
222
  placeholder: "请输入资源名称",
223
223
  maxlength: 128
224
224
  }, null, 8, ["value"])]),
@@ -226,19 +226,19 @@ var B = /* @__PURE__ */ b({
226
226
  })]),
227
227
  _: 1
228
228
  }),
229
- y(u, {
230
- modelValue: K.value,
231
- "onUpdate:modelValue": t[3] ||= (e) => K.value = e,
232
- parent: J.value
229
+ v(te, {
230
+ modelValue: E(K),
231
+ "onUpdate:modelValue": t[3] ||= (e) => b(K) ? K.value = e : null,
232
+ parent: E(J)
233
233
  }, null, 8, ["modelValue", "parent"]),
234
- y(i, { span: 12 }, {
235
- default: O(() => [y(r, {
234
+ v(i, { span: 12 }, {
235
+ default: D(() => [v(r, {
236
236
  label: "资源编码",
237
237
  name: "code"
238
238
  }, {
239
- default: O(() => [y(p, {
240
- value: K.value.code,
241
- "onUpdate:value": t[4] ||= (e) => K.value.code = e,
239
+ default: D(() => [v(f, {
240
+ value: E(K).code,
241
+ "onUpdate:value": t[4] ||= (e) => E(K).code = e,
242
242
  placeholder: "请输入资源编码(权限码)",
243
243
  maxlength: 50
244
244
  }, null, 8, ["value"])]),
@@ -246,14 +246,14 @@ var B = /* @__PURE__ */ b({
246
246
  })]),
247
247
  _: 1
248
248
  }),
249
- y(i, { span: 12 }, {
250
- default: O(() => [y(r, {
249
+ v(i, { span: 12 }, {
250
+ default: D(() => [v(r, {
251
251
  label: "接口权限",
252
252
  name: "permissionCode"
253
253
  }, {
254
- default: O(() => [y(p, {
255
- value: K.value.permissionCode,
256
- "onUpdate:value": t[5] ||= (e) => K.value.permissionCode = e,
254
+ default: D(() => [v(f, {
255
+ value: E(K).permissionCode,
256
+ "onUpdate:value": t[5] ||= (e) => E(K).permissionCode = e,
257
257
  placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
258
258
  maxlength: 256
259
259
  }, null, 8, ["value"])]),
@@ -261,14 +261,14 @@ var B = /* @__PURE__ */ b({
261
261
  })]),
262
262
  _: 1
263
263
  }),
264
- y(i, { span: 12 }, {
265
- default: O(() => [y(r, {
264
+ v(i, { span: 12 }, {
265
+ default: D(() => [v(r, {
266
266
  label: "显示顺序",
267
267
  name: "sort"
268
268
  }, {
269
- default: O(() => [y(m, {
270
- value: K.value.sort,
271
- "onUpdate:value": t[6] ||= (e) => K.value.sort = e,
269
+ default: D(() => [v(p, {
270
+ value: E(K).sort,
271
+ "onUpdate:value": t[6] ||= (e) => E(K).sort = e,
272
272
  max: 999
273
273
  }, null, 8, ["value"])]),
274
274
  _: 1
@@ -278,16 +278,16 @@ var B = /* @__PURE__ */ b({
278
278
  ]),
279
279
  _: 1
280
280
  }),
281
- y(l, { gutter: 8 }, {
282
- default: O(() => [y(i, { span: 24 }, {
283
- default: O(() => [y(r, {
281
+ v(l, { gutter: 8 }, {
282
+ default: D(() => [v(i, { span: 24 }, {
283
+ default: D(() => [v(r, {
284
284
  label: "描述",
285
285
  name: "description",
286
286
  "label-col": { span: 3 }
287
287
  }, {
288
- default: O(() => [y(h, {
289
- value: K.value.description,
290
- "onUpdate:value": t[7] ||= (e) => K.value.description = e,
288
+ default: D(() => [v(m, {
289
+ value: E(K).description,
290
+ "onUpdate:value": t[7] ||= (e) => E(K).description = e,
291
291
  placeholder: "请输入描述",
292
292
  maxlength: 255,
293
293
  "auto-size": { minRows: 2 },
@@ -299,42 +299,42 @@ var B = /* @__PURE__ */ b({
299
299
  })]),
300
300
  _: 1
301
301
  }),
302
- D(X).dataPermission ? (S(), g(l, {
302
+ E(X).dataPermission ? (x(), h(l, {
303
303
  key: 0,
304
304
  gutter: 8
305
305
  }, {
306
- default: O(() => [y(i, { span: 8 }, {
307
- default: O(() => [y(r, {
306
+ default: D(() => [v(i, { span: 8 }, {
307
+ default: D(() => [v(r, {
308
308
  label: "启用数据权限",
309
309
  name: "enableDataPermission"
310
310
  }, {
311
- default: O(() => [y(b, {
312
- checked: K.value.enableDataPermission,
313
- "onUpdate:checked": t[8] ||= (e) => K.value.enableDataPermission = e
311
+ default: D(() => [v(y, {
312
+ checked: E(K).enableDataPermission,
313
+ "onUpdate:checked": t[8] ||= (e) => E(K).enableDataPermission = e
314
314
  }, null, 8, ["checked"])]),
315
315
  _: 1
316
316
  })]),
317
317
  _: 1
318
- }), y(i, { span: 16 }, {
319
- default: O(() => [K.value.enableDataPermission ? (S(), g(r, {
318
+ }), v(i, { span: 16 }, {
319
+ default: D(() => [E(K).enableDataPermission ? (x(), h(r, {
320
320
  key: 0,
321
321
  label: "数据权限规则",
322
322
  name: "dataPermissionType"
323
323
  }, {
324
- default: O(() => [y(C, {
325
- value: K.value.dataPermissionType,
326
- "onUpdate:value": t[9] ||= (e) => K.value.dataPermissionType = e,
327
- options: D(ee)
324
+ default: D(() => [v(S, {
325
+ value: E(K).dataPermissionType,
326
+ "onUpdate:value": t[9] ||= (e) => E(K).dataPermissionType = e,
327
+ options: E(ee)
328
328
  }, null, 8, ["value", "options"])]),
329
329
  _: 1
330
- })) : _("v-if", !0)]),
330
+ })) : g("v-if", !0)]),
331
331
  _: 1
332
332
  })]),
333
333
  _: 1
334
- })) : _("v-if", !0),
335
- y(f, {
336
- modelValue: K.value,
337
- "onUpdate:modelValue": t[10] ||= (e) => K.value = e
334
+ })) : g("v-if", !0),
335
+ v(d, {
336
+ modelValue: E(K),
337
+ "onUpdate:modelValue": t[10] ||= (e) => b(K) ? K.value = e : null
338
338
  }, null, 8, ["modelValue"])
339
339
  ]),
340
340
  _: 1
@@ -1,11 +1,11 @@
1
1
  import "./cloneDeep-BnvyNhik.js";
2
- import "./ComponentSelect-Bhl9ciUm.js";
2
+ import "./ComponentSelect-lvLZA7v3.js";
3
3
  import "./_plugin-vue_export-helper-DziIhCOI.js";
4
4
  import "./enum-CYW8g64p.js";
5
5
  import "./enum-BMY6bmPA.js";
6
- import "./DynamicRoutesForm-CE2RPs7y.js";
6
+ import "./DynamicRoutesForm-CjrPnJvX.js";
7
7
  import "./HoverCard-B79q5sly.js";
8
- import "./IconSelect-BMlRIxBx.js";
8
+ import "./IconSelect-BRVj6gBy.js";
9
9
  import "./MetaForm-DErrpELP.js";
10
- import { b as e } from "./ResourceEdit-BSaHxlbT.js";
10
+ import { b as e } from "./ResourceEdit-DGiYedP0.js";
11
11
  export { e as default };
@@ -74,5 +74,5 @@ var C = /* @__PURE__ */ l({
74
74
  }, 8, ["open"]);
75
75
  };
76
76
  }
77
- }), w = /* @__PURE__ */ n(C, [["__scopeId", "data-v-f9143961"]]);
77
+ }), w = /* @__PURE__ */ n(C, [["__scopeId", "data-v-f5867bc7"]]);
78
78
  export { w as default };
@@ -1,3 +1,3 @@
1
1
  import "./_plugin-vue_export-helper-DziIhCOI.js";
2
- import { b as e } from "./ResourceRelation-B_4woLmP.js";
2
+ import { b as e } from "./ResourceRelation-DhML3AFe.js";
3
3
  export { e as default };
@@ -60,17 +60,17 @@ var E = /* @__PURE__ */ d({
60
60
  }
61
61
  }, {
62
62
  default: v(() => [c("div", C, [u(n, {
63
- value: E.value,
64
- "onUpdate:value": t[0] ||= (e) => E.value = e,
63
+ value: _(E),
64
+ "onUpdate:value": t[0] ||= (e) => f(E) ? E.value = e : null,
65
65
  block: "",
66
- options: h.value,
66
+ options: _(h),
67
67
  onChange: j
68
68
  }, null, 8, ["value", "options"])]), u(_(S), {
69
69
  ref_key: "protable",
70
70
  ref: A,
71
71
  "row-key": "id",
72
72
  request: M,
73
- columns: N.value,
73
+ columns: _(N),
74
74
  search: !1,
75
75
  toolbar: !1,
76
76
  "auto-height": { offset: 50 }
@@ -89,5 +89,5 @@ var E = /* @__PURE__ */ d({
89
89
  }, 8, ["open"]);
90
90
  };
91
91
  }
92
- }), D = /* @__PURE__ */ r(E, [["__scopeId", "data-v-f00796a5"]]);
92
+ }), D = /* @__PURE__ */ r(E, [["__scopeId", "data-v-1167727f"]]);
93
93
  export { D as b };
@@ -1 +1 @@
1
- [data-v-f9143961] .ant-drawer-body{padding-left:0;padding-right:0}
1
+ [data-v-f5867bc7] .ant-drawer-body{padding-left:0;padding-right:0}
@@ -1 +1 @@
1
- [data-v-f00796a5] .ant-drawer-body{padding-left:0;padding-right:0}
1
+ [data-v-1167727f] .ant-drawer-body{padding-left:0;padding-right:0}