iking-web-ui-pro 0.2.20 → 0.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +67 -64
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKPreviewFile/ik.index.es.js +279 -276
  5. package/dist/IKPreviewFile/ik.index.umd.js +16 -16
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKVerticalStepBar/ik.index.es.js +102 -99
  8. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  9. package/dist/IKVerticalStepBar/style.css +1 -1
  10. package/dist/IkApprovalProcessDetail/ik.index.es.js +279 -276
  11. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  12. package/dist/IkApprovalProcessDetail/style.css +1 -1
  13. package/dist/IkBaseDialog/ik.index.es.js +113 -110
  14. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  15. package/dist/IkBaseDialog/style.css +1 -1
  16. package/dist/IkBtnSetting/ik.index.es.js +208 -205
  17. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  18. package/dist/IkBtnSetting/style.css +1 -1
  19. package/dist/IkCollapseCard/ik.index.es.js +75 -72
  20. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  21. package/dist/IkCollapseCard/style.css +1 -1
  22. package/dist/IkDescription/ik.index.es.js +413 -410
  23. package/dist/IkDescription/ik.index.umd.js +1 -1
  24. package/dist/IkDescription/style.css +1 -1
  25. package/dist/IkDetailPreviewFiles/ik.index.es.js +272 -269
  26. package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
  27. package/dist/IkDetailPreviewFiles/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +146 -143
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +156 -153
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1129 -1126
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +556 -553
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +1432 -1429
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +99 -96
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +54 -51
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +697 -694
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +204 -201
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/Provider/ik.index.es.js +10 -14
  56. package/dist/Provider/ik.index.umd.js +1 -1
  57. package/dist/index.es.js +4121 -4122
  58. package/dist/index.umd.js +2 -2
  59. package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
  60. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
  61. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +0 -9
  62. package/dist/src/components/Provider/index.d.ts +0 -19
  63. package/dist/style.css +1 -1
  64. package/package.json +1 -1
