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