iking-web-ui-pro 0.2.21 → 0.2.22

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 (60) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +79 -73
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKPreviewFile/ik.index.es.js +302 -296
  5. package/dist/IKPreviewFile/ik.index.umd.js +16 -16
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
  8. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  9. package/dist/IKVerticalStepBar/style.css +1 -1
  10. package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
  11. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  12. package/dist/IkApprovalProcessDetail/style.css +1 -1
  13. package/dist/IkBaseDialog/ik.index.es.js +117 -111
  14. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  15. package/dist/IkBaseDialog/style.css +1 -1
  16. package/dist/IkBtnSetting/ik.index.es.js +242 -236
  17. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  18. package/dist/IkBtnSetting/style.css +1 -1
  19. package/dist/IkCollapseCard/ik.index.es.js +83 -77
  20. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  21. package/dist/IkCollapseCard/style.css +1 -1
  22. package/dist/IkDescription/ik.index.es.js +434 -428
  23. package/dist/IkDescription/ik.index.umd.js +1 -1
  24. package/dist/IkDescription/style.css +1 -1
  25. package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
  26. package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
  27. package/dist/IkDetailPreviewFiles/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +140 -134
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +383 -377
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1135 -1129
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +2960 -2954
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +111 -105
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +74 -68
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +720 -714
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +223 -217
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/index.es.js +5502 -5496
  56. package/dist/index.umd.js +78 -78
  57. package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
  58. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
  59. package/dist/style.css +1 -1
  60. package/package.json +1 -1
