iking-web-ui-pro 0.2.4 → 0.2.6

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 (80) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +586 -571
  2. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  3. package/dist/IKDetailPreviewFiles/style.css +1 -1
  4. package/dist/IKExpandCollapse/ik.index.es.js +123 -120
  5. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  6. package/dist/IKExpandCollapse/style.css +1 -1
  7. package/dist/IKPreviewFile/ik.index.es.js +491 -476
  8. package/dist/IKPreviewFile/ik.index.umd.js +1 -1
  9. package/dist/IKPreviewFile/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcessDetail/ik.index.es.js +756 -741
  14. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcessDetail/style.css +1 -1
  16. package/dist/IkBaseDialog/ik.index.es.js +125 -122
  17. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  18. package/dist/IkBaseDialog/style.css +1 -1
  19. package/dist/IkBtnSetting/ik.index.es.js +252 -249
  20. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  21. package/dist/IkBtnSetting/style.css +1 -1
  22. package/dist/IkCollapseCard/ik.index.es.js +129 -126
  23. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  24. package/dist/IkCollapseCard/style.css +1 -1
  25. package/dist/IkDescription/ik.index.es.js +530 -515
  26. package/dist/IkDescription/ik.index.umd.js +1 -1
  27. package/dist/IkDescription/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +196 -193
  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 +397 -394
  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 +1122 -1119
  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 +314 -308
  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 +968 -965
  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 +148 -145
  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 +106 -103
  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 +963 -944
  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 +265 -253
  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 +1611 -0
  56. package/dist/Provider/ik.index.umd.js +17 -0
  57. package/dist/index.es.js +38689 -37072
  58. package/dist/index.umd.js +95 -79
  59. package/dist/src/components/IKDetailPreviewFiles/index.d.ts +1 -1
  60. package/dist/src/components/IKDetailPreviewFiles/src/IKDetailPreviewFiles.vue.d.ts +1 -1
  61. package/dist/src/components/IKPreviewFile/index.d.ts +3 -3
  62. package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +1 -1
  63. package/dist/src/components/IkApprovalProcess/index.d.ts +1 -1
  64. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +1 -1
  65. package/dist/src/components/IkDescription/index.d.ts +3 -3
  66. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +1 -1
  67. package/dist/src/components/IkPreviewFileDialog/index.d.ts +1 -1
  68. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +1 -1
  69. package/dist/src/components/IkTinymce/index.d.ts +1 -1
  70. package/dist/src/components/IkTinymce/src/index.vue.d.ts +1 -1
  71. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  72. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
  73. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  74. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
  75. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +66 -0
  76. package/dist/src/components/Provider/index.d.ts +139 -0
  77. package/dist/src/components/index.d.ts +1 -0
  78. package/dist/src/utils/use-provider.d.ts +8 -0
  79. package/dist/style.css +1 -1
  80. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- import { defineComponent as y, computed as _, resolveComponent as v, openBlock as t, createElementBlock as i, normalizeClass as u, normalizeStyle as c, createCommentVNode as B, createElementVNode as g, createBlock as p, withCtx as d, createTextVNode as k, toDisplayString as b, createVNode as V, unref as h, mergeModels as S, useModel as T, ref as j, h as D, mergeProps as F, createSlots as N, renderSlot as m } from "vue";
1
+ import { defineComponent as m, inject as x, computed as k, resolveComponent as b, openBlock as t, createElementBlock as i, normalizeClass as c, normalizeStyle as v, createCommentVNode as z, 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 j, ref as T, h as D, mergeProps as F, createSlots as N, renderSlot as f } from "vue";
2
2
  import { ikColor as O } from "iking-utils-pro";
