iking-web-ui-pro 0.2.4 → 0.2.6

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