iking-web-ui-pro 0.3.0 → 0.3.2

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 (78) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +956 -942
  2. package/dist/IkApprovalProcessDetail/ik.index.umd.js +48 -48
  3. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  4. package/dist/IkBaseDialog/ik.index.es.js +210 -189
  5. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  6. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  7. package/dist/IkBtnSetting/ik.index.es.js +331 -310
  8. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  9. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  10. package/dist/IkCollapseCard/ik.index.es.js +195 -174
  11. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  12. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  13. package/dist/IkDescription/ik.index.es.js +1462 -1448
  14. package/dist/IkDescription/ik.index.umd.js +48 -48
  15. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +1441 -1427
  17. package/dist/IkDetailPreviewFiles/ik.index.umd.js +48 -48
  18. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  19. package/dist/IkExpandCollapse/ik.index.es.js +191 -170
  20. package/dist/IkExpandCollapse/ik.index.umd.js +1 -1
  21. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  22. package/dist/IkIconPicker/ik.index.es.js +229 -208
  23. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  24. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  25. package/dist/IkMonacoEditor/ik.index.es.js +449 -428
  26. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  27. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  28. package/dist/IkPageFull/ik.index.es.js +1440 -1419
  29. package/dist/IkPageFull/ik.index.umd.js +2 -2
  30. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPreviewFile/ik.index.es.js +1444 -1430
  32. package/dist/IkPreviewFile/ik.index.umd.js +48 -48
  33. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  34. package/dist/IkPreviewFileDialog/ik.index.es.js +1047 -1026
  35. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  36. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  37. package/dist/IkSchedule/ik.index.es.js +3041 -3020
  38. package/dist/IkSchedule/ik.index.umd.js +1 -1
  39. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  40. package/dist/IkSelectTag/ik.index.es.js +141 -130
  41. package/dist/IkSelectTag/ik.index.umd.js +1 -1
  42. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +276 -190
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  46. package/dist/IkStatu/ik.index.es.js +47 -38
  47. package/dist/IkStatu/ik.index.umd.js +1 -1
  48. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  49. package/dist/IkStatuOver/ik.index.es.js +114 -106
  50. package/dist/IkStatuOver/ik.index.umd.js +1 -1
  51. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  52. package/dist/IkSvgIcon/ik.index.es.js +169 -148
  53. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  54. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  55. package/dist/IkTaskResume/ik.index.es.js +23 -0
  56. package/dist/IkTaskResume/ik.index.umd.js +1 -0
  57. package/dist/IkUploadFile/ik.index.es.js +993 -972
  58. package/dist/IkUploadFile/ik.index.umd.js +47 -47
  59. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  60. package/dist/IkUploadImage/ik.index.es.js +522 -522
  61. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  62. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  63. package/dist/IkVerticalStepBar/ik.index.es.js +234 -213
  64. package/dist/IkVerticalStepBar/ik.index.umd.js +3 -3
  65. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  66. package/dist/iking-web-ui-pro.css +2 -2
  67. package/dist/index.es.js +14080 -14047
  68. package/dist/index.umd.js +86 -86
  69. package/dist/src/components/IkMonacoEditor/index.d.ts +12 -2
  70. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +12 -2
  71. package/dist/src/components/IkStatu/index.d.ts +3 -3
  72. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  73. package/dist/src/components/IkSvgIcon/index.d.ts +12 -2
  74. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +12 -2
  75. package/dist/src/components/IkTaskResume/index.d.ts +2 -0
  76. package/dist/src/components/IkTaskResume/src/index.vue.d.ts +2 -0
  77. package/dist/src/components/index.d.ts +1 -0
  78. package/package.json +1 -1
