ik-next-ui 0.0.13 → 0.0.15
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/IkApprovalProcess/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +1 -1
- package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +694 -656
- package/dist/IkBaseDialog/ik-next-ui.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +154 -116
- package/dist/IkCollapseCard/ik-next-ui.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +163 -125
- package/dist/IkDescription/ik-next-ui.css +1 -1
- package/dist/IkDescription/ik.index.es.js +610 -572
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +805 -767
- package/dist/IkIconPicker/ik-next-ui.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +180 -142
- package/dist/IkImageUploadEditor/ik.index.es.js +1084 -1084
- package/dist/IkMonacoEditor/ik-next-ui.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +418 -380
- package/dist/IkPickerUser/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +644 -606
- package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +658 -620
- package/dist/IkRadioGroup/ik-next-ui.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +140 -102
- package/dist/IkSideText/ik-next-ui.css +1 -1
- package/dist/IkSideText/ik.index.es.js +131 -93
- package/dist/IkSvgIcon/ik-next-ui.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +139 -101
- package/dist/IkUploadFile/ik-next-ui.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +880 -839
- package/dist/IkUploadImage/ik-next-ui.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +261 -223
- package/dist/IkVerticalStepBar/ik-next-ui.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +140 -102
- package/dist/Provider/ik.index.es.js +13 -19
- package/dist/build/version.json.d.ts +1 -1
- package/dist/ik-next-ui.css +2 -2
- package/dist/index.es.js +10093 -10097
- package/dist/index.umd.js +103 -103
- package/dist/src/components/IkDragList/index.d.ts +3 -3
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
- package/dist/src/components/IkImage/index.d.ts +15 -15
- package/dist/src/components/IkImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/index.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +1 -1
- package/dist/src/components/IkSideText/index.d.ts +1 -1
- package/dist/src/components/IkTooltip/index.d.ts +3 -3
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkTree/IkTree.vue.d.ts +2532 -788
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +1 -0
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +12 -17
- package/dist/src/components/Provider/index.d.ts +30 -77
- package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
- package/dist/src/iking-ui/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/components/IkBtnContent/index.d.ts +0 -34
- package/dist/src/components/IkBtnContent/src/index.d.ts +0 -36
- package/dist/src/components/IkTree/index.d.ts +0 -12403
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject as z, computed as c, defineComponent as
|
|
1
|
+
import { inject as z, computed as c, defineComponent as C, resolveComponent as B, openBlock as a, createBlock as g, withCtx as x, renderSlot as W, createElementBlock as d, normalizeStyle as y, normalizeClass as $, unref as k, createElementVNode as f, createCommentVNode as w, Fragment as U, ref as E, createVNode as F, toDisplayString as S, useCssVars as G, createTextVNode as P } from "vue";
|
|
2
2
|
import { ikColor as R } from "iking-utils-pro";
|
|
3
3
|
import { Icon as N } from "@iconify/vue";
|
|
4
4
|
import { UseImage as A } from "@vueuse/components";
|
|
5
|
-
const
|
|
6
|
-
for (const
|
|
7
|
-
t.component(
|
|
5
|
+
const I = (e, o) => (e.install = (t) => {
|
|
6
|
+
for (const n of [e, ...Object.values({})])
|
|
7
|
+
t.component(n.name, n);
|
|
8
8
|
}, e);
|
|
9
9
|
function O(...e) {
|
|
10
10
|
const o = [];
|
|
@@ -13,18 +13,18 @@ function O(...e) {
|
|
|
13
13
|
if (typeof t == "string")
|
|
14
14
|
o.push(t);
|
|
15
15
|
else if (Array.isArray(t)) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const n = O(...t);
|
|
17
|
+
n && o.push(n);
|
|
18
18
|
} else if (typeof t == "object")
|
|
19
|
-
for (const [
|
|
20
|
-
s && o.push(
|
|
19
|
+
for (const [n, s] of Object.entries(t))
|
|
20
|
+
s && o.push(n);
|
|
21
21
|
}
|
|
22
22
|
return o.join(" ");
|
|
23
23
|
}
|
|
24
24
|
const T = (e, o) => {
|
|
25
25
|
const t = e.__vccOpts || e;
|
|
26
|
-
for (const [
|
|
27
|
-
t[
|
|
26
|
+
for (const [n, s] of o)
|
|
27
|
+
t[n] = s;
|
|
28
28
|
return t;
|
|
29
29
|
}, q = (e, o) => {
|
|
30
30
|
if (!o) return "";
|
|
@@ -86,23 +86,62 @@ const T = (e, o) => {
|
|
|
86
86
|
"flv",
|
|
87
87
|
"tls"
|
|
88
88
|
], V = (e) => {
|
|
89
|
-
const o = z("loadUrl"), t = c(() => e.loadUrl || e.fileUrl || (o == null ? void 0 : o.value)),
|
|
89
|
+
const o = z("loadUrl"), t = c(() => e.loadUrl || e.fileUrl || (o == null ? void 0 : o.value)), n = z("uploadUrl"), s = c(() => e.action || e.uploadUrl || (n == null ? void 0 : n.value)), i = z("token"), h = c(() => e.token || (i == null ? void 0 : i.value)), u = z("onlyofficeConfig"), m = c(() => e.onlyofficeConfig || (u == null ? void 0 : u.value)), v = z("userInfo"), b = c(() => e.userInfo || (v == null ? void 0 : v.value)), p = [...M, ...M.map((l) => l.toLocaleUpperCase())];
|
|
90
90
|
return {
|
|
91
91
|
cLoadUrl: t,
|
|
92
92
|
cUploadUrl: s,
|
|
93
93
|
cToken: h,
|
|
94
94
|
cOnlyofficeConfig: m,
|
|
95
95
|
cUserInfo: b,
|
|
96
|
-
cOnlyofficePreviewType:
|
|
96
|
+
cOnlyofficePreviewType: p,
|
|
97
97
|
cHeaders: {
|
|
98
98
|
Authorization: h.value
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
}, D = {
|
|
101
|
+
}, D = /* @__PURE__ */ C({
|
|
102
|
+
__name: "index",
|
|
103
|
+
props: {
|
|
104
|
+
effect: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: "dark"
|
|
107
|
+
},
|
|
108
|
+
content: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: ""
|
|
111
|
+
},
|
|
112
|
+
text: {
|
|
113
|
+
type: String,
|
|
114
|
+
default: ""
|
|
115
|
+
},
|
|
116
|
+
placement: {
|
|
117
|
+
type: String,
|
|
118
|
+
default: "top"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
setup(e) {
|
|
122
|
+
const o = e, t = c(() => o.effect);
|
|
123
|
+
return (n, s) => {
|
|
124
|
+
const i = B("el-tooltip");
|
|
125
|
+
return a(), g(i, {
|
|
126
|
+
class: "gl-tooltip",
|
|
127
|
+
effect: t.value,
|
|
128
|
+
content: e.text || e.content,
|
|
129
|
+
placement: e.placement,
|
|
130
|
+
enterable: !1
|
|
131
|
+
}, {
|
|
132
|
+
default: x(() => [
|
|
133
|
+
W(n.$slots, "default")
|
|
134
|
+
]),
|
|
135
|
+
_: 3
|
|
136
|
+
/* FORWARDED */
|
|
137
|
+
}, 8, ["effect", "content", "placement"]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}), H = I(D), J = {
|
|
102
141
|
key: 2,
|
|
103
142
|
class: "shrink-0 size-inherit",
|
|
104
143
|
"aria-hidden": "true"
|
|
105
|
-
},
|
|
144
|
+
}, K = ["xlink:href"], Q = ["xlink:href"], X = ["size"], Y = ["xlink:href"], Z = ["xlink:href"], _ = /* @__PURE__ */ C({
|
|
106
145
|
name: "IkSvgIcon",
|
|
107
146
|
__name: "index",
|
|
108
147
|
props: {
|
|
@@ -125,11 +164,11 @@ const T = (e, o) => {
|
|
|
125
164
|
},
|
|
126
165
|
emits: ["click"],
|
|
127
166
|
setup(e, { emit: o }) {
|
|
128
|
-
const t = e,
|
|
167
|
+
const t = e, n = o, s = c(() => t.danger ? "danger" : t.error ? "error" : t.type), i = c(() => {
|
|
129
168
|
if (!t.name)
|
|
130
169
|
return;
|
|
131
|
-
const
|
|
132
|
-
return /^https?:\/\//.test(t.name) ||
|
|
170
|
+
const l = (r) => /^\.{1,2}\//.test(r) || r.startsWith("/") || r.includes("/");
|
|
171
|
+
return /^https?:\/\//.test(t.name) || l(t.name) ? "img" : t.name.startsWith("iksvg_") ? "two-color-svg" : /i-[^:]+:[^:]+/.test(t.name) || t.name.startsWith("ik") ? "unocss" : t.name.includes(":") ? "iconify" : "svg";
|
|
133
172
|
}), h = {
|
|
134
173
|
big: 24,
|
|
135
174
|
default: 22,
|
|
@@ -139,7 +178,7 @@ const T = (e, o) => {
|
|
|
139
178
|
return t.size ? h[t.size] || t.size : 18;
|
|
140
179
|
}
|
|
141
180
|
const m = c(() => {
|
|
142
|
-
const
|
|
181
|
+
const l = u(), r = typeof l == "number" ? `${l}px` : l;
|
|
143
182
|
return {
|
|
144
183
|
width: r,
|
|
145
184
|
height: r,
|
|
@@ -152,36 +191,35 @@ const T = (e, o) => {
|
|
|
152
191
|
height: r
|
|
153
192
|
};
|
|
154
193
|
});
|
|
155
|
-
function b(
|
|
156
|
-
t.onClick ? t.onClick(
|
|
194
|
+
function b(l) {
|
|
195
|
+
t.onClick ? t.onClick(l) : n("click", l);
|
|
157
196
|
}
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
197
|
+
const p = c(() => {
|
|
198
|
+
if (i.value !== "two-color-svg")
|
|
160
199
|
return {};
|
|
161
|
-
const
|
|
200
|
+
const l = {};
|
|
162
201
|
if (t.disabled)
|
|
163
|
-
return
|
|
164
|
-
if (t.deepColor && (
|
|
202
|
+
return l["--ik-icon-deep-color"] = "var(--ik-icon-deep-disabled)", l["--ik-icon-shallow-color"] = "var(--ik-icon-shallow-disabled)", l;
|
|
203
|
+
if (t.deepColor && (l["--ik-icon-deep-color"] = t.deepColor), t.shallowColor && (l["--ik-icon-shallow-color"] = t.shallowColor), t.colorMode !== "auto")
|
|
165
204
|
switch (t.colorMode) {
|
|
166
205
|
case "primary":
|
|
167
|
-
t.deepColor || (
|
|
206
|
+
t.deepColor || (l["--ik-icon-deep-color"] = "var(--ik-color-primary)"), t.shallowColor || (l["--ik-icon-shallow-color"] = "var(--ik-primary-light-1, color-mix(in srgb, var(--ik-color-primary) 30%, white))");
|
|
168
207
|
break;
|
|
169
208
|
case "deep":
|
|
170
|
-
t.shallowColor || (
|
|
209
|
+
t.shallowColor || (l["--ik-icon-shallow-color"] = l["--ik-icon-deep-color"] || t.deepColor || "var(--ik-icon-deep-color)");
|
|
171
210
|
break;
|
|
172
211
|
case "shallow":
|
|
173
|
-
t.deepColor || (
|
|
212
|
+
t.deepColor || (l["--ik-icon-deep-color"] = l["--ik-icon-shallow-color"] || t.shallowColor || "var(--ik-icon-shallow-color)");
|
|
174
213
|
break;
|
|
175
214
|
}
|
|
176
|
-
return t.active && s.value !== "default" && !t.deepColor && !t.shallowColor && t.colorMode === "auto" && (
|
|
215
|
+
return t.active && s.value !== "default" && !t.deepColor && !t.shallowColor && t.colorMode === "auto" && (l["--ik-icon-deep-color"] = `var(--ik-icon-${s.value}-deep-active)`, l["--ik-icon-shallow-color"] = `var(--ik-icon-${s.value}-shallow-active)`), l;
|
|
177
216
|
});
|
|
178
|
-
return (
|
|
217
|
+
return (l, r) => {
|
|
179
218
|
var j;
|
|
180
|
-
const W = S("IkTooltip");
|
|
181
219
|
return a(), d(
|
|
182
220
|
"i",
|
|
183
221
|
{
|
|
184
|
-
class:
|
|
222
|
+
class: $(k(O)(
|
|
185
223
|
"ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
|
|
186
224
|
t.class,
|
|
187
225
|
e.showBg ? "bg" : "",
|
|
@@ -191,51 +229,51 @@ const T = (e, o) => {
|
|
|
191
229
|
e.unMargin ? "un-margin" : "margin",
|
|
192
230
|
e.hover ? "is-hover" : ""
|
|
193
231
|
)),
|
|
194
|
-
style:
|
|
232
|
+
style: y(e.showBg ? v.value : m.value),
|
|
195
233
|
onClick: b
|
|
196
234
|
},
|
|
197
235
|
[
|
|
198
|
-
e.title ? (a(), g(
|
|
236
|
+
e.title ? (a(), g(k(H), {
|
|
199
237
|
key: 0,
|
|
200
238
|
text: e.title
|
|
201
239
|
}, {
|
|
202
240
|
default: x(() => {
|
|
203
241
|
var L;
|
|
204
242
|
return [
|
|
205
|
-
|
|
243
|
+
i.value === "unocss" ? (a(), d(
|
|
206
244
|
"i",
|
|
207
245
|
{
|
|
208
246
|
key: 0,
|
|
209
|
-
class:
|
|
210
|
-
style:
|
|
247
|
+
class: $(["iconfont shrink-0 size-inherit", `${e.name} ${(L = e.name) == null ? void 0 : L.split("_")[0]}`]),
|
|
248
|
+
style: y({ ...p.value, ...e.showBg ? m.value : {} })
|
|
211
249
|
},
|
|
212
250
|
null,
|
|
213
251
|
6
|
|
214
252
|
/* CLASS, STYLE */
|
|
215
|
-
)) :
|
|
253
|
+
)) : i.value === "iconify" ? (a(), g(k(N), {
|
|
216
254
|
key: 1,
|
|
217
255
|
icon: e.name,
|
|
218
256
|
class: "shrink-0 size-inherit"
|
|
219
|
-
}, null, 8, ["icon"])) :
|
|
257
|
+
}, null, 8, ["icon"])) : i.value === "svg" ? (a(), d("svg", J, [
|
|
220
258
|
f("use", {
|
|
221
259
|
"xlink:href": `#icon-${e.name}`
|
|
222
|
-
}, null, 8,
|
|
223
|
-
])) :
|
|
260
|
+
}, null, 8, K)
|
|
261
|
+
])) : i.value === "two-color-svg" ? (a(), d(
|
|
224
262
|
"svg",
|
|
225
263
|
{
|
|
226
264
|
key: 3,
|
|
227
265
|
class: "two-color-icon shrink-0 size-inherit",
|
|
228
|
-
style:
|
|
266
|
+
style: y(p.value),
|
|
229
267
|
"aria-hidden": "true"
|
|
230
268
|
},
|
|
231
269
|
[
|
|
232
270
|
f("use", {
|
|
233
271
|
"xlink:href": `#${e.name}`
|
|
234
|
-
}, null, 8,
|
|
272
|
+
}, null, 8, Q)
|
|
235
273
|
],
|
|
236
274
|
4
|
|
237
275
|
/* STYLE */
|
|
238
|
-
)) :
|
|
276
|
+
)) : i.value === "img" ? (a(), g(k(A), {
|
|
239
277
|
key: 4,
|
|
240
278
|
src: e.name,
|
|
241
279
|
class: "shrink-0"
|
|
@@ -266,24 +304,24 @@ const T = (e, o) => {
|
|
|
266
304
|
_: 1
|
|
267
305
|
/* STABLE */
|
|
268
306
|
}, 8, ["text"])) : (a(), d(
|
|
269
|
-
|
|
307
|
+
U,
|
|
270
308
|
{ key: 1 },
|
|
271
309
|
[
|
|
272
|
-
|
|
310
|
+
i.value === "unocss" ? (a(), d(
|
|
273
311
|
"i",
|
|
274
312
|
{
|
|
275
313
|
key: 0,
|
|
276
|
-
class:
|
|
277
|
-
style:
|
|
314
|
+
class: $(["iconfont shrink-0 size-inherit", `${e.name} ${(j = e.name) == null ? void 0 : j.split("_")[0]}`]),
|
|
315
|
+
style: y({ ...p.value, ...e.showBg ? m.value : {} })
|
|
278
316
|
},
|
|
279
317
|
null,
|
|
280
318
|
6
|
|
281
319
|
/* CLASS, STYLE */
|
|
282
|
-
)) :
|
|
320
|
+
)) : i.value === "iconify" ? (a(), g(k(N), {
|
|
283
321
|
key: 1,
|
|
284
322
|
icon: e.name,
|
|
285
323
|
class: "shrink-0 size-inherit"
|
|
286
|
-
}, null, 8, ["icon"])) :
|
|
324
|
+
}, null, 8, ["icon"])) : i.value === "svg" ? (a(), d("svg", {
|
|
287
325
|
key: 2,
|
|
288
326
|
class: "shrink-0 size-inherit",
|
|
289
327
|
size: e.size,
|
|
@@ -291,23 +329,23 @@ const T = (e, o) => {
|
|
|
291
329
|
}, [
|
|
292
330
|
f("use", {
|
|
293
331
|
"xlink:href": `#icon-${e.name}`
|
|
294
|
-
}, null, 8,
|
|
295
|
-
], 8,
|
|
332
|
+
}, null, 8, Y)
|
|
333
|
+
], 8, X)) : i.value === "two-color-svg" ? (a(), d(
|
|
296
334
|
"svg",
|
|
297
335
|
{
|
|
298
336
|
key: 3,
|
|
299
337
|
class: "two-color-icon shrink-0 size-inherit",
|
|
300
|
-
style:
|
|
338
|
+
style: y(p.value),
|
|
301
339
|
"aria-hidden": "true"
|
|
302
340
|
},
|
|
303
341
|
[
|
|
304
342
|
f("use", {
|
|
305
343
|
"xlink:href": `#${e.name}`
|
|
306
|
-
}, null, 8,
|
|
344
|
+
}, null, 8, Z)
|
|
307
345
|
],
|
|
308
346
|
4
|
|
309
347
|
/* STYLE */
|
|
310
|
-
)) :
|
|
348
|
+
)) : i.value === "img" ? (a(), g(k(A), {
|
|
311
349
|
key: 4,
|
|
312
350
|
src: e.name,
|
|
313
351
|
class: "shrink-0"
|
|
@@ -343,7 +381,7 @@ const T = (e, o) => {
|
|
|
343
381
|
);
|
|
344
382
|
};
|
|
345
383
|
}
|
|
346
|
-
}),
|
|
384
|
+
}), ee = /* @__PURE__ */ T(_, [["__scopeId", "data-v-c202da9d"]]), te = I(ee), oe = { class: "text-sm text-white bg-[var(--el-avatar-bg-color)] flex-center h-full w-full" }, le = /* @__PURE__ */ C({
|
|
347
385
|
name: "IkAvatar",
|
|
348
386
|
__name: "index",
|
|
349
387
|
props: {
|
|
@@ -359,14 +397,14 @@ const T = (e, o) => {
|
|
|
359
397
|
const o = e, t = c(() => {
|
|
360
398
|
var m;
|
|
361
399
|
return ((m = o.name) == null ? void 0 : m.slice(-1)) || "";
|
|
362
|
-
}), { cLoadUrl:
|
|
400
|
+
}), { cLoadUrl: n } = V(o), s = c(() => q(n.value, o.src || "")), i = c(() => o.src ? [s.value] : []), h = E(!1);
|
|
363
401
|
function u() {
|
|
364
402
|
o.src && (h.value = !0);
|
|
365
403
|
}
|
|
366
404
|
return (m, v) => {
|
|
367
|
-
const b =
|
|
405
|
+
const b = B("ElAvatar"), p = B("el-image-viewer");
|
|
368
406
|
return a(), d(
|
|
369
|
-
|
|
407
|
+
U,
|
|
370
408
|
null,
|
|
371
409
|
[
|
|
372
410
|
F(b, {
|
|
@@ -374,14 +412,14 @@ const T = (e, o) => {
|
|
|
374
412
|
size: e.size,
|
|
375
413
|
shape: e.shape,
|
|
376
414
|
fit: e.fit,
|
|
377
|
-
style:
|
|
415
|
+
style: y({ "--el-avatar-bg-color": s.value ? "var(--ik-form-bg)" : "var(--ik-color-primary)" }),
|
|
378
416
|
onClick: u
|
|
379
417
|
}, {
|
|
380
418
|
default: x(() => [
|
|
381
419
|
f(
|
|
382
420
|
"span",
|
|
383
|
-
|
|
384
|
-
|
|
421
|
+
oe,
|
|
422
|
+
S(t.value),
|
|
385
423
|
1
|
|
386
424
|
/* TEXT */
|
|
387
425
|
)
|
|
@@ -389,12 +427,12 @@ const T = (e, o) => {
|
|
|
389
427
|
_: 1
|
|
390
428
|
/* STABLE */
|
|
391
429
|
}, 8, ["src", "size", "shape", "fit", "style"]),
|
|
392
|
-
h.value ? (a(), g(
|
|
430
|
+
h.value ? (a(), g(p, {
|
|
393
431
|
key: 0,
|
|
394
|
-
"url-list":
|
|
432
|
+
"url-list": i.value,
|
|
395
433
|
"show-progress": "",
|
|
396
434
|
teleported: "",
|
|
397
|
-
onClose: v[0] || (v[0] = (
|
|
435
|
+
onClose: v[0] || (v[0] = (l) => h.value = !1)
|
|
398
436
|
}, null, 8, ["url-list"])) : w("v-if", !0)
|
|
399
437
|
],
|
|
400
438
|
64
|
|
@@ -402,12 +440,12 @@ const T = (e, o) => {
|
|
|
402
440
|
);
|
|
403
441
|
};
|
|
404
442
|
}
|
|
405
|
-
}),
|
|
443
|
+
}), ne = I(le), ie = () => ({
|
|
406
444
|
getLinearGradient: (o) => {
|
|
407
445
|
const t = R.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
|
|
408
446
|
return `linear-gradient(to top, ${o} 4%, rgb(${t[0]},${t[1] + 50},${t[2]}) 88%)`;
|
|
409
447
|
}
|
|
410
|
-
}),
|
|
448
|
+
}), ae = /* @__PURE__ */ C({
|
|
411
449
|
__name: "IkLinearIcon",
|
|
412
450
|
props: {
|
|
413
451
|
icon: {
|
|
@@ -425,20 +463,20 @@ const T = (e, o) => {
|
|
|
425
463
|
},
|
|
426
464
|
setup(e) {
|
|
427
465
|
G((s) => ({
|
|
428
|
-
v435077c3:
|
|
466
|
+
v435077c3: n.value
|
|
429
467
|
}));
|
|
430
|
-
const o = e, { getLinearGradient: t } = ie(),
|
|
431
|
-
return (s,
|
|
468
|
+
const o = e, { getLinearGradient: t } = ie(), n = c(() => `${o.size}px`);
|
|
469
|
+
return (s, i) => (a(), d(
|
|
432
470
|
"div",
|
|
433
471
|
{
|
|
434
472
|
class: "form-icon",
|
|
435
|
-
style:
|
|
473
|
+
style: y({ backgroundImage: k(t)(e.backgroundColor || "#28b8a4") })
|
|
436
474
|
},
|
|
437
475
|
[
|
|
438
476
|
f(
|
|
439
477
|
"i",
|
|
440
478
|
{
|
|
441
|
-
class:
|
|
479
|
+
class: $(`ikflow ${e.icon}`)
|
|
442
480
|
},
|
|
443
481
|
null,
|
|
444
482
|
2
|
|
@@ -449,7 +487,7 @@ const T = (e, o) => {
|
|
|
449
487
|
/* STYLE */
|
|
450
488
|
));
|
|
451
489
|
}
|
|
452
|
-
}),
|
|
490
|
+
}), se = /* @__PURE__ */ T(ae, [["__scopeId", "data-v-0bc5a180"]]), re = { class: "side-text items-center" }, ce = { class: "side-left flex items-center" }, ue = { class: "side-right" }, fe = { class: "text-over-line" }, de = { class: "text-over-line sub-title" }, ve = /* @__PURE__ */ C({
|
|
453
491
|
__name: "IkSideText",
|
|
454
492
|
props: {
|
|
455
493
|
// 名称
|
|
@@ -511,16 +549,16 @@ const T = (e, o) => {
|
|
|
511
549
|
}
|
|
512
550
|
},
|
|
513
551
|
setup(e) {
|
|
514
|
-
const o = e, { cLoadUrl: t } = V(o),
|
|
515
|
-
|
|
552
|
+
const o = e, { cLoadUrl: t } = V(o), n = (u) => u ? u.startsWith("http") ? u : `${t.value}${u}` : "", s = c(() => n(o.avatar)), i = E(!!o.avatar), h = () => {
|
|
553
|
+
i.value = !1;
|
|
516
554
|
};
|
|
517
555
|
return (u, m) => {
|
|
518
556
|
var v;
|
|
519
|
-
return a(), d("div",
|
|
520
|
-
f("div",
|
|
521
|
-
e.avatarType === "url" ? (a(), g(
|
|
557
|
+
return a(), d("div", re, [
|
|
558
|
+
f("div", ce, [
|
|
559
|
+
e.avatarType === "url" ? (a(), g(k(ne), {
|
|
522
560
|
key: 0,
|
|
523
|
-
style:
|
|
561
|
+
style: y({ "--el-avatar-bg-color": s.value ? "var(--ik-form-bg)" : "var(--ik-color-primary)" }),
|
|
524
562
|
size: e.size,
|
|
525
563
|
shape: e.shape,
|
|
526
564
|
src: s.value,
|
|
@@ -528,12 +566,12 @@ const T = (e, o) => {
|
|
|
528
566
|
onError: h
|
|
529
567
|
}, {
|
|
530
568
|
default: x(() => [
|
|
531
|
-
|
|
532
|
-
|
|
569
|
+
i.value ? w("v-if", !0) : (a(), d(
|
|
570
|
+
U,
|
|
533
571
|
{ key: 0 },
|
|
534
572
|
[
|
|
535
573
|
P(
|
|
536
|
-
|
|
574
|
+
S(e.name.slice(-2)),
|
|
537
575
|
1
|
|
538
576
|
/* TEXT */
|
|
539
577
|
)
|
|
@@ -545,32 +583,32 @@ const T = (e, o) => {
|
|
|
545
583
|
_: 1
|
|
546
584
|
/* STABLE */
|
|
547
585
|
}, 8, ["style", "size", "shape", "src", "fit"])) : w("v-if", !0),
|
|
548
|
-
e.avatarType === "icon" ? (a(), g(
|
|
586
|
+
e.avatarType === "icon" ? (a(), g(k(te), {
|
|
549
587
|
key: 1,
|
|
550
588
|
name: `iksvg_${(v = e.avatar) == null ? void 0 : v.replace("iksvg_", "")}`,
|
|
551
589
|
"show-bg": e.showIconBg,
|
|
552
590
|
type: e.iconType,
|
|
553
|
-
style:
|
|
591
|
+
style: y({ fontSize: e.showIconBg ? "34px" : "40px" }),
|
|
554
592
|
size: e.iconSize
|
|
555
593
|
}, null, 8, ["name", "show-bg", "type", "style", "size"])) : w("v-if", !0),
|
|
556
|
-
e.avatarType === "linearIcon" ? (a(), g(
|
|
594
|
+
e.avatarType === "linearIcon" ? (a(), g(se, {
|
|
557
595
|
key: 2,
|
|
558
596
|
icon: e.avatar,
|
|
559
597
|
"background-color": e.iconBackgroundColor
|
|
560
598
|
}, null, 8, ["icon", "background-color"])) : w("v-if", !0)
|
|
561
599
|
]),
|
|
562
|
-
f("div",
|
|
600
|
+
f("div", ue, [
|
|
563
601
|
f(
|
|
564
602
|
"p",
|
|
565
|
-
|
|
566
|
-
|
|
603
|
+
fe,
|
|
604
|
+
S(e.text),
|
|
567
605
|
1
|
|
568
606
|
/* TEXT */
|
|
569
607
|
),
|
|
570
608
|
f(
|
|
571
609
|
"p",
|
|
572
|
-
|
|
573
|
-
|
|
610
|
+
de,
|
|
611
|
+
S(e.subText),
|
|
574
612
|
1
|
|
575
613
|
/* TEXT */
|
|
576
614
|
)
|
|
@@ -578,8 +616,8 @@ const T = (e, o) => {
|
|
|
578
616
|
]);
|
|
579
617
|
};
|
|
580
618
|
}
|
|
581
|
-
}),
|
|
619
|
+
}), he = /* @__PURE__ */ T(ve, [["__scopeId", "data-v-ac7ef2be"]]), pe = I(he);
|
|
582
620
|
export {
|
|
583
|
-
|
|
584
|
-
|
|
621
|
+
pe as IkSideText,
|
|
622
|
+
pe as default
|
|
585
623
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ik-icon[data-v-
|
|
1
|
+
.ik-icon[data-v-c202da9d]{cursor:pointer;outline:none;border-radius:var(--ik-radius)}.ik-icon[data-v-c202da9d] .el-tooltip__trigger{width:inherit;height:inherit}.ik-icon .iconfont[data-v-c202da9d]{display:inline-flex;align-items:center;justify-content:center}.ik-icon .two-color-icon[data-v-c202da9d]{transition:all .2s ease}.ik-icon.margin+.ik-icon[data-v-c202da9d]:not(.un-margin){margin-left:var(--ik-margin-8)}.ik-icon:not(.is-disabled):hover .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-deep-hover);--ik-icon-shallow-color: var(--ik-icon-shallow-hover)}.ik-icon.is-active .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-deep-active);--ik-icon-shallow-color: var(--ik-icon-shallow-active)}.ik-icon.is-disabled .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-deep-disabled);--ik-icon-shallow-color: var(--ik-icon-shallow-disabled);cursor:not-allowed;opacity:.6}.ik-icon.is-success:not(.is-disabled):hover .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-success-deep-hover);--ik-icon-shallow-color: var(--ik-icon-success-shallow-hover)}.ik-icon.is-success.is-active .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-success-deep-active);--ik-icon-shallow-color: var(--ik-icon-success-shallow-active)}.ik-icon.is-warning:not(.is-disabled):hover .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-warning-deep-hover);--ik-icon-shallow-color: var(--ik-icon-warning-shallow-hover)}.ik-icon.is-warning.is-active .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-warning-deep-active);--ik-icon-shallow-color: var(--ik-icon-warning-shallow-active)}.ik-icon.is-danger:not(.is-disabled):hover .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-danger-deep-hover);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-hover)}.ik-icon.is-danger.is-active .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-danger-deep-active);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-active)}.ik-icon.is-error:not(.is-disabled):hover .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-danger-deep-hover);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-hover)}.ik-icon.is-error.is-active .two-color-icon[data-v-c202da9d]{--ik-icon-deep-color: var(--ik-icon-danger-deep-active);--ik-icon-shallow-color: var(--ik-icon-danger-shallow-active)}.ik-icon.text-danger[data-v-c202da9d]:hover,.ik-icon .iksvg_shanchu[data-v-c202da9d]:hover{color:var(--ik-color-error)}.ik-icon.is-active[data-v-c202da9d]{color:var(--ik-color-primary)}.ik-icon.bg[data-v-c202da9d]{color:var(--ik-icon-color);background-color:var(--ik-icon-bg)}.ik-icon.bg.is-active[data-v-c202da9d]{color:var(--ik-color-primary);background-color:var(--ik-icon-hover-bg)}.ik-icon.bg[data-v-c202da9d]:not(.is-disabled):hover{color:var(--ik-color-primary);background-color:var(--ik-icon-hover-bg)}.ik-icon.bg.is-disabled[data-v-c202da9d]{background-color:var(--ik-icon-disabled-bg)}.ik-icon.bg.is-success.is-active[data-v-c202da9d]{color:var(--ik-color-success);background-color:var(--ik-icon-success-hover-bg)}.ik-icon.bg.is-success[data-v-c202da9d]:not(.is-disabled):hover{color:var(--ik-color-success);background-color:var(--ik-icon-success-hover-bg)}.ik-icon.bg.is-warning.is-active[data-v-c202da9d]{color:var(--ik-color-warning);background-color:var(--ik-icon-warning-hover-bg)}.ik-icon.bg.is-warning[data-v-c202da9d]:not(.is-disabled):hover{color:var(--ik-color-warning);background-color:var(--ik-icon-warning-hover-bg)}.ik-icon.bg.is-danger.is-active[data-v-c202da9d]{color:var(--ik-color-error);background-color:var(--ik-icon-danger-hover-bg)}.ik-icon.bg.is-danger[data-v-c202da9d]:not(.is-disabled):hover{color:var(--ik-color-error);background-color:var(--ik-icon-danger-hover-bg)}.ik-icon.bg.is-error.is-active[data-v-c202da9d]{color:var(--ik-color-error);background-color:var(--ik-icon-error-hover-bg)}.ik-icon.bg.is-error[data-v-c202da9d]:not(.is-disabled):hover{color:var(--ik-color-error);background-color:var(--ik-icon-error-bg)}.ik-icon.bg.text-danger.is-active[data-v-c202da9d]{color:var(--ik-color-error);background-color:var(--ik-danger-light-2)}.ik-icon.bg.text-danger[data-v-c202da9d]:not(.is-disabled):hover{color:var(--ik-color-error);background-color:var(--ik-danger-light-2)}.ik-icon.bg .iksvg_shanchu[data-v-c202da9d]:hover{color:var(--ik-color-error);background-color:var(--ik-danger-light-2)}.ik-icon.bg svg[data-v-c202da9d]{padding:21%}
|