iking-web-ui-pro 0.2.22 → 0.2.25

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 (72) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +77 -82
  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 +727 -745
  5. package/dist/IKPreviewFile/ik.index.umd.js +46 -46
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKSearch/ik.index.es.js +41 -33
  8. package/dist/IKSearch/ik.index.umd.js +1 -1
  9. package/dist/IKSearch/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcess/ik.index.es.js +167 -159
  14. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcess/style.css +1 -1
  16. package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
  17. package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
  18. package/dist/IkApprovalProcessDetail/style.css +1 -1
  19. package/dist/IkBaseDialog/ik.index.es.js +112 -130
  20. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  21. package/dist/IkBaseDialog/style.css +1 -1
  22. package/dist/IkBtnSetting/ik.index.es.js +237 -242
  23. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  24. package/dist/IkBtnSetting/style.css +1 -1
  25. package/dist/IkCalendar/ik.index.es.js +73 -65
  26. package/dist/IkCalendar/ik.index.umd.js +1 -1
  27. package/dist/IkCalendar/style.css +1 -1
  28. package/dist/IkCollapseCard/ik.index.es.js +78 -83
  29. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  30. package/dist/IkCollapseCard/style.css +1 -1
  31. package/dist/IkDescription/ik.index.es.js +902 -920
  32. package/dist/IkDescription/ik.index.umd.js +45 -45
  33. package/dist/IkDescription/style.css +1 -1
  34. package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
  35. package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
  36. package/dist/IkDetailPreviewFiles/style.css +1 -1
  37. package/dist/IkIconPicker/ik.index.es.js +135 -140
  38. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  39. package/dist/IkIconPicker/style.css +1 -1
  40. package/dist/IkMonacoEditor/ik.index.es.js +378 -383
  41. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  42. package/dist/IkMonacoEditor/style.css +1 -1
  43. package/dist/IkPageFull/ik.index.es.js +1305 -1302
  44. package/dist/IkPageFull/ik.index.umd.js +2 -2
  45. package/dist/IkPageFull/style.css +1 -1
  46. package/dist/IkPickerUser/ik.index.es.js +41 -33
  47. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  48. package/dist/IkPickerUser/style.css +1 -1
  49. package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
  50. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  51. package/dist/IkPreviewFileDialog/style.css +1 -1
  52. package/dist/IkSchedule/ik.index.es.js +2955 -2960
  53. package/dist/IkSchedule/ik.index.umd.js +1 -1
  54. package/dist/IkSchedule/style.css +1 -1
  55. package/dist/IkSideText/ik.index.es.js +106 -111
  56. package/dist/IkSideText/ik.index.umd.js +1 -1
  57. package/dist/IkSideText/style.css +1 -1
  58. package/dist/IkSvgIcon/ik.index.es.js +69 -74
  59. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  60. package/dist/IkSvgIcon/style.css +1 -1
  61. package/dist/IkUploadFile/ik.index.es.js +761 -779
  62. package/dist/IkUploadFile/ik.index.umd.js +45 -45
  63. package/dist/IkUploadFile/style.css +1 -1
  64. package/dist/IkUploadImage/ik.index.es.js +218 -223
  65. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  66. package/dist/IkUploadImage/style.css +1 -1
  67. package/dist/index.es.js +7089 -7099
  68. package/dist/index.umd.js +89 -89
  69. package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
  70. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
  71. package/dist/style.css +1 -1
  72. package/package.json +1 -1
@@ -1,21 +1,21 @@
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);
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);
8
8
  }, c)
9
- for (const [i, e] of Object.entries(c))
10
- l[i] = e;
9
+ for (const [e, i] of Object.entries(c))
10
+ l[e] = i;
11
11
  return l;
12
12
  };
13
13
  /*! Element Plus Icons Vue v2.3.1 */
