iking-web-ui-pro 0.2.21 → 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 (60) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +79 -73
  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 +302 -296
  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 +130 -124
  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 +306 -300
  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 +117 -111
  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 +242 -236
  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 +83 -77
  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 +434 -428
  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 +308 -302
  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 +140 -134
  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 +383 -377
  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 +1135 -1129
  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 +588 -582
  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 +2960 -2954
  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 +111 -105
  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 +74 -68
  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 +720 -714
  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 +223 -217
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/index.es.js +5502 -5496
  56. package/dist/index.umd.js +78 -78
  57. package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
  58. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
  59. package/dist/style.css +1 -1
  60. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
- import { defineComponent as z, openBlock as u, createElementBlock as r, createElementVNode as n, inject as S, computed as h, resolveComponent as W, normalizeClass as w, normalizeStyle as b, createCommentVNode as V, createBlock as H, withCtx as g, createTextVNode as J, toDisplayString as U, mergeModels as F, useCssVars as ce, useModel as de, watch as pe, ref as M, Fragment as O, createVNode as v, unref as p, mergeProps as ve, createSlots as _e, renderSlot as he, withDirectives as P, vShow as R, renderList as ge, pushScopeId as fe, popScopeId as me } from "vue";
2
- import { ElUpload as ye, ElIcon as x, ElImage as we, ElImageViewer as ke, ElMessage as G } from "element-plus";
3
- import { ikColor as be, _ as ze, ikFile as $e } from "iking-utils-pro";
4
- const X = (l, c) => {
5
- if (l.install = (e) => {
6
- for (const i of [l, ...Object.values(c ?? {})])
7
- e.component(i.name, i);
1
+ import { defineComponent as x, openBlock as u, createElementBlock as r, createElementVNode as n, inject as M, computed as h, resolveComponent as F, withModifiers as H, normalizeClass as z, normalizeStyle as $, createCommentVNode as U, createBlock as N, withCtx as f, createTextVNode as X, toDisplayString as j, mergeModels as O, useCssVars as de, useModel as pe, watch as ve, ref as V, Fragment as P, createVNode as _, unref as v, mergeProps as _e, createSlots as he, renderSlot as ge, withDirectives as R, vShow as G, renderList as fe, pushScopeId as me, popScopeId as ye } from "vue";
2
+ import { ElUpload as we, ElIcon as B, ElImage as ke, ElImageViewer as be, ElMessage as J } from "element-plus";
3
+ import { ikColor as ze, _ as $e, ikFile as xe } from "iking-utils-pro";
4
+ const Y = (l, c) => {
5
+ if (l.install = (i) => {
6
+ for (const e of [l, ...Object.values(c ?? {})])
7
+ i.component(e.name, e);
8
8
  }, c)
9
- for (const [e, i] of Object.entries(c))
10
- l[e] = i;
9
+ for (const [i, e] of Object.entries(c))
10
+ l[i] = e;
11
11
  return l;
12
12
  };
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var xe = /* @__PURE__ */ z({
14
+ var Ce = /* @__PURE__ */ x({
15
15
  name: "Close",
16
16
  __name: "close",
17
17
  setup(l) {
18
- return (c, e) => (u(), r("svg", {
18
+ return (c, i) => (u(), r("svg", {
19
19
  xmlns: "http://www.w3.org/2000/svg",
20
20
  viewBox: "0 0 1024 1024"
21
21
  }, [
@@ -25,11 +25,11 @@ var xe = /* @__PURE__ */ z({
25
25
  })
26
26
  ]));
27
27
  }
28
- }), Ce = xe, Be = /* @__PURE__ */ z({
28
+ }), Be = Ce, Ie = /* @__PURE__ */ x({
29
29
  name: "Delete",
30
30
  __name: "delete",
31
31
  setup(l) {
32
- return (c, e) => (u(), r("svg", {
32
+ return (c, i) => (u(), r("svg", {
33
33
  xmlns: "http://www.w3.org/2000/svg",
34
34
  viewBox: "0 0 1024 1024"
35
35
  }, [
@@ -39,11 +39,11 @@ var xe = /* @__PURE__ */ z({
39
39
  })
40
40
  ]));
41
41
  }
42
- }), Ie = Be, Le = /* @__PURE__ */ z({
42
+ }), Le = Ie, Se = /* @__PURE__ */ x({
43
43
  name: "Download",
44
44
  __name: "download",
45
45
  setup(l) {
46
- return (c, e) => (u(), r("svg", {
46
+ return (c, i) => (u(), r("svg", {
47
47
  xmlns: "http://www.w3.org/2000/svg",
48
48
  viewBox: "0 0 1024 1024"
49
49
  }, [
@@ -53,11 +53,11 @@ var xe = /* @__PURE__ */ z({
53
53
  })
54
54
  ]));
55
55
  }
56
- }), Se = Le, Me = /* @__PURE__ */ z({
56
+ }), Me = Se, Ve = /* @__PURE__ */ x({
57
57
  name: "Refresh",
58
58
  __name: "refresh",
59
59
  setup(l) {
60
- return (c, e) => (u(), r("svg", {
60
+ return (c, i) => (u(), r("svg", {
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  viewBox: "0 0 1024 1024"
63
63
  }, [
@@ -67,11 +67,11 @@ var xe = /* @__PURE__ */ z({
67
67
  })
68
68
  ]));
69
69
  }
70
- }), Ve = Me, Ue = /* @__PURE__ */ z({
70
+ }), Ue = Ve, je = /* @__PURE__ */ x({
71
71
  name: "ZoomIn",
72
72
  __name: "zoom-in",
73
73
  setup(l) {
74
- return (c, e) => (u(), r("svg", {
74
+ return (c, i) => (u(), r("svg", {
75
75
  xmlns: "http://www.w3.org/2000/svg",
76
76
  viewBox: "0 0 1024 1024"
77
77
  }, [
@@ -81,13 +81,13 @@ var xe = /* @__PURE__ */ z({
81
81
  })
82
82
  ]));
83
83
  }
84
- }), je = Ue;
85
- const N = (l, c) => {
86
- const e = l.__vccOpts || l;
87
- for (const [i, _] of c)
88
- e[i] = _;
89
- return e;
90
- }, Ee = {}, De = {
84
+ }), Ee = je;
85
+ const T = (l, c) => {
86
+ const i = l.__vccOpts || l;
87
+ for (const [e, d] of c)
88
+ i[e] = d;
89
+ return i;
90
+ }, De = {}, He = {
91
91
  t: "1686214149488",
92
92
  class: "icon",
93
93
  viewBox: "0 0 1024 1024",
@@ -96,7 +96,7 @@ const N = (l, c) => {
96
96
  "p-id": "8490",
97
97
  width: "200",
98
98
  height: "200"
99
- }, He = /* @__PURE__ */ n(
99
+ }, Ne = /* @__PURE__ */ n(
100
100
  "path",
101
101
  {
102
102
  d: "M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z",
@@ -105,7 +105,7 @@ const N = (l, c) => {
105
105
  null,
106
106
  -1
107
107
  /* HOISTED */
108
- ), Ne = /* @__PURE__ */ n(
108
+ ), Te = /* @__PURE__ */ n(
109
109
  "path",
110
110
  {
111
111
  d: "M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z",
@@ -114,7 +114,7 @@ const N = (l, c) => {
114
114
  null,
115
115
  -1
116
116
  /* HOISTED */
117
- ), Te = /* @__PURE__ */ n(
117
+ ), Ae = /* @__PURE__ */ n(
118
118
  "path",
119
119
  {
120
120
  d: "M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z",
@@ -123,7 +123,7 @@ const N = (l, c) => {
123
123
  null,
124
124
  -1
125
125
  /* HOISTED */
126
- ), Ae = /* @__PURE__ */ n(
126
+ ), We = /* @__PURE__ */ n(
127
127
  "path",
128
128
  {
129
129
  d: "M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z",
@@ -132,7 +132,7 @@ const N = (l, c) => {
132
132
  null,
133
133
  -1
134
134
  /* HOISTED */
135
- ), We = /* @__PURE__ */ n(
135
+ ), Fe = /* @__PURE__ */ n(
136
136
  "path",
137
137
  {
138
138
  d: "M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z",
@@ -141,7 +141,7 @@ const N = (l, c) => {
141
141
  null,
142
142
  -1
143
143
  /* HOISTED */
144
- ), Fe = /* @__PURE__ */ n(
144
+ ), Oe = /* @__PURE__ */ n(
145
145
  "path",
146
146
  {
147
147
  d: "M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z",
@@ -150,7 +150,7 @@ const N = (l, c) => {
150
150
  null,
151
151
  -1
152
152
  /* HOISTED */
153
- ), Oe = /* @__PURE__ */ n(
153
+ ), Pe = /* @__PURE__ */ n(
154
154
  "path",
155
155
  {
156
156
  d: "M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z",
@@ -159,7 +159,7 @@ const N = (l, c) => {
159
159
  null,
160
160
  -1
161
161
  /* HOISTED */
162
- ), Pe = /* @__PURE__ */ n(
162
+ ), Re = /* @__PURE__ */ n(
163
163
  "path",
164
164
  {
165
165
  d: "M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z",
@@ -168,40 +168,40 @@ const N = (l, c) => {
168
168
  null,
169
169
  -1
170
170
  /* HOISTED */
171
- ), Re = [
172
- He,
171
+ ), Ge = [
173
172
  Ne,
174
173
  Te,
175
174
  Ae,
176
175
  We,
177
176
  Fe,
178
177
  Oe,
179
- Pe
178
+ Pe,
179
+ Re
180
180
  ];
181
- function Ge(l, c) {
182
- return u(), r("svg", De, Re);
181
+ function Je(l, c) {
182
+ return u(), r("svg", He, Ge);
183
183
  }
184
- const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
185
- const c = S("loadUrl"), e = h(() => l.loadUrl || l.fileUrl || (c == null ? void 0 : c.value)), i = S("uploadUrl"), _ = h(() => l.action || l.uploadUrl || (i == null ? void 0 : i.value)), o = S("token"), m = h(() => l.token || (o == null ? void 0 : o.value)), k = S("onlyofficeConfig"), C = h(() => l.onlyofficeConfig || (k == null ? void 0 : k.value)), B = S("userInfo"), j = h(() => l.userInfo || (B == null ? void 0 : B.value));
184
+ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
185
+ const c = M("loadUrl"), i = h(() => l.loadUrl || l.fileUrl || (c == null ? void 0 : c.value)), e = M("uploadUrl"), d = h(() => l.action || l.uploadUrl || (e == null ? void 0 : e.value)), g = M("token"), C = h(() => l.token || (g == null ? void 0 : g.value)), w = M("onlyofficeConfig"), o = h(() => l.onlyofficeConfig || (w == null ? void 0 : w.value)), m = M("userInfo"), I = h(() => l.userInfo || (m == null ? void 0 : m.value));
186
186
  return {
187
- cLoadUrl: e,
188
- cUploadUrl: _,
189
- cToken: m,
190
- cOnlyofficeConfig: C,
191
- cUserInfo: j
187
+ cLoadUrl: i,
188
+ cUploadUrl: d,
189
+ cToken: C,
190
+ cOnlyofficeConfig: o,
191
+ cUserInfo: I
192
192
  };
193
- }, Ye = Xe, Ze = {
193
+ }, Ze = Ye, qe = {
194
194
  key: 0,
195
195
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
196
- }, qe = {
196
+ }, Ke = {
197
197
  key: 1,
198
198
  class: "h-[1em] w-[1em]",
199
199
  "aria-hidden": "true"
200
- }, Ke = ["xlink:href"], Qe = ["src"], et = {
200
+ }, Qe = ["xlink:href"], et = ["src"], tt = {
201
201
  key: 1,
202
202
  class: "h-[1em] w-[1em]",
203
203
  "aria-hidden": "true"
204
- }, tt = ["xlink:href"], lt = ["src"], at = /* @__PURE__ */ z({
204
+ }, lt = ["xlink:href"], at = ["src"], st = /* @__PURE__ */ x({
205
205
  name: "IkSvgIcon",
206
206
  __name: "index",
207
207
  props: {
@@ -227,11 +227,12 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
227
227
  warning: { type: Boolean },
228
228
  width: {}
229
229
  },
230
- setup(l) {
231
- const c = l, e = h(() => c), i = h(() => {
230
+ emits: ["click"],
231
+ setup(l, { emit: c }) {
232
+ const i = l, e = h(() => i), d = h(() => {
232
233
  const { name: o } = e.value;
233
234
  return /^http?:\/\//.test(o) ? "img" : /i-[^:]+:[^:]+/.test(o) ? "unocss" : o != null && o.startsWith("iksig") ? "iksig" : o != null && o.includes(":") ? "iconify" : o != null && o.startsWith("iksvg") ? "svg" : "i";
234
- }), _ = h(() => {
235
+ }), g = h(() => {
235
236
  const o = [];
236
237
  if (e.value.flip)
237
238
  switch (e.value.flip) {
@@ -251,22 +252,25 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
251
252
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
252
253
  ...o.length && { transform: o.join(" ") },
253
254
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
254
- ...e.value.color && i.value !== "iksig" ? {
255
+ ...e.value.color && d.value !== "iksig" ? {
255
256
  "--ik-color-icon-dark": e.value.color,
256
- "--ik-color-icon-light": e.value.colorLight || be.setOpacity(e.value.color, e.value.opacity)
257
+ "--ik-color-icon-light": e.value.colorLight || ze.setOpacity(e.value.color, e.value.opacity)
257
258
  } : {}
258
259
  };
259
260
  return e.value.width && (m.width = m.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), m;
260
- });
261
+ }), C = c, w = (o) => {
262
+ e.value.disabled || C("click", o);
263
+ };
261
264
  return (o, m) => {
262
- const k = W("el-tooltip"), C = W("el-button");
263
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (u(), r("span", Ze, [
265
+ const I = F("el-tooltip"), b = F("el-button");
266
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (u(), r("span", qe, [
264
267
  e.value.notip || !e.value.title ? (u(), r(
265
268
  "i",
266
269
  {
267
270
  key: 0,
268
- class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
269
- [o.name]: i.value === "unocss",
271
+ onClick: H(w, ["stop"]),
272
+ class: z(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
273
+ [o.name]: d.value === "unocss",
270
274
  "show-bg": e.value.showBg || e.value.bg,
271
275
  default: e.value.size === "default",
272
276
  small: e.value.size === "small",
@@ -278,34 +282,34 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
278
282
  active: e.value.active,
279
283
  disabled: e.value.disabled
280
284
  }]),
281
- style: b(_.value)
285
+ style: $(g.value)
282
286
  },
283
287
  [
284
- V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
285
- i.value === "iksig" ? (u(), r(
288
+ U(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
289
+ d.value === "iksig" ? (u(), r(
286
290
  "i",
287
291
  {
288
292
  key: 0,
289
- class: w(`iksig ${e.value.name}`),
290
- style: b(_.value)
293
+ class: z(`iksig ${e.value.name}`),
294
+ style: $(g.value)
291
295
  },
292
296
  null,
293
297
  6
294
298
  /* CLASS, STYLE */
295
- )) : i.value === "svg" ? (u(), r("svg", qe, [
299
+ )) : d.value === "svg" ? (u(), r("svg", Ke, [
296
300
  n("use", {
297
301
  "xlink:href": `#${e.value.name}`
298
- }, null, 8, Ke)
299
- ])) : i.value === "img" ? (u(), r("img", {
302
+ }, null, 8, Qe)
303
+ ])) : d.value === "img" ? (u(), r("img", {
300
304
  key: 2,
301
305
  src: e.value.name,
302
306
  class: "h-[1em] w-[1em]"
303
- }, null, 8, Qe)) : (u(), r(
307
+ }, null, 8, et)) : (u(), r(
304
308
  "i",
305
309
  {
306
310
  key: 3,
307
- class: w(e.value.name),
308
- style: b(_.value)
311
+ class: z(e.value.name),
312
+ style: $(g.value)
309
313
  },
310
314
  null,
311
315
  6
@@ -314,17 +318,17 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
314
318
  ],
315
319
  6
316
320
  /* CLASS, STYLE */
317
- )) : (u(), H(k, {
321
+ )) : (u(), N(I, {
318
322
  key: 1,
319
323
  content: e.value.title,
320
324
  placement: "top"
321
325
  }, {
322
- default: g(() => [
326
+ default: f(() => [
323
327
  n(
324
328
  "i",
325
329
  {
326
- class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
327
- [o.name]: i.value === "unocss",
330
+ class: z(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
331
+ [o.name]: d.value === "unocss",
328
332
  "show-bg": e.value.showBg || e.value.bg,
329
333
  default: e.value.size === "default",
330
334
  small: e.value.size === "small",
@@ -335,33 +339,34 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
335
339
  error: e.value.error || e.value.type === "error",
336
340
  active: e.value.active
337
341
  }]),
338
- style: b(_.value)
342
+ onClick: H(w, ["stop"]),
343
+ style: $(g.value)
339
344
  },
340
345
  [
341
- i.value === "iksig" ? (u(), r(
346
+ d.value === "iksig" ? (u(), r(
342
347
  "i",
343
348
  {
344
349
  key: 0,
345
- class: w(`iksig ${e.value.name}`),
346
- style: b(_.value)
350
+ class: z(`iksig ${e.value.name}`),
351
+ style: $(g.value)
347
352
  },
348
353
  null,
349
354
  6
350
355
  /* CLASS, STYLE */
351
- )) : i.value === "svg" ? (u(), r("svg", et, [
356
+ )) : d.value === "svg" ? (u(), r("svg", tt, [
352
357
  n("use", {
353
358
  "xlink:href": `#${e.value.name}`
354
- }, null, 8, tt)
355
- ])) : i.value === "img" ? (u(), r("img", {
359
+ }, null, 8, lt)
360
+ ])) : d.value === "img" ? (u(), r("img", {
356
361
  key: 2,
357
362
  src: e.value.name,
358
363
  class: "h-[1em] w-[1em]"
359
- }, null, 8, lt)) : (u(), r(
364
+ }, null, 8, at)) : (u(), r(
360
365
  "i",
361
366
  {
362
367
  key: 3,
363
- class: w(e.value.name),
364
- style: b(_.value)
368
+ class: z(e.value.name),
369
+ style: $(g.value)
365
370
  },
366
371
  null,
367
372
  6
@@ -375,13 +380,14 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
375
380
  _: 1
376
381
  /* STABLE */
377
382
  }, 8, ["content"]))
378
- ])) : (u(), H(C, {
383
+ ])) : (u(), N(b, {
379
384
  key: 1,
380
- type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
385
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
386
+ onClick: H(w, ["stop"])
381
387
  }, {
382
- default: g(() => [
383
- J(
384
- U(e.value.title),
388
+ default: f(() => [
389
+ X(
390
+ j(e.value.title),
385
391
  1
386
392
  /* TEXT */
387
393
  )
@@ -392,27 +398,27 @@ const Je = /* @__PURE__ */ N(Ee, [["render", Ge]]), Xe = (l) => {
392
398
  };
393
399
  }
394
400
  });
395
- const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st), Y = (l) => (fe("data-v-d12a12c0"), l = l(), me(), l), nt = {
401
+ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot), Z = (l) => (me("data-v-d12a12c0"), l = l(), ye(), l), it = {
396
402
  key: 1,
397
403
  class: "upload-btn"
398
- }, it = { class: "tip" }, ut = { class: "loading-statu" }, rt = { class: "operate-btn" }, ct = { key: 0 }, dt = {
404
+ }, ut = { class: "tip" }, rt = { class: "loading-statu" }, ct = { class: "operate-btn" }, dt = { key: 0 }, pt = {
399
405
  class: "el-upload-list el-upload-list--picture-card",
400
406
  style: { float: "left" }
401
- }, pt = ["onClick"], vt = /* @__PURE__ */ Y(() => /* @__PURE__ */ n(
407
+ }, vt = ["onClick"], _t = /* @__PURE__ */ Z(() => /* @__PURE__ */ n(
402
408
  "span",
403
409
  { class: "error" },
404
410
  "上传错误",
405
411
  -1
406
412
  /* HOISTED */
407
- )), _t = /* @__PURE__ */ Y(() => /* @__PURE__ */ n(
413
+ )), ht = /* @__PURE__ */ Z(() => /* @__PURE__ */ n(
408
414
  "p",
409
415
  null,
410
416
  "点击重新上传",
411
417
  -1
412
418
  /* HOISTED */
413
- )), ht = ["src"], gt = { class: "demo-image__preview" }, ft = /* @__PURE__ */ z({
419
+ )), gt = ["src"], ft = { class: "demo-image__preview" }, mt = /* @__PURE__ */ x({
414
420
  __name: "index",
415
- props: /* @__PURE__ */ F({
421
+ props: /* @__PURE__ */ O({
416
422
  // 显示的文字
417
423
  title: {
418
424
  type: String,
@@ -503,115 +509,115 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
503
509
  },
504
510
  modelModifiers: {}
505
511
  }),
506
- emits: /* @__PURE__ */ F(["delete", "success"], ["update:modelValue"]),
512
+ emits: /* @__PURE__ */ O(["delete", "success"], ["update:modelValue"]),
507
513
  setup(l, { emit: c }) {
508
- ce((t) => ({
509
- "48c07ec5": C.value,
510
- "94ff3ff0": B.value
514
+ de((t) => ({
515
+ "48c07ec5": o.value,
516
+ "94ff3ff0": m.value
511
517
  }));
512
- const e = l, i = de(l, "modelValue"), _ = (t) => Array.isArray(t) ? t.map((a) => {
513
- var y, L;
514
- const s = ((y = a.url) == null ? void 0 : y.startsWith("http")) || ((L = a.url) == null ? void 0 : L.startsWith("blob")), d = (a == null ? void 0 : a.url) || a;
518
+ const i = l, e = pe(l, "modelValue"), d = (t) => Array.isArray(t) ? t.map((a) => {
519
+ var k, S;
520
+ const s = ((k = a.url) == null ? void 0 : k.startsWith("http")) || ((S = a.url) == null ? void 0 : S.startsWith("blob")), p = (a == null ? void 0 : a.url) || a;
515
521
  return {
516
- ...a.url ? a : { url: d },
517
- __url: s ? d : `${m.value}${d}`
522
+ ...a.url ? a : { url: p },
523
+ __url: s ? p : `${C.value}${p}`
518
524
  };
519
525
  }) : t ? [
520
526
  {
521
527
  url: t,
522
- __url: t != null && t.startsWith("http") || t != null && t.startsWith("blob") ? t : `${m.value}${t}`
528
+ __url: t != null && t.startsWith("http") || t != null && t.startsWith("blob") ? t : `${C.value}${t}`
523
529
  }
524
530
  ] : [];
525
- pe(
526
- () => i.value,
531
+ ve(
532
+ () => e.value,
527
533
  (t) => {
528
- !t || !t.length ? f.value = [] : f.value = ze.cloneDeep(_(t));
534
+ !t || !t.length ? y.value = [] : y.value = $e.cloneDeep(d(t));
529
535
  },
530
536
  { deep: !0 }
531
537
  );
532
- const o = c, { cLoadUrl: m, cUploadUrl: k } = Ye(e), C = h(() => `${e.width}px`), B = h(() => `${e.height}px`), j = h(() => e.size), $ = M(null), f = M(_(i.value)), I = M([]), E = M(!1), T = M(0), Z = h(
533
- () => e.tipText || `最多可上传${e.limit}张图片, 每张图片不能超过${e.size}MB`
534
- ), q = (t, a) => {
535
- }, K = (t) => {
538
+ const g = c, { cLoadUrl: C, cUploadUrl: w } = Ze(i), o = h(() => `${i.width}px`), m = h(() => `${i.height}px`), I = h(() => i.size), b = V(null), y = V(d(e.value)), L = V([]), E = V(!1), A = V(0), q = h(
539
+ () => i.tipText || `最多可上传${i.limit}张图片, 每张图片不能超过${i.size}MB`
540
+ ), K = (t, a) => {
541
+ }, Q = (t) => {
536
542
  if (!t.type.includes("image")) {
537
- G.warning("只允许上传图片!");
543
+ J.warning("只允许上传图片!");
538
544
  try {
539
- f.value.pop();
545
+ y.value.pop();
540
546
  } catch {
541
547
  }
542
548
  return !1;
543
549
  }
544
- if (!(t.size / 1024 / 1024 < j.value)) {
545
- G.warning("图片大小超出限制!");
550
+ if (!(t.size / 1024 / 1024 < I.value)) {
551
+ J.warning("图片大小超出限制!");
546
552
  try {
547
- f.value.pop();
553
+ y.value.pop();
548
554
  } catch {
549
555
  }
550
556
  return !1;
551
557
  }
552
558
  return !0;
553
- }, Q = () => !1, ee = (t, a) => {
554
- var s, d;
555
- t.status = "ready", a !== void 0 && I.value.splice(a, 1), (s = $.value) == null || s.handleStart(t.raw), (d = $.value) == null || d.submit();
556
- }, te = (t, a) => {
557
- var L, A;
558
- const s = i.value.length, d = e.limit - s;
559
- let y = 0;
560
- for (; y < d && y < (t == null ? void 0 : t.length); )
561
- (L = $.value) == null || L.handleStart(t == null ? void 0 : t[y]), (A = $.value) == null || A.submit(), y++;
562
- }, le = (t, a, s) => {
563
- o("success", t, a, s), i.value = f.value;
559
+ }, ee = () => !1, te = (t, a) => {
560
+ var s, p;
561
+ t.status = "ready", a !== void 0 && L.value.splice(a, 1), (s = b.value) == null || s.handleStart(t.raw), (p = b.value) == null || p.submit();
562
+ }, le = (t, a) => {
563
+ var S, W;
564
+ const s = e.value.length, p = i.limit - s;
565
+ let k = 0;
566
+ for (; k < p && k < (t == null ? void 0 : t.length); )
567
+ (S = b.value) == null || S.handleStart(t == null ? void 0 : t[k]), (W = b.value) == null || W.submit(), k++;
564
568
  }, ae = (t, a, s) => {
565
- I.value.push({
569
+ g("success", t, a, s), e.value = y.value;
570
+ }, se = (t, a, s) => {
571
+ L.value.push({
566
572
  ...a,
567
573
  __url: a.url
568
574
  });
569
- }, se = (t) => {
570
- var a;
571
- E.value = !0, T.value = (a = i.value) == null ? void 0 : a.findIndex((s) => s.url === t.url);
572
575
  }, oe = (t) => {
573
- $e.downloadFile(t.__url || t.url, t.name || t.url);
574
- }, ne = (t) => {
575
576
  var a;
576
- (a = $.value) == null || a.abort(t);
577
+ E.value = !0, A.value = (a = e.value) == null ? void 0 : a.findIndex((s) => s.url === t.url);
578
+ }, ne = (t) => {
579
+ xe.downloadFile(t.__url || t.url, t.name || t.url);
577
580
  }, ie = (t) => {
578
581
  var a;
579
- t.status !== "success" && ne(t), i.value = (a = f.value) == null ? void 0 : a.filter((s) => s.uid !== t.uid), o("delete", t);
580
- }, ue = (t, a) => {
581
- I.value.splice(a, 1);
582
- }, re = h(() => f.value.length + I.value.length < e.limit), D = h(
583
- () => i.value.length >= e.limit || e.disabled
582
+ (a = b.value) == null || a.abort(t);
583
+ }, ue = (t) => {
584
+ var a;
585
+ t.status !== "success" && ie(t), e.value = (a = y.value) == null ? void 0 : a.filter((s) => s.uid !== t.uid), g("delete", t);
586
+ }, re = (t, a) => {
587
+ L.value.splice(a, 1);
588
+ }, ce = h(() => y.value.length + L.value.length < i.limit), D = h(
589
+ () => e.value.length >= i.limit || i.disabled
584
590
  );
585
591
  return (t, a) => (u(), r(
586
- O,
592
+ P,
587
593
  null,
588
594
  [
589
- v(p(ye), ve({
590
- class: ["ik-image-upload", { preview: l.preview, "hide-upload": !re.value, disabled: D.value }],
595
+ _(v(we), _e({
596
+ class: ["ik-image-upload", { preview: l.preview, "hide-upload": !ce.value, disabled: D.value }],
591
597
  ref_key: "refUpload",
592
- ref: $,
598
+ ref: b,
593
599
  "list-type": "picture-card",
594
600
  accept: l.accept,
595
- action: p(k),
601
+ action: v(w),
596
602
  headers: l.headers,
597
603
  data: l.data,
598
- "file-list": f.value,
599
- "onUpdate:fileList": a[0] || (a[0] = (s) => f.value = s),
604
+ "file-list": y.value,
605
+ "onUpdate:fileList": a[0] || (a[0] = (s) => y.value = s),
600
606
  multiple: l.multiple,
601
607
  limit: l.limit,
602
- "on-change": q,
603
- "before-upload": K,
604
- "before-remove": Q,
605
- "on-exceed": te,
606
- "on-success": le,
607
- "on-error": ae,
608
+ "on-change": K,
609
+ "before-upload": Q,
610
+ "before-remove": ee,
611
+ "on-exceed": le,
612
+ "on-success": ae,
613
+ "on-error": se,
608
614
  drag: ""
609
- }, t.$attrs, { disabled: D.value }), _e({
610
- trigger: g(() => [
611
- t.$slots.trigger ? he(t.$slots, "trigger", { key: 0 }, void 0, !0) : (u(), r("div", nt, [
612
- v(p(x), { size: 20 }, {
613
- default: g(() => [
614
- v(p(ot), {
615
+ }, t.$attrs, { disabled: D.value }), he({
616
+ trigger: f(() => [
617
+ t.$slots.trigger ? ge(t.$slots, "trigger", { key: 0 }, void 0, !0) : (u(), r("div", it, [
618
+ _(v(B), { size: 20 }, {
619
+ default: f(() => [
620
+ _(v(nt), {
615
621
  name: "iksvg_guanbibeifen",
616
622
  disabled: D.value
617
623
  }, null, 8, ["disabled"])
@@ -622,27 +628,27 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
622
628
  n(
623
629
  "span",
624
630
  null,
625
- U(l.title),
631
+ j(l.title),
626
632
  1
627
633
  /* TEXT */
628
634
  )
629
635
  ]))
630
636
  ]),
631
- file: g(({ file: s }) => [
637
+ file: f(({ file: s }) => [
632
638
  n(
633
639
  "div",
634
640
  {
635
- class: w(["load-list", { loading: s.status === "uploading" }]),
641
+ class: z(["load-list", { loading: s.status === "uploading" }]),
636
642
  "element-loading-background": "var(--ik-upload-bg)"
637
643
  },
638
644
  [
639
- P(n(
645
+ R(n(
640
646
  "div",
641
- ut,
647
+ rt,
642
648
  [
643
- v(Je),
644
- J(
645
- " 上传" + U(s.percentage) + "% ",
649
+ _(Xe),
650
+ X(
651
+ " 上传" + j(s.percentage) + "% ",
646
652
  1
647
653
  /* TEXT */
648
654
  )
@@ -650,46 +656,46 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
650
656
  512
651
657
  /* NEED_PATCH */
652
658
  ), [
653
- [R, s.status === "uploading"]
659
+ [G, s.status === "uploading"]
654
660
  ]),
655
- V(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
656
- v(p(we), {
661
+ U(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
662
+ _(v(ke), {
657
663
  style: { width: "100%", height: "100%" },
658
664
  src: s.__url || s.url,
659
665
  "zoom-rate": 1.2,
660
666
  "initial-index": 0,
661
667
  fit: "contain"
662
668
  }, null, 8, ["src"]),
663
- n("span", rt, [
669
+ n("span", ct, [
664
670
  n("span", null, [
665
- v(p(x), {
666
- onClick: (d) => se(s)
671
+ _(v(B), {
672
+ onClick: (p) => oe(s)
667
673
  }, {
668
- default: g(() => [
669
- v(p(je))
674
+ default: f(() => [
675
+ _(v(Ee))
670
676
  ]),
671
677
  _: 2
672
678
  /* DYNAMIC */
673
679
  }, 1032, ["onClick"])
674
680
  ]),
675
681
  n("span", null, [
676
- v(p(x), {
677
- onClick: (d) => oe(s)
682
+ _(v(B), {
683
+ onClick: (p) => ne(s)
678
684
  }, {
679
- default: g(() => [
680
- v(p(Se))
685
+ default: f(() => [
686
+ _(v(Me))
681
687
  ]),
682
688
  _: 2
683
689
  /* DYNAMIC */
684
690
  }, 1032, ["onClick"])
685
691
  ]),
686
- l.preview ? V("v-if", !0) : (u(), r("span", ct, [
687
- v(p(x), {
692
+ l.preview ? U("v-if", !0) : (u(), r("span", dt, [
693
+ _(v(B), {
688
694
  type: "warning",
689
- onClick: (d) => ie(s)
695
+ onClick: (p) => ue(s)
690
696
  }, {
691
- default: g(() => [
692
- v(p(Ie))
697
+ default: f(() => [
698
+ _(v(Le))
693
699
  ]),
694
700
  _: 2
695
701
  /* DYNAMIC */
@@ -701,21 +707,21 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
701
707
  /* CLASS */
702
708
  )
703
709
  ]),
704
- default: g(() => [
705
- n("ul", dt, [
710
+ default: f(() => [
711
+ n("ul", pt, [
706
712
  (u(!0), r(
707
- O,
713
+ P,
708
714
  null,
709
- ge(I.value, (s, d) => (u(), r("li", {
715
+ fe(L.value, (s, p) => (u(), r("li", {
710
716
  class: "el-upload-list__item",
711
717
  key: s.uid
712
718
  }, [
713
719
  n("span", null, [
714
- v(p(x), {
715
- onClick: (y) => ue(s, d)
720
+ _(v(B), {
721
+ onClick: (k) => re(s, p)
716
722
  }, {
717
- default: g(() => [
718
- v(p(Ce))
723
+ default: f(() => [
724
+ _(v(Be))
719
725
  ]),
720
726
  _: 2
721
727
  /* DYNAMIC */
@@ -724,34 +730,34 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
724
730
  n(
725
731
  "div",
726
732
  {
727
- class: w(["load-list", {
733
+ class: z(["load-list", {
728
734
  loading: s.status === "uploading",
729
735
  fail: s.status === "fail"
730
736
  }]),
731
737
  "element-loading-background": "var(--ik-upload-bg)"
732
738
  },
733
739
  [
734
- P(n("div", {
740
+ R(n("div", {
735
741
  class: "loading-statu",
736
- onClick: (y) => ee(s, d)
742
+ onClick: (k) => te(s, p)
737
743
  }, [
738
- v(p(x), { size: 24 }, {
739
- default: g(() => [
740
- v(p(Ve))
744
+ _(v(B), { size: 24 }, {
745
+ default: f(() => [
746
+ _(v(Ue))
741
747
  ]),
742
748
  _: 1
743
749
  /* STABLE */
744
750
  }),
745
- vt,
746
- _t
747
- ], 8, pt), [
748
- [R, s.status === "fail"]
751
+ _t,
752
+ ht
753
+ ], 8, vt), [
754
+ [G, s.status === "fail"]
749
755
  ]),
750
756
  n("img", {
751
757
  src: s.__url,
752
758
  alt: "",
753
- style: b({ "object-fit": l.fit })
754
- }, null, 12, ht)
759
+ style: $({ "object-fit": l.fit })
760
+ }, null, 12, gt)
755
761
  ],
756
762
  2
757
763
  /* CLASS */
@@ -767,11 +773,11 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
767
773
  }, [
768
774
  l.tip ? {
769
775
  name: "tip",
770
- fn: g(() => [
776
+ fn: f(() => [
771
777
  n(
772
778
  "span",
773
- it,
774
- U(Z.value),
779
+ ut,
780
+ j(q.value),
775
781
  1
776
782
  /* TEXT */
777
783
  )
@@ -779,18 +785,18 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
779
785
  key: "0"
780
786
  } : void 0
781
787
  ]), 1040, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit", "disabled"]),
782
- V(" 文件预览 "),
783
- n("div", gt, [
784
- E.value ? (u(), H(p(ke), {
788
+ U(" 文件预览 "),
789
+ n("div", ft, [
790
+ E.value ? (u(), N(v(be), {
785
791
  key: 0,
786
792
  "lock-scroll": "",
787
793
  "hide-on-click-modal": "",
788
794
  onClose: a[1] || (a[1] = () => {
789
795
  E.value = !1;
790
796
  }),
791
- "url-list": _(f.value).map((s) => s.__url),
792
- "initial-index": T.value
793
- }, null, 8, ["url-list", "initial-index"])) : V("v-if", !0)
797
+ "url-list": d(y.value).map((s) => s.__url),
798
+ "initial-index": A.value
799
+ }, null, 8, ["url-list", "initial-index"])) : U("v-if", !0)
794
800
  ])
795
801
  ],
796
802
  64
@@ -798,8 +804,8 @@ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-a7ec508a"]]), ot = X(st)
798
804
  ));
799
805
  }
800
806
  });
801
- const mt = /* @__PURE__ */ N(ft, [["__scopeId", "data-v-d12a12c0"]]), bt = X(mt);
807
+ const yt = /* @__PURE__ */ T(mt, [["__scopeId", "data-v-d12a12c0"]]), zt = Y(yt);
802
808
  export {
803
- bt as IkUploadImage,
804
- bt as default
809
+ zt as IkUploadImage,
810
+ zt as default
805
811
  };