iking-web-ui-pro 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +612 -640
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +151 -179
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +274 -302
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCollapseCard/ik.index.es.js +148 -176
  8. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  9. package/dist/IkDescription/ik.index.es.js +1494 -1522
  10. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  11. package/dist/IkDetailPreviewFiles/ik.index.es.js +1462 -1490
  12. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  13. package/dist/IkExpandCollapse/ik.index.es.js +142 -170
  14. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  15. package/dist/IkIconPicker/ik.index.es.js +210 -238
  16. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  17. package/dist/IkMonacoEditor/ik.index.es.js +356 -384
  18. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  19. package/dist/IkPageFull/ik.index.es.js +624 -652
  20. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  21. package/dist/IkPreviewFile/ik.index.es.js +1438 -1466
  22. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPreviewFileDialog/ik.index.es.js +571 -599
  24. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  25. package/dist/IkSchedule/ik.index.es.js +324 -352
  26. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  27. package/dist/IkSideText/ik.index.es.js +163 -191
  28. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSvgIcon/ik.index.es.js +129 -157
  30. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  31. package/dist/IkUploadFile/ik.index.es.js +690 -718
  32. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  33. package/dist/IkUploadImage/ik.index.es.js +353 -381
  34. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  35. package/dist/IkVerticalStepBar/ik.index.es.js +199 -227
  36. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  37. package/dist/iking-web-ui-pro.css +1 -1
  38. package/dist/index.es.js +6833 -6861
  39. package/dist/index.umd.js +1 -1
  40. package/package.json +1 -1
@@ -1,36 +1,36 @@
1
- import { defineComponent as A, openBlock as c, createElementBlock as m, createElementVNode as C, computed as L, resolveComponent as D, Fragment as P, normalizeClass as S, normalizeStyle as $, createBlock as N, withCtx as f, createTextVNode as z, toDisplayString as T, ref as V, watch as Z, unref as _, createVNode as x, Transition as ne, renderSlot as R, mergeModels as G, useModel as se, resolveDirective as ie, withDirectives as J, mergeProps as K, createSlots as ue, createCommentVNode as F, renderList as re } from "vue";
2
- import { ikColor as ce, _ as I, ikStore as H } from "iking-utils-pro";
1
+ import { defineComponent as A, openBlock as r, createElementBlock as f, createElementVNode as x, computed as T, resolveComponent as z, normalizeClass as B, normalizeStyle as X, Fragment as F, createBlock as D, withCtx as m, mergeProps as P, createTextVNode as $, toDisplayString as N, ref as V, watch as Z, unref as w, createVNode as C, Transition as ne, renderSlot as G, mergeModels as J, useModel as se, resolveDirective as ie, withDirectives as K, createSlots as ue, createCommentVNode as j, renderList as re } from "vue";
2
+ import { ikColor as ce, _ as S, ikStore as H } from "iking-utils-pro";
3
3
  import de from "vuedraggable";
