iking-web-ui-pro 0.3.3 → 0.3.4

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 (46) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +7 -3
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +21 -17
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +46 -42
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCollapseCard/ik.index.es.js +36 -32
  8. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  9. package/dist/IkDescription/ik.index.es.js +7 -3
  10. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  11. package/dist/IkDetailPreviewFiles/ik.index.es.js +7 -3
  12. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  13. package/dist/IkExpandCollapse/ik.index.es.js +15 -11
  14. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  15. package/dist/IkIconPicker/ik.index.es.js +184 -173
  16. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  17. package/dist/IkMonacoEditor/ik.index.es.js +42 -38
  18. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  19. package/dist/IkPageFull/ik.index.es.js +7 -3
  20. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  21. package/dist/IkPreviewFile/ik.index.es.js +7 -3
  22. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPreviewFileDialog/ik.index.es.js +7 -3
  24. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  25. package/dist/IkSchedule/ik.index.es.js +26 -22
  26. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  27. package/dist/IkSideText/ik.index.es.js +61 -57
  28. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSvgIcon/ik.index.es.js +28 -24
  30. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  31. package/dist/IkTree/ik.index.es.js +7 -7
  32. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  33. package/dist/IkUploadFile/ik.index.es.js +7 -3
  34. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  35. package/dist/IkUploadImage/ik.index.es.js +115 -111
  36. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  37. package/dist/IkVerticalStepBar/ik.index.es.js +73 -69
  38. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  39. package/dist/iking-web-ui-pro.css +2 -2
  40. package/dist/index.es.js +6003 -5992
  41. package/dist/index.umd.js +99 -99
  42. package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
  43. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
  44. package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
  45. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
  46. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as M, openBlock as v, createElementBlock as m, createElementVNode as s, inject as W, computed as y, resolveComponent as ye, Fragment as X, normalizeClass as x, normalizeStyle as V, createBlock as Y, withCtx as I, createTextVNode as Se, toDisplayString as J, unref as d, getCurrentScope as Re, onScopeDispose as Pe, watch as ee, markRaw as be, ref as E, effectScope as Ue, shallowRef as De, nextTick as He, onMounted as je, Teleport as Fe, createVNode as _, Transition as We, withModifiers as Xe, createCommentVNode as A, resolveDynamicComponent as Ye, renderList as Ee, withDirectives as fe, vShow as me, renderSlot as Ne, mergeModels as ke, useCssVars as Qe, useModel as Ge, mergeProps as Ze, createSlots as Ke } from "vue";
1
+ import { defineComponent as M, openBlock as v, createElementBlock as m, createElementVNode as o, inject as W, computed as y, resolveComponent as ye, Fragment as X, normalizeClass as x, normalizeStyle as V, createBlock as Y, withCtx as I, createTextVNode as Se, toDisplayString as J, unref as d, getCurrentScope as Re, onScopeDispose as Pe, watch as ee, markRaw as be, ref as E, effectScope as Ue, shallowRef as De, nextTick as He, onMounted as je, Teleport as Fe, createVNode as _, Transition as We, withModifiers as Xe, createCommentVNode as A, resolveDynamicComponent as Ye, renderList as Ee, withDirectives as fe, vShow as me, renderSlot as Ne, mergeModels as ke, useCssVars as Qe, useModel as Ge, mergeProps as Ze, createSlots as Ke } from "vue";
2
2
  import { useLocale as Je, useNamespace as qe, useZIndex as et, ElIcon as S, EVENT_CODE as D, useFormItem as tt, ElUpload as at, ElImage as lt, ElMessage as xe } from "element-plus";
3
3
  import { ikColor as nt, paramType as ze, _ as q, ikFile as st } from "iking-utils-pro";