@@ -1,25 +1,22 @@
1
- import { defineComponent as g, computed as h, resolveComponent as k, openBlock as o, createElementBlock as n, normalizeClass as r, normalizeStyle as c, createCommentVNode as B, createElementVNode as f, createBlock as m, withCtx as v, createTextVNode as b, toDisplayString as w, createVNode as x, unref as _, mergeModels as V, useModel as S, ref as T, h as j, mergeProps as F, createSlots as D, renderSlot as p } from "vue";
2
- import { ikColor as N } from "iking-utils-pro";
3
- const $ = (s, u) => (s.install = (e) => {
4
- for (const a of [s, ...Object.values({})])
5
- e.component(a.name, a);
6
- }, s), z = (s, u) => {
7
- const e = s.__vccOpts || s;
8
- for (const [a, i] of u)
9
- e[a] = i;
10
- return e;
11
- }, E = {
12
- key: 0,
13
- class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
14
- }, H = {
1
+ import { defineComponent as k, computed as w, resolveComponent as _, openBlock as t, createElementBlock as n, Fragment as D, normalizeClass as c, normalizeStyle as v, createCommentVNode as C, createElementVNode as h, createBlock as b, withCtx as d, createTextVNode as B, toDisplayString as $, createVNode as F, unref as z, mergeModels as j, useModel as N, ref as E, h as H, mergeProps as O, createSlots as q, renderSlot as y } from "vue";
2
+ import { ikColor as L } from "iking-utils-pro";
3
+ const V = (o, u) => (o.install = (i) => {
4
+ for (const e of [o, ...Object.values({})])
5
+ i.component(e.name, e);
6
+ }, o), M = (o, u) => {
7
+ const i = o.__vccOpts || o;
8
+ for (const [e, s] of u)
9
+ i[e] = s;
10
+ return i;
11
+ }, W = {
15
12
  key: 1,
16
13
  class: "h-[1em] w-[1em]",
17
14
  "aria-hidden": "true"
18
- }, M = ["xlink:href"], O = ["src"], q = {
15
+ }, X = ["xlink:href"], Y = ["src"], P = {
19
16
  key: 1,
20
17
  class: "h-[1em] w-[1em]",
21
18
  "aria-hidden": "true"
22
- }, L = ["xlink:href"], W = ["src"], X = /* @__PURE__ */ g({
19
+ }, U = ["xlink:href"], A = ["src"], G = /* @__PURE__ */ k({
23
20
  name: "IkSvgIcon",
24
21
  __name: "index",
25
22
  props: {
@@ -45,11 +42,12 @@ const $ = (s, u) => (s.install = (e) => {
45
42
  warning: { type: Boolean },
46
43
  width: {}
47
44
  },
48
- setup(s) {
49
- const u = s, e = h(() => u), a = h(() => {
45
+ emits: ["click", "mouseenter", "mouseleave", "dblclick"],
46
+ setup(o, { emit: u }) {
47
+ const i = o, e = w(() => i), s = w(() => {
50
48
  const { name: l } = e.value;
51
49
  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";
52
- }), i = h(() => {
50
+ }), r = w(() => {
53
51
  const l = [];
54
52
  if (e.value.flip)
55
53
  switch (e.value.flip) {
@@ -64,143 +62,166 @@ const $ = (s, u) => (s.install = (e) => {
64
62
  break;
65
63
  }
66
64
  e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
67
- const t = {
65
+ const g = {
68
66
  pointerEvents: e.value.disabled ? "none" : "auto",
69
67
  ...e.value.color && { color: e.value.color },
70
68
  ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
71
69
  ...l.length && { transform: l.join(" ") },
72
70
  padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
73
- ...e.value.color && a.value !== "iksig" ? {
71
+ ...e.value.color && s.value !== "iksig" ? {
74
72
  "--ik-icon-deep-color": e.value.color,
75
- "--ik-icon-shallow-color": e.value.colorLight || N.setOpacity(e.value.color, e.value.opacity)
73
+ "--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
76
74
  } : {}
77
75
  };
78
- return e.value.width && (t.width = t.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), t;
79
- });
80
- return (l, t) => {
81
- const d = k("el-tooltip"), y = k("el-button");
82
- return e.value.tableIconType === "icon" || !e.value.tableIconType ? (o(), n("span", E, [
83
- e.value.notip || !e.value.title ? (o(), n(
84
- "i",
85
- {
86
- key: 0,
87
- class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
88
- [l.name]: a.value === "unocss",
89
- "show-bg": e.value.showBg || e.value.bg,
90
- default: e.value.size === "default",
91
- small: e.value.size === "small",
92
- big: e.value.size === "big",
93
- warning: e.value.warning || e.value.type === "warning",
94
- primary: e.value.primary || e.value.type === "primary",
95
- success: l.success || e.value.type === "success",
96
- error: e.value.error || e.value.type === "error",
97
- active: e.value.active,
98
- disabled: e.value.disabled
99
- }]),
100
- style: c(i.value)
101
- },
102
- [
103
- B(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
104
- a.value === "iksig" ? (o(), n(
105
- "i",
106
- {
107
- key: 0,
108
- class: r(`iksig ${e.value.name}`),
109
- style: c(i.value)
110
- },
111
- null,
112
- 6
113
- /* CLASS, STYLE */
114
- )) : a.value === "svg" ? (o(), n("svg", H, [
115
- f("use", {
116
- "xlink:href": `#${e.value.name}`
117
- }, null, 8, M)
118
- ])) : a.value === "img" ? (o(), n("img", {
119
- key: 2,
120
- src: e.value.name,
121
- class: "h-[1em] w-[1em]"
122
- }, null, 8, O)) : (o(), n(
123
- "i",
124
- {
125
- key: 3,
126
- class: r(e.value.name),
127
- style: c(i.value)
128
- },
129
- null,
130
- 6
131
- /* CLASS, STYLE */
132
- ))
133
- ],
134
- 6
135
- /* CLASS, STYLE */
136
- )) : (o(), m(d, {
137
- key: 1,
138
- content: e.value.title,
139
- placement: "top"
140
- }, {
141
- default: v(() => [
142
- f(
143
- "i",
144
- {
145
- class: r(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
146
- [l.name]: a.value === "unocss",
147
- "show-bg": e.value.showBg || e.value.bg,
148
- default: e.value.size === "default",
149
- small: e.value.size === "small",
150
- big: e.value.size === "big",
151
- warning: e.value.warning || e.value.type === "warning",
152
- primary: l.primary || e.value.type === "primary",
153
- success: l.success || e.value.type === "success",
154
- error: e.value.error || e.value.type === "error",
155
- active: e.value.active
156
- }]),
157
- style: c(i.value)
158
- },
159
- [
160
- a.value === "iksig" ? (o(), n(
161
- "i",
162
- {
163
- key: 0,
164
- class: r(`iksig ${e.value.name}`),
165
- style: c(i.value)
166
- },
167
- null,
168
- 6
169
- /* CLASS, STYLE */
170
- )) : a.value === "svg" ? (o(), n("svg", q, [
171
- f("use", {
172
- "xlink:href": `#${e.value.name}`
173
- }, null, 8, L)
174
- ])) : a.value === "img" ? (o(), n("img", {
175
- key: 2,
176
- src: e.value.name,
177
- class: "h-[1em] w-[1em]"
178
- }, null, 8, W)) : (o(), n(
179
- "i",
180
- {
181
- key: 3,
182
- class: r(e.value.name),
183
- style: c(i.value)
184
- },
185
- null,
186
- 6
187
- /* CLASS, STYLE */
188
- ))
189
- ],
190
- 6
191
- /* CLASS, STYLE */
192
- )
193
- ]),
194
- _: 1
195
- /* STABLE */
196
- }, 8, ["content"]))
197
- ])) : (o(), m(y, {
76
+ return e.value.width && (g.width = g.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), g;
77
+ }), a = u, p = (l) => {
78
+ a("click", l);
79
+ }, f = (l) => {
80
+ a("mouseenter", l);
81
+ }, m = (l) => {
82
+ a("mouseleave", l);
83
+ }, I = (l) => {
84
+ a("dblclick", l);
85
+ };
86
+ return (l, g) => {
87
+ const x = _("el-tooltip"), T = _("el-button");
88
+ return e.value.tableIconType === "icon" || !e.value.tableIconType ? (t(), n(
89
+ D,
90
+ { key: 0 },
91
+ [
92
+ e.value.notip || !e.value.title ? (t(), n(
93
+ "span",
94
+ {
95
+ key: 0,
96
+ class: c(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
97
+ [l.name]: s.value === "unocss",
98
+ "show-bg": e.value.showBg || e.value.bg,
99
+ default: e.value.size === "default",
100
+ small: e.value.size === "small",
101
+ big: e.value.size === "big",
102
+ warning: e.value.warning || e.value.type === "warning",
103
+ primary: e.value.primary || e.value.type === "primary",
104
+ success: l.success || e.value.type === "success",
105
+ error: e.value.error || e.value.type === "error",
106
+ active: e.value.active,
107
+ disabled: e.value.disabled
108
+ }]),
109
+ style: v(r.value),
110
+ onClick: p,
111
+ onDblclick: I,
112
+ onMouseenter: f,
113
+ onMouseleave: m
114
+ },
115
+ [
116
+ C(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
117
+ s.value === "iksig" ? (t(), n(
118
+ "i",
119
+ {
120
+ key: 0,
121
+ class: c(`iksig ${e.value.name}`),
122
+ style: v(r.value)
123
+ },
124
+ null,
125
+ 6
126
+ /* CLASS, STYLE */
127
+ )) : s.value === "svg" ? (t(), n("svg", W, [
128
+ h("use", {
129
+ "xlink:href": `#${e.value.name}`
130
+ }, null, 8, X)
131
+ ])) : s.value === "img" ? (t(), n("img", {
132
+ key: 2,
133
+ src: e.value.name,
134
+ class: "h-[1em] w-[1em]"
135
+ }, null, 8, Y)) : (t(), n(
136
+ "i",
137
+ {
138
+ key: 3,
139
+ class: c(e.value.name),
140
+ style: v(r.value)
141
+ },
142
+ null,
143
+ 6
144
+ /* CLASS, STYLE */
145
+ ))
146
+ ],
147
+ 38
148
+ /* CLASS, STYLE, NEED_HYDRATION */
149
+ )) : (t(), b(x, {
150
+ key: 1,
151
+ content: e.value.title,
152
+ placement: "top",
153
+ "hide-after": 0
154
+ }, {
155
+ default: d(() => [
156
+ h(
157
+ "span",
158
+ {
159
+ class: c(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
160
+ [l.name]: s.value === "unocss",
161
+ "show-bg": e.value.showBg || e.value.bg,
162
+ default: e.value.size === "default",
163
+ small: e.value.size === "small",
164
+ big: e.value.size === "big",
165
+ warning: e.value.warning || e.value.type === "warning",
166
+ primary: l.primary || e.value.type === "primary",
167
+ success: l.success || e.value.type === "success",
168
+ error: e.value.error || e.value.type === "error",
169
+ active: e.value.active
170
+ }]),
171
+ style: v(r.value),
172
+ onClick: p,
173
+ onDblclick: I,
174
+ onMouseenter: f,
175
+ onMouseleave: m
176
+ },
177
+ [
178
+ s.value === "iksig" ? (t(), n(
179
+ "i",
180
+ {
181
+ key: 0,
182
+ class: c(`iksig ${e.value.name}`),
183
+ style: v(r.value)
184
+ },
185
+ null,
186
+ 6
187
+ /* CLASS, STYLE */
188
+ )) : s.value === "svg" ? (t(), n("svg", P, [
189
+ h("use", {
190
+ "xlink:href": `#${e.value.name}`
191
+ }, null, 8, U)
192
+ ])) : s.value === "img" ? (t(), n("img", {
193
+ key: 2,
194
+ src: e.value.name,
195
+ class: "h-[1em] w-[1em]"
196
+ }, null, 8, A)) : (t(), n(
197
+ "i",
198
+ {
199
+ key: 3,
200
+ class: c(e.value.name),
201
+ style: v(r.value)
202
+ },
203
+ null,
204
+ 6
205
+ /* CLASS, STYLE */
206
+ ))
207
+ ],
208
+ 38
209
+ /* CLASS, STYLE, NEED_HYDRATION */
210
+ )
211
+ ]),
212
+ _: 1
213
+ /* STABLE */
214
+ }, 8, ["content"]))
215
+ ],
216
+ 64
217
+ /* STABLE_FRAGMENT */
218
+ )) : (t(), b(T, {
198
219
  key: 1,
199
220
  type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
200
221
  }, {
201
- default: v(() => [
202
- b(
203
- w(e.value.title),
222
+ default: d(() => [
223
+ B(
224
+ $(e.value.title),
204
225
  1
205
226
  /* TEXT */
206
227
  )
@@ -210,7 +231,7 @@ const $ = (s, u) => (s.install = (e) => {
210
231
  }, 8, ["type"]));
211
232
  };
212
233
  }
213
- }), Y = /* @__PURE__ */ z(X, [["__scopeId", "data-v-bd4bda5f"]]), I = $(Y), P = /* @__PURE__ */ g({
234
+ }), J = /* @__PURE__ */ M(G, [["__scopeId", "data-v-c7804024"]]), S = V(J), K = /* @__PURE__ */ k({
214
235
  __name: "CloseIcon",
215
236
  props: {
216
237
  showBg: {
@@ -222,14 +243,14 @@ const $ = (s, u) => (s.install = (e) => {
222
243
  default: !1
223
244
  }
224
245
  },
225
- setup(s) {
226
- return (u, e) => (o(), n(
246
+ setup(o) {
247
+ return (u, i) => (t(), n(
227
248
  "div",
228
249
  {
229
- class: r({ "exit-main-page-maximize": s.showBg && s.fullscreen })
250
+ class: c({ "exit-main-page-maximize": o.showBg && o.fullscreen })
230
251
  },
231
252
  [
232
- x(_(I), {
253
+ F(z(S), {
233
254
  name: "iksvg_guanbidanchuang",
234
255
  title: "关闭",
235
256
  size: 20,
@@ -240,9 +261,9 @@ const $ = (s, u) => (s.install = (e) => {
240
261
  /* CLASS */
241
262
  ));
242
263
  }
243
- }), U = /* @__PURE__ */ z(P, [["__scopeId", "data-v-ddb34200"]]), A = { class: "base-header" }, G = /* @__PURE__ */ g({
264
+ }), Q = /* @__PURE__ */ M(K, [["__scopeId", "data-v-ddb34200"]]), R = { class: "base-header" }, Z = /* @__PURE__ */ k({
244
265
  __name: "IkBaseDialog",
245
- props: /* @__PURE__ */ V({
266
+ props: /* @__PURE__ */ j({
246
267
  title: { default: "" },
247
268
  cancelText: { default: "取消" },
248
269
  confirmText: { default: "确认" },
@@ -260,74 +281,74 @@ const $ = (s, u) => (s.install = (e) => {
260
281
  modelModifiers: {}
261
282
  }),
262
283
  emits: ["update:modelValue"],
263
- setup(s) {
264
- const u = s, e = S(s, "modelValue"), a = T(u.fullscreen), i = () => {
265
- a.value = !a.value;
266
- }, l = g({
284
+ setup(o) {
285
+ const u = o, i = N(o, "modelValue"), e = E(u.fullscreen), s = () => {
286
+ e.value = !e.value;
287
+ }, r = k({
267
288
  setup() {
268
- return () => j(U, {
289
+ return () => H(Q, {
269
290
  showBg: u.showCloseBg,
270
291
  fullscreen: u.fullscreen
271
292
  });
272
293
  }
273
294
  });
274
- return (t, d) => {
275
- const y = k("el-dialog");
276
- return o(), m(y, F({
277
- modelValue: e.value,
278
- "onUpdate:modelValue": d[0] || (d[0] = (C) => e.value = C),
295
+ return (a, p) => {
296
+ const f = _("el-dialog");
297
+ return t(), b(f, O({
298
+ modelValue: i.value,
299
+ "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
279
300
  "align-center": ""
280
- }, t.$attrs, {
281
- "close-icon": _(l),
282
- class: `ik-base-dialog ${t.noHeader ? "no-header" : ""} ${t.noFooter ? "no-footer" : ""}`,
283
- fullscreen: a.value,
301
+ }, a.$attrs, {
302
+ "close-icon": z(r),
303
+ class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
304
+ fullscreen: e.value,
284
305
  "modal-class": "baseDialog"
285
- }), D({
286
- icon: v(() => [
287
- p(t.$slots, "title", {}, () => [
288
- b(
289
- w(t.title),
306
+ }), q({
307
+ icon: d(() => [
308
+ y(a.$slots, "title", {}, () => [
309
+ B(
310
+ $(a.title),
290
311
  1
291
312
  /* TEXT */
292
313
  )
293
314
  ])
294
315
  ]),
295
- header: v(() => [
296
- f("div", A, [
297
- p(t.$slots, "header", {}, () => [
298
- b(
299
- w(t.title),
316
+ header: d(() => [
317
+ h("div", R, [
318
+ y(a.$slots, "header", {}, () => [
319
+ B(
320
+ $(a.title),
300
321
  1
301
322
  /* TEXT */
302
323
  )
303
324
  ])
304
325
  ]),
305
- t.$attrs.showClose ? (o(), m(_(I), {
326
+ a.$attrs.showClose ? (t(), b(z(S), {
306
327
  key: 0,
307
- onClick: i,
308
- name: a.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
328
+ onClick: s,
329
+ name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
309
330
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
310
- title: a.value ? "退出全屏" : "全屏"
311
- }, null, 8, ["name", "title"])) : B("v-if", !0)
331
+ title: e.value ? "退出全屏" : "全屏"
332
+ }, null, 8, ["name", "title"])) : C("v-if", !0)
312
333
  ]),
313
- default: v(() => [
314
- p(t.$slots, "default")
334
+ default: d(() => [
335
+ y(a.$slots, "default")
315
336
  ]),
316
337
  _: 2
317
338
  /* DYNAMIC */
318
339
  }, [
319
- t.$slots.footer ? {
340
+ a.$slots.footer ? {
320
341
  name: "footer",
321
- fn: v(() => [
322
- p(t.$slots, "footer")
342
+ fn: d(() => [
343
+ y(a.$slots, "footer")
323
344
  ]),
324
345
  key: "0"
325
346
  } : void 0
326
347
  ]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
327
348
  };
328
349
  }
329
- }), Q = $(G);
350
+ }), ae = V(Z);
330
351
  export {
331
- Q as IkBaseDialog,
332
- Q as default
352
+ ae as IkBaseDialog,
353
+ ae as default
333
354
  };
@@ -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 d=(n,r)=>(n.install=l=>{for(const t of[n,...Object.values({})])l.component(t.name,t)},n),p=(n,r)=>{const l=n.__vccOpts||n;for(const[t,s]of r)l[t]=s;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"],B=["src"],v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],w=["src"],m=d(p(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 r=n,l=e.computed(()=>r),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"}),s=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-icon-deep-color":l.value.color,"--ik-icon-shallow-color":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(s.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(s.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,B)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(s.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(s.value)},[t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(s.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",v,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,_)])):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(s.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"]))}}}),[["__scopeId","data-v-bd4bda5f"]])),b=p(e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(n){return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"exit-main-page-maximize":n.showBg&&n.fullscreen})},[e.createVNode(e.unref(m),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})],2))}}),[["__scopeId","data-v-ddb34200"]]),C={class:"base-header"},f=d(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 r=n,l=e.useModel(n,"modelValue"),t=e.ref(r.fullscreen),s=()=>{t.value=!t.value},o=e.defineComponent({setup(){return()=>e.h(b,{showBg:r.showCloseBg,fullscreen:r.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]=z=>l.value=z),"align-center":""},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",C,[e.renderSlot(a.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),a.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(m),{key:0,onClick:s,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"])}}}));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,B){"use strict";const f=(a,r)=>(a.install=s=>{for(const l of[a,...Object.values({})])s.component(l.name,l)},a),g=(a,r)=>{const s=a.__vccOpts||a;for(const[l,n]of r)s[l]=n;return s},v={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},_=["xlink:href"],w=["src"],b={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},C=["xlink:href"],z=["src"],k=f(g(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","mouseenter","mouseleave","dblclick"],setup(a,{emit:r}){const s=a,l=e.computed(()=>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"}),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 m={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&&n.value!=="iksig"?{"--ik-icon-deep-color":l.value.color,"--ik-icon-shallow-color":l.value.colorLight||B.ikColor.setOpacity(l.value.color,l.value.opacity)}:{}};return l.value.width&&(m.width=m.height=typeof l.value.width=="number"?`${l.value.width}px`:l.value.width),m}),t=r,u=o=>{t("click",o)},d=o=>{t("mouseenter",o)},p=o=>{t("mouseleave",o)},h=o=>{t("dblclick",o)};return(o,m)=>{const I=e.resolveComponent("el-tooltip"),x=e.resolveComponent("el-button");return l.value.tableIconType==="icon"||!l.value.tableIconType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.value.notip||!l.value.title?(e.openBlock(),e.createElementBlock("span",{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(c.value),onClick:u,onDblclick:h,onMouseenter:d,onMouseleave:p},[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(c.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",v,[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,w)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(c.value)},null,6))],38)):(e.openBlock(),e.createBlock(I,{key:1,content:l.value.title,placement:"top","hide-after":0},{default:e.withCtx(()=>[e.createElementVNode("span",{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(c.value),onClick:u,onDblclick:h,onMouseenter:d,onMouseleave:p},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${l.value.name}`),style:e.normalizeStyle(c.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",b,[e.createElementVNode("use",{"xlink:href":`#${l.value.name}`},null,8,C)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:l.value.name,class:"h-[1em] w-[1em]"},null,8,z)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(l.value.name),style:e.normalizeStyle(c.value)},null,6))],38)]),_:1},8,["content"]))],64)):(e.openBlock(),e.createBlock(x,{key:1,type:["warning","error"].includes(l.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value.title),1)]),_:1},8,["type"]))}}}),[["__scopeId","data-v-c7804024"]])),S=g(e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(a){return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"exit-main-page-maximize":a.showBg&&a.fullscreen})},[e.createVNode(e.unref(k),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})],2))}}),[["__scopeId","data-v-ddb34200"]]),$={class:"base-header"},y=f(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 r=a,s=e.useModel(a,"modelValue"),l=e.ref(r.fullscreen),n=()=>{l.value=!l.value},c=e.defineComponent({setup(){return()=>e.h(S,{showBg:r.showCloseBg,fullscreen:r.fullscreen})}});return(t,u)=>{const d=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(d,e.mergeProps({modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),"align-center":""},t.$attrs,{"close-icon":e.unref(c),class:`ik-base-dialog ${t.noHeader?"no-header":""} ${t.noFooter?"no-footer":""}`,fullscreen:l.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",$,[e.renderSlot(t.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),t.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(k),{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(t.$slots,"default")]),_:2},[t.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}));i.IkBaseDialog=y,i.default=y,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .row-title[data-v-bd4bda5f]{display:flex}.ik-svg-icon.ik-icon-span[data-v-bd4bda5f]:not(:first-child){margin-left:var(--ik-margin-s-8)}.exit-main-page-maximize[data-v-ddb34200]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-icon-bg);border-radius:50%}.exit-main-page-maximize span[data-v-ddb34200]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-ddb34200]{--ik-icon-deep-color: var(--ik-bgicon-deep-color);--ik-icon-shallow-color: var(--ik-bgicon-shallow-color)}.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-c7804024]{display:flex}.ik-svg-icon.ik-icon-span[data-v-c7804024]:not(:first-child){margin-left:var(--ik-margin-s-8)}.exit-main-page-maximize[data-v-ddb34200]{position:fixed;top:-40px;right:-40px;z-index:1000;width:80px;height:80px;cursor:pointer;background-color:var(--ik-icon-bg);border-radius:50%}.exit-main-page-maximize span[data-v-ddb34200]{position:absolute;top:47px;right:47px}.ik-svg-icon.ik-icon[data-v-ddb34200]{--ik-icon-deep-color: var(--ik-bgicon-deep-color);--ik-icon-shallow-color: var(--ik-bgicon-shallow-color)}.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}