@king-one/antdv 2.5.6 → 2.6.0

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 (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  3. package/dist/es/components/index.mjs +18 -16
  4. package/dist/es/components/pro-dynamic-tags/index.mjs +9 -0
  5. package/dist/es/components/pro-dynamic-tags/src/index.vue.mjs +7 -0
  6. package/dist/es/components/pro-dynamic-tags/src/index.vue2.mjs +209 -0
  7. package/dist/es/components/pro-dynamic-tags/src/index.vue3.mjs +1 -0
  8. package/dist/es/components/pro-dynamic-tags/src/style/index.mjs +2 -0
  9. package/dist/es/components/pro-dynamic-tags/src/types.mjs +1 -0
  10. package/dist/es/components/pro-selector-group/src/hooks/useApi.mjs +1 -1
  11. package/dist/es/components/pro-selector-group/src/index.vue2.mjs +97 -107
  12. package/dist/es/index.mjs +26 -24
  13. package/dist/es/installer.mjs +6 -5
  14. package/dist/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  15. package/dist/lib/components/index.js +1 -1
  16. package/dist/lib/components/pro-dynamic-tags/index.js +1 -0
  17. package/dist/lib/components/pro-dynamic-tags/src/index.vue.js +1 -0
  18. package/dist/lib/components/pro-dynamic-tags/src/index.vue2.js +1 -0
  19. package/dist/lib/components/pro-dynamic-tags/src/index.vue3.js +1 -0
  20. package/dist/lib/components/pro-dynamic-tags/src/style/index.js +1 -0
  21. package/dist/lib/components/pro-dynamic-tags/src/types.js +1 -0
  22. package/dist/lib/components/pro-selector-group/src/hooks/useApi.js +1 -1
  23. package/dist/lib/components/pro-selector-group/src/index.vue2.js +1 -1
  24. package/dist/lib/index.js +1 -1
  25. package/dist/lib/installer.js +1 -1
  26. package/dist/theme-chalk/icon.css +1 -1
  27. package/dist/theme-chalk/index.css +1 -1
  28. package/dist/theme-chalk/pro-dynamic-tags.css +1 -0
  29. package/dist/types/components/index.d.ts +1 -0
  30. package/dist/types/components/pro-dynamic-tags/index.d.ts +156 -0
  31. package/dist/types/components/pro-dynamic-tags/src/index.vue.d.ts +153 -0
  32. package/dist/types/components/pro-dynamic-tags/src/types.d.ts +46 -0
  33. package/global.d.ts +1 -0
  34. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @king-one/antdv
2
2
 
3
+ ## 2.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 增加了 pro-dynamic-tag 组件
8
+
9
+ ## 2.5.7
10
+
11
+ ### Patch Changes
12
+
13
+ - pro-selector-group 增加 role 回显处理
14
+
3
15
  ## 2.5.6
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
@@ -1,20 +1,20 @@
1
1
  import { KCollapseTranstion as t } from "./collapse-transtion/index.mjs";
2
- import { KProModal as K } from "./pro-modal/index.mjs";
3
- import { KProTitle as l } from "./pro-title/index.mjs";
4
- import { KScrollBar as f } from "./scroll-bar/index.mjs";
2
+ import { KProModal as m } from "./pro-modal/index.mjs";
3
+ import { KProTitle as x } from "./pro-title/index.mjs";
4
+ import { KScrollBar as l } from "./scroll-bar/index.mjs";
5
5
  import { KCoverScrollBar as P } from "./cover-scroll-bar/index.mjs";
6
6
  import { KScaleVirtualList as S } from "./scale-virtual-list/index.mjs";
7
7
  import { KProTag as s } from "./pro-tag/index.mjs";
8
8
  import { KProPicker as u } from "./pro-picker/index.mjs";
9
- import { KProArea as U } from "./pro-area/index.mjs";
10
- import { KProSignature as d } from "./pro-signature/index.mjs";
9
+ import { KProArea as T } from "./pro-area/index.mjs";
10
+ import { KProSignature as g } from "./pro-signature/index.mjs";
11
11
  import { KProTable as v } from "./pro-table/index.mjs";
12
12
  import { KIcon as G } from "./icon/index.mjs";
13
13
  import { KProUpload as b } from "./pro-upload/index.mjs";
14
- import { KProContractView as B } from "./pro-contract-view/index.mjs";
14
+ import { KProContractView as y } from "./pro-contract-view/index.mjs";
15
15
  import "./pro-loading/index.mjs";
16
- import { KPlusUpload as h } from "./plus-upload/index.mjs";
17
- import { KProOverlay as y } from "./pro-overlay/index.mjs";
16
+ import { KPlusUpload as D } from "./plus-upload/index.mjs";
17
+ import { KProOverlay as h } from "./pro-overlay/index.mjs";
18
18
  import { KProSign as F } from "./pro-sign/index.mjs";
19
19
  import { KUserSelector as L, KUserSelectorCheckbox as M } from "./pro-selector/index.mjs";
20
20
  import { KProUserAvatar as j, KUserAvatar as q } from "./pro-user-avatar/index.mjs";
@@ -25,33 +25,35 @@ import { KFormRender as Y } from "./pro-form-render/index.mjs";
25
25
  import { KProCell as _ } from "./pro-cell/index.mjs";
26
26
  import { KProCellGroup as rr } from "./pro-cell-group/index.mjs";
27
27
  import { KProSelectorGroup as er } from "./pro-selector-group/index.mjs";
28
+ import { KProDynamicTags as pr } from "./pro-dynamic-tags/index.mjs";
28
29
  export {
29
30
  t as KCollapseTranstion,
30
31
  P as KCoverScrollBar,
31
32
  N as KDeptSelector,
32
33
  Y as KFormRender,
33
34
  G as KIcon,
34
- h as KPlusUpload,
35
- U as KProArea,
35
+ D as KPlusUpload,
36
+ T as KProArea,
36
37
  _ as KProCell,
37
38
  rr as KProCellGroup,
38
- B as KProContractView,
39
- K as KProModal,
40
- y as KProOverlay,
39
+ y as KProContractView,
40
+ pr as KProDynamicTags,
41
+ m as KProModal,
42
+ h as KProOverlay,
41
43
  u as KProPicker,
42
44
  E as KProRoleSelector,
43
45
  er as KProSelectorGroup,
44
46
  F as KProSign,
45
- d as KProSignature,
47
+ g as KProSignature,
46
48
  v as KProTable,
47
49
  s as KProTag,
48
50
  W as KProTagGroup,
49
- l as KProTitle,
51
+ x as KProTitle,
50
52
  b as KProUpload,
51
53
  j as KProUserAvatar,
52
54
  H as KRoleSelector,
53
55
  S as KScaleVirtualList,
54
- f as KScrollBar,
56
+ l as KScrollBar,
55
57
  q as KUserAvatar,
56
58
  L as KUserSelector,
57
59
  M as KUserSelectorCheckbox
@@ -0,0 +1,9 @@
1
+ import { withInstall as o } from "../utils/install.mjs";
2
+ import r from "./src/index.vue.mjs";
3
+ import "./src/types.mjs";
4
+ import "./src/style/index.mjs";
5
+ const p = o(r);
6
+ export {
7
+ p as KProDynamicTags,
8
+ p as default
9
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.mjs";
2
+ import "./index.vue3.mjs";
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-60156660"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,209 @@
1
+ import { defineComponent as Q, ref as y, nextTick as X, computed as M, onMounted as Y, watch as Z, onBeforeUnmount as _, createElementBlock as N, openBlock as d, normalizeStyle as S, normalizeClass as c, unref as t, createElementVNode as L, createBlock as x, createCommentVNode as D, Fragment as I, renderList as O, withCtx as m, createTextVNode as C, toDisplayString as W, createVNode as ee } from "vue";
2
+ import { Tag as A, Popover as le, Button as te } from "ant-design-vue";
3
+ import { useNamespace as ae } from "../../../hooks/use-namespace/index.mjs";
4
+ const ue = /* @__PURE__ */ Q({
5
+ name: "ProDynamicTags",
6
+ __name: "index",
7
+ props: {
8
+ modelValue: { default: () => [] },
9
+ tagMaxWidth: { default: "auto" },
10
+ showAdd: { type: Boolean, default: !0 },
11
+ addText: { default: "添加" },
12
+ closable: { type: Boolean, default: !0 },
13
+ customClass: { default: "" },
14
+ customStyle: { default: () => ({}) }
15
+ },
16
+ emits: ["update:modelValue", "add", "close", "expand"],
17
+ setup(o, { emit: P }) {
18
+ const e = o, k = P, { b: q, e: n } = ae("pro-dynamic-tags"), s = y(), T = y(), U = y(), a = y(e.modelValue.length), v = y(!1);
19
+ function w() {
20
+ v.value || (v.value = !0, a.value = e.modelValue.length), X(() => {
21
+ if (!s.value || !T.value || e.modelValue.length === 0) {
22
+ a.value = e.modelValue.length, v.value = !1;
23
+ return;
24
+ }
25
+ const i = s.value.clientWidth, u = window.getComputedStyle(s.value), l = Number.parseFloat(u.paddingLeft), f = Number.parseFloat(u.paddingRight), B = Number.parseFloat(u.gap) || 8, F = e.showAdd ? 80 + B : 0, g = T.value.querySelectorAll(`.${n("tag")}`);
26
+ if (g.length === 0) {
27
+ a.value = e.modelValue.length, v.value = !1;
28
+ return;
29
+ }
30
+ const K = i - l - f - F;
31
+ let h = 0, p = 0;
32
+ for (let b = 0; b < g.length; b++) {
33
+ const V = g[b].offsetWidth + B;
34
+ if (h + V <= K)
35
+ h += V, p++;
36
+ else
37
+ break;
38
+ }
39
+ if (p === e.modelValue.length)
40
+ a.value = e.modelValue.length;
41
+ else {
42
+ const V = i - l - f - F - 60;
43
+ h = 0, p = 0;
44
+ for (let R = 0; R < g.length; R++) {
45
+ const E = g[R].offsetWidth + B;
46
+ if (h + E <= V)
47
+ h += E, p++;
48
+ else
49
+ break;
50
+ }
51
+ a.value = Math.max(1, p);
52
+ }
53
+ v.value = !1;
54
+ });
55
+ }
56
+ const j = M(() => e.modelValue.length <= a.value ? e.modelValue : e.modelValue.slice(0, a.value)), $ = M(() => e.modelValue.length <= a.value ? 0 : e.modelValue.length - a.value), G = M(() => e.modelValue.length <= a.value ? [] : e.modelValue.slice(a.value));
57
+ function z(i) {
58
+ const u = [...e.modelValue], l = e.modelValue.findIndex((f) => f.value === i.value);
59
+ u.splice(l, 1), k("update:modelValue", u), k("close", i, l);
60
+ }
61
+ function H() {
62
+ k("add");
63
+ }
64
+ let r = null;
65
+ Y(() => {
66
+ w(), s.value && (r = new ResizeObserver(() => {
67
+ w();
68
+ }), r.observe(s.value));
69
+ }), Z(() => e.modelValue, () => {
70
+ w();
71
+ }, { deep: !0 });
72
+ function J() {
73
+ r && s.value && (r.unobserve(s.value), r.disconnect(), r = null);
74
+ }
75
+ return _(() => {
76
+ J();
77
+ }), (i, u) => (d(), N(
78
+ "div",
79
+ {
80
+ ref_key: "containerRef",
81
+ ref: s,
82
+ class: c([t(q)(), o.customClass]),
83
+ style: S(o.customStyle)
84
+ },
85
+ [
86
+ L(
87
+ "div",
88
+ {
89
+ ref_key: "tagsContainerRef",
90
+ ref: T,
91
+ class: c(t(n)("tags"))
92
+ },
93
+ [
94
+ (d(!0), N(
95
+ I,
96
+ null,
97
+ O(j.value, (l) => (d(), x(t(A), {
98
+ key: l.value,
99
+ closable: o.closable && l.closable !== !1,
100
+ class: c(t(n)("tag")),
101
+ style: S({ maxWidth: `${o.tagMaxWidth}px` }),
102
+ onClose: (f) => z(l)
103
+ }, {
104
+ default: m(() => [
105
+ C(
106
+ W(l.label),
107
+ 1
108
+ /* TEXT */
109
+ )
110
+ ]),
111
+ _: 2
112
+ /* DYNAMIC */
113
+ }, 1032, ["closable", "class", "style", "onClose"]))),
114
+ 128
115
+ /* KEYED_FRAGMENT */
116
+ )),
117
+ $.value > 0 ? (d(), x(t(le), {
118
+ key: 0,
119
+ placement: "top",
120
+ trigger: "hover",
121
+ "overlay-class-name": t(n)("popover"),
122
+ "overlay-inner-style": {
123
+ width: "400px"
124
+ }
125
+ }, {
126
+ content: m(() => [
127
+ L(
128
+ "div",
129
+ {
130
+ class: c(t(n)("popover-content"))
131
+ },
132
+ [
133
+ (d(!0), N(
134
+ I,
135
+ null,
136
+ O(G.value, (l) => (d(), x(t(A), {
137
+ key: l.value,
138
+ closable: o.closable && l.closable !== !1,
139
+ class: c(t(n)("popover-tag")),
140
+ style: S({ maxWidth: `${o.tagMaxWidth}px` }),
141
+ onClose: (f) => z(l)
142
+ }, {
143
+ default: m(() => [
144
+ C(
145
+ W(l.label),
146
+ 1
147
+ /* TEXT */
148
+ )
149
+ ]),
150
+ _: 2
151
+ /* DYNAMIC */
152
+ }, 1032, ["closable", "class", "style", "onClose"]))),
153
+ 128
154
+ /* KEYED_FRAGMENT */
155
+ ))
156
+ ],
157
+ 2
158
+ /* CLASS */
159
+ )
160
+ ]),
161
+ default: m(() => [
162
+ ee(t(A), {
163
+ class: c(t(n)("more"))
164
+ }, {
165
+ default: m(() => [
166
+ C(
167
+ " +" + W($.value),
168
+ 1
169
+ /* TEXT */
170
+ )
171
+ ]),
172
+ _: 1
173
+ /* STABLE */
174
+ }, 8, ["class"])
175
+ ]),
176
+ _: 1
177
+ /* STABLE */
178
+ }, 8, ["overlay-class-name"])) : D("v-if", !0)
179
+ ],
180
+ 2
181
+ /* CLASS */
182
+ ),
183
+ o.showAdd ? (d(), x(t(te), {
184
+ key: 0,
185
+ ref_key: "addBtnRef",
186
+ ref: U,
187
+ type: "link",
188
+ class: c(t(n)("add-btn")),
189
+ onClick: H
190
+ }, {
191
+ default: m(() => [
192
+ C(
193
+ W(o.addText),
194
+ 1
195
+ /* TEXT */
196
+ )
197
+ ]),
198
+ _: 1
199
+ /* STABLE */
200
+ }, 8, ["class"])) : D("v-if", !0)
201
+ ],
202
+ 6
203
+ /* CLASS, STYLE */
204
+ ));
205
+ }
206
+ });
207
+ export {
208
+ ue as default
209
+ };
@@ -0,0 +1,2 @@
1
+ import "../../../base/style/index.mjs";
2
+ import "@king-one/antdv/dist/theme-chalk/pro-dynamic-tags.css";
@@ -44,7 +44,7 @@ function E(t, a = "") {
44
44
  getRole: async () => {
45
45
  try {
46
46
  const e = await t.get(`${a}/security/company/role/page?pageNum=1&pageSize=1000`);
47
- return e.status === 0 ? (d.value = e.data.list || [], e.data) : [];
47
+ return e.status === 0 ? (d.value = e.data.list || [], e.data.list || []) : [];
48
48
  } catch (e) {
49
49
  return console.error(e), [];
50
50
  }
@@ -1,18 +1,20 @@
1
- import { defineComponent as L, useModel as T, ref as v, computed as V, watch as D, watchEffect as q, nextTick as O, provide as j, createElementBlock as h, openBlock as i, normalizeClass as p, unref as n, createCommentVNode as B, createVNode as y, withCtx as c, createTextVNode as I, createElementVNode as C, normalizeStyle as G, createBlock as g, Fragment as H, renderList as J, resolveDynamicComponent as Q, mergeModels as S } from "vue";
1
+ import { defineComponent as U, useModel as T, ref as y, computed as b, watchEffect as q, nextTick as z, watch as I, provide as O, createElementBlock as h, openBlock as f, normalizeClass as m, unref as n, createCommentVNode as j, createVNode as v, withCtx as g, createElementVNode as k, normalizeStyle as G, Fragment as H, renderList as J, createBlock as V, resolveDynamicComponent as Q, mergeModels as A } from "vue";
2
2
  import "../../index.mjs";
3
3
  import { useNamespace as W } from "../../../hooks/use-namespace/index.mjs";
4
- import { Input as X, Button as Y, Tabs as Z, TabPane as ee } from "ant-design-vue";
4
+ import { Tabs as X, TabPane as Y } from "ant-design-vue";
5
5
  import "./compoents/index.mjs";
6
- import { selectContextKey as te } from "./types.mjs";
6
+ import { selectContextKey as Z } from "./types.mjs";
7
7
  import "./compoents/select-box.vue.mjs";
8
- import le from "./compoents/dept.vue.mjs";
9
- import ae from "./compoents/role.vue.mjs";
10
- import oe from "./compoents/user.vue.mjs";
8
+ import { useApi as ee } from "./hooks/useApi.mjs";
9
+ import te from "./compoents/dept.vue.mjs";
10
+ import le from "./compoents/role.vue.mjs";
11
+ import ae from "./compoents/user.vue.mjs";
12
+ import { KProDynamicTags as oe } from "../../pro-dynamic-tags/index.mjs";
11
13
  import { KProModal as ne } from "../../pro-modal/index.mjs";
12
14
  import ue from "./compoents/select-box.vue2.mjs";
13
- const ie = { key: 0 }, Ce = /* @__PURE__ */ L({
15
+ const ie = { key: 0 }, Ve = /* @__PURE__ */ U({
14
16
  __name: "index",
15
- props: /* @__PURE__ */ S({
17
+ props: /* @__PURE__ */ A({
16
18
  title: { default: "选择器" },
17
19
  http: {},
18
20
  urlPrefix: {},
@@ -28,149 +30,137 @@ const ie = { key: 0 }, Ce = /* @__PURE__ */ L({
28
30
  visible: { type: Boolean, required: !0, default: !1 },
29
31
  visibleModifiers: {}
30
32
  }),
31
- emits: /* @__PURE__ */ S(["confirm", "changeTab"], ["update:modelValue", "update:visible"]),
32
- setup(r, { emit: A }) {
33
- const f = r, x = A, d = T(r, "modelValue"), u = T(r, "visible"), b = [
33
+ emits: /* @__PURE__ */ A(["confirm", "changeTab"], ["update:modelValue", "update:visible"]),
34
+ setup(c, { emit: D }) {
35
+ const u = c, C = D, { getRole: re, roleList: ce } = ee(u.http, u.urlPrefix || ""), p = [
34
36
  {
35
37
  key: "dept",
36
38
  tab: "部门",
37
- component: le
39
+ component: te
38
40
  },
39
41
  {
40
42
  key: "role",
41
43
  tab: "角色",
42
- component: ae
44
+ component: le
43
45
  },
44
46
  {
45
47
  key: "user",
46
48
  tab: "用户",
47
- component: oe
49
+ component: ae
48
50
  }
49
- ], a = v([]), o = v(f.type || "dept"), s = v({}), k = v(""), K = V(() => a.value.length === 0 ? b : f.isSingle ? b.filter((t) => a.value.some((e) => e.type === t.key)) : b);
50
- D(() => d.value, async (t) => {
51
- t && (k.value = t.map((e) => e.label).join(","));
52
- }, { deep: !0, immediate: !0 }), q(async () => {
53
- u.value && d.value.length > 0 && (await O(), U(d.value));
54
- }), D(() => f.type, (t) => {
55
- t && (o.value = t);
51
+ ], i = T(c, "modelValue"), r = T(c, "visible"), o = y([]), a = y(u.type || "dept"), d = y({}), S = b(() => i.value.map((t) => ({
52
+ label: t.label || "",
53
+ value: t.value,
54
+ type: t.type
55
+ }))), P = b(() => o.value.length === 0 ? p : u.isSingle ? p.filter((t) => o.value.some((e) => e.type === t.key)) : p);
56
+ q(async () => {
57
+ r.value && i.value.length > 0 && (await z(), M(i.value));
58
+ }), I(() => u.type, (t) => {
59
+ t && (a.value = t);
56
60
  });
57
- function M(t) {
58
- a.value = t;
61
+ function R(t) {
62
+ o.value = t;
59
63
  }
60
- j(te, {
61
- http: f.http,
62
- urlPrefix: f.urlPrefix || "",
63
- selectedData: a,
64
- currentTabKey: o,
65
- changeSelectData: M
64
+ O(Z, {
65
+ http: u.http,
66
+ urlPrefix: u.urlPrefix || "",
67
+ selectedData: o,
68
+ currentTabKey: a,
69
+ changeSelectData: R
66
70
  });
67
- const { b: m } = W("pro-selector-group");
68
- function N(t, e) {
69
- t && (s.value[e] = t);
71
+ const { b: s } = W("pro-selector-group");
72
+ function B(t, e) {
73
+ t && (d.value[e] = t);
70
74
  }
71
- const P = V(() => ({
72
- width: o.value === "user" ? "600px" : "450px"
75
+ const K = b(() => ({
76
+ width: a.value === "user" ? "600px" : "450px"
73
77
  }));
74
- function R() {
75
- d.value = a.value, x("confirm"), u.value = !1, console.log("点击了...");
78
+ function _() {
79
+ i.value = o.value, C("confirm"), r.value = !1;
76
80
  }
77
81
  function w() {
78
- u.value = !1;
82
+ r.value = !1;
79
83
  }
80
- function U(t) {
81
- const e = s.value[o.value];
82
- e && typeof e.echo == "function" && e.echo(t);
84
+ function M(t) {
85
+ const e = d.value[a.value];
86
+ console.log("currentTabRefAAA =>", a.value), e && typeof e.echo == "function" && e.echo(t);
83
87
  }
84
- function _() {
85
- x("changeTab", o.value);
88
+ function N() {
89
+ C("changeTab", a.value);
86
90
  }
87
- function $(t) {
88
- const e = s.value[o.value];
91
+ function x(t) {
92
+ const e = d.value[a.value];
89
93
  e && typeof e.delFn == "function" && e.delFn(t);
90
94
  }
91
- function z(t) {
92
- const e = s.value[o.value];
95
+ function $(t) {
96
+ const e = d.value[a.value];
93
97
  e && typeof e.deleteAll == "function" && e.deleteAll(t);
94
98
  }
95
99
  function E() {
96
- u.value = !0, a.value = [], console.log("selectedData =>", a.value);
100
+ r.value = !0, o.value = [], console.log("selectedData =>", o.value);
101
+ }
102
+ function F(t) {
103
+ const e = i.value.findIndex((l) => l.value === t.value);
104
+ if (e > -1) {
105
+ const l = i.value[e];
106
+ i.value.splice(e, 1), x(String(l.value));
107
+ }
97
108
  }
98
- return (t, e) => (i(), h(
109
+ return (t, e) => (f(), h(
99
110
  "div",
100
111
  {
101
- class: p(n(m)())
112
+ class: m(n(s)())
102
113
  },
103
114
  [
104
- r.hideSlot ? B("v-if", !0) : (i(), h("div", ie, [
105
- y(n(X), {
106
- value: k.value,
107
- "onUpdate:value": e[0] || (e[0] = (l) => k.value = l),
108
- placeholder: "请选择部门/角色/用户",
109
- readonly: ""
110
- }, {
111
- suffix: c(() => [
112
- y(n(Y), {
113
- type: "link",
114
- size: "small",
115
- onClick: E
116
- }, {
117
- default: c(() => [...e[4] || (e[4] = [
118
- I(
119
- " 添加 ",
120
- -1
121
- /* CACHED */
122
- )
123
- ])]),
124
- _: 1
125
- /* STABLE */
126
- })
127
- ]),
128
- _: 1
129
- /* STABLE */
130
- }, 8, ["value"])
115
+ c.hideSlot ? j("v-if", !0) : (f(), h("div", ie, [
116
+ v(n(oe), {
117
+ "model-value": S.value,
118
+ "add-text": "添加",
119
+ onAdd: E,
120
+ onClose: F
121
+ }, null, 8, ["model-value"])
131
122
  ])),
132
- y(n(ne), {
133
- modelValue: u.value,
134
- "onUpdate:modelValue": e[3] || (e[3] = (l) => u.value = l),
135
- title: r.title,
123
+ v(n(ne), {
124
+ modelValue: r.value,
125
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => r.value = l),
126
+ title: c.title,
136
127
  width: "950px",
137
- onOnConfirm: R,
128
+ onOnConfirm: _,
138
129
  onOnCancel: w
139
130
  }, {
140
- default: c(() => [
141
- C(
131
+ default: g(() => [
132
+ k(
142
133
  "div",
143
134
  {
144
- class: p(n(m)("content"))
135
+ class: m(n(s)("content"))
145
136
  },
146
137
  [
147
- C(
138
+ k(
148
139
  "div",
149
140
  {
150
- class: p(n(m)("left")),
151
- style: G(P.value)
141
+ class: m(n(s)("left")),
142
+ style: G(K.value)
152
143
  },
153
144
  [
154
- u.value ? (i(), g(n(Z), {
155
- key: 0,
156
- "active-key": o.value,
157
- "onUpdate:activeKey": e[1] || (e[1] = (l) => o.value = l),
158
- onChange: _
145
+ v(n(X), {
146
+ "active-key": a.value,
147
+ "onUpdate:activeKey": e[0] || (e[0] = (l) => a.value = l),
148
+ onChange: N
159
149
  }, {
160
- default: c(() => [
161
- (i(!0), h(
150
+ default: g(() => [
151
+ (f(!0), h(
162
152
  H,
163
153
  null,
164
- J(K.value, (l) => (i(), g(n(ee), {
154
+ J(P.value, (l) => (f(), V(n(Y), {
165
155
  key: l.key,
166
156
  tab: l.tab
167
157
  }, {
168
- default: c(() => [
169
- (i(), g(
158
+ default: g(() => [
159
+ (f(), V(
170
160
  Q(l.component),
171
161
  {
172
162
  ref_for: !0,
173
- ref: (F) => N(F, l.key)
163
+ ref: (L) => B(L, l.key)
174
164
  },
175
165
  null,
176
166
  512
@@ -186,22 +176,22 @@ const ie = { key: 0 }, Ce = /* @__PURE__ */ L({
186
176
  ]),
187
177
  _: 1
188
178
  /* STABLE */
189
- }, 8, ["active-key"])) : B("v-if", !0)
179
+ }, 8, ["active-key"])
190
180
  ],
191
181
  6
192
182
  /* CLASS, STYLE */
193
183
  ),
194
- C(
184
+ k(
195
185
  "div",
196
186
  {
197
- class: p(n(m)("right"))
187
+ class: m(n(s)("right"))
198
188
  },
199
189
  [
200
- y(ue, {
201
- modelValue: a.value,
202
- "onUpdate:modelValue": e[2] || (e[2] = (l) => a.value = l),
203
- onDelete: $,
204
- onDeleteAll: z
190
+ v(ue, {
191
+ modelValue: o.value,
192
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => o.value = l),
193
+ onDelete: x,
194
+ onDeleteAll: $
205
195
  }, null, 8, ["modelValue"])
206
196
  ],
207
197
  2
@@ -222,5 +212,5 @@ const ie = { key: 0 }, Ce = /* @__PURE__ */ L({
222
212
  }
223
213
  });
224
214
  export {
225
- Ce as default
215
+ Ve as default
226
216
  };