4
- const _e = (t, o) => (t.install = (l) => {
4
+ const _e = (t, r) => (t.install = (l) => {
5
5
  for (const e of [t, ...Object.values({})])
6
6
  l.component(e.name, e);
7
7
  }, t);
@@ -10,11 +10,11 @@ var ot = /* @__PURE__ */ M({
10
10
  name: "ArrowLeft",
11
11
  __name: "arrow-left",
12
12
  setup(t) {
13
- return (o, l) => (v(), m("svg", {
13
+ return (r, l) => (v(), m("svg", {
14
14
  xmlns: "http://www.w3.org/2000/svg",
15
15
  viewBox: "0 0 1024 1024"
16
16
  }, [
17
- s("path", {
17
+ o("path", {
18
18
  fill: "currentColor",
19
19
  d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
20
20
  })
@@ -24,11 +24,11 @@ var ot = /* @__PURE__ */ M({
24
24
  name: "ArrowRight",
25
25
  __name: "arrow-right",
26
26
  setup(t) {
27
- return (o, l) => (v(), m("svg", {
27
+ return (r, l) => (v(), m("svg", {
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
29
  viewBox: "0 0 1024 1024"
30
30
  }, [
31
- s("path", {
31
+ o("path", {
32
32
  fill: "currentColor",
33
33
  d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
34
34
  })
@@ -38,11 +38,11 @@ var ot = /* @__PURE__ */ M({
38
38
  name: "Close",
39
39
  __name: "close",
40
40
  setup(t) {
41
- return (o, l) => (v(), m("svg", {
41
+ return (r, l) => (v(), m("svg", {
42
42
  xmlns: "http://www.w3.org/2000/svg",
43
43
  viewBox: "0 0 1024 1024"
44
44
  }, [
45
- s("path", {
45
+ o("path", {
46
46
  fill: "currentColor",
47
47
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
48
48
  })
@@ -52,11 +52,11 @@ var ot = /* @__PURE__ */ M({
52
52
  name: "Delete",
53
53
  __name: "delete",
54
54
  setup(t) {
55
- return (o, l) => (v(), m("svg", {
55
+ return (r, l) => (v(), m("svg", {
56
56
  xmlns: "http://www.w3.org/2000/svg",
57
57
  viewBox: "0 0 1024 1024"
58
58
  }, [
59
- s("path", {
59
+ o("path", {
60
60
  fill: "currentColor",
61
61
  d: "M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"
62
62
  })
@@ -66,11 +66,11 @@ var ot = /* @__PURE__ */ M({
66
66
  name: "Download",
67
67
  __name: "download",
68
68
  setup(t) {
69
- return (o, l) => (v(), m("svg", {
69
+ return (r, l) => (v(), m("svg", {
70
70
  xmlns: "http://www.w3.org/2000/svg",
71
71
  viewBox: "0 0 1024 1024"
72
72
  }, [
73
- s("path", {
73
+ o("path", {
74
74
  fill: "currentColor",
75
75
  d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
76
76
  })
@@ -80,11 +80,11 @@ var ot = /* @__PURE__ */ M({
80
80
  name: "FullScreen",
81
81
  __name: "full-screen",
82
82
  setup(t) {
83
- return (o, l) => (v(), m("svg", {
83
+ return (r, l) => (v(), m("svg", {
84
84
  xmlns: "http://www.w3.org/2000/svg",
85
85
  viewBox: "0 0 1024 1024"
86
86
  }, [
87
- s("path", {
87
+ o("path", {
88
88
  fill: "currentColor",
89
89
  d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
90
90
  })
@@ -94,11 +94,11 @@ var ot = /* @__PURE__ */ M({
94
94
  name: "RefreshLeft",
95
95
  __name: "refresh-left",
96
96
  setup(t) {
97
- return (o, l) => (v(), m("svg", {
97
+ return (r, l) => (v(), m("svg", {
98
98
  xmlns: "http://www.w3.org/2000/svg",
99
99
  viewBox: "0 0 1024 1024"
100
100
  }, [
101
- s("path", {
101
+ o("path", {
102
102
  fill: "currentColor",
103
103
  d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
104
104
  })
@@ -108,11 +108,11 @@ var ot = /* @__PURE__ */ M({
108
108
  name: "RefreshRight",
109
109
  __name: "refresh-right",
110
110
  setup(t) {
111
- return (o, l) => (v(), m("svg", {
111
+ return (r, l) => (v(), m("svg", {
112
112
  xmlns: "http://www.w3.org/2000/svg",
113
113
  viewBox: "0 0 1024 1024"
114
114
  }, [
115
- s("path", {
115
+ o("path", {
116
116
  fill: "currentColor",
117
117
  d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"
118
118
  })
@@ -122,11 +122,11 @@ var ot = /* @__PURE__ */ M({
122
122
  name: "ScaleToOriginal",
123
123
  __name: "scale-to-original",
124
124
  setup(t) {
125
- return (o, l) => (v(), m("svg", {
125
+ return (r, l) => (v(), m("svg", {
126
126
  xmlns: "http://www.w3.org/2000/svg",
127
127
  viewBox: "0 0 1024 1024"
128
128
  }, [
129
- s("path", {
129
+ o("path", {
130
130
  fill: "currentColor",
131
131
  d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"
132
132
  })
@@ -136,11 +136,11 @@ var ot = /* @__PURE__ */ M({
136
136
  name: "ZoomIn",
137
137
  __name: "zoom-in",
138
138
  setup(t) {
139
- return (o, l) => (v(), m("svg", {
139
+ return (r, l) => (v(), m("svg", {
140
140
  xmlns: "http://www.w3.org/2000/svg",
141
141
  viewBox: "0 0 1024 1024"
142
142
  }, [
143
- s("path", {
143
+ o("path", {
144
144
  fill: "currentColor",
145
145
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
146
146
  })
@@ -150,20 +150,20 @@ var ot = /* @__PURE__ */ M({
150
150
  name: "ZoomOut",
151
151
  __name: "zoom-out",
152
152
  setup(t) {
153
- return (o, l) => (v(), m("svg", {
153
+ return (r, l) => (v(), m("svg", {
154
154
  xmlns: "http://www.w3.org/2000/svg",
155
155
  viewBox: "0 0 1024 1024"
156
156
  }, [
157
- s("path", {
157
+ o("path", {
158
158
  fill: "currentColor",
159
159
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
160
160
  })
161
161
  ]));
162
162
  }
163
163
  }), It = Ct;
164
- const ge = (t, o) => {
164
+ const ge = (t, r) => {
165
165
  const l = t.__vccOpts || t;
166
- for (const [e, f] of o)
166
+ for (const [e, f] of r)
167
167
  l[e] = f;
168
168
  return l;
169
169
  }, Ot = {}, Lt = {
@@ -176,9 +176,9 @@ const ge = (t, o) => {
176
176
  width: "200",
177
177
  height: "200"
178
178
  };
179
- function Mt(t, o) {
180
- return v(), m("svg", Lt, o[0] || (o[0] = [
181
- s(
179
+ function Mt(t, r) {
180
+ return v(), m("svg", Lt, r[0] || (r[0] = [
181
+ o(
182
182
  "path",
183
183
  {
184
184
  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",
@@ -188,7 +188,7 @@ function Mt(t, o) {
188
188
  -1
189
189
  /* HOISTED */
190
190
  ),
191
- s(
191
+ o(
192
192
  "path",
193
193
  {
194
194
  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",
@@ -198,7 +198,7 @@ function Mt(t, o) {
198
198
  -1
199
199
  /* HOISTED */
200
200
  ),
201
- s(
201
+ o(
202
202
  "path",
203
203
  {
204
204
  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",
@@ -208,7 +208,7 @@ function Mt(t, o) {
208
208
  -1
209
209
  /* HOISTED */
210
210
  ),
211
- s(
211
+ o(
212
212
  "path",
213
213
  {
214
214
  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",
@@ -218,7 +218,7 @@ function Mt(t, o) {
218
218
  -1
219
219
  /* HOISTED */
220
220
  ),
221
- s(
221
+ o(
222
222
  "path",
223
223
  {
224
224
  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",
@@ -228,7 +228,7 @@ function Mt(t, o) {
228
228
  -1
229
229
  /* HOISTED */
230
230
  ),
231
- s(
231
+ o(
232
232
  "path",
233
233
  {
234
234
  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",
@@ -238,7 +238,7 @@ function Mt(t, o) {
238
238
  -1
239
239
  /* HOISTED */
240
240
  ),
241
- s(
241
+ o(
242
242
  "path",
243
243
  {
244
244
  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",
@@ -248,7 +248,7 @@ function Mt(t, o) {
248
248
  -1
249
249
  /* HOISTED */
250
250
  ),
251
- s(
251
+ o(
252
252
  "path",
253
253
  {
254
254
  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",
@@ -316,14 +316,14 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
316
316
  "flv",
317
317
  "tls"
318
318
  ], Bt = (t) => {
319
- const o = W("loadUrl"), l = y(() => t.loadUrl || t.fileUrl || (o == null ? void 0 : o.value)), e = W("uploadUrl"), f = y(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), p = W("token"), O = y(() => t.token || (p == null ? void 0 : p.value)), $ = W("onlyofficeConfig"), h = y(() => t.onlyofficeConfig || ($ == null ? void 0 : $.value)), B = W("userInfo"), z = y(() => t.userInfo || (B == null ? void 0 : B.value)), r = [...Ce, ...Ce.map((b) => b.toLocaleUpperCase())];
319
+ const r = W("loadUrl"), l = y(() => t.loadUrl || t.fileUrl || (r == null ? void 0 : r.value)), e = W("uploadUrl"), f = y(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), p = W("token"), O = y(() => t.token || (p == null ? void 0 : p.value)), $ = W("onlyofficeConfig"), h = y(() => t.onlyofficeConfig || ($ == null ? void 0 : $.value)), B = W("userInfo"), z = y(() => t.userInfo || (B == null ? void 0 : B.value)), s = [...Ce, ...Ce.map((b) => b.toLocaleUpperCase())];
320
320
  return {
321
321
  cLoadUrl: l,
322
322
  cUploadUrl: f,
323
323
  cToken: O,
324
324
  cOnlyofficeConfig: h,
325
325
  cUserInfo: z,
326
- cOnlyofficePreviewType: r
326
+ cOnlyofficePreviewType: s
327
327
  };
328
328
  }, St = {
329
329
  key: 1,
@@ -357,33 +357,34 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
357
357
  title: {},
358
358
  type: { default: "primary" },
359
359
  warning: { type: Boolean },
360
- width: {}
360
+ width: {},
361
+ iconClass: { default: "" }
361
362
  },
362
363
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
363
- setup(t, { emit: o }) {
364
+ setup(t, { emit: r }) {
364
365
  const l = t, e = y(() => l), f = y(() => {
365
- const { name: r } = e.value;
366
- return /^http?:\/\//.test(r) ? "img" : /i-[^:]+:[^:]+/.test(r) ? "unocss" : r != null && r.startsWith("iksig") ? "iksig" : r != null && r.includes(":") ? "iconify" : r != null && r.startsWith("iksvg") ? "svg" : "i";
366
+ const { name: s } = e.value;
367
+ return /^http?:\/\//.test(s) ? "img" : /i-[^:]+:[^:]+/.test(s) ? "unocss" : s != null && s.startsWith("iksig") ? "iksig" : s != null && s.includes(":") ? "iconify" : s != null && s.startsWith("iksvg") ? "svg" : "i";
367
368
  }), p = y(() => {
368
- const r = [];
369
+ const s = [];
369
370
  if (e.value.flip)
370
371
  switch (e.value.flip) {
371
372
  case "horizontal":
372
- r.push("rotateY(180deg)");
373
+ s.push("rotateY(180deg)");
373
374
  break;
374
375
  case "vertical":
375
- r.push("rotateX(180deg)");
376
+ s.push("rotateX(180deg)");
376
377
  break;
377
378
  case "both":
378
- r.push("rotateX(180deg)"), r.push("rotateY(180deg)");
379
+ s.push("rotateX(180deg)"), s.push("rotateY(180deg)");
379
380
  break;
380
381
  }
381
- e.value.rotate && r.push(`rotate(${e.value.rotate % 360}deg)`);
382
+ e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
382
383
  const b = {
383
384
  pointerEvents: e.value.disabled ? "none" : "auto",
384
385
  ...e.value.color && { color: e.value.color },
385
386
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
386
- ...r.length && { transform: r.join(" ") },
387
+ ...s.length && { transform: s.join(" ") },
387
388
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
388
389
  ...e.value.color && f.value !== "iksig" ? {
389
390
  "--ik-icon-deep-color": e.value.color,
@@ -391,16 +392,16 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
391
392
  } : {}
392
393
  };
393
394
  return e.value.width && (b.width = b.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), b;
394
- }), O = o, $ = (r) => {
395
- O("click", r);
396
- }, h = (r) => {
397
- O("mouseenter", r);
398
- }, B = (r) => {
399
- O("mouseleave", r);
400
- }, z = (r) => {
401
- O("dblclick", r);
395
+ }), O = r, $ = (s) => {
396
+ O("click", s);
397
+ }, h = (s) => {
398
+ O("mouseenter", s);
399
+ }, B = (s) => {
400
+ O("mouseleave", s);
401
+ }, z = (s) => {
402
+ O("dblclick", s);
402
403
  };
403
- return (r, b) => {
404
+ return (s, b) => {
404
405
  const w = ye("el-tooltip"), C = ye("el-button");
405
406
  return e.value.tableIconType === "icon" || !e.value.tableIconType ? (v(), m(
406
407
  X,
@@ -411,14 +412,15 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
411
412
  {
412
413
  key: 0,
413
414
  class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
414
- [r.name]: f.value === "unocss",
415
+ [s.iconClass]: !0,
416
+ [s.name]: f.value === "unocss",
415
417
  "show-bg": e.value.showBg || e.value.bg,
416
418
  default: e.value.size === "default",
417
419
  small: e.value.size === "small",
418
420
  big: e.value.size === "big",
419
421
  warning: e.value.warning || e.value.type === "warning",
420
422
  primary: e.value.primary || e.value.type === "primary",
421
- success: r.success || e.value.type === "success",
423
+ success: s.success || e.value.type === "success",
422
424
  error: e.value.error || e.value.type === "error",
423
425
  active: e.value.active,
424
426
  disabled: e.value.disabled
@@ -441,7 +443,7 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
441
443
  6
442
444
  /* CLASS, STYLE */
443
445
  )) : f.value === "svg" ? (v(), m("svg", St, [
444
- s("use", {
446
+ o("use", {
445
447
  "xlink:href": `#${e.value.name}`
446
448
  }, null, 8, Et)
447
449
  ])) : f.value === "img" ? (v(), m("img", {
@@ -470,21 +472,23 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
470
472
  "hide-after": 0
471
473
  }, {
472
474
  default: I(() => [
473
- s(
475
+ o(
474
476
  "i",
475
477
  {
476
478
  class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
477
- [r.name]: f.value === "unocss",
479
+ [s.iconClass]: !0,
480
+ [s.name]: f.value === "unocss",
478
481
  "show-bg": e.value.showBg || e.value.bg,
479
482
  default: e.value.size === "default",
480
483
  small: e.value.size === "small",
481
484
  big: e.value.size === "big",
482
485
  warning: e.value.warning || e.value.type === "warning",
483
- primary: r.primary || e.value.type === "primary",
484
- success: r.success || e.value.type === "success",
486
+ primary: s.primary || e.value.type === "primary",
487
+ success: s.success || e.value.type === "success",
485
488
  error: e.value.error || e.value.type === "error",
486
489
  active: e.value.active,
487
- disabled: e.value.disabled
490
+ disabled: e.value.disabled,
491
+ ...s.$attrs.class || {}
488
492
  }]),
489
493
  style: V(p.value),
490
494
  onClick: $,
@@ -504,7 +508,7 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
504
508
  6
505
509
  /* CLASS, STYLE */
506
510
  )) : f.value === "svg" ? (v(), m("svg", Tt, [
507
- s("use", {
511
+ o("use", {
508
512
  "xlink:href": `#${e.value.name}`
509
513
  }, null, 8, Vt)
510
514
  ])) : f.value === "img" ? (v(), m("img", {
@@ -549,7 +553,7 @@ const $t = /* @__PURE__ */ ge(Ot, [["render", Mt]]), Ce = [
549
553
  }, 8, ["type"]));
550
554
  };
551
555
  }
552
- }), Pt = /* @__PURE__ */ ge(Rt, [["__scopeId", "data-v-6889f3aa"]]), pe = _e(Pt);
556
+ }), Pt = /* @__PURE__ */ ge(Rt, [["__scopeId", "data-v-64b61696"]]), pe = _e(Pt);
553
557
  var Ie;
554
558
  const Ve = typeof window < "u", Ut = (t) => typeof t == "string", Dt = () => {
555
559
  };
@@ -564,20 +568,20 @@ function jt(t) {
564
568
  return Re() ? (Pe(t), !0) : !1;
565
569
  }
566
570
  function Ft(t) {
567
- var o;
571
+ var r;
568
572
  const l = Ae(t);
569
- return (o = l == null ? void 0 : l.$el) != null ? o : l;
573
+ return (r = l == null ? void 0 : l.$el) != null ? r : l;
570
574
  }
571
575
  const Wt = Ve ? window : void 0;
572
576
  function K(...t) {
573
- let o, l, e, f;
574
- if (Ut(t[0]) || Array.isArray(t[0]) ? ([l, e, f] = t, o = Wt) : [o, l, e, f] = t, !o)
577
+ let r, l, e, f;
578
+ if (Ut(t[0]) || Array.isArray(t[0]) ? ([l, e, f] = t, r = Wt) : [r, l, e, f] = t, !r)
575
579
  return Dt;
576
580
  Array.isArray(l) || (l = [l]), Array.isArray(e) || (e = [e]);
577
581
  const p = [], O = () => {
578
582
  p.forEach((z) => z()), p.length = 0;
579
- }, $ = (z, r, b, w) => (z.addEventListener(r, b, w), () => z.removeEventListener(r, b, w)), h = ee(() => [Ft(o), Ae(f)], ([z, r]) => {
580
- O(), z && p.push(...l.flatMap((b) => e.map((w) => $(z, b, w, r))));
583
+ }, $ = (z, s, b, w) => (z.addEventListener(s, b, w), () => z.removeEventListener(s, b, w)), h = ee(() => [Ft(r), Ae(f)], ([z, s]) => {
584
+ O(), z && p.push(...l.flatMap((b) => e.map((w) => $(z, b, w, s))));
581
585
  }, { immediate: !0, flush: "post" }), B = () => {
582
586
  h(), O();
583
587
  };
@@ -589,12 +593,12 @@ var Me;
589
593
  (function(t) {
590
594
  t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
591
595
  })(Me || (Me = {}));
592
- var Xt = Object.defineProperty, $e = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, Be = (t, o, l) => o in t ? Xt(t, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[o] = l, Gt = (t, o) => {
593
- for (var l in o)
594
- Yt.call(o, l) && Be(t, l, o[l]);
596
+ var Xt = Object.defineProperty, $e = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, Be = (t, r, l) => r in t ? Xt(t, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[r] = l, Gt = (t, r) => {
597
+ for (var l in r)
598
+ Yt.call(r, l) && Be(t, l, r[l]);
595
599
  if ($e)
596
- for (var l of $e(o))
597
- Qt.call(o, l) && Be(t, l, o[l]);
600
+ for (var l of $e(r))
601
+ Qt.call(r, l) && Be(t, l, r[l]);
598
602
  return t;
599
603
  };
600
604
  const Zt = {
@@ -705,7 +709,7 @@ const Kt = {
705
709
  __name: "IkImageViewer",
706
710
  props: Kt,
707
711
  emits: Jt,
708
- setup(t, { expose: o, emit: l }) {
712
+ setup(t, { expose: r, emit: l }) {
709
713
  const e = (n) => Object.keys(n), f = {
710
714
  CONTAIN: {
711
715
  name: "contain",
@@ -715,7 +719,7 @@ const Kt = {
715
719
  name: "original",
716
720
  icon: be(xt)
717
721
  }
718
- }, p = t, O = l, { t: $ } = Je(), h = qe("image-viewer"), { nextZIndex: B } = et(), z = E(), r = E([]), b = Ue(), w = E(!0), C = E(p.initialIndex), R = De(f.CONTAIN), k = E({
722
+ }, p = t, O = l, { t: $ } = Je(), h = qe("image-viewer"), { nextZIndex: B } = et(), z = E(), s = E([]), b = Ue(), w = E(!0), C = E(p.initialIndex), R = De(f.CONTAIN), k = E({
719
723
  scale: 1,
720
724
  deg: 0,
721
725
  offsetX: 0,
@@ -862,7 +866,7 @@ const Kt = {
862
866
  }
863
867
  return ee(le, () => {
864
868
  He(() => {
865
- const n = r.value[0];
869
+ const n = s.value[0];
866
870
  n != null && n.complete || (w.value = !0);
867
871
  });
868
872
  }), ee(C, (n) => {
@@ -870,7 +874,7 @@ const Kt = {
870
874
  }), je(() => {
871
875
  var n, c;
872
876
  re(), (c = (n = z.value) == null ? void 0 : n.focus) == null || c.call(n);
873
- }), o({
877
+ }), r({
874
878
  /**
875
879
  * @description manually switch image
876
880
  */
@@ -881,7 +885,7 @@ const Kt = {
881
885
  appear: ""
882
886
  }, {
883
887
  default: I(() => [
884
- s(
888
+ o(
885
889
  "div",
886
890
  {
887
891
  ref_key: "wrapper",
@@ -891,7 +895,7 @@ const Kt = {
891
895
  style: V({ zIndex: te.value })
892
896
  },
893
897
  [
894
- s(
898
+ o(
895
899
  "div",
896
900
  {
897
901
  class: x(d(h).e("mask")),
@@ -902,7 +906,7 @@ const Kt = {
902
906
  /* CLASS */
903
907
  ),
904
908
  A(" CLOSE "),
905
- s(
909
+ o(
906
910
  "span",
907
911
  {
908
912
  class: x([d(h).e("btn"), d(h).e("close")]),
@@ -925,7 +929,7 @@ const Kt = {
925
929
  X,
926
930
  { key: 0 },
927
931
  [
928
- s(
932
+ o(
929
933
  "span",
930
934
  {
931
935
  class: x(ne.value),
@@ -943,7 +947,7 @@ const Kt = {
943
947
  2
944
948
  /* CLASS */
945
949
  ),
946
- s(
950
+ o(
947
951
  "span",
948
952
  {
949
953
  class: x(se.value),
@@ -966,13 +970,13 @@ const Kt = {
966
970
  /* STABLE_FRAGMENT */
967
971
  )),
968
972
  A(" ACTIONS "),
969
- s(
973
+ o(
970
974
  "div",
971
975
  {
972
976
  class: x([d(h).e("btn"), d(h).e("actions")])
973
977
  },
974
978
  [
975
- s(
979
+ o(
976
980
  "div",
977
981
  {
978
982
  class: x(d(h).e("actions__inner"))
@@ -996,7 +1000,7 @@ const Kt = {
996
1000
  _: 1
997
1001
  /* STABLE */
998
1002
  }),
999
- s(
1003
+ o(
1000
1004
  "i",
1001
1005
  {
1002
1006
  class: x(d(h).e("actions__divider"))
@@ -1012,7 +1016,7 @@ const Kt = {
1012
1016
  _: 1
1013
1017
  /* STABLE */
1014
1018
  }),
1015
- s(
1019
+ o(
1016
1020
  "i",
1017
1021
  {
1018
1022
  class: x(d(h).e("actions__divider"))
@@ -1048,7 +1052,7 @@ const Kt = {
1048
1052
  /* CLASS */
1049
1053
  ),
1050
1054
  A(" CANVAS "),
1051
- s(
1055
+ o(
1052
1056
  "div",
1053
1057
  {
1054
1058
  class: x(d(h).e("canvas"))
@@ -1059,7 +1063,7 @@ const Kt = {
1059
1063
  null,
1060
1064
  Ee(n.urlList, (g, L) => fe((v(), m("img", {
1061
1065
  ref_for: !0,
1062
- ref: (N) => r.value[L] = N,
1066
+ ref: (N) => s.value[L] = N,
1063
1067
  key: g,
1064
1068
  src: g,
1065
1069
  style: V(oe.value),
@@ -1186,7 +1190,7 @@ const Kt = {
1186
1190
  modelModifiers: {}
1187
1191
  }),
1188
1192
  emits: /* @__PURE__ */ ke(["delete", "success"], ["update:modelValue"]),
1189
- setup(t, { emit: o }) {
1193
+ setup(t, { emit: r }) {
1190
1194
  Qe((a) => ({
1191
1195
  "4e5f919e": B.value,
1192
1196
  "2767b51c": z.value,
@@ -1213,7 +1217,7 @@ const Kt = {
1213
1217
  },
1214
1218
  { deep: !0 }
1215
1219
  );
1216
- const O = o, { cLoadUrl: $, cUploadUrl: h } = Bt(l), B = y(() => `${l.width}px`), z = y(() => `${l.height}px`), r = y(() => l.size), b = E(null), w = E(p(e.value)), C = E([]), R = E(!1), k = E(0), te = y(
1220
+ const O = r, { cLoadUrl: $, cUploadUrl: h } = Bt(l), B = y(() => `${l.width}px`), z = y(() => `${l.height}px`), s = y(() => l.size), b = E(null), w = E(p(e.value)), C = E([]), R = E(!1), k = E(0), te = y(
1217
1221
  () => l.tipText || `最多可上传${l.limit}张图片, 每张图片不能超过${l.size}MB`
1218
1222
  ), ae = (a, u) => {
1219
1223
  }, Q = (a) => {
@@ -1225,7 +1229,7 @@ const Kt = {
1225
1229
  }
1226
1230
  return !1;
1227
1231
  }
1228
- if (!(a.size / 1024 / 1024 < r.value)) {
1232
+ if (!(a.size / 1024 / 1024 < s.value)) {
1229
1233
  xe.warning(`图片大小超出系统限制的${l.size}MB!`);
1230
1234
  try {
1231
1235
  w.value.pop();
@@ -1304,7 +1308,7 @@ const Kt = {
1304
1308
  name: "iksvg_guanbibeifen",
1305
1309
  disabled: U.value
1306
1310
  }, null, 8, ["disabled"]),
1307
- s(
1311
+ o(
1308
1312
  "span",
1309
1313
  null,
1310
1314
  J(t.title),
@@ -1314,14 +1318,14 @@ const Kt = {
1314
1318
  ]))
1315
1319
  ]),
1316
1320
  file: I(({ file: i, index: n }) => [
1317
- s(
1321
+ o(
1318
1322
  "div",
1319
1323
  {
1320
1324
  class: x(["load-list", { loading: i.status === "uploading" }]),
1321
1325
  "element-loading-background": "var(--ik-upload-bg)"
1322
1326
  },
1323
1327
  [
1324
- fe(s(
1328
+ fe(o(
1325
1329
  "div",
1326
1330
  na,
1327
1331
  [
@@ -1345,8 +1349,8 @@ const Kt = {
1345
1349
  "initial-index": 0,
1346
1350
  fit: "contain"
1347
1351
  }, null, 8, ["src"]),
1348
- s("span", sa, [
1349
- s("span", null, [
1352
+ o("span", sa, [
1353
+ o("span", null, [
1350
1354
  _(d(S), {
1351
1355
  onClick: (c) => H(i)
1352
1356
  }, {
@@ -1357,7 +1361,7 @@ const Kt = {
1357
1361
  /* DYNAMIC */
1358
1362
  }, 1032, ["onClick"])
1359
1363
  ]),
1360
- s("span", null, [
1364
+ o("span", null, [
1361
1365
  _(d(S), {
1362
1366
  onClick: (c) => re(i)
1363
1367
  }, {
@@ -1387,7 +1391,7 @@ const Kt = {
1387
1391
  )
1388
1392
  ]),
1389
1393
  default: I(() => [
1390
- s("ul", ra, [
1394
+ o("ul", ra, [
1391
1395
  (v(!0), m(
1392
1396
  X,
1393
1397
  null,
@@ -1395,14 +1399,14 @@ const Kt = {
1395
1399
  class: "el-upload-list__item",
1396
1400
  key: i.uid
1397
1401
  }, [
1398
- s("span", null, [
1402
+ o("span", null, [
1399
1403
  _(d(pe), {
1400
1404
  name: "iksvg_guanbi",
1401
1405
  error: "",
1402
1406
  onClick: (c) => ce(i, n)
1403
1407
  }, null, 8, ["onClick"])
1404
1408
  ]),
1405
- s(
1409
+ o(
1406
1410
  "div",
1407
1411
  {
1408
1412
  class: x(["load-list", {
@@ -1412,7 +1416,7 @@ const Kt = {
1412
1416
  "element-loading-background": "var(--ik-upload-bg)"
1413
1417
  },
1414
1418
  [
1415
- fe(s("div", {
1419
+ fe(o("div", {
1416
1420
  class: "loading-statu",
1417
1421
  onClick: (c) => le(i, n)
1418
1422
  }, [
@@ -1420,14 +1424,14 @@ const Kt = {
1420
1424
  name: "iksvg_shuaxin-daohang",
1421
1425
  size: 24
1422
1426
  }),
1423
- u[2] || (u[2] = s(
1427
+ u[2] || (u[2] = o(
1424
1428
  "span",
1425
1429
  { class: "error" },
1426
1430
  "上传错误",
1427
1431
  -1
1428
1432
  /* HOISTED */
1429
1433
  )),
1430
- u[3] || (u[3] = s(
1434
+ u[3] || (u[3] = o(
1431
1435
  "p",
1432
1436
  null,
1433
1437
  "点击重新上传",
@@ -1437,7 +1441,7 @@ const Kt = {
1437
1441
  ], 8, ia), [
1438
1442
  [me, i.status === "fail"]
1439
1443
  ]),
1440
- s("img", {
1444
+ o("img", {
1441
1445
  src: i.__url,
1442
1446
  alt: "",
1443
1447
  style: V({ "object-fit": t.fit })
@@ -1458,7 +1462,7 @@ const Kt = {
1458
1462
  t.tip ? {
1459
1463
  name: "tip",
1460
1464
  fn: I(() => [
1461
- s(
1465
+ o(
1462
1466
  "span",
1463
1467
  la,
1464
1468
  J(te.value),
@@ -1470,7 +1474,7 @@ const Kt = {
1470
1474
  } : void 0
1471
1475
  ]), 1040, ["class", "accept", "action", "headers", "data", "file-list", "multiple", "limit", "disabled"]),
1472
1476
  A(" 文件预览 "),
1473
- s("div", ca, [
1477
+ o("div", ca, [
1474
1478
  R.value ? (v(), Y(d(ta), {
1475
1479
  key: 0,
1476
1480
  "lock-scroll": "",