3
- const $ = (a, o) => {
4
- if (a.install = (l) => {
5
- for (const s of [a, ...Object.values(o ?? {})])
6
- l.component(s.name, s);
7
- }, o)
8
- for (const [l, s] of Object.entries(o))
9
- a[l] = s;
3
+ const I = (a, n) => {
4
+ if (a.install = (o) => {
5
+ for (const e of [a, ...Object.values(n ?? {})])
6
+ o.component(e.name, e);
7
+ }, n)
8
+ for (const [o, e] of Object.entries(n))
9
+ a[o] = e;
10
10
  return a;
11
- }, z = (a, o) => {
12
- const l = a.__vccOpts || a;
13
- for (const [s, e] of o)
14
- l[s] = e;
15
- return l;
11
+ }, C = (a, n) => {
12
+ const o = a.__vccOpts || a;
13
+ for (const [e, s] of n)
14
+ o[e] = s;
15
+ return o;
16
16
  }, H = {
17
17
  key: 0,
18
18
  class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
@@ -24,7 +24,7 @@ const $ = (a, o) => {
24
24
  key: 1,
25
25
  class: "h-[1em] w-[1em]",
26
26
  "aria-hidden": "true"
27
- }, W = ["xlink:href"], X = ["src"], Y = /* @__PURE__ */ y({
27
+ }, W = ["xlink:href"], X = ["src"], Y = /* @__PURE__ */ m({
28
28
  name: "IkSvgIcon",
29
29
  __name: "index",
30
30
  props: {
@@ -51,84 +51,87 @@ const $ = (a, o) => {
51
51
  tableIconType: { default: "icon" }
52
52
  },
53
53
  setup(a) {
54
- const o = a, l = _(() => {
55
- var e, r, n;
56
- return /^http?:\/\//.test(o.name) ? "img" : /i-[^:]+:[^:]+/.test(o.name) ? "unocss" : (e = o.name) != null && e.startsWith("iksig") ? "iksig" : (r = o.name) != null && r.includes(":") ? "iconify" : (n = o.name) != null && n.startsWith("iksvg") ? "svg" : "i";
57
- }), s = _(() => {
58
- const e = [];
59
- if (o.flip)
60
- switch (o.flip) {
54
+ const n = a, o = x("iconConfig"), e = k(() => ({
55
+ ...(o == null ? void 0 : o.value) || {},
56
+ ...n
57
+ })), s = k(() => {
58
+ const { name: l } = e.value;
59
+ 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(() => {
61
+ const l = [];
62
+ if (e.value.flip)
63
+ switch (e.value.flip) {
61
64
  case "horizontal":
62
- e.push("rotateY(180deg)");
65
+ l.push("rotateY(180deg)");
63
66
  break;
64
67
  case "vertical":
65
- e.push("rotateX(180deg)");
68
+ l.push("rotateX(180deg)");
66
69
  break;
67
70
  case "both":
68
- e.push("rotateX(180deg)"), e.push("rotateY(180deg)");
71
+ l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
69
72
  break;
70
73
  }
71
- o.rotate && e.push(`rotate(${o.rotate % 360}deg)`);
74
+ e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
72
75
  const r = {
73
- ...o.color && { color: o.color },
74
- ...o.size && { fontSize: typeof o.size == "number" ? `${o.size}px` : o.size },
75
- ...e.length && { transform: e.join(" ") },
76
- padding: o.showBg || o.bg ? o.padding : 0,
77
- ...o.color && l.value !== "iksig" ? {
78
- "--ik-color-icon-dark": o.color,
79
- "--ik-color-icon-light": o.colorLight || O.setOpacity(o.color, o.opacity)
76
+ ...e.value.color && { color: e.value.color },
77
+ ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
78
+ ...l.length && { transform: l.join(" ") },
79
+ padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
80
+ ...e.value.color && s.value !== "iksig" ? {
81
+ "--ik-color-icon-dark": e.value.color,
82
+ "--ik-color-icon-light": e.value.colorLight || O.setOpacity(e.value.color, e.value.opacity)
80
83
  } : {}
81
84
  };
82
- return o.width && (r.width = r.height = typeof o.width == "number" ? `${o.width}px` : o.width), r;
85
+ return e.value.width && (r.width = r.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), r;
83
86
  });
84
- return (e, r) => {
85
- const n = v("el-tooltip"), f = v("el-button");
86
- return e.tableIconType === "icon" ? (t(), i("span", H, [
87
- e.notip || !e.title ? (t(), i(
87
+ return (l, r) => {
88
+ const h = b("el-tooltip"), _ = b("el-button");
89
+ return e.value.tableIconType === "icon" ? (t(), i("span", H, [
90
+ e.value.notip || !e.value.title ? (t(), i(
88
91
  "i",
89
92
  {
90
93
  key: 0,
91
- class: u(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
92
- [e.name]: l.value === "unocss",
93
- "show-bg": e.showBg || e.bg,
94
- default: e.size === "default",
95
- small: e.size === "small",
96
- big: e.size === "big",
97
- warning: e.warning || o.type === "warning",
98
- primary: e.primary || o.type === "primary",
99
- success: e.success || o.type === "success",
100
- error: e.error || o.type === "error",
101
- active: e.active,
102
- disabled: e.disabled
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",
96
+ "show-bg": e.value.showBg || e.value.bg,
97
+ default: e.value.size === "default",
98
+ small: e.value.size === "small",
99
+ big: e.value.size === "big",
100
+ warning: e.value.warning || e.value.type === "warning",
101
+ primary: e.value.primary || e.value.type === "primary",
102
+ success: l.success || e.value.type === "success",
103
+ error: e.value.error || e.value.type === "error",
104
+ active: e.value.active,
105
+ disabled: e.value.disabled
103
106
  }]),
104
- style: c(s.value)
107
+ style: v(u.value)
105
108
  },
106
109
  [
107
- B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
108
- l.value === "iksig" ? (t(), i(
110
+ z(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
111
+ s.value === "iksig" ? (t(), i(
109
112
  "i",
110
113
  {
111
114
  key: 0,
112
- class: u(`iksig ${e.name}`),
113
- style: c(s.value)
115
+ class: c(`iksig ${e.value.name}`),
116
+ style: v(u.value)
114
117
  },
115
118
  null,
116
119
  6
117
120
  /* CLASS, STYLE */
118
- )) : l.value === "svg" ? (t(), i("svg", M, [
121
+ )) : s.value === "svg" ? (t(), i("svg", M, [
119
122
  g("use", {
120
- "xlink:href": `#${e.name}`
123
+ "xlink:href": `#${e.value.name}`
121
124
  }, null, 8, q)
122
- ])) : l.value === "img" ? (t(), i("img", {
125
+ ])) : s.value === "img" ? (t(), i("img", {
123
126
  key: 2,
124
- src: e.name,
127
+ src: e.value.name,
125
128
  class: "h-[1em] w-[1em]"
126
129
  }, null, 8, E)) : (t(), i(
127
130
  "i",
128
131
  {
129
132
  key: 3,
130
- class: u(e.name),
131
- style: c(s.value)
133
+ class: c(e.value.name),
134
+ style: v(u.value)
132
135
  },
133
136
  null,
134
137
  6
@@ -137,54 +140,54 @@ const $ = (a, o) => {
137
140
  ],
138
141
  6
139
142
  /* CLASS, STYLE */
140
- )) : (t(), p(n, {
143
+ )) : (t(), p(h, {
141
144
  key: 1,
142
- content: e.title,
145
+ content: e.value.title,
143
146
  placement: "top"
144
147
  }, {
145
148
  default: d(() => [
146
149
  g(
147
150
  "i",
148
151
  {
149
- class: u(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
150
- [e.name]: l.value === "unocss",
151
- "show-bg": e.showBg || e.bg,
152
- default: e.size === "default",
153
- small: e.size === "small",
154
- big: e.size === "big",
155
- warning: e.warning || o.type === "warning",
156
- primary: e.primary || o.type === "primary",
157
- success: e.success || o.type === "success",
158
- error: e.error || o.type === "error",
159
- active: e.active
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",
154
+ "show-bg": e.value.showBg || e.value.bg,
155
+ default: e.value.size === "default",
156
+ small: e.value.size === "small",
157
+ big: e.value.size === "big",
158
+ warning: e.value.warning || e.value.type === "warning",
159
+ primary: l.primary || e.value.type === "primary",
160
+ success: l.success || e.value.type === "success",
161
+ error: e.value.error || e.value.type === "error",
162
+ active: e.value.active
160
163
  }]),
161
- style: c(s.value)
164
+ style: v(u.value)
162
165
  },
163
166
  [
164
- l.value === "iksig" ? (t(), i(
167
+ s.value === "iksig" ? (t(), i(
165
168
  "i",
166
169
  {
167
170
  key: 0,
168
- class: u(`iksig ${e.name}`),
169
- style: c(s.value)
171
+ class: c(`iksig ${e.value.name}`),
172
+ style: v(u.value)
170
173
  },
171
174
  null,
172
175
  6
173
176
  /* CLASS, STYLE */
174
- )) : l.value === "svg" ? (t(), i("svg", L, [
177
+ )) : s.value === "svg" ? (t(), i("svg", L, [
175
178
  g("use", {
176
- "xlink:href": `#${e.name}`
179
+ "xlink:href": `#${e.value.name}`
177
180
  }, null, 8, W)
178
- ])) : l.value === "img" ? (t(), i("img", {
181
+ ])) : s.value === "img" ? (t(), i("img", {
179
182
  key: 2,
180
- src: e.name,
183
+ src: e.value.name,
181
184
  class: "h-[1em] w-[1em]"
182
185
  }, null, 8, X)) : (t(), i(
183
186
  "i",
184
187
  {
185
188
  key: 3,
186
- class: u(e.name),
187
- style: c(s.value)
189
+ class: c(e.value.name),
190
+ style: v(u.value)
188
191
  },
189
192
  null,
190
193
  6
@@ -198,13 +201,13 @@ const $ = (a, o) => {
198
201
  _: 1
199
202
  /* STABLE */
200
203
  }, 8, ["content"]))
201
- ])) : (t(), p(f, {
204
+ ])) : (t(), p(_, {
202
205
  key: 1,
203
- type: ["warning", "error"].includes(e.type) ? "danger" : ""
206
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
204
207
  }, {
205
208
  default: d(() => [
206
- k(
207
- b(e.title),
209
+ w(
210
+ B(e.value.title),
208
211
  1
209
212
  /* TEXT */
210
213
  )
@@ -215,10 +218,10 @@ const $ = (a, o) => {
215
218
  };
216
219
  }
217
220
  });
218
- const P = /* @__PURE__ */ z(Y, [["__scopeId", "data-v-7d95dbf5"]]), w = $(P), U = {
221
+ const P = /* @__PURE__ */ C(Y, [["__scopeId", "data-v-1be337e4"]]), $ = I(P), U = {
219
222
  key: 0,
220
223
  class: "exit-main-page-maximize"
221
- }, A = /* @__PURE__ */ y({
224
+ }, A = /* @__PURE__ */ m({
222
225
  __name: "CloseIcon",
223
226
  props: {
224
227
  showBg: {
@@ -231,15 +234,15 @@ const P = /* @__PURE__ */ z(Y, [["__scopeId", "data-v-7d95dbf5"]]), w = $(P), U
231
234
  }
232
235
  },
233
236
  setup(a) {
234
- return (o, l) => (t(), i("div", null, [
237
+ return (n, o) => (t(), i("div", null, [
235
238
  a.showBg && a.fullscreen ? (t(), i("div", U, [
236
- V(h(w), {
239
+ V(y($), {
237
240
  name: "iksvg_guanbidanchuang",
238
241
  title: "关闭",
239
242
  size: 20,
240
243
  error: ""
241
244
  })
242
- ])) : (t(), p(h(w), {
245
+ ])) : (t(), p(y($), {
243
246
  key: 1,
244
247
  error: "",
245
248
  name: "iksvg_guanbidanchuang",
@@ -249,7 +252,7 @@ const P = /* @__PURE__ */ z(Y, [["__scopeId", "data-v-7d95dbf5"]]), w = $(P), U
249
252
  ]));
250
253
  }
251
254
  });
252
- const G = /* @__PURE__ */ z(A, [["__scopeId", "data-v-79f49df8"]]), J = { class: "base-header" }, K = /* @__PURE__ */ y({
255
+ const G = /* @__PURE__ */ C(A, [["__scopeId", "data-v-79f49df8"]]), J = { class: "base-header" }, K = /* @__PURE__ */ m({
253
256
  __name: "IkBaseDialog",
254
257
  props: /* @__PURE__ */ S({
255
258
  title: { default: "" },
@@ -270,31 +273,31 @@ const G = /* @__PURE__ */ z(A, [["__scopeId", "data-v-79f49df8"]]), J = { class:
270
273
  }),
271
274
  emits: ["update:modelValue"],
272
275
  setup(a) {
273
- const o = a, l = T(a, "modelValue"), s = j(o.fullscreen), e = () => {
274
- s.value = !s.value;
275
- }, r = y({
276
+ const n = a, o = j(a, "modelValue"), e = T(n.fullscreen), s = () => {
277
+ e.value = !e.value;
278
+ }, u = m({
276
279
  setup() {
277
280
  return () => D(G, {
278
- showBg: o.showCloseBg,
279
- fullscreen: o.fullscreen
281
+ showBg: n.showCloseBg,
282
+ fullscreen: n.fullscreen
280
283
  });
281
284
  }
282
285
  });
283
- return (n, f) => {
284
- const I = v("el-dialog");
285
- return t(), p(I, F({
286
- modelValue: l.value,
287
- "onUpdate:modelValue": f[0] || (f[0] = (C) => l.value = C)
288
- }, n.$attrs, {
289
- "close-icon": h(r),
290
- class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
291
- fullscreen: s.value,
286
+ return (l, r) => {
287
+ const h = b("el-dialog");
288
+ return t(), 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" : ""}`,
294
+ fullscreen: e.value,
292
295
  "modal-class": "baseDialog"
293
296
  }), N({
294
297
  icon: d(() => [
295
- m(n.$slots, "title", {}, () => [
296
- k(
297
- b(n.title),
298
+ f(l.$slots, "title", {}, () => [
299
+ w(
300
+ B(l.title),
298
301
  1
299
302
  /* TEXT */
300
303
  )
@@ -302,32 +305,32 @@ const G = /* @__PURE__ */ z(A, [["__scopeId", "data-v-79f49df8"]]), J = { class:
302
305
  ]),
303
306
  header: d(() => [
304
307
  g("div", J, [
305
- m(n.$slots, "header", {}, () => [
306
- k(
307
- b(n.title),
308
+ f(l.$slots, "header", {}, () => [
309
+ w(
310
+ B(l.title),
308
311
  1
309
312
  /* TEXT */
310
313
  )
311
314
  ])
312
315
  ]),
313
- n.$attrs.showClose ? (t(), p(h(w), {
316
+ l.$attrs.showClose ? (t(), p(y($), {
314
317
  key: 0,
315
- onClick: e,
316
- name: s.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
318
+ onClick: s,
319
+ name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
317
320
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
318
- title: s.value ? "退出全屏" : "全屏"
319
- }, null, 8, ["name", "title"])) : B("v-if", !0)
321
+ title: e.value ? "退出全屏" : "全屏"
322
+ }, null, 8, ["name", "title"])) : z("v-if", !0)
320
323
  ]),
321
324
  default: d(() => [
322
- m(n.$slots, "default")
325
+ f(l.$slots, "default")
323
326
  ]),
324
327
  _: 2
325
328
  /* DYNAMIC */
326
329
  }, [
327
- n.$slots.footer ? {
330
+ l.$slots.footer ? {
328
331
  name: "footer",
329
332
  fn: d(() => [
330
- m(n.$slots, "footer")
333
+ f(l.$slots, "footer")
331
334
  ]),
332
335
  key: "0"
333
336
  } : void 0
@@ -335,7 +338,7 @@ const G = /* @__PURE__ */ z(A, [["__scopeId", "data-v-79f49df8"]]), J = { class:
335
338
  };
336
339
  }
337
340
  });
338
- const Z = $(K);
341
+ const Z = I(K);
339
342
  export {
340
343
  Z as IkBaseDialog,
341
344
  Z as default
@@ -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,g){"use strict";const p=(a,l)=>{if(a.install=t=>{for(const n of[a,...Object.values(l??{})])t.component(n.name,n)},l)for(const[t,n]of Object.entries(l))a[t]=n;return a},m=(a,l)=>{const t=a.__vccOpts||a;for(const[n,o]of l)t[n]=o;return t},k={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},y={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},u=["xlink:href"],h=["src"],B={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},w=["xlink:href"],b=["src"],_=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(a){const l=a,t=e.computed(()=>{var o,r,s;return/^http?:\/\//.test(l.name)?"img":/i-[^:]+:[^:]+/.test(l.name)?"unocss":(o=l.name)!=null&&o.startsWith("iksig")?"iksig":(r=l.name)!=null&&r.includes(":")?"iconify":(s=l.name)!=null&&s.startsWith("iksvg")?"svg":"i"}),n=e.computed(()=>{const o=[];if(l.flip)switch(l.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.rotate&&o.push(`rotate(${l.rotate%360}deg)`);const r={...l.color&&{color:l.color},...l.size&&{fontSize:typeof l.size=="number"?`${l.size}px`:l.size},...o.length&&{transform:o.join(" ")},padding:l.showBg||l.bg?l.padding:0,...l.color&&t.value!=="iksig"?{"--ik-color-icon-dark":l.color,"--ik-color-icon-light":l.colorLight||g.ikColor.setOpacity(l.color,l.opacity)}:{}};return l.width&&(r.width=r.height=typeof l.width=="number"?`${l.width}px`:l.width),r});return(o,r)=>{const s=e.resolveComponent("el-tooltip"),c=e.resolveComponent("el-button");return o.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",k,[o.notip||!o.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":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning||l.type==="warning",primary:o.primary||l.type==="primary",success:o.success||l.type==="success",error:o.error||l.type==="error",active:o.active,disabled:o.disabled}]),style:e.normalizeStyle(n.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.name}`),style:e.normalizeStyle(n.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",y,[e.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,u)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,h)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.name),style:e.normalizeStyle(n.value)},null,6))],6)):(e.openBlock(),e.createBlock(s,{key:1,content:o.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":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning||l.type==="warning",primary:o.primary||l.type==="primary",success:o.success||l.type==="success",error:o.error||l.type==="error",active:o.active}]),style:e.normalizeStyle(n.value)},[t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.name}`),style:e.normalizeStyle(n.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",B,[e.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,w)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,b)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.name),style:e.normalizeStyle(n.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(c,{key:1,type:["warning","error"].includes(o.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1},8,["type"]))}}}),T="",d=p(m(_,[["__scopeId","data-v-7d95dbf5"]])),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(a){return(l,t)=>(e.openBlock(),e.createElementBlock("div",null,[a.showBg&&a.fullscreen?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(d),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(d),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),j="",S=m(z,[["__scopeId","data-v-79f49df8"]]),I={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(a){const l=a,t=e.useModel(a,"modelValue"),n=e.ref(l.fullscreen),o=()=>{n.value=!n.value},r=e.defineComponent({setup(){return()=>e.h(S,{showBg:l.showCloseBg,fullscreen:l.fullscreen})}});return(s,c)=>{const E=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(E,e.mergeProps({modelValue:t.value,"onUpdate:modelValue":c[0]||(c[0]=V=>t.value=V)},s.$attrs,{"close-icon":e.unref(r),class:`ik-base-dialog ${s.noHeader?"no-header":""} ${s.noFooter?"no-footer":""}`,fullscreen:n.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(s.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(s.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",I,[e.renderSlot(s.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(s.title),1)])]),s.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(d),{key:0,onClick:o,name:n.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:n.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:2},[s.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(s.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),D="",f=p($);i.IkBaseDialog=f,i.default=f,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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 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:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},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"?(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-1be337e4"]])),z={key:0,class:"exit-main-page-maximize"},S=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="",I=m(S,[["__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(I,{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 +1 @@
1
- .row-title[data-v-7d95dbf5]{display:flex}.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-1be337e4]{display:flex}.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}