14
- var Ce = /* @__PURE__ */ x({
14
+ var xe = /* @__PURE__ */ z({
15
15
  name: "Close",
16
16
  __name: "close",
17
17
  setup(l) {
18
- return (c, i) => (u(), r("svg", {
18
+ return (c, e) => (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 Ce = /* @__PURE__ */ x({
25
25
  })
26
26
  ]));
27
27
  }
28
- }), Be = Ce, Ie = /* @__PURE__ */ x({
28
+ }), Ce = xe, Be = /* @__PURE__ */ z({
29
29
  name: "Delete",
30
30
  __name: "delete",
31
31
  setup(l) {
32
- return (c, i) => (u(), r("svg", {
32
+ return (c, e) => (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 Ce = /* @__PURE__ */ x({
39
39
  })
40
40
  ]));
41
41
  }
42
- }), Le = Ie, Se = /* @__PURE__ */ x({
42
+ }), Ie = Be, Le = /* @__PURE__ */ z({
43
43
  name: "Download",
44
44
  __name: "download",
45
45
  setup(l) {
46
- return (c, i) => (u(), r("svg", {
46
+ return (c, e) => (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 Ce = /* @__PURE__ */ x({
53
53
  })
54
54
  ]));
55
55
  }
56
- }), Me = Se, Ve = /* @__PURE__ */ x({
56
+ }), Se = Le, Me = /* @__PURE__ */ z({
57
57
  name: "Refresh",
58
58
  __name: "refresh",
59
59
  setup(l) {
60
- return (c, i) => (u(), r("svg", {
60
+ return (c, e) => (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 Ce = /* @__PURE__ */ x({
67
67
  })
68
68
  ]));
69
69
  }
70
- }), Ue = Ve, je = /* @__PURE__ */ x({
70
+ }), Ve = Me, Ue = /* @__PURE__ */ z({
71
71
  name: "ZoomIn",
72
72
  __name: "zoom-in",
73
73
  setup(l) {
74
- return (c, i) => (u(), r("svg", {
74
+ return (c, e) => (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 Ce = /* @__PURE__ */ x({
81
81
  })
82
82
  ]));
83
83
  }
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 = {
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 = {
91
91
  t: "1686214149488",
92
92
  class: "icon",
93
93
  viewBox: "0 0 1024 1024",
@@ -96,7 +96,7 @@ const T = (l, c) => {
96
96
  "p-id": "8490",
97
97
  width: "200",
98
98
  height: "200"
99
- }, Ne = /* @__PURE__ */ n(
99
+ }, He = /* @__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 T = (l, c) => {
105
105
  null,
106
106
  -1
107
107
  /* HOISTED */
108
- ), Te = /* @__PURE__ */ n(
108
+ ), Ne = /* @__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 T = (l, c) => {
114
114
  null,
115
115
  -1
116
116
  /* HOISTED */
117
- ), Ae = /* @__PURE__ */ n(
117
+ ), Te = /* @__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 T = (l, c) => {
123
123
  null,
124
124
  -1
125
125
  /* HOISTED */
126
- ), We = /* @__PURE__ */ n(
126
+ ), Ae = /* @__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 T = (l, c) => {
132
132
  null,
133
133
  -1
134
134
  /* HOISTED */
135
- ), Fe = /* @__PURE__ */ n(
135
+ ), We = /* @__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 T = (l, c) => {
141
141
  null,
142
142
  -1
143
143
  /* HOISTED */
144
- ), Oe = /* @__PURE__ */ n(
144
+ ), Fe = /* @__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 T = (l, c) => {
150
150
  null,
151
151
  -1
152
152
  /* HOISTED */
153
- ), Pe = /* @__PURE__ */ n(
153
+ ), Oe = /* @__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 T = (l, c) => {
159
159
  null,
160
160
  -1
161
161
  /* HOISTED */
162
- ), Re = /* @__PURE__ */ n(
162
+ ), Pe = /* @__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 T = (l, c) => {
168
168
  null,
169
169
  -1
170
170
  /* HOISTED */
171
- ), Ge = [
171
+ ), Re = [
172
+ He,
172
173
  Ne,
173
174
  Te,
174
175
  Ae,
175
176
  We,
176
177
  Fe,
177
178
  Oe,
178
- Pe,
179
- Re
179
+ Pe
180
180
  ];
181
- function Je(l, c) {
182
- return u(), r("svg", He, Ge);
181
+ function Ge(l, c) {
182
+ return u(), r("svg", De, Re);
183
183
  }
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));
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));
186
186
  return {
187
- cLoadUrl: i,
188
- cUploadUrl: d,
189
- cToken: C,
190
- cOnlyofficeConfig: o,
191
- cUserInfo: I
187
+ cLoadUrl: e,
188
+ cUploadUrl: _,
189
+ cToken: m,
190
+ cOnlyofficeConfig: C,
191
+ cUserInfo: j
192
192
  };