4
- const X = (o, b) => (o.install = (s) => {
4
+ const Y = (o, b) => (o.install = (s) => {
5
5
  for (const e of [o, ...Object.values({})])
6
6
  s.component(e.name, e);
7
7
  }, o);
8
8
  /*! Element Plus Icons Vue v2.3.1 */
9
- var ve = /* @__PURE__ */ A({
9
+ var pe = /* @__PURE__ */ A({
10
10
  name: "DCaret",
11
11
  __name: "d-caret",
12
12
  setup(o) {
13
- return (b, s) => (c(), m("svg", {
13
+ return (b, s) => (r(), f("svg", {
14
14
  xmlns: "http://www.w3.org/2000/svg",
15
15
  viewBox: "0 0 1024 1024"
16
16
  }, [
17
- C("path", {
17
+ x("path", {
18
18
  fill: "currentColor",
19
19
  d: "m512 128 288 320H224zM224 576h576L512 896z"
20
20
  })
21
21
  ]));
22
22
  }
23
- }), pe = ve;
24
- const Y = (o, b) => {
23
+ }), ve = pe;
24
+ const q = (o, b) => {
25
25
  const s = o.__vccOpts || o;
26
- for (const [e, d] of b)
27
- s[e] = d;
26
+ for (const [e, c] of b)
27
+ s[e] = c;
28
28
  return s;
29
- }, me = {
29
+ }, fe = {
30
30
  key: 1,
31
31
  class: "h-[1em] w-[1em]",
32
32
  "aria-hidden": "true"
33
- }, fe = ["xlink:href"], ge = ["src"], ye = {
33
+ }, me = ["xlink:href"], ge = ["src"], ye = {
34
34
  key: 1,
35
35
  class: "h-[1em] w-[1em]",
36
36
  "aria-hidden": "true"
@@ -63,10 +63,10 @@ const Y = (o, b) => {
63
63
  },
64
64
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
65
65
  setup(o, { emit: b }) {
66
- const s = o, e = L(() => s), d = L(() => {
66
+ const s = o, e = T(() => s), c = T(() => {
67
67
  const { name: t } = e.value;
68
68
  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";
69
- }), i = L(() => {
69
+ }), d = T(() => {
70
70
  const t = [];
71
71
  if (e.value.flip)
72
72
  switch (e.value.flip) {
@@ -82,179 +82,151 @@ const Y = (o, b) => {
82
82
  }
83
83
  e.value.rotate && t.push(`rotate(${e.value.rotate % 360}deg)`);
84
84
  const a = {
85
- pointerEvents: e.value.disabled ? "none" : "auto",
86
85
  ...e.value.color && { color: e.value.color },
87
86
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
88
87
  ...t.length && { transform: t.join(" ") },
89
88
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
90
- ...e.value.color && d.value !== "iksig" ? {
89
+ ...e.value.color && c.value !== "iksig" ? {
91
90
  "--ik-icon-deep-color": e.value.color,
92
91
  "--ik-icon-shallow-color": e.value.colorLight || ce.setOpacity(e.value.color, e.value.opacity)
93
92
  } : {}
94
93
  };
95
94
  return e.value.width && (a.width = a.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), a;
96
- }), k = b, M = (t) => {
97
- k("click", t);
98
- }, B = (t) => {
99
- k("mouseenter", t);
100
- }, v = (t) => {
101
- k("mouseleave", t);
102
- }, y = (t) => {
103
- k("dblclick", t);
95
+ }), h = b, M = (t) => {
96
+ h("click", t);
97
+ }, I = (t) => {
98
+ h("mouseenter", t);
99
+ }, p = (t) => {
100
+ h("mouseleave", t);
101
+ }, k = (t) => {
102
+ h("dblclick", t);
104
103
  };
105
104
  return (t, a) => {
106
- const O = D("el-tooltip"), E = D("el-button");
107
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (c(), m(
108
- P,
109
- { key: 0 },
105
+ const L = z("el-tooltip"), O = z("el-button");
106
+ return r(), f(
107
+ "i",
108
+ {
109
+ class: B(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
110
+ [t.iconClass]: !0,
111
+ [t.name]: c.value === "unocss",
112
+ "show-bg": e.value.showBg || e.value.bg,
113
+ default: e.value.size === "default",
114
+ small: e.value.size === "small",
115
+ big: e.value.size === "big",
116
+ warning: e.value.warning || e.value.type === "warning",
117
+ primary: e.value.primary || e.value.type === "primary",
118
+ success: t.success || e.value.type === "success",
119
+ error: e.value.error || e.value.type === "error",
120
+ active: e.value.active,
121
+ disabled: e.value.disabled
122
+ }]),
123
+ style: X(d.value),
124
+ onClick: M,
125
+ onDblclick: k,
126
+ onMouseenter: I,
127
+ onMouseleave: p
128
+ },
110
129
  [
111
- e.value.notip || !e.value.title ? (c(), m(
112
- "i",
113
- {
114
- key: 0,
115
- class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
116
- [t.iconClass]: !0,
117
- [t.name]: d.value === "unocss",
118
- "show-bg": e.value.showBg || e.value.bg,
119
- default: e.value.size === "default",
120
- small: e.value.size === "small",
121
- big: e.value.size === "big",
122
- warning: e.value.warning || e.value.type === "warning",
123
- primary: e.value.primary || e.value.type === "primary",
124
- success: t.success || e.value.type === "success",
125
- error: e.value.error || e.value.type === "error",
126
- active: e.value.active,
127
- disabled: e.value.disabled
128
- }]),
129
- style: $(i.value),
130
- onClick: M,
131
- onDblclick: y,
132
- onMouseenter: B,
133
- onMouseleave: v
134
- },
130
+ e.value.tableIconType === "icon" || !e.value.tableIconType ? (r(), f(
131
+ F,
132
+ { key: 0 },
135
133
  [
136
- d.value === "iksig" ? (c(), m(
137
- "i",
138
- {
139
- key: 0,
140
- class: S(`iksig ${e.value.name}`),
141
- style: $(i.value)
142
- },
143
- null,
144
- 6
145
- /* CLASS, STYLE */
146
- )) : d.value === "svg" ? (c(), m("svg", me, [
147
- C("use", {
148
- "xlink:href": `#${e.value.name}`
149
- }, null, 8, fe)
150
- ])) : d.value === "img" ? (c(), m("img", {
151
- key: 2,
152
- src: e.value.name,
153
- class: "h-[1em] w-[1em]"
154
- }, null, 8, ge)) : (c(), m(
155
- "i",
156
- {
157
- key: 3,
158
- class: S(e.value.name),
159
- style: $(i.value)
160
- },
161
- null,
162
- 6
163
- /* CLASS, STYLE */
164
- ))
165
- ],
166
- 38
167
- /* CLASS, STYLE, NEED_HYDRATION */
168
- )) : (c(), N(O, {
169
- key: 1,
170
- content: e.value.title,
171
- placement: "top",
172
- "popper-class": "ik-svg-icon-tooltip",
173
- "hide-after": 0
174
- }, {
175
- default: f(() => [
176
- C(
177
- "i",
178
- {
179
- class: S(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
180
- [t.iconClass]: !0,
181
- [t.name]: d.value === "unocss",
182
- "show-bg": e.value.showBg || e.value.bg,
183
- default: e.value.size === "default",
184
- small: e.value.size === "small",
185
- big: e.value.size === "big",
186
- warning: e.value.warning || e.value.type === "warning",
187
- primary: t.primary || e.value.type === "primary",
188
- success: t.success || e.value.type === "success",
189
- error: e.value.error || e.value.type === "error",
190
- active: e.value.active,
191
- disabled: e.value.disabled,
192
- ...t.$attrs.class || {}
193
- }]),
194
- style: $(i.value),
195
- onClick: M,
196
- onDblclick: y,
197
- onMouseenter: B,
198
- onMouseleave: v
199
- },
134
+ e.value.notip || !e.value.title ? (r(), f(
135
+ F,
136
+ { key: 0 },
200
137
  [
201
- d.value === "iksig" ? (c(), m(
138
+ c.value === "iksig" ? (r(), f(
202
139
  "i",
203
140
  {
204
141
  key: 0,
205
- class: S(`iksig ${e.value.name}`),
206
- style: $(i.value)
142
+ class: B(`iksig ${e.value.name}`)
207
143
  },
208
144
  null,
209
- 6
210
- /* CLASS, STYLE */
211
- )) : d.value === "svg" ? (c(), m("svg", ye, [
212
- C("use", {
145
+ 2
146
+ /* CLASS */
147
+ )) : c.value === "svg" ? (r(), f("svg", fe, [
148
+ x("use", {
213
149
  "xlink:href": `#${e.value.name}`
214
- }, null, 8, he)
215
- ])) : d.value === "img" ? (c(), m("img", {
150
+ }, null, 8, me)
151
+ ])) : c.value === "img" ? (r(), f("img", {
216
152
  key: 2,
217
153
  src: e.value.name,
218
154
  class: "h-[1em] w-[1em]"
219
- }, null, 8, ke)) : (c(), m(
155
+ }, null, 8, ge)) : (r(), f(
220
156
  "i",
221
157
  {
222
158
  key: 3,
223
- class: S(e.value.name),
224
- style: $(i.value)
159
+ class: B(e.value.name)
225
160
  },
226
161
  null,
227
- 6
228
- /* CLASS, STYLE */
162
+ 2
163
+ /* CLASS */
229
164
  ))
230
165
  ],
231
- 38
232
- /* CLASS, STYLE, NEED_HYDRATION */
166
+ 64
167
+ /* STABLE_FRAGMENT */
168
+ )) : (r(), D(L, {
169
+ key: 1,
170
+ content: e.value.title,
171
+ placement: "top",
172
+ "popper-class": "ik-svg-icon-tooltip",
173
+ "hide-after": 0
174
+ }, {
175
+ default: m(() => [
176
+ c.value === "iksig" ? (r(), f(
177
+ "i",
178
+ {
179
+ key: 0,
180
+ class: B(`iksig ${e.value.name}`)
181
+ },
182
+ null,
183
+ 2
184
+ /* CLASS */
185
+ )) : c.value === "svg" ? (r(), f("svg", ye, [
186
+ x("use", {
187
+ "xlink:href": `#${e.value.name}`
188
+ }, null, 8, he)
189
+ ])) : c.value === "img" ? (r(), f("img", {
190
+ key: 2,
191
+ src: e.value.name,
192
+ class: "h-[1em] w-[1em]"
193
+ }, null, 8, ke)) : (r(), f(
194
+ "i",
195
+ {
196
+ key: 3,
197
+ class: B(e.value.name)
198
+ },
199
+ null,
200
+ 2
201
+ /* CLASS */
202
+ ))
203
+ ]),
204
+ _: 1
205
+ /* STABLE */
206
+ }, 8, ["content"]))
207
+ ],
208
+ 64
209
+ /* STABLE_FRAGMENT */
210
+ )) : (r(), D(O, P({ key: 1 }, t.$attrs, {
211
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
212
+ }), {
213
+ default: m(() => [
214
+ $(
215
+ N(e.value.title),
216
+ 1
217
+ /* TEXT */
233
218
  )
234
219
  ]),
235
220
  _: 1
236
221
  /* STABLE */
237
- }, 8, ["content"]))
222
+ }, 16, ["type"]))
238
223
  ],
239
- 64
240
- /* STABLE_FRAGMENT */
241
- )) : (c(), N(E, {
242
- key: 1,
243
- type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
244
- }, {
245
- default: f(() => [
246
- z(
247
- T(e.value.title),
248
- 1
249
- /* TEXT */
250
- )
251
- ]),
252
- _: 1
253
- /* STABLE */
254
- }, 8, ["type"]));
224
+ 38
225
+ /* CLASS, STYLE, NEED_HYDRATION */
226
+ );
255
227
  };
256
228
  }
257
- }), we = /* @__PURE__ */ Y(be, [["__scopeId", "data-v-64b61696"]]), _e = X(we), Q = {
229
+ }), _e = /* @__PURE__ */ q(be, [["__scopeId", "data-v-2648e369"]]), we = Y(_e), Q = {
258
230
  animation: 200,
259
231
  group: "gl",
260
232
  disabled: !1,
@@ -410,85 +382,85 @@ const Y = (o, b) => {
410
382
  props: Se,
411
383
  emits: ["change"],
412
384
  setup(o, { emit: b }) {
413
- const s = o, e = b, d = V([]);
385
+ const s = o, e = b, c = V([]);
414
386
  Z(
415
387
  () => s.list,
416
- (v) => {
417
- d.value = I.cloneDeep(v);
388
+ (p) => {
389
+ c.value = S.cloneDeep(p);
418
390
  },
419
391
  {
420
392
  immediate: !0,
421
393
  deep: !0
422
394
  }
423
395
  );
424
- const i = L(() => ({
396
+ const d = T(() => ({
425
397
  ...Q,
426
398
  ...s,
427
399
  itemStyle: {
428
400
  ...Q.itemStyle,
429
401
  ...s.itemStyle
430
402
  }
431
- })), k = V(!1), M = () => {
432
- k.value = !0;
433
- }, B = (v) => {
434
- k.value = !1;
435
- const y = s.list[v.oldIndex];
436
- e("change", d.value, {
437
- ...y,
438
- oldIndex: v.oldIndex,
439
- newIndex: v.newIndex
403
+ })), h = V(!1), M = () => {
404
+ h.value = !0;
405
+ }, I = (p) => {
406
+ h.value = !1;
407
+ const k = s.list[p.oldIndex];
408
+ e("change", c.value, {
409
+ ...k,
410
+ oldIndex: p.oldIndex,
411
+ newIndex: p.newIndex
440
412
  });
441
413
  };
442
- return (v, y) => {
443
- const t = D("el-icon");
444
- return c(), N(_(de), {
445
- modelValue: d.value,
446
- "onUpdate:modelValue": y[0] || (y[0] = (a) => d.value = a),
447
- class: S(["list-group", [i.value.groupClass]]),
414
+ return (p, k) => {
415
+ const t = z("el-icon");
416
+ return r(), D(w(de), {
417
+ modelValue: c.value,
418
+ "onUpdate:modelValue": k[0] || (k[0] = (a) => c.value = a),
419
+ class: B(["list-group", [d.value.groupClass]]),
448
420
  tag: "ul",
449
- attrs: i.value,
450
- animation: i.value.animation,
451
- group: i.value.group,
452
- disabled: i.value.disabled,
453
- "ghost-class": i.value.ghostClass,
454
- "force-fallback": i.value.ghostClass,
421
+ attrs: d.value,
422
+ animation: d.value.animation,
423
+ group: d.value.group,
424
+ disabled: d.value.disabled,
425
+ "ghost-class": d.value.ghostClass,
426
+ "force-fallback": d.value.ghostClass,
455
427
  "item-key": "order",
456
428
  onStart: M,
457
- onEnd: B
429
+ onEnd: I
458
430
  }, {
459
- item: f(({ element: a }) => [
460
- x(
431
+ item: m(({ element: a }) => [
432
+ C(
461
433
  ne,
462
434
  {
463
435
  type: "transition",
464
436
  name: "flip-list"
465
437
  },
466
438
  {
467
- default: f(() => [
468
- v.$slots.item ? R(v.$slots, "item", {
439
+ default: m(() => [
440
+ p.$slots.item ? G(p.$slots, "item", {
469
441
  key: 0,
470
442
  item: a
471
- }, void 0, !0) : (c(), m(
443
+ }, void 0, !0) : (r(), f(
472
444
  "li",
473
445
  {
474
446
  key: 1,
475
- class: S(["list-group-item", [i.value.itemClass]]),
476
- style: $({
477
- borderRadius: `${i.value.itemStyle.radius}px`,
478
- marginBottom: `${i.value.itemStyle.bottom}px`,
479
- backgroundColor: `${i.value.itemStyle.background}`
447
+ class: B(["list-group-item", [d.value.itemClass]]),
448
+ style: X({
449
+ borderRadius: `${d.value.itemStyle.radius}px`,
450
+ marginBottom: `${d.value.itemStyle.bottom}px`,
451
+ backgroundColor: `${d.value.itemStyle.background}`
480
452
  })
481
453
  },
482
454
  [
483
- i.value.showIcon && !v.$slots.icon ? (c(), N(t, { key: 0 }, {
484
- default: f(() => [
485
- x(_(pe))
455
+ d.value.showIcon && !p.$slots.icon ? (r(), D(t, { key: 0 }, {
456
+ default: m(() => [
457
+ C(w(ve))
486
458
  ]),
487
459
  _: 1
488
460
  /* STABLE */
489
- })) : R(v.$slots, "icon", { key: 1 }, void 0, !0),
490
- z(
491
- " " + T(a.label),
461
+ })) : G(p.$slots, "icon", { key: 1 }, void 0, !0),
462
+ $(
463
+ " " + N(a.label),
492
464
  1
493
465
  /* TEXT */
494
466
  )
@@ -509,9 +481,9 @@ const Y = (o, b) => {
509
481
  }, 8, ["modelValue", "class", "attrs", "animation", "group", "disabled", "ghost-class", "force-fallback"]);
510
482
  };
511
483
  }
512
- }), Be = /* @__PURE__ */ Y(Ce, [["__scopeId", "data-v-3716c05e"]]), Ie = X(Be), $e = { class: "check-right" }, xe = { class: "dialog-footer" }, ze = /* @__PURE__ */ A({
484
+ }), xe = /* @__PURE__ */ q(Ce, [["__scopeId", "data-v-3716c05e"]]), Be = Y(xe), Ie = { class: "check-right" }, $e = { class: "dialog-footer" }, Ve = /* @__PURE__ */ A({
513
485
  __name: "IkBtnSetting",
514
- props: /* @__PURE__ */ G({
486
+ props: /* @__PURE__ */ J({
515
487
  list: {
516
488
  type: Array,
517
489
  default: () => []
@@ -567,63 +539,63 @@ const Y = (o, b) => {
567
539
  },
568
540
  modelModifiers: {}
569
541
  }),
570
- emits: /* @__PURE__ */ G(["sort"], ["update:modelValue"]),
542
+ emits: /* @__PURE__ */ J(["sort"], ["update:modelValue"]),
571
543
  setup(o, { emit: b }) {
572
- const s = o, e = b, d = se(o, "modelValue"), { t: i, dialog: k, path: M, user: B } = s.config, v = L(() => `${B == null ? void 0 : B.id}_${M}${s.tab !== "" ? `_${s.tab}` : ""}`), y = V([]), t = V([]), a = V([]), O = /* @__PURE__ */ new Map(), E = V(!1), ee = L(() => {
573
- const u = t.value.length && t.value.length !== s.list.length;
574
- return !u && t.value.length && (E.value = !0), !!u;
575
- }), U = (u) => {
576
- var r;
577
- const l = I.cloneDeep(a.value);
544
+ const s = o, e = b, c = se(o, "modelValue"), { t: d, dialog: h, path: M, user: I } = s.config, p = T(() => `${I == null ? void 0 : I.id}_${M}${s.tab !== "" ? `_${s.tab}` : ""}`), k = V([]), t = V([]), a = V([]), L = /* @__PURE__ */ new Map(), O = V(!1), ee = T(() => {
545
+ const i = t.value.length && t.value.length !== s.list.length;
546
+ return !i && t.value.length && (O.value = !0), !!i;
547
+ }), U = (i) => {
548
+ var u;
549
+ const l = S.cloneDeep(a.value);
578
550
  l == null || l.forEach((n) => {
579
- var w;
551
+ var _;
580
552
  if (!t.value.length)
581
553
  a.value = [];
582
554
  else if (!t.value.includes(n == null ? void 0 : n.key)) {
583
- const h = (w = a.value) == null ? void 0 : w.findIndex((p) => p.key === n.key);
584
- h !== -1 && a.value.splice(h, 1), n.show = !1, O.set(n.key, n);
555
+ const y = (_ = a.value) == null ? void 0 : _.findIndex((v) => v.key === n.key);
556
+ y !== -1 && a.value.splice(y, 1), n.show = !1, L.set(n.key, n);
585
557
  }
586
558
  }), t.value.forEach((n) => {
587
- var h;
588
- if (((h = a.value) == null ? void 0 : h.findIndex((p) => (p == null ? void 0 : p.key) === n)) === -1) {
589
- const p = O.get(n);
590
- p && (p.show = !0, a.value.push(p));
559
+ var y;
560
+ if (((y = a.value) == null ? void 0 : y.findIndex((v) => (v == null ? void 0 : v.key) === n)) === -1) {
561
+ const v = L.get(n);
562
+ v && (v.show = !0, a.value.push(v));
591
563
  }
592
- }), (r = a.value) != null && r.length || (a.value = I.cloneDeep(s.list)), u === !0 && (e("sort", I.cloneDeep(a.value)), d.value = I.cloneDeep(a.value));
593
- }, te = (u) => {
594
- if (u)
564
+ }), (u = a.value) != null && u.length || (a.value = S.cloneDeep(s.list)), i === !0 && (e("sort", S.cloneDeep(a.value)), c.value = S.cloneDeep(a.value));
565
+ }, te = (i) => {
566
+ if (i)
595
567
  t.value = s.list.map((l) => l.key);
596
568
  else {
597
- const l = s.list.find((r) => !r.key || r.label === "操作");
569
+ const l = s.list.find((u) => !u.key || u.label === "操作");
598
570
  t.value = l ? [l.key] : [];
599
571
  }
600
572
  U();
601
573
  }, W = () => {
602
- const u = H.local.getItem(v.value);
574
+ const i = H.local.getItem(p.value);
603
575
  try {
604
- const l = I.cloneDeep(s == null ? void 0 : s.list);
605
- if ((!u || !(u != null && u.length)) && H.local.setItem(
606
- v.value,
607
- l.map(({ show: r, type: n, key: w, label: h, width: p, minWidth: g, align: oe }) => ({
608
- show: r,
609
- key: w,
576
+ const l = S.cloneDeep(s == null ? void 0 : s.list);
577
+ if ((!i || !(i != null && i.length)) && H.local.setItem(
578
+ p.value,
579
+ l.map(({ show: u, type: n, key: _, label: y, width: v, minWidth: g, align: oe }) => ({
580
+ show: u,
581
+ key: _,
610
582
  type: n,
611
- label: h,
612
- width: p,
583
+ label: y,
584
+ width: v,
613
585
  minWidth: g,
614
586
  align: oe
615
587
  }))
616
- ), y.value = [
617
- ...(l == null ? void 0 : l.map((r) => (O.set(r.key, r), {
618
- ...r,
619
- show: r.show || !1
588
+ ), k.value = [
589
+ ...(l == null ? void 0 : l.map((u) => (L.set(u.key, u), {
590
+ ...u,
591
+ show: u.show || !1
620
592
  }))) || []
621
- ], u) {
622
- const r = u.filter((n) => n.show).map((n) => n.key);
623
- t.value = [...r];
593
+ ], i) {
594
+ const u = i.filter((n) => n.show).map((n) => n.key);
595
+ t.value = [...u];
624
596
  } else {
625
- const r = y.value.filter((n) => n.show);
626
- t.value = r.map((n) => n.key);
597
+ const u = k.value.filter((n) => n.show);
598
+ t.value = u.map((n) => n.key);
627
599
  }
628
600
  U(!0);
629
601
  } catch (l) {
@@ -633,38 +605,38 @@ const Y = (o, b) => {
633
605
  W(), Z(() => s.list, () => {
634
606
  W();
635
607
  }, { deep: !0 });
636
- const j = V(!1), q = () => {
637
- j.value = !0;
638
- }, le = (u) => {
639
- a.value = u;
608
+ const E = V(!1), R = () => {
609
+ E.value = !0;
610
+ }, le = (i) => {
611
+ a.value = i;
640
612
  }, ae = () => {
641
- j.value = !1, H.local.setItem(
642
- v.value,
643
- a.value.map(({ show: u, key: l, label: r, value: n, width: w, minWidth: h, align: p }) => ({
644
- show: u,
613
+ E.value = !1, H.local.setItem(
614
+ p.value,
615
+ a.value.map(({ show: i, key: l, label: u, value: n, width: _, minWidth: y, align: v }) => ({
616
+ show: i,
645
617
  key: l,
646
- label: r,
618
+ label: u,
647
619
  value: n,
648
- width: w,
649
- minWidth: h,
650
- align: p
620
+ width: _,
621
+ minWidth: y,
622
+ align: v
651
623
  }))
652
- ), e("sort", I.cloneDeep(a.value)), d.value = I.cloneDeep(a.value);
624
+ ), e("sort", S.cloneDeep(a.value)), c.value = S.cloneDeep(a.value);
653
625
  };
654
- return (u, l) => {
655
- const r = D("el-button"), n = D("el-checkbox"), w = D("el-checkbox-group"), h = D("el-dialog"), p = ie("role");
656
- return c(), m(
657
- P,
626
+ return (i, l) => {
627
+ const u = z("el-button"), n = z("el-checkbox"), _ = z("el-checkbox-group"), y = z("el-dialog"), v = ie("role");
628
+ return r(), f(
629
+ F,
658
630
  null,
659
631
  [
660
- o.btnType === "button" ? J((c(), N(r, K({ key: 0 }, u.$attrs, {
632
+ o.btnType === "button" ? K((r(), D(u, P({ key: 0 }, i.$attrs, {
661
633
  circle: o.circle,
662
634
  type: o.type,
663
635
  style: { minWidth: o.circle ? "40px" : "", minHeight: o.circle ? "40px" : "" },
664
- onClick: q
636
+ onClick: R
665
637
  }), ue({
666
- icon: f(() => [
667
- l[4] || (l[4] = C(
638
+ icon: m(() => [
639
+ l[4] || (l[4] = x(
668
640
  "i",
669
641
  { class: "ik ik-shezhi" },
670
642
  null,
@@ -677,10 +649,10 @@ const Y = (o, b) => {
677
649
  }, [
678
650
  o.circle ? void 0 : {
679
651
  name: "default",
680
- fn: f(() => [
681
- F(' {{ t("action.setting") }} '),
682
- z(
683
- " " + T(_(i)("设置")),
652
+ fn: m(() => [
653
+ j(' {{ t("action.setting") }} '),
654
+ $(
655
+ " " + N(w(d)("设置")),
684
656
  1
685
657
  /* TEXT */
686
658
  )
@@ -688,57 +660,57 @@ const Y = (o, b) => {
688
660
  key: "0"
689
661
  }
690
662
  ]), 1040, ["circle", "type", "style"])), [
691
- [p, u.$props.role]
692
- ]) : F("v-if", !0),
693
- o.btnType === "icon" ? J((c(), N(
694
- _(_e),
695
- K({
663
+ [v, i.$props.role]
664
+ ]) : j("v-if", !0),
665
+ o.btnType === "icon" ? K((r(), D(
666
+ w(we),
667
+ P({
696
668
  key: 1,
697
669
  name: "iksvg_shezhi-daohang",
698
670
  "show-bg": "",
699
671
  size: "default"
700
- }, u.$attrs, { onClick: q }),
672
+ }, i.$attrs, { onClick: R }),
701
673
  null,
702
674
  16
703
675
  /* FULL_PROPS */
704
676
  )), [
705
- [p, u.$props.role]
706
- ]) : F("v-if", !0),
707
- x(h, {
708
- modelValue: j.value,
709
- "onUpdate:modelValue": l[3] || (l[3] = (g) => j.value = g),
677
+ [v, i.$props.role]
678
+ ]) : j("v-if", !0),
679
+ C(y, {
680
+ modelValue: E.value,
681
+ "onUpdate:modelValue": l[3] || (l[3] = (g) => E.value = g),
710
682
  draggable: "",
711
- width: o.inline ? _(k).l : _(k).sl,
683
+ width: o.inline ? w(h).l : w(h).sl,
712
684
  "close-on-click-modal": !1,
713
685
  "close-on-press-escape": !1,
714
686
  title: "显示字段",
715
687
  "append-to-body": "",
716
688
  onOpen: W
717
689
  }, {
718
- footer: f(() => [
719
- C("div", xe, [
720
- x(r, {
721
- onClick: l[2] || (l[2] = (g) => j.value = !1)
690
+ footer: m(() => [
691
+ x("div", $e, [
692
+ C(u, {
693
+ onClick: l[2] || (l[2] = (g) => E.value = !1)
722
694
  }, {
723
- default: f(() => [
724
- z(
725
- T(_(i)("关闭")) + " ",
695
+ default: m(() => [
696
+ $(
697
+ N(w(d)("关闭")) + " ",
726
698
  1
727
699
  /* TEXT */
728
700
  ),
729
- F(' {{ t("action.close") }} ')
701
+ j(' {{ t("action.close") }} ')
730
702
  ]),
731
703
  _: 1
732
704
  /* STABLE */
733
705
  }),
734
- x(r, {
706
+ C(u, {
735
707
  type: "primary",
736
708
  disabled: a.value.length < 2,
737
709
  onClick: ae
738
710
  }, {
739
- default: f(() => [
740
- z(
741
- T(a.value.length < 2 ? "至少选择一个字段" : _(i)("确定")),
711
+ default: m(() => [
712
+ $(
713
+ N(a.value.length < 2 ? "至少选择一个字段" : w(d)("确定")),
742
714
  1
743
715
  /* TEXT */
744
716
  )
@@ -748,49 +720,49 @@ const Y = (o, b) => {
748
720
  }, 8, ["disabled"])
749
721
  ])
750
722
  ]),
751
- default: f(() => [
752
- C(
723
+ default: m(() => [
724
+ x(
753
725
  "div",
754
726
  {
755
- class: S(["view-fields", [o.inline ? null : "un-inline"]])
727
+ class: B(["view-fields", [o.inline ? null : "un-inline"]])
756
728
  },
757
729
  [
758
- C(
730
+ x(
759
731
  "div",
760
732
  {
761
- style: $({ flex: o.inline ? 2 : 1 })
733
+ style: X({ flex: o.inline ? 2 : 1 })
762
734
  },
763
735
  [
764
- x(n, {
765
- modelValue: E.value,
766
- "onUpdate:modelValue": l[0] || (l[0] = (g) => E.value = g),
736
+ C(n, {
737
+ modelValue: O.value,
738
+ "onUpdate:modelValue": l[0] || (l[0] = (g) => O.value = g),
767
739
  class: "single-line",
768
740
  indeterminate: ee.value,
769
741
  onChange: te
770
742
  }, {
771
- default: f(() => l[5] || (l[5] = [
772
- z(" 全选 ")
743
+ default: m(() => l[5] || (l[5] = [
744
+ $(" 全选 ")
773
745
  ])),
774
746
  _: 1
775
747
  /* STABLE */
776
748
  }, 8, ["modelValue", "indeterminate"]),
777
- x(w, {
749
+ C(_, {
778
750
  modelValue: t.value,
779
751
  "onUpdate:modelValue": l[1] || (l[1] = (g) => t.value = g),
780
752
  onChange: U
781
753
  }, {
782
- default: f(() => [
783
- (c(!0), m(
784
- P,
754
+ default: m(() => [
755
+ (r(!0), f(
756
+ F,
785
757
  null,
786
- re(y.value, (g) => (c(), N(n, {
758
+ re(k.value, (g) => (r(), D(n, {
787
759
  key: g.key,
788
760
  disabled: !g.key,
789
761
  label: g.key
790
762
  }, {
791
- default: f(() => [
792
- z(
793
- T(g.label),
763
+ default: m(() => [
764
+ $(
765
+ N(g.label),
794
766
  1
795
767
  /* TEXT */
796
768
  )
@@ -809,8 +781,8 @@ const Y = (o, b) => {
809
781
  4
810
782
  /* STYLE */
811
783
  ),
812
- C("div", $e, [
813
- x(_(Ie), {
784
+ x("div", Ie, [
785
+ C(w(Be), {
814
786
  list: a.value,
815
787
  "item-style": { bottom: 4 },
816
788
  onChange: le
@@ -830,8 +802,8 @@ const Y = (o, b) => {
830
802
  );
831
803
  };
832
804
  }
833
- }), Ve = /* @__PURE__ */ Y(ze, [["__scopeId", "data-v-b5ed17ed"]]), Te = X(Ve);
805
+ }), ze = /* @__PURE__ */ q(Ve, [["__scopeId", "data-v-b5ed17ed"]]), Me = Y(ze);
834
806
  export {
835
- Te as IkBtnSetting,
836
- Te as default
807
+ Me as IkBtnSetting,
808
+ Me as default
837
809
  };