@@ -1,48 +1,48 @@
1
- import { defineComponent as F, openBlock as r, createElementBlock as f, createElementVNode as S, computed as L, resolveComponent as D, normalizeClass as w, normalizeStyle as B, createCommentVNode as E, createBlock as N, withCtx as g, createTextVNode as z, toDisplayString as T, ref as V, watch as Z, unref as _, createVNode as C, Transition as ne, renderSlot as q, mergeModels as R, useModel as se, resolveDirective as ie, Fragment as G, withDirectives as J, mergeProps as K, createSlots as ue, renderList as re, pushScopeId as ce, popScopeId as de } from "vue";
2
- import { ikColor as pe, _ as x, ikStore as H } from "iking-utils-pro";
3
- import ve from "vuedraggable";
4
- const P = (l, y) => {
5
- if (l.install = (e) => {
6
- for (const u of [l, ...Object.values(y ?? {})])
7
- e.component(u.name, u);
8
- }, y)
9
- for (const [e, u] of Object.entries(y))
10
- l[e] = u;
1
+ import { defineComponent as M, openBlock as c, createElementBlock as m, createElementVNode as C, computed as O, resolveComponent as N, withModifiers as H, normalizeClass as S, normalizeStyle as x, createCommentVNode as E, createBlock as T, withCtx as g, createTextVNode as V, toDisplayString as L, ref as D, watch as ee, unref as w, createVNode as B, Transition as se, renderSlot as R, mergeModels as G, useModel as ie, resolveDirective as ue, Fragment as J, withDirectives as K, mergeProps as Q, createSlots as re, renderList as ce, pushScopeId as de, popScopeId as pe } from "vue";
2
+ import { ikColor as ve, _ as I, ikStore as P } from "iking-utils-pro";
3
+ import fe from "vuedraggable";
4
+ const X = (l, h) => {
5
+ if (l.install = (a) => {
6
+ for (const e of [l, ...Object.values(h ?? {})])
7
+ a.component(e.name, e);
8
+ }, h)
9
+ for (const [a, e] of Object.entries(h))
10
+ l[a] = e;
11
11
  return l;
12
12
  };
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var fe = /* @__PURE__ */ F({
14
+ var me = /* @__PURE__ */ M({
15
15
  name: "DCaret",
16
16
  __name: "d-caret",
17
17
  setup(l) {
18
- return (y, e) => (r(), f("svg", {
18
+ return (h, a) => (c(), m("svg", {
19
19
  xmlns: "http://www.w3.org/2000/svg",
20
20
  viewBox: "0 0 1024 1024"
21
21
  }, [
22
- S("path", {
22
+ C("path", {
23
23
  fill: "currentColor",
24
24
  d: "m512 128 288 320H224zM224 576h576L512 896z"
25
25
  })
26
26
  ]));
27
27
  }
28
- }), ge = fe;
29
- const X = (l, y) => {
30
- const e = l.__vccOpts || l;
31
- for (const [u, c] of y)
32
- e[u] = c;
33
- return e;
34
- }, me = {
28
+ }), ge = me;
29
+ const Y = (l, h) => {
30
+ const a = l.__vccOpts || l;
31
+ for (const [e, d] of h)
32
+ a[e] = d;
33
+ return a;
34
+ }, ye = {
35
35
  key: 0,
36
36
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
37
- }, ye = {
37
+ }, he = {
38
38
  key: 1,
39
39
  class: "h-[1em] w-[1em]",
40
40
  "aria-hidden": "true"
41
- }, he = ["xlink:href"], ke = ["src"], be = {
41
+ }, ke = ["xlink:href"], be = ["src"], _e = {
42
42
  key: 1,
43
43
  class: "h-[1em] w-[1em]",
44
44
  "aria-hidden": "true"
45
- }, _e = ["xlink:href"], we = ["src"], Se = /* @__PURE__ */ F({
45
+ }, we = ["xlink:href"], Se = ["src"], Ce = /* @__PURE__ */ M({
46
46
  name: "IkSvgIcon",
47
47
  __name: "index",
48
48
  props: {
@@ -68,11 +68,12 @@ const X = (l, y) => {
68
68
  warning: { type: Boolean },
69
69
  width: {}
70
70
  },
71
- setup(l) {
72
- const y = l, e = L(() => y), u = L(() => {
71
+ emits: ["click"],
72
+ setup(l, { emit: h }) {
73
+ const a = l, e = O(() => a), d = O(() => {
73
74
  const { name: t } = e.value;
74
75
  return /^http?:\/\//.test(t) ? "img" : /i-[^:]+:[^:]+/.test(t) ? "unocss" : t != null && t.startsWith("iksig") ? "iksig" : t != null && t.includes(":") ? "iconify" : t != null && t.startsWith("iksvg") ? "svg" : "i";
75
- }), c = L(() => {
76
+ }), s = O(() => {
76
77
  const t = [];
77
78
  if (e.value.flip)
78
79
  switch (e.value.flip) {
@@ -87,27 +88,30 @@ const X = (l, y) => {
87
88
  break;
88
89
  }
89
90
  e.value.rotate && t.push(`rotate(${e.value.rotate % 360}deg)`);
90
- const k = {
91
+ const p = {
91
92
  ...e.value.color && { color: e.value.color },
92
93
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
93
94
  ...t.length && { transform: t.join(" ") },
94
95
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
95
- ...e.value.color && u.value !== "iksig" ? {
96
+ ...e.value.color && d.value !== "iksig" ? {
96
97
  "--ik-color-icon-dark": e.value.color,
97
- "--ik-color-icon-light": e.value.colorLight || pe.setOpacity(e.value.color, e.value.opacity)
98
+ "--ik-color-icon-light": e.value.colorLight || ve.setOpacity(e.value.color, e.value.opacity)
98
99
  } : {}
99
100
  };
100
- return e.value.width && (k.width = k.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), k;
101
- });
102
- return (t, k) => {
103
- const O = D("el-tooltip"), $ = D("el-button");
104
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (r(), f("span", me, [
105
- e.value.notip || !e.value.title ? (r(), f(
101
+ return e.value.width && (p.width = p.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), p;
102
+ }), $ = h, z = (t) => {
103
+ e.value.disabled || $("click", t);
104
+ };
105
+ return (t, p) => {
106
+ const b = N("el-tooltip"), v = N("el-button");
107
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), m("span", ye, [
108
+ e.value.notip || !e.value.title ? (c(), m(
106
109
  "i",
107
110
  {
108
111
  key: 0,
109
- class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
110
- [t.name]: u.value === "unocss",
112
+ onClick: H(z, ["stop"]),
113
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
114
+ [t.name]: d.value === "unocss",
111
115
  "show-bg": e.value.showBg || e.value.bg,
112
116
  default: e.value.size === "default",
113
117
  small: e.value.size === "small",
@@ -119,34 +123,34 @@ const X = (l, y) => {
119
123
  active: e.value.active,
120
124
  disabled: e.value.disabled
121
125
  }]),
122
- style: B(c.value)
126
+ style: x(s.value)
123
127
  },
124
128
  [
125
129
  E(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
126
- u.value === "iksig" ? (r(), f(
130
+ d.value === "iksig" ? (c(), m(
127
131
  "i",
128
132
  {
129
133
  key: 0,
130
- class: w(`iksig ${e.value.name}`),
131
- style: B(c.value)
134
+ class: S(`iksig ${e.value.name}`),
135
+ style: x(s.value)
132
136
  },
133
137
  null,
134
138
  6
135
139
  /* CLASS, STYLE */
136
- )) : u.value === "svg" ? (r(), f("svg", ye, [
137
- S("use", {
140
+ )) : d.value === "svg" ? (c(), m("svg", he, [
141
+ C("use", {
138
142
  "xlink:href": `#${e.value.name}`
139
- }, null, 8, he)
140
- ])) : u.value === "img" ? (r(), f("img", {
143
+ }, null, 8, ke)
144
+ ])) : d.value === "img" ? (c(), m("img", {
141
145
  key: 2,
142
146
  src: e.value.name,
143
147
  class: "h-[1em] w-[1em]"
144
- }, null, 8, ke)) : (r(), f(
148
+ }, null, 8, be)) : (c(), m(
145
149
  "i",
146
150
  {
147
151
  key: 3,
148
- class: w(e.value.name),
149
- style: B(c.value)
152
+ class: S(e.value.name),
153
+ style: x(s.value)
150
154
  },
151
155
  null,
152
156
  6
@@ -155,17 +159,17 @@ const X = (l, y) => {
155
159
  ],
156
160
  6
157
161
  /* CLASS, STYLE */
158
- )) : (r(), N(O, {
162
+ )) : (c(), T(b, {
159
163
  key: 1,
160
164
  content: e.value.title,
161
165
  placement: "top"
162
166
  }, {
163
167
  default: g(() => [
164
- S(
168
+ C(
165
169
  "i",
166
170
  {
167
- class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
168
- [t.name]: u.value === "unocss",
171
+ class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
172
+ [t.name]: d.value === "unocss",
169
173
  "show-bg": e.value.showBg || e.value.bg,
170
174
  default: e.value.size === "default",
171
175
  small: e.value.size === "small",
@@ -176,33 +180,34 @@ const X = (l, y) => {
176
180
  error: e.value.error || e.value.type === "error",
177
181
  active: e.value.active
178
182
  }]),
179
- style: B(c.value)
183
+ onClick: H(z, ["stop"]),
184
+ style: x(s.value)
180
185
  },
181
186
  [
182
- u.value === "iksig" ? (r(), f(
187
+ d.value === "iksig" ? (c(), m(
183
188
  "i",
184
189
  {
185
190
  key: 0,
186
- class: w(`iksig ${e.value.name}`),
187
- style: B(c.value)
191
+ class: S(`iksig ${e.value.name}`),
192
+ style: x(s.value)
188
193
  },
189
194
  null,
190
195
  6
191
196
  /* CLASS, STYLE */
192
- )) : u.value === "svg" ? (r(), f("svg", be, [
193
- S("use", {
197
+ )) : d.value === "svg" ? (c(), m("svg", _e, [
198
+ C("use", {
194
199
  "xlink:href": `#${e.value.name}`
195
- }, null, 8, _e)
196
- ])) : u.value === "img" ? (r(), f("img", {
200
+ }, null, 8, we)
201
+ ])) : d.value === "img" ? (c(), m("img", {
197
202
  key: 2,
198
203
  src: e.value.name,
199
204
  class: "h-[1em] w-[1em]"
200
- }, null, 8, we)) : (r(), f(
205
+ }, null, 8, Se)) : (c(), m(
201
206
  "i",
202
207
  {
203
208
  key: 3,
204
- class: w(e.value.name),
205
- style: B(c.value)
209
+ class: S(e.value.name),
210
+ style: x(s.value)
206
211
  },
207
212
  null,
208
213
  6
@@ -216,13 +221,14 @@ const X = (l, y) => {
216
221
  _: 1
217
222
  /* STABLE */
218
223
  }, 8, ["content"]))
219
- ])) : (r(), N($, {
224
+ ])) : (c(), T(v, {
220
225
  key: 1,
221
- type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
226
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
227
+ onClick: H(z, ["stop"])
222
228
  }, {
223
229
  default: g(() => [
224
- z(
225
- T(e.value.title),
230
+ V(
231
+ L(e.value.title),
226
232
  1
227
233
  /* TEXT */
228
234
  )
@@ -233,7 +239,7 @@ const X = (l, y) => {
233
239
  };
234
240
  }
235
241
  });
236
- const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-a7ec508a"]]), xe = P(Ie), Q = {
242
+ const Ie = /* @__PURE__ */ Y(Ce, [["__scopeId", "data-v-4a1004b9"]]), xe = X(Ie), Z = {
237
243
  animation: 200,
238
244
  group: "gl",
239
245
  disabled: !1,
@@ -384,90 +390,90 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-a7ec508a"]]), xe = P(Ie)
384
390
  }
385
391
  })
386
392
  }
387
- }, Ce = /* @__PURE__ */ F({
393
+ }, $e = /* @__PURE__ */ M({
388
394
  __name: "IkDragList",
389
395
  props: Be,
390
396
  emits: ["change"],
391
- setup(l, { emit: y }) {
392
- const e = l, u = y, c = V([]);
393
- Z(
394
- () => e.list,
397
+ setup(l, { emit: h }) {
398
+ const a = l, e = h, d = D([]);
399
+ ee(
400
+ () => a.list,
395
401
  (p) => {
396
- c.value = x.cloneDeep(p);
402
+ d.value = I.cloneDeep(p);
397
403
  },
398
404
  {
399
405
  immediate: !0,
400
406
  deep: !0
401
407
  }
402
408
  );
403
- const t = L(() => ({
404
- ...Q,
405
- ...e,
409
+ const s = O(() => ({
410
+ ...Z,
411
+ ...a,
406
412
  itemStyle: {
407
- ...Q.itemStyle,
408
- ...e.itemStyle
413
+ ...Z.itemStyle,
414
+ ...a.itemStyle
409
415
  }
410
- })), k = V(!1), O = () => {
411
- k.value = !0;
412
- }, $ = (p) => {
413
- k.value = !1;
414
- const I = e.list[p.oldIndex];
415
- u("change", c.value, {
416
- ...I,
416
+ })), $ = D(!1), z = () => {
417
+ $.value = !0;
418
+ }, t = (p) => {
419
+ $.value = !1;
420
+ const b = a.list[p.oldIndex];
421
+ e("change", d.value, {
422
+ ...b,
417
423
  oldIndex: p.oldIndex,
418
424
  newIndex: p.newIndex
419
425
  });
420
426
  };
421
- return (p, I) => {
422
- const v = D("el-icon");
423
- return r(), N(_(ve), {
424
- modelValue: c.value,
425
- "onUpdate:modelValue": I[0] || (I[0] = (n) => c.value = n),
426
- class: w(["list-group", [t.value.groupClass]]),
427
+ return (p, b) => {
428
+ const v = N("el-icon");
429
+ return c(), T(w(fe), {
430
+ modelValue: d.value,
431
+ "onUpdate:modelValue": b[0] || (b[0] = (i) => d.value = i),
432
+ class: S(["list-group", [s.value.groupClass]]),
427
433
  tag: "ul",
428
- attrs: t.value,
429
- animation: t.value.animation,
430
- group: t.value.group,
431
- disabled: t.value.disabled,
432
- "ghost-class": t.value.ghostClass,
433
- "force-fallback": t.value.ghostClass,
434
+ attrs: s.value,
435
+ animation: s.value.animation,
436
+ group: s.value.group,
437
+ disabled: s.value.disabled,
438
+ "ghost-class": s.value.ghostClass,
439
+ "force-fallback": s.value.ghostClass,
434
440
  "item-key": "order",
435
- onStart: O,
436
- onEnd: $
441
+ onStart: z,
442
+ onEnd: t
437
443
  }, {
438
- item: g(({ element: n }) => [
439
- C(
440
- ne,
444
+ item: g(({ element: i }) => [
445
+ B(
446
+ se,
441
447
  {
442
448
  type: "transition",
443
449
  name: "flip-list"
444
450
  },
445
451
  {
446
452
  default: g(() => [
447
- p.$slots.item ? q(p.$slots, "item", {
453
+ p.$slots.item ? R(p.$slots, "item", {
448
454
  key: 0,
449
- item: n
450
- }, void 0, !0) : (r(), f(
455
+ item: i
456
+ }, void 0, !0) : (c(), m(
451
457
  "li",
452
458
  {
453
459
  key: 1,
454
- class: w(["list-group-item", [t.value.itemClass]]),
455
- style: B({
456
- borderRadius: `${t.value.itemStyle.radius}px`,
457
- marginBottom: `${t.value.itemStyle.bottom}px`,
458
- backgroundColor: `${t.value.itemStyle.background}`
460
+ class: S(["list-group-item", [s.value.itemClass]]),
461
+ style: x({
462
+ borderRadius: `${s.value.itemStyle.radius}px`,
463
+ marginBottom: `${s.value.itemStyle.bottom}px`,
464
+ backgroundColor: `${s.value.itemStyle.background}`
459
465
  })
460
466
  },
461
467
  [
462
- t.value.showIcon && !p.$slots.icon ? (r(), N(v, { key: 0 }, {
468
+ s.value.showIcon && !p.$slots.icon ? (c(), T(v, { key: 0 }, {
463
469
  default: g(() => [
464
- C(_(ge))
470
+ B(w(ge))
465
471
  ]),
466
472
  _: 1
467
473
  /* STABLE */
468
- })) : q(p.$slots, "icon", { key: 1 }, void 0, !0),
469
- z(
470
- " " + T(n.label),
474
+ })) : R(p.$slots, "icon", { key: 1 }, void 0, !0),
475
+ V(
476
+ " " + L(i.label),
471
477
  1
472
478
  /* TEXT */
473
479
  )
@@ -489,15 +495,15 @@ const Ie = /* @__PURE__ */ X(Se, [["__scopeId", "data-v-a7ec508a"]]), xe = P(Ie)
489
495
  };
490
496
  }
491
497
  });
492
- const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e), Ve = (l) => (ce("data-v-b5ed17ed"), l = l(), de(), l), De = /* @__PURE__ */ Ve(() => /* @__PURE__ */ S(
498
+ const ze = /* @__PURE__ */ Y($e, [["__scopeId", "data-v-3716c05e"]]), Ve = X(ze), De = (l) => (de("data-v-b5ed17ed"), l = l(), pe(), l), Ne = /* @__PURE__ */ De(() => /* @__PURE__ */ C(
493
499
  "i",
494
500
  { class: "ik ik-shezhi" },
495
501
  null,
496
502
  -1
497
503
  /* HOISTED */
498
- )), Ne = { class: "check-right" }, Te = { class: "dialog-footer" }, Le = /* @__PURE__ */ F({
504
+ )), Te = { class: "check-right" }, Le = { class: "dialog-footer" }, Oe = /* @__PURE__ */ M({
499
505
  __name: "IkBtnSetting",
500
- props: /* @__PURE__ */ R({
506
+ props: /* @__PURE__ */ G({
501
507
  list: {
502
508
  type: Array,
503
509
  default: () => []
@@ -553,104 +559,104 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
553
559
  },
554
560
  modelModifiers: {}
555
561
  }),
556
- emits: /* @__PURE__ */ R(["sort"], ["update:modelValue"]),
557
- setup(l, { emit: y }) {
558
- const e = l, u = y, c = se(l, "modelValue"), { t, dialog: k, path: O, user: $ } = e.config, p = L(() => `${$ == null ? void 0 : $.id}_${O}${e.tab !== "" ? `_${e.tab}` : ""}`), I = V([]), v = V([]), n = V([]), M = /* @__PURE__ */ new Map(), A = V(!1), ee = L(() => {
559
- const s = v.value.length && v.value.length !== e.list.length;
560
- return !s && v.value.length && (A.value = !0), !!s;
561
- }), U = (s) => {
562
- var i;
563
- const a = x.cloneDeep(n.value);
564
- a == null || a.forEach((o) => {
565
- var b;
562
+ emits: /* @__PURE__ */ G(["sort"], ["update:modelValue"]),
563
+ setup(l, { emit: h }) {
564
+ const a = l, e = h, d = ie(l, "modelValue"), { t: s, dialog: $, path: z, user: t } = a.config, p = O(() => `${t == null ? void 0 : t.id}_${z}${a.tab !== "" ? `_${a.tab}` : ""}`), b = D([]), v = D([]), i = D([]), F = /* @__PURE__ */ new Map(), A = D(!1), te = O(() => {
565
+ const u = v.value.length && v.value.length !== a.list.length;
566
+ return !u && v.value.length && (A.value = !0), !!u;
567
+ }), U = (u) => {
568
+ var r;
569
+ const o = I.cloneDeep(i.value);
570
+ o == null || o.forEach((n) => {
571
+ var _;
566
572
  if (!v.value.length)
567
- n.value = [];
568
- else if (!v.value.includes(o == null ? void 0 : o.key)) {
569
- const h = (b = n.value) == null ? void 0 : b.findIndex((d) => d.key === o.key);
570
- h !== -1 && n.value.splice(h, 1), o.show = !1, M.set(o.key, o);
573
+ i.value = [];
574
+ else if (!v.value.includes(n == null ? void 0 : n.key)) {
575
+ const k = (_ = i.value) == null ? void 0 : _.findIndex((f) => f.key === n.key);
576
+ k !== -1 && i.value.splice(k, 1), n.show = !1, F.set(n.key, n);
571
577
  }
572
- }), v.value.forEach((o) => {
573
- var h;
574
- if (((h = n.value) == null ? void 0 : h.findIndex((d) => (d == null ? void 0 : d.key) === o)) === -1) {
575
- const d = M.get(o);
576
- d && (d.show = !0, n.value.push(d));
578
+ }), v.value.forEach((n) => {
579
+ var k;
580
+ if (((k = i.value) == null ? void 0 : k.findIndex((f) => (f == null ? void 0 : f.key) === n)) === -1) {
581
+ const f = F.get(n);
582
+ f && (f.show = !0, i.value.push(f));
577
583
  }
578
- }), (i = n.value) != null && i.length || (n.value = x.cloneDeep(e.list)), s === !0 && (u("sort", x.cloneDeep(n.value)), c.value = x.cloneDeep(n.value));
579
- }, te = (s) => {
580
- if (s)
581
- v.value = e.list.map((a) => a.key);
584
+ }), (r = i.value) != null && r.length || (i.value = I.cloneDeep(a.list)), u === !0 && (e("sort", I.cloneDeep(i.value)), d.value = I.cloneDeep(i.value));
585
+ }, le = (u) => {
586
+ if (u)
587
+ v.value = a.list.map((o) => o.key);
582
588
  else {
583
- const a = e.list.find((i) => !i.key || i.label === "操作");
584
- v.value = a ? [a.key] : [];
589
+ const o = a.list.find((r) => !r.key || r.label === "操作");
590
+ v.value = o ? [o.key] : [];
585
591
  }
586
592
  U();
587
593
  }, W = () => {
588
- const s = H.local.getItem(p.value);
594
+ const u = P.local.getItem(p.value);
589
595
  try {
590
- const a = x.cloneDeep(e == null ? void 0 : e.list);
591
- if ((!s || !(s != null && s.length)) && H.local.setItem(
596
+ const o = I.cloneDeep(a == null ? void 0 : a.list);
597
+ if ((!u || !(u != null && u.length)) && P.local.setItem(
592
598
  p.value,
593
- a.map(({ show: i, type: o, key: b, label: h, width: d, minWidth: m, align: oe }) => ({
594
- show: i,
595
- key: b,
596
- type: o,
597
- label: h,
598
- width: d,
599
- minWidth: m,
600
- align: oe
599
+ o.map(({ show: r, type: n, key: _, label: k, width: f, minWidth: y, align: ne }) => ({
600
+ show: r,
601
+ key: _,
602
+ type: n,
603
+ label: k,
604
+ width: f,
605
+ minWidth: y,
606
+ align: ne
601
607
  }))
602
- ), I.value = [
603
- ...(a == null ? void 0 : a.map((i) => (M.set(i.key, i), {
604
- ...i,
605
- show: i.show || !1
608
+ ), b.value = [
609
+ ...(o == null ? void 0 : o.map((r) => (F.set(r.key, r), {
610
+ ...r,
611
+ show: r.show || !1
606
612
  }))) || []
607
- ], s) {
608
- const i = s.filter((o) => o.show).map((o) => o.key);
609
- v.value = [...i];
613
+ ], u) {
614
+ const r = u.filter((n) => n.show).map((n) => n.key);
615
+ v.value = [...r];
610
616
  } else {
611
- const i = I.value.filter((o) => o.show);
612
- v.value = i.map((o) => o.key);
617
+ const r = b.value.filter((n) => n.show);
618
+ v.value = r.map((n) => n.key);
613
619
  }
614
620
  U(!0);
615
- } catch (a) {
616
- console.info("error: ", a);
621
+ } catch (o) {
622
+ console.info("error: ", o);
617
623
  }
618
624
  };
619
- W(), Z(() => e.list, () => {
625
+ W(), ee(() => a.list, () => {
620
626
  W();
621
627
  }, { deep: !0 });
622
- const j = V(!1), Y = () => {
628
+ const j = D(!1), q = () => {
623
629
  j.value = !0;
624
- }, le = (s) => {
625
- n.value = s;
626
- }, ae = () => {
627
- j.value = !1, H.local.setItem(
630
+ }, ae = (u) => {
631
+ i.value = u;
632
+ }, oe = () => {
633
+ j.value = !1, P.local.setItem(
628
634
  p.value,
629
- n.value.map(({ show: s, key: a, label: i, value: o, width: b, minWidth: h, align: d }) => ({
630
- show: s,
631
- key: a,
632
- label: i,
633
- value: o,
634
- width: b,
635
- minWidth: h,
636
- align: d
635
+ i.value.map(({ show: u, key: o, label: r, value: n, width: _, minWidth: k, align: f }) => ({
636
+ show: u,
637
+ key: o,
638
+ label: r,
639
+ value: n,
640
+ width: _,
641
+ minWidth: k,
642
+ align: f
637
643
  }))
638
- ), u("sort", x.cloneDeep(n.value)), c.value = x.cloneDeep(n.value);
644
+ ), e("sort", I.cloneDeep(i.value)), d.value = I.cloneDeep(i.value);
639
645
  };
640
- return (s, a) => {
641
- const i = D("el-button"), o = D("el-checkbox"), b = D("el-checkbox-group"), h = D("el-dialog"), d = ie("role");
642
- return r(), f(
643
- G,
646
+ return (u, o) => {
647
+ const r = N("el-button"), n = N("el-checkbox"), _ = N("el-checkbox-group"), k = N("el-dialog"), f = ue("role");
648
+ return c(), m(
649
+ J,
644
650
  null,
645
651
  [
646
- l.btnType === "button" ? J((r(), N(i, K({ key: 0 }, s.$attrs, {
652
+ l.btnType === "button" ? K((c(), T(r, Q({ key: 0 }, u.$attrs, {
647
653
  circle: l.circle,
648
654
  type: l.type,
649
655
  style: { minWidth: l.circle ? "40px" : "", minHeight: l.circle ? "40px" : "" },
650
- onClick: Y
651
- }), ue({
656
+ onClick: q
657
+ }), re({
652
658
  icon: g(() => [
653
- De
659
+ Ne
654
660
  ]),
655
661
  _: 2
656
662
  /* DYNAMIC */
@@ -659,8 +665,8 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
659
665
  name: "default",
660
666
  fn: g(() => [
661
667
  E(' {{ t("action.setting") }} '),
662
- z(
663
- " " + T(_(t)("设置")),
668
+ V(
669
+ " " + L(w(s)("设置")),
664
670
  1
665
671
  /* TEXT */
666
672
  )
@@ -668,27 +674,27 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
668
674
  key: "0"
669
675
  }
670
676
  ]), 1040, ["circle", "type", "style"])), [
671
- [d, s.$props.role]
677
+ [f, u.$props.role]
672
678
  ]) : E("v-if", !0),
673
- l.btnType === "icon" ? J((r(), N(
674
- _(xe),
675
- K({
679
+ l.btnType === "icon" ? K((c(), T(
680
+ w(xe),
681
+ Q({
676
682
  key: 1,
677
683
  name: "iksvg_shezhi-daohang",
678
684
  "show-bg": "",
679
685
  size: "default"
680
- }, s.$attrs, { onClick: Y }),
686
+ }, u.$attrs, { onClick: q }),
681
687
  null,
682
688
  16
683
689
  /* FULL_PROPS */
684
690
  )), [
685
- [d, s.$props.role]
691
+ [f, u.$props.role]
686
692
  ]) : E("v-if", !0),
687
- C(h, {
693
+ B(k, {
688
694
  modelValue: j.value,
689
- "onUpdate:modelValue": a[3] || (a[3] = (m) => j.value = m),
695
+ "onUpdate:modelValue": o[3] || (o[3] = (y) => j.value = y),
690
696
  draggable: "",
691
- width: l.inline ? _(k).l : _(k).sl,
697
+ width: l.inline ? w($).l : w($).sl,
692
698
  "close-on-click-modal": !1,
693
699
  "close-on-press-escape": !1,
694
700
  title: "显示字段",
@@ -696,13 +702,13 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
696
702
  onOpen: W
697
703
  }, {
698
704
  footer: g(() => [
699
- S("div", Te, [
700
- C(i, {
701
- onClick: a[2] || (a[2] = (m) => j.value = !1)
705
+ C("div", Le, [
706
+ B(r, {
707
+ onClick: o[2] || (o[2] = (y) => j.value = !1)
702
708
  }, {
703
709
  default: g(() => [
704
- z(
705
- T(_(t)("关闭")) + " ",
710
+ V(
711
+ L(w(s)("关闭")) + " ",
706
712
  1
707
713
  /* TEXT */
708
714
  ),
@@ -711,14 +717,14 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
711
717
  _: 1
712
718
  /* STABLE */
713
719
  }),
714
- C(i, {
720
+ B(r, {
715
721
  type: "primary",
716
- disabled: n.value.length < 2,
717
- onClick: ae
722
+ disabled: i.value.length < 2,
723
+ onClick: oe
718
724
  }, {
719
725
  default: g(() => [
720
- z(
721
- T(n.value.length < 2 ? "至少选择一个字段" : _(t)("确定")),
726
+ V(
727
+ L(i.value.length < 2 ? "至少选择一个字段" : w(s)("确定")),
722
728
  1
723
729
  /* TEXT */
724
730
  )
@@ -729,48 +735,48 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
729
735
  ])
730
736
  ]),
731
737
  default: g(() => [
732
- S(
738
+ C(
733
739
  "div",
734
740
  {
735
- class: w(["view-fields", [l.inline ? null : "un-inline"]])
741
+ class: S(["view-fields", [l.inline ? null : "un-inline"]])
736
742
  },
737
743
  [
738
- S(
744
+ C(
739
745
  "div",
740
746
  {
741
- style: B({ flex: l.inline ? 2 : 1 })
747
+ style: x({ flex: l.inline ? 2 : 1 })
742
748
  },
743
749
  [
744
- C(o, {
750
+ B(n, {
745
751
  modelValue: A.value,
746
- "onUpdate:modelValue": a[0] || (a[0] = (m) => A.value = m),
752
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => A.value = y),
747
753
  class: "single-line",
748
- indeterminate: ee.value,
749
- onChange: te
754
+ indeterminate: te.value,
755
+ onChange: le
750
756
  }, {
751
757
  default: g(() => [
752
- z(" 全选 ")
758
+ V(" 全选 ")
753
759
  ]),
754
760
  _: 1
755
761
  /* STABLE */
756
762
  }, 8, ["modelValue", "indeterminate"]),
757
- C(b, {
763
+ B(_, {
758
764
  modelValue: v.value,
759
- "onUpdate:modelValue": a[1] || (a[1] = (m) => v.value = m),
765
+ "onUpdate:modelValue": o[1] || (o[1] = (y) => v.value = y),
760
766
  onChange: U
761
767
  }, {
762
768
  default: g(() => [
763
- (r(!0), f(
764
- G,
769
+ (c(!0), m(
770
+ J,
765
771
  null,
766
- re(I.value, (m) => (r(), N(o, {
767
- key: m.key,
768
- disabled: !m.key,
769
- label: m.key
772
+ ce(b.value, (y) => (c(), T(n, {
773
+ key: y.key,
774
+ disabled: !y.key,
775
+ label: y.key
770
776
  }, {
771
777
  default: g(() => [
772
- z(
773
- T(m.label),
778
+ V(
779
+ L(y.label),
774
780
  1
775
781
  /* TEXT */
776
782
  )
@@ -789,11 +795,11 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
789
795
  4
790
796
  /* STYLE */
791
797
  ),
792
- S("div", Ne, [
793
- C(_(ze), {
794
- list: n.value,
798
+ C("div", Te, [
799
+ B(w(Ve), {
800
+ list: i.value,
795
801
  "item-style": { bottom: 4 },
796
- onChange: le
802
+ onChange: ae
797
803
  }, null, 8, ["list"])
798
804
  ])
799
805
  ],
@@ -811,8 +817,8 @@ const $e = /* @__PURE__ */ X(Ce, [["__scopeId", "data-v-3716c05e"]]), ze = P($e)
811
817
  };
812
818
  }
813
819
  });
814
- const Oe = /* @__PURE__ */ X(Le, [["__scopeId", "data-v-b5ed17ed"]]), Me = P(Oe);
820
+ const je = /* @__PURE__ */ Y(Oe, [["__scopeId", "data-v-b5ed17ed"]]), Ae = X(je);
815
821
  export {
816
- Me as IkBtnSetting,
817
- Me as default
822
+ Ae as IkBtnSetting,
823
+ Ae as default
818
824
  };