@pubinfo/module-rbac 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DynamicRoutesForm-DzOGoyf3.js → DynamicRoutesForm-BU4EAISs.js} +1 -1
- package/dist/{DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js → DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js} +6 -6
- package/dist/{IconSelect-Cco4lJFZ.js → IconSelect-DtNpk3Rj.js} +1 -1
- package/dist/{IconSelect.vue_vue_type_script_setup_true_lang-C9GJFjrV.js → IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js} +64 -64
- package/dist/{ImportExport-BD8o7IvB.js → ImportExport-DAe_Sl13.js} +1 -1
- package/dist/{ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js → ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js} +1 -1
- package/dist/{LayoutForm-DqDnsQcr.js → LayoutForm-C-vNwp3q.js} +1 -1
- package/dist/{MetaForm-s74FbAc9.js → MetaForm-13JASu7v.js} +133 -104
- package/dist/MetaForm.css +1 -1
- package/dist/{ResourceEdit-CNYAteRE.js → ResourceEdit-D2YFu-Gk.js} +1 -1
- package/dist/{ResourceEdit.vue_vue_type_script_setup_true_lang-BLqs77A8.js → ResourceEdit.vue_vue_type_script_setup_true_lang-Cb0mKIlJ.js} +45 -49
- package/dist/{enum-CjyX3J0o.js → enum-D5iPiZiT.js} +0 -1
- package/dist/{index-BsZjgoZQ.js → index-BPkJOFXE.js} +3 -3
- package/dist/index.js +1506 -1530
- package/dist/index17.css +1 -1
- package/dist/views/resource/model.d.ts +1 -0
- package/package.json +7 -7
- package/src/views/resource/components/DynamicRoutesForm.vue +1 -1
- package/src/views/resource/components/IconSelect.vue +1 -1
- package/src/views/resource/components/MetaForm.vue +11 -0
- package/src/views/resource/components/ResourceEdit.vue +2 -8
- package/src/views/resource/enum.ts +0 -1
- package/src/views/resource/hooks/useMetaForm.ts +2 -0
- package/src/views/resource/index.vue +0 -3
- package/src/views/resource/model.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Col as M, FormItem as E, Input as U } from "ant-design-vue/es";
|
|
2
|
-
import { defineComponent as k, mergeModels as y, useModel as I, computed as N, createElementBlock as
|
|
3
|
-
import "./enum-
|
|
4
|
-
import { _ as
|
|
2
|
+
import { defineComponent as k, mergeModels as y, useModel as I, computed as N, createElementBlock as g, createCommentVNode as o, unref as r, openBlock as p, Fragment as F, createBlock as v, withCtx as u, createVNode as n } from "vue";
|
|
3
|
+
import "./enum-D5iPiZiT.js";
|
|
4
|
+
import { _ as R } from "./ComponentSelect.vue_vue_type_style_index_0_lang-CMEO08Uz.js";
|
|
5
5
|
import { RESOURCE_TYPE as e } from "pubinfo";
|
|
6
6
|
const A = /* @__PURE__ */ k({
|
|
7
7
|
name: "DynamicRoutesForm",
|
|
@@ -24,7 +24,7 @@ const A = /* @__PURE__ */ k({
|
|
|
24
24
|
const a = I(c, "modelValue"), d = N(() => {
|
|
25
25
|
const m = a.value.type;
|
|
26
26
|
return {
|
|
27
|
-
path: [e.INDEX, e.MENU, e.
|
|
27
|
+
path: [e.INDEX, e.MENU, e.NON_MENU, e.IFRAME, e.LINK].includes(m),
|
|
28
28
|
component: [e.MENU, e.NON_MENU].includes(m),
|
|
29
29
|
iframe: [e.IFRAME].includes(m),
|
|
30
30
|
link: [e.LINK].includes(m),
|
|
@@ -34,7 +34,7 @@ const A = /* @__PURE__ */ k({
|
|
|
34
34
|
}), _ = N(() => !0);
|
|
35
35
|
return (m, t) => {
|
|
36
36
|
const f = U, s = E, i = M;
|
|
37
|
-
return r(_) ? (p(),
|
|
37
|
+
return r(_) ? (p(), g(F, { key: 0 }, [
|
|
38
38
|
r(d).path ? (p(), v(i, {
|
|
39
39
|
key: 0,
|
|
40
40
|
span: 12
|
|
@@ -69,7 +69,7 @@ const A = /* @__PURE__ */ k({
|
|
|
69
69
|
rules: [{ required: !0, message: "请输入组件路径" }]
|
|
70
70
|
}, {
|
|
71
71
|
default: u(() => [
|
|
72
|
-
n(
|
|
72
|
+
n(R, {
|
|
73
73
|
modelValue: a.value.meta.component,
|
|
74
74
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => a.value.meta.component = l),
|
|
75
75
|
scope: a.value.meta.scope,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Input as ue, InputNumber as _e, Tooltip as he, FormItemRest as we, Modal as Ce, Pagination as ze, Empty as Ie, RadioGroup as Se, RadioButton as Re, Button as $e, FormItem as
|
|
2
|
-
import { defineComponent as ne, ref as b, watch as R, createElementBlock as C, openBlock as x, createElementVNode as l, createVNode as u, withCtx as v, normalizeStyle as le, normalizeClass as W, useModel as
|
|
3
|
-
import { getAllIconModules as Ee, PubinfoIcon as h, RESOURCE_TYPE as
|
|
1
|
+
import { Input as ue, InputNumber as _e, Tooltip as he, FormItemRest as we, Modal as Ce, Pagination as ze, Empty as Ie, RadioGroup as Se, RadioButton as Re, Button as $e, FormItem as Me } from "ant-design-vue/es";
|
|
2
|
+
import { defineComponent as ne, ref as b, watch as R, createElementBlock as C, openBlock as x, createElementVNode as l, createVNode as u, withCtx as v, normalizeStyle as le, normalizeClass as W, useModel as U, computed as z, Fragment as X, renderSlot as Pe, unref as a, createCommentVNode as q, renderList as re, toDisplayString as H, createBlock as T, createTextVNode as J, reactive as je } from "vue";
|
|
3
|
+
import { getAllIconModules as Ee, PubinfoIcon as h, RESOURCE_TYPE as L } from "pubinfo";
|
|
4
4
|
import * as Ne from "@ant-design/icons-vue";
|
|
5
|
-
import { Empty as
|
|
6
|
-
import { _ as
|
|
7
|
-
import "./enum-
|
|
8
|
-
import './IconSelect.css';const
|
|
5
|
+
import { Empty as Ue } from "ant-design-vue";
|
|
6
|
+
import { _ as Fe } from "./index.js";
|
|
7
|
+
import "./enum-D5iPiZiT.js";
|
|
8
|
+
import './IconSelect.css';const Oe = { class: "flex flex-col gap-3 w-full select-none" }, Ae = { class: "flex items-center gap-3" }, Te = { class: "relative inline-flex items-center" }, Ve = ["disabled"], Be = ["value", "disabled"], De = { class: "flex items-center gap-3" }, Le = { class: "relative inline-flex items-center" }, We = ["disabled"], qe = ["value", "disabled"], Ge = { class: "flex items-center gap-3" }, Ye = { class: "flex items-center gap-3" }, Ke = { class: "flex items-center gap-3" }, Xe = /* @__PURE__ */ ne({
|
|
9
9
|
name: "ResourceIconesBoxColorPicker",
|
|
10
10
|
__name: "BoxColorPicker",
|
|
11
11
|
props: {
|
|
@@ -28,10 +28,10 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
28
28
|
}
|
|
29
29
|
return 65;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function M(e) {
|
|
32
32
|
return e ? typeof e == "string" ? { from: e, to: e } : { from: e.from, to: e.to } : { from: "#65E54A", to: "#35C724" };
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function P(e) {
|
|
35
35
|
if (typeof e == "string" && e.trim().endsWith("%")) {
|
|
36
36
|
const o = Number.parseFloat(e);
|
|
37
37
|
if (Number.isFinite(o))
|
|
@@ -67,7 +67,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
67
67
|
function s(e) {
|
|
68
68
|
return Math.min(100, Math.max(0, e));
|
|
69
69
|
}
|
|
70
|
-
const _ =
|
|
70
|
+
const _ = M(c.background), i = b(_.from), y = b(_.to), S = b(d(c.angle)), g = b(P(c.radius)), E = b(j(c.iconSize)), N = b(null), V = b(null);
|
|
71
71
|
function G() {
|
|
72
72
|
if (c.disabled)
|
|
73
73
|
return;
|
|
@@ -77,7 +77,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
77
77
|
function Z() {
|
|
78
78
|
if (c.disabled)
|
|
79
79
|
return;
|
|
80
|
-
const e =
|
|
80
|
+
const e = V.value;
|
|
81
81
|
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
82
82
|
}
|
|
83
83
|
return R([i, y, S, g], () => {
|
|
@@ -87,18 +87,18 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
87
87
|
}, { immediate: !0 }), R(() => c.background, (e) => {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return;
|
|
90
|
-
const o =
|
|
90
|
+
const o = M(e);
|
|
91
91
|
i.value = o.from, y.value = o.to;
|
|
92
92
|
}), R(() => c.angle, (e) => {
|
|
93
93
|
e != null && (S.value = d(e));
|
|
94
94
|
}), R(() => c.radius, (e) => {
|
|
95
|
-
e != null && (g.value =
|
|
95
|
+
e != null && (g.value = P(e));
|
|
96
96
|
}), R(() => c.iconSize, (e) => {
|
|
97
97
|
e != null && (E.value = j(e));
|
|
98
98
|
}), (e, o) => {
|
|
99
|
-
const Y = ue,
|
|
100
|
-
return x(), C("div",
|
|
101
|
-
l("div",
|
|
99
|
+
const Y = ue, B = _e;
|
|
100
|
+
return x(), C("div", Oe, [
|
|
101
|
+
l("div", Ae, [
|
|
102
102
|
o[7] || (o[7] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "起始色", -1)),
|
|
103
103
|
u(Y, {
|
|
104
104
|
value: i.value,
|
|
@@ -153,7 +153,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
153
153
|
}, null, 14, We),
|
|
154
154
|
l("input", {
|
|
155
155
|
ref_key: "toColorPickerRef",
|
|
156
|
-
ref:
|
|
156
|
+
ref: V,
|
|
157
157
|
type: "color",
|
|
158
158
|
value: y.value,
|
|
159
159
|
disabled: c.disabled,
|
|
@@ -168,7 +168,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
168
168
|
]),
|
|
169
169
|
l("div", Ge, [
|
|
170
170
|
o[9] || (o[9] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "角度", -1)),
|
|
171
|
-
u(
|
|
171
|
+
u(B, {
|
|
172
172
|
value: S.value,
|
|
173
173
|
"onUpdate:value": o[4] || (o[4] = (m) => S.value = m),
|
|
174
174
|
disabled: c.disabled,
|
|
@@ -182,7 +182,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
182
182
|
]),
|
|
183
183
|
l("div", Ye, [
|
|
184
184
|
o[11] || (o[11] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "圆角", -1)),
|
|
185
|
-
u(
|
|
185
|
+
u(B, {
|
|
186
186
|
value: g.value,
|
|
187
187
|
"onUpdate:value": o[5] || (o[5] = (m) => g.value = m),
|
|
188
188
|
disabled: c.disabled,
|
|
@@ -196,7 +196,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
196
196
|
]),
|
|
197
197
|
l("div", Ke, [
|
|
198
198
|
o[13] || (o[13] = l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "图标大小", -1)),
|
|
199
|
-
u(
|
|
199
|
+
u(B, {
|
|
200
200
|
value: E.value,
|
|
201
201
|
"onUpdate:value": o[6] || (o[6] = (m) => E.value = m),
|
|
202
202
|
disabled: c.disabled,
|
|
@@ -223,7 +223,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
223
223
|
}, ft = { class: "flex flex-col flex-1 w-full rounded-md border border-dashed border-[#d0d7de] dark:border-[#30363d] text-12px text-[#6b7280] dark:text-[#94a3b8] p-3 overflow-hidden" }, pt = { class: "shrink-0 flex justify-center items-center pb-4 border-b border-b-dashed border-b-[#d0d7de] dark:border-b-[#30363d]" }, vt = { class: "w-8 h-8 flex justify-center items-center" }, mt = { class: "w-8 h-8 flex justify-center items-center" }, bt = { class: "w-8 h-8 flex justify-center items-center" }, xt = { class: "flex-1 w-full mt-3 px-2 overflow-auto space-y-3" }, gt = { class: "flex flex-col justify-start w-full opacity-100" }, yt = { class: "flex items-center gap-3 mb-0! w-full flex-col" }, kt = { class: "flex" }, _t = { class: "text-12px opacity-70 w-14 shrink-0 flex items-center" }, ht = { class: "flex flex-col" }, wt = { class: "relative inline-flex items-center" }, Ct = ["disabled"], zt = ["value", "disabled"], It = { class: "w-full mt-auto flex aspect-square" }, St = { class: "flex-1 w-full h-full py-4 rounded-md border-t border-t-dashed border-t-[#d0d7de] dark:border-t-[#30363d] flex flex-col items-center gap-2" }, Rt = {
|
|
224
224
|
key: 0,
|
|
225
225
|
class: "w-full h-full flex items-center justify-center"
|
|
226
|
-
}, $t = { class: "mt-4 flex justify-end gap-2" }, Q = 30, oe = 24,
|
|
226
|
+
}, $t = { class: "mt-4 flex justify-end gap-2" }, Q = 30, oe = 24, Mt = 4, Pt = /* @__PURE__ */ ne({
|
|
227
227
|
name: "ResourceIconesSelect",
|
|
228
228
|
__name: "Select",
|
|
229
229
|
props: {
|
|
@@ -244,11 +244,11 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
244
244
|
},
|
|
245
245
|
emits: ["update:modelValue", "update:boxType", "update:angle", "update:background", "update:radius", "update:iconColor", "update:iconSize"],
|
|
246
246
|
setup(I) {
|
|
247
|
-
const p =
|
|
248
|
-
function
|
|
247
|
+
const p = U(I, "modelValue"), c = U(I, "boxType"), k = U(I, "angle"), d = U(I, "background"), M = U(I, "radius"), P = U(I, "iconColor"), j = U(I, "iconSize"), f = b(p.value), s = b(c.value || "null"), _ = b(k.value ?? 65), i = b(d.value ?? { from: "#65E54A", to: "#35C724" }), y = b(M.value ?? "50%"), S = b(j.value ?? "50%"), g = b(P.value ?? ""), E = b(null), N = b(!1);
|
|
248
|
+
function V() {
|
|
249
249
|
f.value = p.value, s.value = c.value || "null", _.value = k.value ?? 65;
|
|
250
250
|
const t = d.value;
|
|
251
|
-
i.value = typeof t == "string" ? t : t ? { ...t } : { from: "#65E54A", to: "#35C724" }, y.value =
|
|
251
|
+
i.value = typeof t == "string" ? t : t ? { ...t } : { from: "#65E54A", to: "#35C724" }, y.value = M.value ?? "50%", S.value = j.value ?? "50%", g.value = P.value ?? "", N.value = !0;
|
|
252
252
|
}
|
|
253
253
|
function G() {
|
|
254
254
|
N.value = !1;
|
|
@@ -256,7 +256,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
256
256
|
function Z() {
|
|
257
257
|
p.value = f.value, c.value = s.value, k.value = _.value;
|
|
258
258
|
const t = i.value;
|
|
259
|
-
d.value = typeof t == "string" ? t : t && { ...t },
|
|
259
|
+
d.value = typeof t == "string" ? t : t && { ...t }, M.value = y.value, j.value = S.value, P.value = g.value, N.value = !1;
|
|
260
260
|
}
|
|
261
261
|
function e(t) {
|
|
262
262
|
return (t.split(/[\\/]/).pop() || t).replace(/\.(svg|png|jpe?g)$/i, "");
|
|
@@ -270,7 +270,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
270
270
|
return t;
|
|
271
271
|
}), Y = z(
|
|
272
272
|
() => Object.keys(Ne).filter((t) => /(?:Outlined|Filled|TwoTone)$/.test(t)).map((t) => `antd:${t}`).sort()
|
|
273
|
-
),
|
|
273
|
+
), B = z(() => {
|
|
274
274
|
const t = Array.from(o.value.keys()), n = t.includes("local"), $ = t.filter((w) => w !== "local").sort();
|
|
275
275
|
return [
|
|
276
276
|
{ label: "全部", value: "all" },
|
|
@@ -278,53 +278,53 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
278
278
|
...$.map((w) => ({ label: w, value: w })),
|
|
279
279
|
{ label: "Ant Design", value: "antd" }
|
|
280
280
|
];
|
|
281
|
-
}), m = b("all"), K = b(""),
|
|
281
|
+
}), m = b("all"), K = b(""), F = z(() => {
|
|
282
282
|
const t = [];
|
|
283
283
|
for (const [n, $] of o.value.entries())
|
|
284
284
|
$.forEach((w) => {
|
|
285
285
|
n === "local" ? t.push({ name: w, module: n }) : t.push({ name: `${n}-[${w}]`, module: n });
|
|
286
286
|
});
|
|
287
287
|
return Y.value.forEach((n) => t.push({ name: n, module: "antd" })), t;
|
|
288
|
-
}), ae = z(() => m.value === "all" ?
|
|
288
|
+
}), ae = z(() => m.value === "all" ? F.value : m.value === "antd" ? F.value.filter((t) => t.module === "antd") : F.value.filter((t) => t.module === m.value)), D = z(() => {
|
|
289
289
|
const t = K.value.trim().toLowerCase();
|
|
290
290
|
return t ? ae.value.filter((n) => n.name.toLowerCase().includes(t)) : ae.value;
|
|
291
291
|
});
|
|
292
292
|
function de(t) {
|
|
293
|
-
return t === "all" ?
|
|
293
|
+
return t === "all" ? F.value.length : t === "antd" ? F.value.filter((n) => n.module === "antd").length : F.value.filter((n) => n.module === t).length;
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
const t = (
|
|
297
|
-
return
|
|
295
|
+
const O = b(1), se = z(() => Math.max(1, Math.ceil(D.value.length / Q))), ce = z(() => {
|
|
296
|
+
const t = (O.value - 1) * Q;
|
|
297
|
+
return D.value.slice(t, t + Q);
|
|
298
298
|
});
|
|
299
299
|
R([K, m], () => {
|
|
300
|
-
|
|
301
|
-
}), R(
|
|
302
|
-
|
|
300
|
+
O.value = 1;
|
|
301
|
+
}), R(D, () => {
|
|
302
|
+
O.value > se.value && (O.value = se.value);
|
|
303
303
|
});
|
|
304
304
|
function fe(t) {
|
|
305
|
-
|
|
305
|
+
O.value = t;
|
|
306
306
|
}
|
|
307
307
|
function pe(t) {
|
|
308
308
|
f.value = t.name;
|
|
309
309
|
}
|
|
310
|
-
const ve =
|
|
310
|
+
const ve = Ue.PRESENTED_IMAGE_SIMPLE;
|
|
311
311
|
function me() {
|
|
312
312
|
if (!(f.value || "").startsWith("antd:"))
|
|
313
313
|
return;
|
|
314
314
|
const t = E.value;
|
|
315
315
|
t && (t.style.width = "16px", t.style.height = "16px", t.click());
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const A = z(() => (f.value || "").startsWith("antd:"));
|
|
318
318
|
return R(s, (t, n) => {
|
|
319
319
|
n === "null" && t !== "null" && !g.value && (g.value = "#ffffff");
|
|
320
320
|
}), (t, n) => {
|
|
321
321
|
const $ = he, w = ue, ee = ze, be = Ie, te = Re, xe = Se, ie = $e, ge = Ce, ye = we;
|
|
322
322
|
return x(), C(X, null, [
|
|
323
|
-
|
|
323
|
+
Pe(t.$slots, "default", { open: V }, () => [
|
|
324
324
|
u(w, {
|
|
325
325
|
value: p.value,
|
|
326
326
|
readonly: "",
|
|
327
|
-
onClick:
|
|
327
|
+
onClick: V
|
|
328
328
|
}, {
|
|
329
329
|
addonAfter: v(() => [
|
|
330
330
|
u($, null, {
|
|
@@ -382,7 +382,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
382
382
|
}, 8, ["value"])
|
|
383
383
|
]),
|
|
384
384
|
l("div", Ze, [
|
|
385
|
-
(x(!0), C(X, null, re(
|
|
385
|
+
(x(!0), C(X, null, re(B.value, (r) => (x(), C("div", {
|
|
386
386
|
key: r.value,
|
|
387
387
|
class: W(["flex items-center justify-between px-3 py-2 rounded-md cursor-pointer text-13px border border-transparent hover:bg-[#f3f6fa] dark:hover:bg-[#262c33] transition", m.value === r.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
|
|
388
388
|
onClick: (ke) => m.value = r.value
|
|
@@ -393,9 +393,9 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
393
393
|
])
|
|
394
394
|
]),
|
|
395
395
|
l("div", lt, [
|
|
396
|
-
|
|
396
|
+
D.value.length ? (x(), C(X, { key: 0 }, [
|
|
397
397
|
l("div", nt, [
|
|
398
|
-
(x(!0), C(X, null, re(ce.value, (r) => (x(),
|
|
398
|
+
(x(!0), C(X, null, re(ce.value, (r) => (x(), T($, {
|
|
399
399
|
key: `${r.module || ""}:${r.name}`,
|
|
400
400
|
"mouse-enter-delay": 0.35
|
|
401
401
|
}, {
|
|
@@ -421,9 +421,9 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
421
421
|
]),
|
|
422
422
|
l("div", ut, [
|
|
423
423
|
u(ee, {
|
|
424
|
-
current:
|
|
424
|
+
current: O.value,
|
|
425
425
|
"page-size": Q,
|
|
426
|
-
total:
|
|
426
|
+
total: D.value.length,
|
|
427
427
|
"show-size-changer": !1,
|
|
428
428
|
"show-quick-jumper": "",
|
|
429
429
|
onChange: fe
|
|
@@ -450,7 +450,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
450
450
|
l("div", vt, [
|
|
451
451
|
u(a(h), {
|
|
452
452
|
name: f.value,
|
|
453
|
-
size: oe -
|
|
453
|
+
size: oe - Mt * 2
|
|
454
454
|
}, null, 8, ["name", "size"])
|
|
455
455
|
])
|
|
456
456
|
]),
|
|
@@ -529,14 +529,14 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
529
529
|
placeholder: s.value === "null" ? "默认" : "#ffffff",
|
|
530
530
|
size: "small",
|
|
531
531
|
class: "flex-1 min-w-0",
|
|
532
|
-
disabled: !
|
|
532
|
+
disabled: !A.value
|
|
533
533
|
}, {
|
|
534
534
|
prefix: v(() => [
|
|
535
535
|
l("div", wt, [
|
|
536
536
|
l("button", {
|
|
537
537
|
type: "button",
|
|
538
|
-
disabled: !
|
|
539
|
-
class: W(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700",
|
|
538
|
+
disabled: !A.value,
|
|
539
|
+
class: W(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", A.value ? "" : "opacity-50 cursor-not-allowed"]),
|
|
540
540
|
style: le({ background: g.value || "#ffffff" }),
|
|
541
541
|
onClick: me
|
|
542
542
|
}, null, 14, Ct),
|
|
@@ -545,7 +545,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
545
545
|
ref: E,
|
|
546
546
|
type: "color",
|
|
547
547
|
value: g.value || "#ffffff",
|
|
548
|
-
disabled: !
|
|
548
|
+
disabled: !A.value,
|
|
549
549
|
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
550
550
|
style: { width: "16px", height: "16px" },
|
|
551
551
|
onInput: n[6] || (n[6] = (r) => g.value = r.target.value)
|
|
@@ -560,12 +560,12 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
560
560
|
l("div", It, [
|
|
561
561
|
l("div", St, [
|
|
562
562
|
f.value ? (x(), C("div", Rt, [
|
|
563
|
-
s.value === "null" ? (x(),
|
|
563
|
+
s.value === "null" ? (x(), T(a(h), {
|
|
564
564
|
key: 0,
|
|
565
565
|
name: f.value,
|
|
566
566
|
size: 80,
|
|
567
|
-
color:
|
|
568
|
-
}, null, 8, ["name", "color"])) : (x(),
|
|
567
|
+
color: A.value && g.value ? g.value : void 0
|
|
568
|
+
}, null, 8, ["name", "color"])) : (x(), T(a(h), {
|
|
569
569
|
key: 1,
|
|
570
570
|
name: f.value,
|
|
571
571
|
box: s.value,
|
|
@@ -574,7 +574,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
574
574
|
background: i.value,
|
|
575
575
|
radius: y.value,
|
|
576
576
|
"icon-size": S.value,
|
|
577
|
-
color:
|
|
577
|
+
color: A.value ? g.value || "#ffffff" : void 0
|
|
578
578
|
}, null, 8, ["name", "box", "angle", "background", "radius", "icon-size", "color"]))
|
|
579
579
|
])) : q("", !0)
|
|
580
580
|
])
|
|
@@ -611,7 +611,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
611
611
|
], 64);
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
}), jt = /* @__PURE__ */
|
|
614
|
+
}), jt = /* @__PURE__ */ Fe(Pt, [["__scopeId", "data-v-877afd5a"]]), Et = ["onClick"], Nt = ["onClick"], Ut = { class: "flex flex-col items-center justify-center" }, Dt = /* @__PURE__ */ ne({
|
|
615
615
|
name: "ResourceIconSelect",
|
|
616
616
|
__name: "IconSelect",
|
|
617
617
|
props: {
|
|
@@ -627,7 +627,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
627
627
|
},
|
|
628
628
|
emits: ["update:modelValue"],
|
|
629
629
|
setup(I) {
|
|
630
|
-
const p =
|
|
630
|
+
const p = U(I, "modelValue");
|
|
631
631
|
function c() {
|
|
632
632
|
return {
|
|
633
633
|
boxType: "null",
|
|
@@ -668,18 +668,18 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
668
668
|
},
|
|
669
669
|
{ deep: !0 }
|
|
670
670
|
);
|
|
671
|
-
const
|
|
671
|
+
const M = z(() => {
|
|
672
672
|
const f = p.value.type;
|
|
673
673
|
return {
|
|
674
|
-
icon: [
|
|
674
|
+
icon: [L.DYNAMIC_APP, L.INDEX, L.MENU, L.IFRAME, L.LINK].includes(f)
|
|
675
675
|
};
|
|
676
|
-
}),
|
|
676
|
+
}), P = z(() => !0);
|
|
677
677
|
function j(f) {
|
|
678
678
|
f.stopPropagation(), p.value.icon && (p.value.icon = void 0, Reflect.deleteProperty(k.value, "iconOptions"));
|
|
679
679
|
}
|
|
680
680
|
return (f, s) => {
|
|
681
|
-
const _ =
|
|
682
|
-
return a(
|
|
681
|
+
const _ = Me;
|
|
682
|
+
return a(P) && a(M).icon ? (x(), T(_, {
|
|
683
683
|
key: 0,
|
|
684
684
|
label: "资源图标"
|
|
685
685
|
}, {
|
|
@@ -706,7 +706,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
706
706
|
class: "size-64px flex justify-center items-center cursor-pointer rounded-md border-px border-dashed relative group border-[#d9d9d9] dark:border-[#424242] hover:border-[#5794f7] dark:hover:border-[#5187e1] p-8px",
|
|
707
707
|
onClick: i
|
|
708
708
|
}, [
|
|
709
|
-
a(d).boxType && a(d).boxType !== "null" ? (x(),
|
|
709
|
+
a(d).boxType && a(d).boxType !== "null" ? (x(), T(a(h), {
|
|
710
710
|
key: 0,
|
|
711
711
|
name: p.value.icon,
|
|
712
712
|
box: a(d).boxType,
|
|
@@ -716,7 +716,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
716
716
|
angle: a(d).angle,
|
|
717
717
|
"icon-size": a(d).iconSize,
|
|
718
718
|
color: (p.value.icon || "").startsWith("antd:") ? a(d).iconColor || "#ffffff" : void 0
|
|
719
|
-
}, null, 8, ["name", "box", "radius", "background", "angle", "icon-size", "color"])) : (x(),
|
|
719
|
+
}, null, 8, ["name", "box", "radius", "background", "angle", "icon-size", "color"])) : (x(), T(a(h), {
|
|
720
720
|
key: 1,
|
|
721
721
|
name: p.value.icon,
|
|
722
722
|
size: "48px",
|
|
@@ -738,7 +738,7 @@ import './IconSelect.css';const Ae = { class: "flex flex-col gap-3 w-full select
|
|
|
738
738
|
class: "size-64px flex justify-center items-center rounded-md border-px border-dashed cursor-pointer border-[#d9d9d9] dark:border-[#424242] hover:border-[#5794f7] dark:hover:border-[#5187e1] text-[#d9d9d9] dark:text-[#424242] hover:text-[#5794f7] dark:hover:text-[#5187e1] transition",
|
|
739
739
|
onClick: i
|
|
740
740
|
}, [
|
|
741
|
-
l("div",
|
|
741
|
+
l("div", Ut, [
|
|
742
742
|
u(a(h), { name: "antd:PlusOutlined" }),
|
|
743
743
|
s[7] || (s[7] = l("span", { class: "text-10px mt-1" }, "选择图标", -1))
|
|
744
744
|
])
|
|
@@ -5,7 +5,7 @@ import { theme as Me, message as T, Upload as ne } from "ant-design-vue";
|
|
|
5
5
|
import { d as Ne } from "./dayjs.min-B2Yn1Frg.js";
|
|
6
6
|
import { c as F } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
7
|
import { b as j, u as B } from "./index.js";
|
|
8
|
-
import { R as ae, r as se } from "./enum-
|
|
8
|
+
import { R as ae, r as se } from "./enum-D5iPiZiT.js";
|
|
9
9
|
function Ge(u, _) {
|
|
10
10
|
return j.Delete(
|
|
11
11
|
"/rbac/resource-backup/deleteResourceBackup",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Divider as k, Row as v, Col as x, FormItem as w, Switch as F } from "ant-design-vue/es";
|
|
2
2
|
import { computed as _, defineComponent as V, useModel as h, createElementBlock as C, createCommentVNode as E, unref as l, openBlock as L, createVNode as t, withCtx as o, createTextVNode as N, createElementVNode as i } from "vue";
|
|
3
|
-
import "./enum-
|
|
3
|
+
import "./enum-D5iPiZiT.js";
|
|
4
4
|
import { RESOURCE_TYPE as p } from "pubinfo";
|
|
5
5
|
import { _ as c } from "./HoverCard.vue_vue_type_script_setup_true_lang-BqEarhzP.js";
|
|
6
6
|
import { _ as P } from "./index.js";
|