iking-web-ui-pro 0.2.22 → 0.2.25

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