iking-web-ui-pro 0.2.5 → 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.
- package/dist/IKDetailPreviewFiles/ik.index.es.js +409 -406
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +123 -120
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +358 -355
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +564 -561
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +125 -122
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +252 -249
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +129 -126
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +357 -354
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +196 -193
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +397 -394
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1122 -1119
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +293 -290
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +968 -965
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +148 -145
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +106 -103
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +530 -526
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +269 -266
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +50 -46
- package/dist/Provider/ik.index.umd.js +5 -5
- package/dist/index.es.js +7052 -7044
- package/dist/index.umd.js +36 -36
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
- package/dist/src/components/Provider/index.d.ts +19 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
4
|
-
if (a.install = (
|
|
5
|
-
for (const
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
for (const [
|
|
9
|
-
a[
|
|
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
|
-
},
|
|
12
|
-
const
|
|
13
|
-
for (const [
|
|
14
|
-
|
|
15
|
-
return
|
|
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__ */
|
|
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
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}), s =
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
65
|
+
l.push("rotateY(180deg)");
|
|
63
66
|
break;
|
|
64
67
|
case "vertical":
|
|
65
|
-
|
|
68
|
+
l.push("rotateX(180deg)");
|
|
66
69
|
break;
|
|
67
70
|
case "both":
|
|
68
|
-
|
|
71
|
+
l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
|
|
69
72
|
break;
|
|
70
73
|
}
|
|
71
|
-
|
|
74
|
+
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
72
75
|
const r = {
|
|
73
|
-
...
|
|
74
|
-
...
|
|
75
|
-
...
|
|
76
|
-
padding:
|
|
77
|
-
...
|
|
78
|
-
"--ik-color-icon-dark":
|
|
79
|
-
"--ik-color-icon-light":
|
|
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
|
|
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 (
|
|
85
|
-
const
|
|
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:
|
|
92
|
-
[
|
|
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 ||
|
|
98
|
-
primary: e.primary ||
|
|
99
|
-
success:
|
|
100
|
-
error: e.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:
|
|
107
|
+
style: v(u.value)
|
|
105
108
|
},
|
|
106
109
|
[
|
|
107
|
-
|
|
108
|
-
|
|
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:
|
|
113
|
-
style:
|
|
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
|
-
)) :
|
|
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
|
-
])) :
|
|
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:
|
|
131
|
-
style:
|
|
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(
|
|
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:
|
|
150
|
-
[
|
|
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 ||
|
|
156
|
-
primary:
|
|
157
|
-
success:
|
|
158
|
-
error: e.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:
|
|
164
|
+
style: v(u.value)
|
|
162
165
|
},
|
|
163
166
|
[
|
|
164
|
-
|
|
167
|
+
s.value === "iksig" ? (t(), i(
|
|
165
168
|
"i",
|
|
166
169
|
{
|
|
167
170
|
key: 0,
|
|
168
|
-
class:
|
|
169
|
-
style:
|
|
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
|
-
)) :
|
|
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
|
-
])) :
|
|
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:
|
|
187
|
-
style:
|
|
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(
|
|
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
|
-
|
|
207
|
-
|
|
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__ */
|
|
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__ */
|
|
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 (
|
|
237
|
+
return (n, o) => (t(), i("div", null, [
|
|
235
238
|
a.showBg && a.fullscreen ? (t(), i("div", U, [
|
|
236
|
-
V(
|
|
239
|
+
V(y($), {
|
|
237
240
|
name: "iksvg_guanbidanchuang",
|
|
238
241
|
title: "关闭",
|
|
239
242
|
size: 20,
|
|
240
243
|
error: ""
|
|
241
244
|
})
|
|
242
|
-
])) : (t(), p(
|
|
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__ */
|
|
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
|
|
274
|
-
|
|
275
|
-
},
|
|
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:
|
|
279
|
-
fullscreen:
|
|
281
|
+
showBg: n.showCloseBg,
|
|
282
|
+
fullscreen: n.fullscreen
|
|
280
283
|
});
|
|
281
284
|
}
|
|
282
285
|
});
|
|
283
|
-
return (
|
|
284
|
-
const
|
|
285
|
-
return t(), p(
|
|
286
|
-
modelValue:
|
|
287
|
-
"onUpdate:modelValue":
|
|
288
|
-
},
|
|
289
|
-
"close-icon":
|
|
290
|
-
class: `ik-base-dialog ${
|
|
291
|
-
fullscreen:
|
|
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
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
+
f(l.$slots, "header", {}, () => [
|
|
309
|
+
w(
|
|
310
|
+
B(l.title),
|
|
308
311
|
1
|
|
309
312
|
/* TEXT */
|
|
310
313
|
)
|
|
311
314
|
])
|
|
312
315
|
]),
|
|
313
|
-
|
|
316
|
+
l.$attrs.showClose ? (t(), p(y($), {
|
|
314
317
|
key: 0,
|
|
315
|
-
onClick:
|
|
316
|
-
name:
|
|
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:
|
|
319
|
-
}, null, 8, ["name", "title"])) :
|
|
321
|
+
title: e.value ? "退出全屏" : "全屏"
|
|
322
|
+
}, null, 8, ["name", "title"])) : z("v-if", !0)
|
|
320
323
|
]),
|
|
321
324
|
default: d(() => [
|
|
322
|
-
|
|
325
|
+
f(l.$slots, "default")
|
|
323
326
|
]),
|
|
324
327
|
_: 2
|
|
325
328
|
/* DYNAMIC */
|
|
326
329
|
}, [
|
|
327
|
-
|
|
330
|
+
l.$slots.footer ? {
|
|
328
331
|
name: "footer",
|
|
329
332
|
fn: d(() => [
|
|
330
|
-
|
|
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 =
|
|
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,
|
|
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-
|
|
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}
|