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