193
- }, Ze = Ye, qe = {
193
+ }, Ye = Xe, Ze = {
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
- }, Ke = {
196
+ }, qe = {
197
197
  key: 1,
198
198
  class: "h-[1em] w-[1em]",
199
199
  "aria-hidden": "true"
200
- }, Qe = ["xlink:href"], et = ["src"], tt = {
200
+ }, Ke = ["xlink:href"], Qe = ["src"], et = {
201
201
  key: 1,
202
202
  class: "h-[1em] w-[1em]",
203
203
  "aria-hidden": "true"
204
- }, lt = ["xlink:href"], at = ["src"], st = /* @__PURE__ */ x({
204
+ }, tt = ["xlink:href"], lt = ["src"], at = /* @__PURE__ */ z({
205
205
  name: "IkSvgIcon",
206
206
  __name: "index",
207
207
  props: {
@@ -227,12 +227,11 @@ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
227
227
  warning: { type: Boolean },
228
228
  width: {}
229
229
  },
230
- emits: ["click"],
231
- setup(l, { emit: c }) {
232
- const i = l, e = h(() => i), d = h(() => {
230
+ setup(l) {
231
+ const c = l, e = h(() => c), i = h(() => {
233
232
  const { name: o } = e.value;
234
233
  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";
235
- }), g = h(() => {
234
+ }), _ = h(() => {
236
235
  const o = [];
237
236
  if (e.value.flip)
238
237
  switch (e.value.flip) {
@@ -248,29 +247,27 @@ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
248
247
  }
249
248
  e.value.rotate && o.push(`rotate(${e.value.rotate % 360}deg)`);
250
249
  const m = {
250
+ pointerEvents: e.value.disabled ? "none" : "auto",
251
251
  ...e.value.color && { color: e.value.color },
252
252
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
253
253
  ...o.length && { transform: o.join(" ") },
254
254
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
255
- ...e.value.color && d.value !== "iksig" ? {
255
+ ...e.value.color && i.value !== "iksig" ? {
256
256
  "--ik-color-icon-dark": e.value.color,
257
- "--ik-color-icon-light": e.value.colorLight || ze.setOpacity(e.value.color, e.value.opacity)
257
+ "--ik-color-icon-light": e.value.colorLight || be.setOpacity(e.value.color, e.value.opacity)
258
258
  } : {}
259
259
  };
260
260
  return e.value.width && (m.width = m.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), m;
261
- }), C = c, w = (o) => {
262
- e.value.disabled || C("click", o);
263
- };
261
+ });
264
262
  return (o, m) => {
265
- const I = F("el-tooltip"), b = F("el-button");
266
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (u(), r("span", qe, [
263
+ const k = W("el-tooltip"), C = W("el-button");
264
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (u(), r("span", Ze, [
267
265
  e.value.notip || !e.value.title ? (u(), r(
268
266
  "i",
269
267
  {
270
268
  key: 0,
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",
269
+ class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
270
+ [o.name]: i.value === "unocss",
274
271
  "show-bg": e.value.showBg || e.value.bg,
275
272
  default: e.value.size === "default",
276
273
  small: e.value.size === "small",
@@ -282,34 +279,34 @@ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
282
279
  active: e.value.active,
283
280
  disabled: e.value.disabled
284
281
  }]),
285
- style: $(g.value)
282
+ style: b(_.value)
286
283
  },
287
284
  [
288
- U(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
289
- d.value === "iksig" ? (u(), r(
285
+ V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
286
+ i.value === "iksig" ? (u(), r(
290
287
  "i",
291
288
  {
292
289
  key: 0,
293
- class: z(`iksig ${e.value.name}`),
294
- style: $(g.value)
290
+ class: w(`iksig ${e.value.name}`),
291
+ style: b(_.value)
295
292
  },
296
293
  null,
297
294
  6
298
295
  /* CLASS, STYLE */
299
- )) : d.value === "svg" ? (u(), r("svg", Ke, [
296
+ )) : i.value === "svg" ? (u(), r("svg", qe, [
300
297
  n("use", {
301
298
  "xlink:href": `#${e.value.name}`
302
- }, null, 8, Qe)
303
- ])) : d.value === "img" ? (u(), r("img", {
299
+ }, null, 8, Ke)
300
+ ])) : i.value === "img" ? (u(), r("img", {
304
301
  key: 2,
305
302
  src: e.value.name,
306
303
  class: "h-[1em] w-[1em]"
307
- }, null, 8, et)) : (u(), r(
304
+ }, null, 8, Qe)) : (u(), r(
308
305
  "i",
309
306
  {
310
307
  key: 3,
311
- class: z(e.value.name),
312
- style: $(g.value)
308
+ class: w(e.value.name),
309
+ style: b(_.value)
313
310
  },
314
311
  null,
315
312
  6
@@ -318,17 +315,17 @@ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
318
315
  ],
319
316
  6
320
317
  /* CLASS, STYLE */
321
- )) : (u(), N(I, {
318
+ )) : (u(), H(k, {
322
319
  key: 1,
323
320
  content: e.value.title,
324
321
  placement: "top"
325
322
  }, {
326
- default: f(() => [
323
+ default: g(() => [
327
324
  n(
328
325
  "i",
329
326
  {
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",
327
+ class: w(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
328
+ [o.name]: i.value === "unocss",
332
329
  "show-bg": e.value.showBg || e.value.bg,
333
330
  default: e.value.size === "default",
334
331
  small: e.value.size === "small",
@@ -339,34 +336,33 @@ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
339
336
  error: e.value.error || e.value.type === "error",
340
337
  active: e.value.active
341
338
  }]),
342
- onClick: H(w, ["stop"]),
343
- style: $(g.value)
339
+ style: b(_.value)
344
340
  },
345
341
  [
346
- d.value === "iksig" ? (u(), r(
342
+ i.value === "iksig" ? (u(), r(
347
343
  "i",
348
344
  {
349
345
  key: 0,
350
- class: z(`iksig ${e.value.name}`),
351
- style: $(g.value)
346
+ class: w(`iksig ${e.value.name}`),
347
+ style: b(_.value)
352
348
  },
353
349
  null,
354
350
  6
355
351
  /* CLASS, STYLE */
356
- )) : d.value === "svg" ? (u(), r("svg", tt, [
352
+ )) : i.value === "svg" ? (u(), r("svg", et, [
357
353
  n("use", {
358
354
  "xlink:href": `#${e.value.name}`
359
- }, null, 8, lt)
360
- ])) : d.value === "img" ? (u(), r("img", {
355
+ }, null, 8, tt)
356
+ ])) : i.value === "img" ? (u(), r("img", {
361
357
  key: 2,
362
358
  src: e.value.name,
363
359
  class: "h-[1em] w-[1em]"
364
- }, null, 8, at)) : (u(), r(
360
+ }, null, 8, lt)) : (u(), r(
365
361
  "i",
366
362
  {
367
363
  key: 3,
368
- class: z(e.value.name),
369
- style: $(g.value)
364
+ class: w(e.value.name),
365
+ style: b(_.value)
370
366
  },
371
367
  null,
372
368
  6
@@ -380,14 +376,13 @@ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
380
376
  _: 1
381
377
  /* STABLE */
382
378
  }, 8, ["content"]))
383
- ])) : (u(), N(b, {
379
+ ])) : (u(), H(C, {
384
380
  key: 1,
385
- type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
386
- onClick: H(w, ["stop"])
381
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
387
382
  }, {
388
- default: f(() => [
389
- X(
390
- j(e.value.title),
383
+ default: g(() => [
384
+ J(
385
+ U(e.value.title),
391
386
  1
392
387
  /* TEXT */
393
388
  )
@@ -398,27 +393,27 @@ const Xe = /* @__PURE__ */ T(De, [["render", Je]]), Ye = (l) => {
398
393
  };
399
394
  }
400
395
  });
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
+ const st = /* @__PURE__ */ N(at, [["__scopeId", "data-v-52806adf"]]), ot = X(st), Y = (l) => (fe("data-v-d12a12c0"), l = l(), me(), l), nt = {
402
397
  key: 1,
403
398
  class: "upload-btn"
404
- }, ut = { class: "tip" }, rt = { class: "loading-statu" }, ct = { class: "operate-btn" }, dt = { key: 0 }, pt = {
399
+ }, it = { class: "tip" }, ut = { class: "loading-statu" }, rt = { class: "operate-btn" }, ct = { key: 0 }, dt = {
405
400
  class: "el-upload-list el-upload-list--picture-card",
406
401
  style: { float: "left" }
407
- }, vt = ["onClick"], _t = /* @__PURE__ */ Z(() => /* @__PURE__ */ n(
402
+ }, pt = ["onClick"], vt = /* @__PURE__ */ Y(() => /* @__PURE__ */ n(
408
403
  "span",
409
404
  { class: "error" },
410
405
  "上传错误",
411
406
  -1
412
407
  /* HOISTED */
413
- )), ht = /* @__PURE__ */ Z(() => /* @__PURE__ */ n(
408
+ )), _t = /* @__PURE__ */ Y(() => /* @__PURE__ */ n(
414
409
  "p",
415
410
  null,
416
411
  "点击重新上传",
417
412
  -1
418
413
  /* HOISTED */
419
- )), gt = ["src"], ft = { class: "demo-image__preview" }, mt = /* @__PURE__ */ x({
414
+ )), ht = ["src"], gt = { class: "demo-image__preview" }, ft = /* @__PURE__ */ z({
420
415
  __name: "index",
421
- props: /* @__PURE__ */ O({
416
+ props: /* @__PURE__ */ F({
422
417
  // 显示的文字
423
418
  title: {
424
419
  type: String,
@@ -509,115 +504,115 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
509
504
  },
510
505
  modelModifiers: {}
511
506
  }),
512
- emits: /* @__PURE__ */ O(["delete", "success"], ["update:modelValue"]),
507
+ emits: /* @__PURE__ */ F(["delete", "success"], ["update:modelValue"]),
513
508
  setup(l, { emit: c }) {
514
- de((t) => ({
515
- "48c07ec5": o.value,
516
- "94ff3ff0": m.value
509
+ ce((t) => ({
510
+ "48c07ec5": C.value,
511
+ "94ff3ff0": B.value
517
512
  }));
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;
513
+ const e = l, i = de(l, "modelValue"), _ = (t) => Array.isArray(t) ? t.map((a) => {
514
+ var y, L;
515
+ 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;
521
516
  return {
522
- ...a.url ? a : { url: p },
523
- __url: s ? p : `${C.value}${p}`
517
+ ...a.url ? a : { url: d },
518
+ __url: s ? d : `${m.value}${d}`
524
519
  };
525
520
  }) : t ? [
526
521
  {
527
522
  url: t,
528
- __url: t != null && t.startsWith("http") || t != null && t.startsWith("blob") ? t : `${C.value}${t}`
523
+ __url: t != null && t.startsWith("http") || t != null && t.startsWith("blob") ? t : `${m.value}${t}`
529
524
  }
530
525
  ] : [];
531
- ve(
532
- () => e.value,
526
+ pe(
527
+ () => i.value,
533
528
  (t) => {
534
- !t || !t.length ? y.value = [] : y.value = $e.cloneDeep(d(t));
529
+ !t || !t.length ? f.value = [] : f.value = ze.cloneDeep(_(t));
535
530
  },
536
531
  { deep: !0 }
537
532
  );
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) => {
533
+ 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(
534
+ () => e.tipText || `最多可上传${e.limit}张图片, 每张图片不能超过${e.size}MB`
535
+ ), q = (t, a) => {
536
+ }, K = (t) => {
542
537
  if (!t.type.includes("image")) {
543
- J.warning("只允许上传图片!");
538
+ G.warning("只允许上传图片!");
544
539
  try {
545
- y.value.pop();
540
+ f.value.pop();
546
541
  } catch {
547
542
  }
548
543
  return !1;
549
544
  }
550
- if (!(t.size / 1024 / 1024 < I.value)) {
551
- J.warning("图片大小超出限制!");
545
+ if (!(t.size / 1024 / 1024 < j.value)) {
546
+ G.warning("图片大小超出限制!");
552
547
  try {
553
- y.value.pop();
548
+ f.value.pop();
554
549
  } catch {
555
550
  }
556
551
  return !1;
557
552
  }
558
553
  return !0;
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++;
554
+ }, Q = () => !1, ee = (t, a) => {
555
+ var s, d;
556
+ t.status = "ready", a !== void 0 && I.value.splice(a, 1), (s = $.value) == null || s.handleStart(t.raw), (d = $.value) == null || d.submit();
557
+ }, te = (t, a) => {
558
+ var L, A;
559
+ const s = i.value.length, d = e.limit - s;
560
+ let y = 0;
561
+ for (; y < d && y < (t == null ? void 0 : t.length); )
562
+ (L = $.value) == null || L.handleStart(t == null ? void 0 : t[y]), (A = $.value) == null || A.submit(), y++;
563
+ }, le = (t, a, s) => {
564
+ o("success", t, a, s), i.value = f.value;
568
565
  }, ae = (t, a, s) => {
569
- g("success", t, a, s), e.value = y.value;
570
- }, se = (t, a, s) => {
571
- L.value.push({
566
+ I.value.push({
572
567
  ...a,
573
568
  __url: a.url
574
569
  });
575
- }, oe = (t) => {
570
+ }, se = (t) => {
576
571
  var a;
577
- E.value = !0, A.value = (a = e.value) == null ? void 0 : a.findIndex((s) => s.url === t.url);
572
+ E.value = !0, T.value = (a = i.value) == null ? void 0 : a.findIndex((s) => s.url === t.url);
573
+ }, oe = (t) => {
574
+ $e.downloadFile(t.__url || t.url, t.name || t.url);
578
575
  }, ne = (t) => {
579
- xe.downloadFile(t.__url || t.url, t.name || t.url);
580
- }, ie = (t) => {
581
576
  var a;
582
- (a = b.value) == null || a.abort(t);
583
- }, ue = (t) => {
577
+ (a = $.value) == null || a.abort(t);
578
+ }, ie = (t) => {
584
579
  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
580
+ t.status !== "success" && ne(t), i.value = (a = f.value) == null ? void 0 : a.filter((s) => s.uid !== t.uid), o("delete", t);
581
+ }, ue = (t, a) => {
582
+ I.value.splice(a, 1);
583
+ }, re = h(() => f.value.length + I.value.length < e.limit), D = h(
584
+ () => i.value.length >= e.limit || e.disabled
590
585
  );
591
586
  return (t, a) => (u(), r(
592
- P,
587
+ O,
593
588
  null,
594
589
  [
595
- _(v(we), _e({
596
- class: ["ik-image-upload", { preview: l.preview, "hide-upload": !ce.value, disabled: D.value }],
590
+ v(p(ye), ve({
591
+ class: ["ik-image-upload", { preview: l.preview, "hide-upload": !re.value, disabled: D.value }],
597
592
  ref_key: "refUpload",
598
- ref: b,
593
+ ref: $,
599
594
  "list-type": "picture-card",
600
595
  accept: l.accept,
601
- action: v(w),
596
+ action: p(k),
602
597
  headers: l.headers,
603
598
  data: l.data,
604
- "file-list": y.value,
605
- "onUpdate:fileList": a[0] || (a[0] = (s) => y.value = s),
599
+ "file-list": f.value,
600
+ "onUpdate:fileList": a[0] || (a[0] = (s) => f.value = s),
606
601
  multiple: l.multiple,
607
602
  limit: l.limit,
608
- "on-change": K,
609
- "before-upload": Q,
610
- "before-remove": ee,
611
- "on-exceed": le,
612
- "on-success": ae,
613
- "on-error": se,
603
+ "on-change": q,
604
+ "before-upload": K,
605
+ "before-remove": Q,
606
+ "on-exceed": te,
607
+ "on-success": le,
608
+ "on-error": ae,
614
609
  drag: ""
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), {
610
+ }, t.$attrs, { disabled: D.value }), _e({
611
+ trigger: g(() => [
612
+ t.$slots.trigger ? he(t.$slots, "trigger", { key: 0 }, void 0, !0) : (u(), r("div", nt, [
613
+ v(p(x), { size: 20 }, {
614
+ default: g(() => [
615
+ v(p(ot), {
621
616
  name: "iksvg_guanbibeifen",
622
617
  disabled: D.value
623
618
  }, null, 8, ["disabled"])
@@ -628,27 +623,27 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
628
623
  n(
629
624
  "span",
630
625
  null,
631
- j(l.title),
626
+ U(l.title),
632
627
  1
633
628
  /* TEXT */
634
629
  )
635
630
  ]))
636
631
  ]),
637
- file: f(({ file: s }) => [
632
+ file: g(({ file: s }) => [
638
633
  n(
639
634
  "div",
640
635
  {
641
- class: z(["load-list", { loading: s.status === "uploading" }]),
636
+ class: w(["load-list", { loading: s.status === "uploading" }]),
642
637
  "element-loading-background": "var(--ik-upload-bg)"
643
638
  },
644
639
  [
645
- R(n(
640
+ P(n(
646
641
  "div",
647
- rt,
642
+ ut,
648
643
  [
649
- _(Xe),
650
- X(
651
- " 上传" + j(s.percentage) + "% ",
644
+ v(Je),
645
+ J(
646
+ " 上传" + U(s.percentage) + "% ",
652
647
  1
653
648
  /* TEXT */
654
649
  )
@@ -656,46 +651,46 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
656
651
  512
657
652
  /* NEED_PATCH */
658
653
  ), [
659
- [G, s.status === "uploading"]
654
+ [R, s.status === "uploading"]
660
655
  ]),
661
- U(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
662
- _(v(ke), {
656
+ V(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),
657
+ v(p(we), {
663
658
  style: { width: "100%", height: "100%" },
664
659
  src: s.__url || s.url,
665
660
  "zoom-rate": 1.2,
666
661
  "initial-index": 0,
667
662
  fit: "contain"
668
663
  }, null, 8, ["src"]),
669
- n("span", ct, [
664
+ n("span", rt, [
670
665
  n("span", null, [
671
- _(v(B), {
672
- onClick: (p) => oe(s)
666
+ v(p(x), {
667
+ onClick: (d) => se(s)
673
668
  }, {
674
- default: f(() => [
675
- _(v(Ee))
669
+ default: g(() => [
670
+ v(p(je))
676
671
  ]),
677
672
  _: 2
678
673
  /* DYNAMIC */
679
674
  }, 1032, ["onClick"])
680
675
  ]),
681
676
  n("span", null, [
682
- _(v(B), {
683
- onClick: (p) => ne(s)
677
+ v(p(x), {
678
+ onClick: (d) => oe(s)
684
679
  }, {
685
- default: f(() => [
686
- _(v(Me))
680
+ default: g(() => [
681
+ v(p(Se))
687
682
  ]),
688
683
  _: 2
689
684
  /* DYNAMIC */
690
685
  }, 1032, ["onClick"])
691
686
  ]),
692
- l.preview ? U("v-if", !0) : (u(), r("span", dt, [
693
- _(v(B), {
687
+ l.preview ? V("v-if", !0) : (u(), r("span", ct, [
688
+ v(p(x), {
694
689
  type: "warning",
695
- onClick: (p) => ue(s)
690
+ onClick: (d) => ie(s)
696
691
  }, {
697
- default: f(() => [
698
- _(v(Le))
692
+ default: g(() => [
693
+ v(p(Ie))
699
694
  ]),
700
695
  _: 2
701
696
  /* DYNAMIC */
@@ -707,21 +702,21 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
707
702
  /* CLASS */
708
703
  )
709
704
  ]),
710
- default: f(() => [
711
- n("ul", pt, [
705
+ default: g(() => [
706
+ n("ul", dt, [
712
707
  (u(!0), r(
713
- P,
708
+ O,
714
709
  null,
715
- fe(L.value, (s, p) => (u(), r("li", {
710
+ ge(I.value, (s, d) => (u(), r("li", {
716
711
  class: "el-upload-list__item",
717
712
  key: s.uid
718
713
  }, [
719
714
  n("span", null, [
720
- _(v(B), {
721
- onClick: (k) => re(s, p)
715
+ v(p(x), {
716
+ onClick: (y) => ue(s, d)
722
717
  }, {
723
- default: f(() => [
724
- _(v(Be))
718
+ default: g(() => [
719
+ v(p(Ce))
725
720
  ]),
726
721
  _: 2
727
722
  /* DYNAMIC */
@@ -730,34 +725,34 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
730
725
  n(
731
726
  "div",
732
727
  {
733
- class: z(["load-list", {
728
+ class: w(["load-list", {
734
729
  loading: s.status === "uploading",
735
730
  fail: s.status === "fail"
736
731
  }]),
737
732
  "element-loading-background": "var(--ik-upload-bg)"
738
733
  },
739
734
  [
740
- R(n("div", {
735
+ P(n("div", {
741
736
  class: "loading-statu",
742
- onClick: (k) => te(s, p)
737
+ onClick: (y) => ee(s, d)
743
738
  }, [
744
- _(v(B), { size: 24 }, {
745
- default: f(() => [
746
- _(v(Ue))
739
+ v(p(x), { size: 24 }, {
740
+ default: g(() => [
741
+ v(p(Ve))
747
742
  ]),
748
743
  _: 1
749
744
  /* STABLE */
750
745
  }),
751
- _t,
752
- ht
753
- ], 8, vt), [
754
- [G, s.status === "fail"]
746
+ vt,
747
+ _t
748
+ ], 8, pt), [
749
+ [R, s.status === "fail"]
755
750
  ]),
756
751
  n("img", {
757
752
  src: s.__url,
758
753
  alt: "",
759
- style: $({ "object-fit": l.fit })
760
- }, null, 12, gt)
754
+ style: b({ "object-fit": l.fit })
755
+ }, null, 12, ht)
761
756
  ],
762
757
  2
763
758
  /* CLASS */
@@ -773,11 +768,11 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
773
768
  }, [
774
769
  l.tip ? {
775
770
  name: "tip",
776
- fn: f(() => [
771
+ fn: g(() => [
777
772
  n(
778
773
  "span",
779
- ut,
780
- j(q.value),
774
+ it,
775
+ U(Z.value),
781
776
  1
782
777
  /* TEXT */
783
778
  )
@@ -785,18 +780,18 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
785
780
  key: "0"
786
781
  } : void 0
787
782
  ]), 1040, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit", "disabled"]),
788
- U(" 文件预览 "),
789
- n("div", ft, [
790
- E.value ? (u(), N(v(be), {
783
+ V(" 文件预览 "),
784
+ n("div", gt, [
785
+ E.value ? (u(), H(p(ke), {
791
786
  key: 0,
792
787
  "lock-scroll": "",
793
788
  "hide-on-click-modal": "",
794
789
  onClose: a[1] || (a[1] = () => {
795
790
  E.value = !1;
796
791
  }),
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)
792
+ "url-list": _(f.value).map((s) => s.__url),
793
+ "initial-index": T.value
794
+ }, null, 8, ["url-list", "initial-index"])) : V("v-if", !0)
800
795
  ])
801
796
  ],
802
797
  64
@@ -804,8 +799,8 @@ const ot = /* @__PURE__ */ T(st, [["__scopeId", "data-v-4a1004b9"]]), nt = Y(ot)
804
799
  ));
805
800
  }
806
801
  });
807
- const yt = /* @__PURE__ */ T(mt, [["__scopeId", "data-v-d12a12c0"]]), zt = Y(yt);
802
+ const mt = /* @__PURE__ */ N(ft, [["__scopeId", "data-v-d12a12c0"]]), bt = X(mt);
808
803
  export {
809
- zt as IkUploadImage,
810
- zt as default
804
+ bt as IkUploadImage,
805
+ bt as default
811
806
  };