@@ -1,30 +1,30 @@
1
- import { defineComponent as m, inject as x, computed as k, resolveComponent as b, openBlock as a, createElementBlock as i, normalizeClass as c, normalizeStyle as v, createCommentVNode as $, createElementVNode as g, createBlock as p, withCtx as d, createTextVNode as w, toDisplayString as B, createVNode as V, unref as y, mergeModels as S, useModel as T, ref as j, h as D, mergeProps as F, createSlots as N, renderSlot as f } from "vue";
2
- import { ikColor as O } from "iking-utils-pro";
3
- const z = (t, n) => {
4
- if (t.install = (o) => {
5
- for (const e of [t, ...Object.values(n ?? {})])
6
- o.component(e.name, e);
1
+ import { defineComponent as h, computed as _, resolveComponent as w, openBlock as t, createElementBlock as u, withModifiers as b, normalizeClass as d, normalizeStyle as p, createCommentVNode as z, createElementVNode as y, createBlock as g, withCtx as f, createTextVNode as B, toDisplayString as I, createVNode as T, unref as k, mergeModels as j, useModel as D, ref as F, h as M, mergeProps as N, createSlots as O, renderSlot as m } from "vue";
2
+ import { ikColor as H } from "iking-utils-pro";
3
+ const C = (a, n) => {
4
+ if (a.install = (i) => {
5
+ for (const e of [a, ...Object.values(n ?? {})])
6
+ i.component(e.name, e);
7
7
  }, n)
8
- for (const [o, e] of Object.entries(n))
9
- t[o] = e;
10
- return t;
11
- }, C = (t, n) => {
12
- const o = t.__vccOpts || t;
13
- for (const [e, s] of n)
14
- o[e] = s;
15
- return o;
16
- }, H = {
8
+ for (const [i, e] of Object.entries(n))
9
+ a[i] = e;
10
+ return a;
11
+ }, x = (a, n) => {
12
+ const i = a.__vccOpts || a;
13
+ for (const [e, o] of n)
14
+ i[e] = o;
15
+ return i;
16
+ }, q = {
17
17
  key: 0,
18
18
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
19
- }, M = {
19
+ }, E = {
20
20
  key: 1,
21
21
  class: "h-[1em] w-[1em]",
22
22
  "aria-hidden": "true"
23
- }, q = ["xlink:href"], E = ["src"], L = {
23
+ }, L = ["xlink:href"], W = ["src"], X = {
24
24
  key: 1,
25
25
  class: "h-[1em] w-[1em]",
26
26
  "aria-hidden": "true"
27
- }, W = ["xlink:href"], X = ["src"], Y = /* @__PURE__ */ m({
27
+ }, Y = ["xlink:href"], P = ["src"], U = /* @__PURE__ */ h({
28
28
  name: "IkSvgIcon",
29
29
  __name: "index",
30
30
  props: {
@@ -50,14 +50,12 @@ const z = (t, n) => {
50
50
  warning: { type: Boolean },
51
51
  width: {}
52
52
  },
53
- setup(t) {
54
- const n = t, o = x("iconConfig"), e = k(() => ({
55
- ...(o == null ? void 0 : o.value) || {},
56
- ...n
57
- })), s = k(() => {
53
+ emits: ["click"],
54
+ setup(a, { emit: n }) {
55
+ const i = a, e = _(() => i), o = _(() => {
58
56
  const { name: l } = e.value;
59
57
  return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
60
- }), u = k(() => {
58
+ }), r = _(() => {
61
59
  const l = [];
62
60
  if (e.value.flip)
63
61
  switch (e.value.flip) {
@@ -72,27 +70,30 @@ const z = (t, n) => {
72
70
  break;
73
71
  }
74
72
  e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
75
- const r = {
73
+ const v = {
76
74
  ...e.value.color && { color: e.value.color },
77
75
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
78
76
  ...l.length && { transform: l.join(" ") },
79
77
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
80
- ...e.value.color && s.value !== "iksig" ? {
78
+ ...e.value.color && o.value !== "iksig" ? {
81
79
  "--ik-color-icon-dark": e.value.color,
82
- "--ik-color-icon-light": e.value.colorLight || O.setOpacity(e.value.color, e.value.opacity)
80
+ "--ik-color-icon-light": e.value.colorLight || H.setOpacity(e.value.color, e.value.opacity)
83
81
  } : {}
84
82
  };
85
- return e.value.width && (r.width = r.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), r;
86
- });
87
- return (l, r) => {
88
- const h = b("el-tooltip"), _ = b("el-button");
89
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (a(), i("span", H, [
90
- e.value.notip || !e.value.title ? (a(), i(
83
+ return e.value.width && (v.width = v.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), v;
84
+ }), s = n, c = (l) => {
85
+ e.value.disabled || s("click", l);
86
+ };
87
+ return (l, v) => {
88
+ const V = w("el-tooltip"), S = w("el-button");
89
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), u("span", q, [
90
+ e.value.notip || !e.value.title ? (t(), u(
91
91
  "i",
92
92
  {
93
93
  key: 0,
94
- class: c(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
95
- [l.name]: s.value === "unocss",
94
+ onClick: b(c, ["stop"]),
95
+ class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
96
+ [l.name]: o.value === "unocss",
96
97
  "show-bg": e.value.showBg || e.value.bg,
97
98
  default: e.value.size === "default",
98
99
  small: e.value.size === "small",
@@ -104,34 +105,34 @@ const z = (t, n) => {
104
105
  active: e.value.active,
105
106
  disabled: e.value.disabled
106
107
  }]),
107
- style: v(u.value)
108
+ style: p(r.value)
108
109
  },
109
110
  [
110
- $(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
111
- s.value === "iksig" ? (a(), i(
111
+ z(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
112
+ o.value === "iksig" ? (t(), u(
112
113
  "i",
113
114
  {
114
115
  key: 0,
115
- class: c(`iksig ${e.value.name}`),
116
- style: v(u.value)
116
+ class: d(`iksig ${e.value.name}`),
117
+ style: p(r.value)
117
118
  },
118
119
  null,
119
120
  6
120
121
  /* CLASS, STYLE */
121
- )) : s.value === "svg" ? (a(), i("svg", M, [
122
- g("use", {
122
+ )) : o.value === "svg" ? (t(), u("svg", E, [
123
+ y("use", {
123
124
  "xlink:href": `#${e.value.name}`
124
- }, null, 8, q)
125
- ])) : s.value === "img" ? (a(), i("img", {
125
+ }, null, 8, L)
126
+ ])) : o.value === "img" ? (t(), u("img", {
126
127
  key: 2,
127
128
  src: e.value.name,
128
129
  class: "h-[1em] w-[1em]"
129
- }, null, 8, E)) : (a(), i(
130
+ }, null, 8, W)) : (t(), u(
130
131
  "i",
131
132
  {
132
133
  key: 3,
133
- class: c(e.value.name),
134
- style: v(u.value)
134
+ class: d(e.value.name),
135
+ style: p(r.value)
135
136
  },
136
137
  null,
137
138
  6
@@ -140,17 +141,17 @@ const z = (t, n) => {
140
141
  ],
141
142
  6
142
143
  /* CLASS, STYLE */
143
- )) : (a(), p(h, {
144
+ )) : (t(), g(V, {
144
145
  key: 1,
145
146
  content: e.value.title,
146
147
  placement: "top"
147
148
  }, {
148
- default: d(() => [
149
- g(
149
+ default: f(() => [
150
+ y(
150
151
  "i",
151
152
  {
152
- class: c(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
153
- [l.name]: s.value === "unocss",
153
+ class: d(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
154
+ [l.name]: o.value === "unocss",
154
155
  "show-bg": e.value.showBg || e.value.bg,
155
156
  default: e.value.size === "default",
156
157
  small: e.value.size === "small",
@@ -161,33 +162,34 @@ const z = (t, n) => {
161
162
  error: e.value.error || e.value.type === "error",
162
163
  active: e.value.active
163
164
  }]),
164
- style: v(u.value)
165
+ onClick: b(c, ["stop"]),
166
+ style: p(r.value)
165
167
  },
166
168
  [
167
- s.value === "iksig" ? (a(), i(
169
+ o.value === "iksig" ? (t(), u(
168
170
  "i",
169
171
  {
170
172
  key: 0,
171
- class: c(`iksig ${e.value.name}`),
172
- style: v(u.value)
173
+ class: d(`iksig ${e.value.name}`),
174
+ style: p(r.value)
173
175
  },
174
176
  null,
175
177
  6
176
178
  /* CLASS, STYLE */
177
- )) : s.value === "svg" ? (a(), i("svg", L, [
178
- g("use", {
179
+ )) : o.value === "svg" ? (t(), u("svg", X, [
180
+ y("use", {
179
181
  "xlink:href": `#${e.value.name}`
180
- }, null, 8, W)
181
- ])) : s.value === "img" ? (a(), i("img", {
182
+ }, null, 8, Y)
183
+ ])) : o.value === "img" ? (t(), u("img", {
182
184
  key: 2,
183
185
  src: e.value.name,
184
186
  class: "h-[1em] w-[1em]"
185
- }, null, 8, X)) : (a(), i(
187
+ }, null, 8, P)) : (t(), u(
186
188
  "i",
187
189
  {
188
190
  key: 3,
189
- class: c(e.value.name),
190
- style: v(u.value)
191
+ class: d(e.value.name),
192
+ style: p(r.value)
191
193
  },
192
194
  null,
193
195
  6
@@ -201,13 +203,14 @@ const z = (t, n) => {
201
203
  _: 1
202
204
  /* STABLE */
203
205
  }, 8, ["content"]))
204
- ])) : (a(), p(_, {
206
+ ])) : (t(), g(S, {
205
207
  key: 1,
206
- type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
208
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : "",
209
+ onClick: b(c, ["stop"])
207
210
  }, {
208
- default: d(() => [
209
- w(
210
- B(e.value.title),
211
+ default: f(() => [
212
+ B(
213
+ I(e.value.title),
211
214
  1
212
215
  /* TEXT */
213
216
  )
@@ -218,10 +221,10 @@ const z = (t, n) => {
218
221
  };
219
222
  }
220
223
  });
221
- const P = /* @__PURE__ */ C(Y, [["__scopeId", "data-v-ec9fdc8a"]]), I = z(P), U = {
224
+ const A = /* @__PURE__ */ x(U, [["__scopeId", "data-v-4a1004b9"]]), $ = C(A), G = {
222
225
  key: 0,
223
226
  class: "exit-main-page-maximize"
224
- }, A = /* @__PURE__ */ m({
227
+ }, J = /* @__PURE__ */ h({
225
228
  __name: "CloseIcon",
226
229
  props: {
227
230
  showBg: {
@@ -233,16 +236,16 @@ const P = /* @__PURE__ */ C(Y, [["__scopeId", "data-v-ec9fdc8a"]]), I = z(P), U
233
236
  default: !1
234
237
  }
235
238
  },
236
- setup(t) {
237
- return (n, o) => (a(), i("div", null, [
238
- t.showBg && t.fullscreen ? (a(), i("div", U, [
239
- V(y(I), {
239
+ setup(a) {
240
+ return (n, i) => (t(), u("div", null, [
241
+ a.showBg && a.fullscreen ? (t(), u("div", G, [
242
+ T(k($), {
240
243
  name: "iksvg_guanbidanchuang",
241
244
  title: "关闭",
242
245
  size: 20,
243
246
  error: ""
244
247
  })
245
- ])) : (a(), p(y(I), {
248
+ ])) : (t(), g(k($), {
246
249
  key: 1,
247
250
  error: "",
248
251
  name: "iksvg_guanbidanchuang",
@@ -252,9 +255,9 @@ const P = /* @__PURE__ */ C(Y, [["__scopeId", "data-v-ec9fdc8a"]]), I = z(P), U
252
255
  ]));
253
256
  }
254
257
  });
255
- const G = /* @__PURE__ */ C(A, [["__scopeId", "data-v-79f49df8"]]), J = { class: "base-header" }, K = /* @__PURE__ */ m({
258
+ const K = /* @__PURE__ */ x(J, [["__scopeId", "data-v-79f49df8"]]), Q = { class: "base-header" }, R = /* @__PURE__ */ h({
256
259
  __name: "IkBaseDialog",
257
- props: /* @__PURE__ */ S({
260
+ props: /* @__PURE__ */ j({
258
261
  title: { default: "" },
259
262
  cancelText: { default: "取消" },
260
263
  confirmText: { default: "确认" },
@@ -272,65 +275,65 @@ const G = /* @__PURE__ */ C(A, [["__scopeId", "data-v-79f49df8"]]), J = { class:
272
275
  modelModifiers: {}
273
276
  }),
274
277
  emits: ["update:modelValue"],
275
- setup(t) {
276
- const n = t, o = T(t, "modelValue"), e = j(n.fullscreen), s = () => {
278
+ setup(a) {
279
+ const n = a, i = D(a, "modelValue"), e = F(n.fullscreen), o = () => {
277
280
  e.value = !e.value;
278
- }, u = m({
281
+ }, r = h({
279
282
  setup() {
280
- return () => D(G, {
283
+ return () => M(K, {
281
284
  showBg: n.showCloseBg,
282
285
  fullscreen: n.fullscreen
283
286
  });
284
287
  }
285
288
  });
286
- return (l, r) => {
287
- const h = b("el-dialog");
288
- return a(), p(h, F({
289
- modelValue: o.value,
290
- "onUpdate:modelValue": r[0] || (r[0] = (_) => o.value = _)
291
- }, l.$attrs, {
292
- "close-icon": y(u),
293
- class: `ik-base-dialog ${l.noHeader ? "no-header" : ""} ${l.noFooter ? "no-footer" : ""}`,
289
+ return (s, c) => {
290
+ const l = w("el-dialog");
291
+ return t(), g(l, N({
292
+ modelValue: i.value,
293
+ "onUpdate:modelValue": c[0] || (c[0] = (v) => i.value = v)
294
+ }, s.$attrs, {
295
+ "close-icon": k(r),
296
+ class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
294
297
  fullscreen: e.value,
295
298
  "modal-class": "baseDialog"
296
- }), N({
297
- icon: d(() => [
298
- f(l.$slots, "title", {}, () => [
299
- w(
300
- B(l.title),
299
+ }), O({
300
+ icon: f(() => [
301
+ m(s.$slots, "title", {}, () => [
302
+ B(
303
+ I(s.title),
301
304
  1
302
305
  /* TEXT */
303
306
  )
304
307
  ])
305
308
  ]),
306
- header: d(() => [
307
- g("div", J, [
308
- f(l.$slots, "header", {}, () => [
309
- w(
310
- B(l.title),
309
+ header: f(() => [
310
+ y("div", Q, [
311
+ m(s.$slots, "header", {}, () => [
312
+ B(
313
+ I(s.title),
311
314
  1
312
315
  /* TEXT */
313
316
  )
314
317
  ])
315
318
  ]),
316
- l.$attrs.showClose ? (a(), p(y(I), {
319
+ s.$attrs.showClose ? (t(), g(k($), {
317
320
  key: 0,
318
- onClick: s,
321
+ onClick: o,
319
322
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
320
323
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
321
324
  title: e.value ? "退出全屏" : "全屏"
322
- }, null, 8, ["name", "title"])) : $("v-if", !0)
325
+ }, null, 8, ["name", "title"])) : z("v-if", !0)
323
326
  ]),
324
- default: d(() => [
325
- f(l.$slots, "default")
327
+ default: f(() => [
328
+ m(s.$slots, "default")
326
329
  ]),
327
330
  _: 2
328
331
  /* DYNAMIC */
329
332
  }, [
330
- l.$slots.footer ? {
333
+ s.$slots.footer ? {
331
334
  name: "footer",
332
- fn: d(() => [
333
- f(l.$slots, "footer")
335
+ fn: f(() => [
336
+ m(s.$slots, "footer")
334
337
  ]),
335
338
  key: "0"
336
339
  } : void 0
@@ -338,8 +341,8 @@ const G = /* @__PURE__ */ C(A, [["__scopeId", "data-v-79f49df8"]]), J = { class:
338
341
  };
339
342
  }
340
343
  });
341
- const Z = z(K);
344
+ const le = C(R);
342
345
  export {
343
- Z as IkBaseDialog,
344
- Z as default
346
+ le as IkBaseDialog,
347
+ le as default
345
348
  };
@@ -1 +1 @@
1
- (function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.vue,i["iking-utils-pro"]))})(this,function(i,e,k){"use strict";const f=(t,s)=>{if(t.install=a=>{for(const l of[t,...Object.values(s??{})])a.component(l.name,l)},s)for(const[a,l]of Object.entries(s))t[a]=l;return t},m=(t,s)=>{const a=t.__vccOpts||t;for(const[l,n]of s)a[l]=n;return a},y={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],B=["src"],v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},w=["xlink:href"],b=["src"],C=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(t){const s=t,a=e.inject("iconConfig"),l=e.computed(()=>({...(a==null?void 0:a.value)||{},...s})),n=e.computed(()=>{const{name:o}=l.value;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"}),r=e.computed(()=>{const o=[];if(l.value.flip)switch(l.value.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}l.value.rotate&&o.push(`rotate(${l.value.rotate%360}deg)`);const c={...l.value.color&&{color:l.value.color},...l.value.size&&{fontSize:typeof l.value.size=="number"?`${l.value.size}px`:l.value.size},...o.length&&{transform:o.join(" ")},padding:l.value.showBg||l.value.bg?l.value.padding:0,...l.value.color&&n.value!=="iksig"?{"--ik-color-icon-dark":l.value.color,"--ik-color-icon-light":l.value.colorLight||k.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(c.width=c.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),c});return(o,c)=>{const d=e.resolveComponent("el-tooltip"),p=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock("span",y,[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:l.value.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active,disabled:l.value.disabled}]),style:e.normalizeStyle(r.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(r.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,_)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,B)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(r.value)},null,6))],6)):(e.openBlock(),e.createBlock(d,{key:1,content:l.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:o.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active}]),style:e.normalizeStyle(r.value)},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(r.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",v,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,w)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,b)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(r.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(p,{key:1,type:["warning","error"].includes(l.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),E="",u=f(m(C,[["__scopeId","data-v-ec9fdc8a"]])),z={key:0,class:"exit-main-page-maximize"},I=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(t){return(s,a)=>(e.openBlock(),e.createElementBlock("div",null,[t.showBg&&t.fullscreen?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(e.unref(u),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(u),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),T="",S=m(I,[["__scopeId","data-v-79f49df8"]]),$={class:"base-header"},x=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const s=t,a=e.useModel(t,"modelValue"),l=e.ref(s.fullscreen),n=()=>{l.value=!l.value},r=e.defineComponent({setup(){return()=>e.h(S,{showBg:s.showCloseBg,fullscreen:s.fullscreen})}});return(o,c)=>{const d=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(d,e.mergeProps({modelValue:a.value,"onUpdate:modelValue":c[0]||(c[0]=p=>a.value=p)},o.$attrs,{"close-icon":e.unref(r),class:`ik-base-dialog ${o.noHeader?"no-header":""} ${o.noFooter?"no-footer":""}`,fullscreen:l.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",$,[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),o.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(u),{key:0,onClick:n,name:l.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:l.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:2},[o.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),N="",g=f(x);i.IkBaseDialog=g,i.default=g,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.index={},r.vue,r["iking-utils-pro"]))})(this,function(r,e,k){"use strict";const f=(t,s)=>{if(t.install=i=>{for(const l of[t,...Object.values(s??{})])i.component(l.name,l)},s)for(const[i,l]of Object.entries(s))t[i]=l;return t},m=(t,s)=>{const i=t.__vccOpts||t;for(const[l,a]of s)i[l]=a;return i},y={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],B=["src"],v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},w=["xlink:href"],b=["src"],C=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},emits:["click"],setup(t,{emit:s}){const i=t,l=e.computed(()=>i),a=e.computed(()=>{const{name:o}=l.value;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"}),c=e.computed(()=>{const o=[];if(l.value.flip)switch(l.value.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}l.value.rotate&&o.push(`rotate(${l.value.rotate%360}deg)`);const u={...l.value.color&&{color:l.value.color},...l.value.size&&{fontSize:typeof l.value.size=="number"?`${l.value.size}px`:l.value.size},...o.length&&{transform:o.join(" ")},padding:l.value.showBg||l.value.bg?l.value.padding:0,...l.value.color&&a.value!=="iksig"?{"--ik-color-icon-dark":l.value.color,"--ik-color-icon-light":l.value.colorLight||k.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(u.width=u.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),u}),n=s,d=o=>{l.value.disabled||n("click",o)};return(o,u)=>{const E=e.resolveComponent("el-tooltip"),V=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock("span",y,[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:a.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:l.value.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active,disabled:l.value.disabled}]),style:e.normalizeStyle(c.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(c.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,_)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,B)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(c.value)},null,6))],6)):(e.openBlock(),e.createBlock(E,{key:1,content:l.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[o.name]:a.value==="unocss","show-bg":l.value.showBg||l.value.bg,default:l.value.size==="default",small:l.value.size==="small",big:l.value.size==="big",warning:l.value.warning||l.value.type==="warning",primary:o.primary||l.value.type==="primary",success:o.success||l.value.type==="success",error:l.value.error||l.value.type==="error",active:l.value.active}]),onClick:e.withModifiers(d,["stop"]),style:e.normalizeStyle(c.value)},[a.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(c.value)},null,6)):a.value==="svg"?(e.openBlock(),e.createElementBlock("svg",v,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,w)])):a.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,b)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(c.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(V,{key:1,type:["warning","error"].includes(l.value.type)?"danger":"",onClick:e.withModifiers(d,["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),T="",p=f(m(C,[["__scopeId","data-v-4a1004b9"]])),z={key:0,class:"exit-main-page-maximize"},I=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(t){return(s,i)=>(e.openBlock(),e.createElementBlock("div",null,[t.showBg&&t.fullscreen?(e.openBlock(),e.createElementBlock("div",z,[e.createVNode(e.unref(p),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(p),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),j="",S=m(I,[["__scopeId","data-v-79f49df8"]]),$={class:"base-header"},x=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const s=t,i=e.useModel(t,"modelValue"),l=e.ref(s.fullscreen),a=()=>{l.value=!l.value},c=e.defineComponent({setup(){return()=>e.h(S,{showBg:s.showCloseBg,fullscreen:s.fullscreen})}});return(n,d)=>{const o=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(o,e.mergeProps({modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=u=>i.value=u)},n.$attrs,{"close-icon":e.unref(c),class:`ik-base-dialog ${n.noHeader?"no-header":""} ${n.noFooter?"no-footer":""}`,fullscreen:l.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(n.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",$,[e.renderSlot(n.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)])]),n.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(p),{key:0,onClick:a,name:l.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:l.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:2},[n.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),D="",g=f(x);r.IkBaseDialog=g,r.default=g,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .row-title[data-v-ec9fdc8a]{display:flex}.ik-svg-icon.ik-icon-span[data-v-ec9fdc8a]:not(:first-child){margin-left:var(--ik-margin-s-12)}.exit-main-page-maximize[data-v-79f49df8]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-color-bg-icon);border-radius:50%}.exit-main-page-maximize span[data-v-79f49df8]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-79f49df8]{--ik-color-icon-dark: var(--ik-color-bgicon-dark);--ik-color-icon-light: var(--ik-color-bgicon-light)}.el-dialog.ik-base-dialog.no-header .el-dialog__header{height:0}.el-dialog.ik-base-dialog.no-header .el-dialog__header .base-header{overflow:hidden;display:none}.el-dialog.ik-base-dialog.no-header .el-dialog__header:after{display:none}.el-dialog.ik-base-dialog.no-footer .el-dialog__footer{height:0;overflow:hidden}
1
+ .row-title[data-v-4a1004b9]{display:flex}.ik-svg-icon.ik-icon-span[data-v-4a1004b9]:not(:first-child){margin-left:var(--ik-margin-s-12)}.exit-main-page-maximize[data-v-79f49df8]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-color-bg-icon);border-radius:50%}.exit-main-page-maximize span[data-v-79f49df8]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-79f49df8]{--ik-color-icon-dark: var(--ik-color-bgicon-dark);--ik-color-icon-light: var(--ik-color-bgicon-light)}.el-dialog.ik-base-dialog.no-header .el-dialog__header{height:0}.el-dialog.ik-base-dialog.no-header .el-dialog__header .base-header{overflow:hidden;display:none}.el-dialog.ik-base-dialog.no-header .el-dialog__header:after{display:none}.el-dialog.ik-base-dialog.no-footer .el-dialog__footer{height:0;overflow:hidden}