iking-web-ui-pro 0.2.21 → 0.2.22

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