iking-web-ui-pro 0.2.19 → 0.2.21

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