iking-web-ui-pro 0.2.22 → 0.2.24

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