iking-web-ui-pro 0.3.3 → 0.3.4
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/IkApprovalProcessDetail/ik.index.es.js +7 -3
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +21 -17
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +46 -42
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +36 -32
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +7 -3
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +7 -3
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +15 -11
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +184 -173
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +42 -38
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +7 -3
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +7 -3
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +7 -3
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +26 -22
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +61 -57
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +28 -24
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +7 -3
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +115 -111
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +73 -69
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +6003 -5992
- package/dist/index.umd.js +99 -99
- package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { inject as k, computed as u, defineComponent as
|
|
1
|
+
import { inject as k, computed as u, defineComponent as B, resolveComponent as z, openBlock as l, createElementBlock as r, Fragment as $, normalizeClass as m, normalizeStyle as p, createElementVNode as f, createBlock as b, withCtx as I, createTextVNode as C, toDisplayString as w, useCssVars as M, unref as T, ref as E, createCommentVNode as x } from "vue";
|
|
2
2
|
import { ikColor as L } from "iking-utils-pro";
|
|
3
|
-
const U = (t, o) => (t.install = (
|
|
3
|
+
const U = (t, o) => (t.install = (n) => {
|
|
4
4
|
for (const e of [t, ...Object.values({})])
|
|
5
|
-
|
|
6
|
-
}, t),
|
|
7
|
-
const
|
|
8
|
-
for (const [e,
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
},
|
|
5
|
+
n.component(e.name, e);
|
|
6
|
+
}, t), S = (t, o) => {
|
|
7
|
+
const n = t.__vccOpts || t;
|
|
8
|
+
for (const [e, s] of o)
|
|
9
|
+
n[e] = s;
|
|
10
|
+
return n;
|
|
11
|
+
}, _ = [
|
|
12
12
|
"csv",
|
|
13
13
|
"djvu",
|
|
14
14
|
"doc",
|
|
@@ -64,10 +64,10 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
64
64
|
"flv",
|
|
65
65
|
"tls"
|
|
66
66
|
], D = (t) => {
|
|
67
|
-
const o = k("loadUrl"),
|
|
67
|
+
const o = k("loadUrl"), n = u(() => t.loadUrl || t.fileUrl || (o == null ? void 0 : o.value)), e = k("uploadUrl"), s = u(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = k("token"), v = u(() => t.token || (i == null ? void 0 : i.value)), c = k("onlyofficeConfig"), h = u(() => t.onlyofficeConfig || (c == null ? void 0 : c.value)), d = k("userInfo"), g = u(() => t.userInfo || (d == null ? void 0 : d.value)), a = [..._, ..._.map((y) => y.toLocaleUpperCase())];
|
|
68
68
|
return {
|
|
69
|
-
cLoadUrl:
|
|
70
|
-
cUploadUrl:
|
|
69
|
+
cLoadUrl: n,
|
|
70
|
+
cUploadUrl: s,
|
|
71
71
|
cToken: v,
|
|
72
72
|
cOnlyofficeConfig: h,
|
|
73
73
|
cUserInfo: g,
|
|
@@ -81,7 +81,7 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
81
81
|
key: 1,
|
|
82
82
|
class: "h-[1em] w-[1em]",
|
|
83
83
|
"aria-hidden": "true"
|
|
84
|
-
}, F = ["xlink:href"], P = ["src"], X = /* @__PURE__ */
|
|
84
|
+
}, F = ["xlink:href"], P = ["src"], X = /* @__PURE__ */ B({
|
|
85
85
|
name: "IkSvgIcon",
|
|
86
86
|
__name: "index",
|
|
87
87
|
props: {
|
|
@@ -105,11 +105,12 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
105
105
|
title: {},
|
|
106
106
|
type: { default: "primary" },
|
|
107
107
|
warning: { type: Boolean },
|
|
108
|
-
width: {}
|
|
108
|
+
width: {},
|
|
109
|
+
iconClass: { default: "" }
|
|
109
110
|
},
|
|
110
111
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
111
112
|
setup(t, { emit: o }) {
|
|
112
|
-
const
|
|
113
|
+
const n = t, e = u(() => n), s = u(() => {
|
|
113
114
|
const { name: a } = e.value;
|
|
114
115
|
return /^http?:\/\//.test(a) ? "img" : /i-[^:]+:[^:]+/.test(a) ? "unocss" : a != null && a.startsWith("iksig") ? "iksig" : a != null && a.includes(":") ? "iconify" : a != null && a.startsWith("iksvg") ? "svg" : "i";
|
|
115
116
|
}), i = u(() => {
|
|
@@ -133,13 +134,13 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
133
134
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
134
135
|
...a.length && { transform: a.join(" ") },
|
|
135
136
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
136
|
-
...e.value.color &&
|
|
137
|
+
...e.value.color && s.value !== "iksig" ? {
|
|
137
138
|
"--ik-icon-deep-color": e.value.color,
|
|
138
139
|
"--ik-icon-shallow-color": e.value.colorLight || L.setOpacity(e.value.color, e.value.opacity)
|
|
139
140
|
} : {}
|
|
140
141
|
};
|
|
141
142
|
return e.value.width && (y.width = y.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), y;
|
|
142
|
-
}), v = o,
|
|
143
|
+
}), v = o, c = (a) => {
|
|
143
144
|
v("click", a);
|
|
144
145
|
}, h = (a) => {
|
|
145
146
|
v("mouseenter", a);
|
|
@@ -150,16 +151,17 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
150
151
|
};
|
|
151
152
|
return (a, y) => {
|
|
152
153
|
const j = z("el-tooltip"), N = z("el-button");
|
|
153
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(),
|
|
154
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (l(), r(
|
|
154
155
|
$,
|
|
155
156
|
{ key: 0 },
|
|
156
157
|
[
|
|
157
|
-
e.value.notip || !e.value.title ? (l(),
|
|
158
|
+
e.value.notip || !e.value.title ? (l(), r(
|
|
158
159
|
"i",
|
|
159
160
|
{
|
|
160
161
|
key: 0,
|
|
161
162
|
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
162
|
-
[a.
|
|
163
|
+
[a.iconClass]: !0,
|
|
164
|
+
[a.name]: s.value === "unocss",
|
|
163
165
|
"show-bg": e.value.showBg || e.value.bg,
|
|
164
166
|
default: e.value.size === "default",
|
|
165
167
|
small: e.value.size === "small",
|
|
@@ -172,13 +174,13 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
172
174
|
disabled: e.value.disabled
|
|
173
175
|
}]),
|
|
174
176
|
style: p(i.value),
|
|
175
|
-
onClick:
|
|
177
|
+
onClick: c,
|
|
176
178
|
onDblclick: g,
|
|
177
179
|
onMouseenter: h,
|
|
178
180
|
onMouseleave: d
|
|
179
181
|
},
|
|
180
182
|
[
|
|
181
|
-
|
|
183
|
+
s.value === "iksig" ? (l(), r(
|
|
182
184
|
"i",
|
|
183
185
|
{
|
|
184
186
|
key: 0,
|
|
@@ -188,15 +190,15 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
188
190
|
null,
|
|
189
191
|
6
|
|
190
192
|
/* CLASS, STYLE */
|
|
191
|
-
)) :
|
|
193
|
+
)) : s.value === "svg" ? (l(), r("svg", G, [
|
|
192
194
|
f("use", {
|
|
193
195
|
"xlink:href": `#${e.value.name}`
|
|
194
196
|
}, null, 8, O)
|
|
195
|
-
])) :
|
|
197
|
+
])) : s.value === "img" ? (l(), r("img", {
|
|
196
198
|
key: 2,
|
|
197
199
|
src: e.value.name,
|
|
198
200
|
class: "h-[1em] w-[1em]"
|
|
199
|
-
}, null, 8, V)) : (l(),
|
|
201
|
+
}, null, 8, V)) : (l(), r(
|
|
200
202
|
"i",
|
|
201
203
|
{
|
|
202
204
|
key: 3,
|
|
@@ -217,12 +219,13 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
217
219
|
"popper-class": "ik-svg-icon-tooltip",
|
|
218
220
|
"hide-after": 0
|
|
219
221
|
}, {
|
|
220
|
-
default:
|
|
222
|
+
default: I(() => [
|
|
221
223
|
f(
|
|
222
224
|
"i",
|
|
223
225
|
{
|
|
224
226
|
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
225
|
-
[a.
|
|
227
|
+
[a.iconClass]: !0,
|
|
228
|
+
[a.name]: s.value === "unocss",
|
|
226
229
|
"show-bg": e.value.showBg || e.value.bg,
|
|
227
230
|
default: e.value.size === "default",
|
|
228
231
|
small: e.value.size === "small",
|
|
@@ -232,16 +235,17 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
232
235
|
success: a.success || e.value.type === "success",
|
|
233
236
|
error: e.value.error || e.value.type === "error",
|
|
234
237
|
active: e.value.active,
|
|
235
|
-
disabled: e.value.disabled
|
|
238
|
+
disabled: e.value.disabled,
|
|
239
|
+
...a.$attrs.class || {}
|
|
236
240
|
}]),
|
|
237
241
|
style: p(i.value),
|
|
238
|
-
onClick:
|
|
242
|
+
onClick: c,
|
|
239
243
|
onDblclick: g,
|
|
240
244
|
onMouseenter: h,
|
|
241
245
|
onMouseleave: d
|
|
242
246
|
},
|
|
243
247
|
[
|
|
244
|
-
|
|
248
|
+
s.value === "iksig" ? (l(), r(
|
|
245
249
|
"i",
|
|
246
250
|
{
|
|
247
251
|
key: 0,
|
|
@@ -251,15 +255,15 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
251
255
|
null,
|
|
252
256
|
6
|
|
253
257
|
/* CLASS, STYLE */
|
|
254
|
-
)) :
|
|
258
|
+
)) : s.value === "svg" ? (l(), r("svg", W, [
|
|
255
259
|
f("use", {
|
|
256
260
|
"xlink:href": `#${e.value.name}`
|
|
257
261
|
}, null, 8, F)
|
|
258
|
-
])) :
|
|
262
|
+
])) : s.value === "img" ? (l(), r("img", {
|
|
259
263
|
key: 2,
|
|
260
264
|
src: e.value.name,
|
|
261
265
|
class: "h-[1em] w-[1em]"
|
|
262
|
-
}, null, 8, P)) : (l(),
|
|
266
|
+
}, null, 8, P)) : (l(), r(
|
|
263
267
|
"i",
|
|
264
268
|
{
|
|
265
269
|
key: 3,
|
|
@@ -285,8 +289,8 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
285
289
|
key: 1,
|
|
286
290
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
287
291
|
}, {
|
|
288
|
-
default:
|
|
289
|
-
|
|
292
|
+
default: I(() => [
|
|
293
|
+
C(
|
|
290
294
|
w(e.value.title),
|
|
291
295
|
1
|
|
292
296
|
/* TEXT */
|
|
@@ -297,12 +301,12 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
297
301
|
}, 8, ["type"]));
|
|
298
302
|
};
|
|
299
303
|
}
|
|
300
|
-
}), Y = /* @__PURE__ */
|
|
304
|
+
}), Y = /* @__PURE__ */ S(X, [["__scopeId", "data-v-64b61696"]]), q = U(Y), R = () => ({
|
|
301
305
|
getLinearGradient: (o) => {
|
|
302
|
-
const
|
|
303
|
-
return `linear-gradient(to top, ${o} 4%, rgb(${
|
|
306
|
+
const n = L.hexToRGB(o).replace(/[^\d,]/g, "").split(",").map(Number);
|
|
307
|
+
return `linear-gradient(to top, ${o} 4%, rgb(${n[0]},${n[1] + 50},${n[2]}) 88%)`;
|
|
304
308
|
}
|
|
305
|
-
}), A = /* @__PURE__ */
|
|
309
|
+
}), A = /* @__PURE__ */ B({
|
|
306
310
|
__name: "IkLinearIcon",
|
|
307
311
|
props: {
|
|
308
312
|
icon: {
|
|
@@ -319,15 +323,15 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
319
323
|
}
|
|
320
324
|
},
|
|
321
325
|
setup(t) {
|
|
322
|
-
M((
|
|
326
|
+
M((s) => ({
|
|
323
327
|
"435077c3": e.value
|
|
324
328
|
}));
|
|
325
|
-
const o = t, { getLinearGradient:
|
|
326
|
-
return (
|
|
329
|
+
const o = t, { getLinearGradient: n } = R(), e = u(() => `${o.size}px`);
|
|
330
|
+
return (s, i) => (l(), r(
|
|
327
331
|
"div",
|
|
328
332
|
{
|
|
329
333
|
class: "form-icon",
|
|
330
|
-
style: p({ backgroundImage:
|
|
334
|
+
style: p({ backgroundImage: T(n)(t.backgroundColor || "#28b8a4") })
|
|
331
335
|
},
|
|
332
336
|
[
|
|
333
337
|
f(
|
|
@@ -344,7 +348,7 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
344
348
|
/* STYLE */
|
|
345
349
|
));
|
|
346
350
|
}
|
|
347
|
-
}), H = /* @__PURE__ */
|
|
351
|
+
}), H = /* @__PURE__ */ S(A, [["__scopeId", "data-v-0bc5a180"]]), J = { class: "side-text items-center" }, K = { class: "side-left flex items-center" }, Q = { class: "side-right" }, Z = { class: "text-over-line" }, ee = { class: "text-over-line sub-title" }, te = /* @__PURE__ */ B({
|
|
348
352
|
__name: "IkSideText",
|
|
349
353
|
props: {
|
|
350
354
|
// 名称
|
|
@@ -390,7 +394,7 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
390
394
|
},
|
|
391
395
|
size: {
|
|
392
396
|
type: Number,
|
|
393
|
-
default:
|
|
397
|
+
default: 40
|
|
394
398
|
},
|
|
395
399
|
iconSize: {
|
|
396
400
|
type: String || Number,
|
|
@@ -402,29 +406,29 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
402
406
|
}
|
|
403
407
|
},
|
|
404
408
|
setup(t) {
|
|
405
|
-
const o = t, { cLoadUrl:
|
|
409
|
+
const o = t, { cLoadUrl: n } = D(o), e = (c) => c ? c.startsWith("http") ? c : `${n.value}${c}` : "", s = u(() => e(o.avatar)), i = E(!!o.avatar), v = () => {
|
|
406
410
|
i.value = !1;
|
|
407
411
|
};
|
|
408
|
-
return (
|
|
412
|
+
return (c, h) => {
|
|
409
413
|
var g;
|
|
410
414
|
const d = z("el-avatar");
|
|
411
|
-
return l(),
|
|
415
|
+
return l(), r("div", J, [
|
|
412
416
|
f("div", K, [
|
|
413
417
|
t.avatarType === "url" ? (l(), b(d, {
|
|
414
418
|
key: 0,
|
|
415
419
|
style: { "--el-avatar-bg-color": "var(--ik-color-primary)" },
|
|
416
420
|
size: t.size,
|
|
417
421
|
shape: t.shape,
|
|
418
|
-
src:
|
|
422
|
+
src: s.value,
|
|
419
423
|
fit: "contain",
|
|
420
424
|
onError: v
|
|
421
425
|
}, {
|
|
422
|
-
default:
|
|
423
|
-
i.value ? x("v-if", !0) : (l(),
|
|
426
|
+
default: I(() => [
|
|
427
|
+
i.value ? x("v-if", !0) : (l(), r(
|
|
424
428
|
$,
|
|
425
429
|
{ key: 0 },
|
|
426
430
|
[
|
|
427
|
-
|
|
431
|
+
C(
|
|
428
432
|
w(t.name.slice(-2)),
|
|
429
433
|
1
|
|
430
434
|
/* TEXT */
|
|
@@ -437,12 +441,12 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
437
441
|
_: 1
|
|
438
442
|
/* STABLE */
|
|
439
443
|
}, 8, ["size", "shape", "src"])) : x("v-if", !0),
|
|
440
|
-
t.avatarType === "icon" ? (l(), b(
|
|
444
|
+
t.avatarType === "icon" ? (l(), b(T(q), {
|
|
441
445
|
key: 1,
|
|
442
446
|
name: `iksvg_${(g = t.avatar) == null ? void 0 : g.replace("iksvg_", "")}`,
|
|
443
447
|
"show-bg": t.showIconBg,
|
|
444
448
|
type: t.iconType,
|
|
445
|
-
style: p({ fontSize: t.showIconBg ? "34px" : "
|
|
449
|
+
style: p({ fontSize: t.showIconBg ? "34px" : "40px" }),
|
|
446
450
|
size: t.iconSize
|
|
447
451
|
}, null, 8, ["name", "show-bg", "type", "style", "size"])) : x("v-if", !0),
|
|
448
452
|
t.avatarType === "linearIcon" ? (l(), b(H, {
|
|
@@ -470,8 +474,8 @@ const U = (t, o) => (t.install = (s) => {
|
|
|
470
474
|
]);
|
|
471
475
|
};
|
|
472
476
|
}
|
|
473
|
-
}), ae = /* @__PURE__ */
|
|
477
|
+
}), ae = /* @__PURE__ */ S(te, [["__scopeId", "data-v-000efb31"]]), se = U(ae);
|
|
474
478
|
export {
|
|
475
|
-
|
|
476
|
-
|
|
479
|
+
se as IkSideText,
|
|
480
|
+
se as default
|
|
477
481
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}.form-icon[data-v-0bc5a180]{--ik-color-white: #fff;display:flex;align-items:center;justify-content:center;width:var(--435077c3);height:var(--435077c3);border-radius:4px}.form-icon i[data-v-0bc5a180]{font-size:27px;color:var(--ik-color-white)}.side-text[data-v-000efb31]{display:flex}.side-text .side-left[data-v-000efb31]{margin-right:12px}.side-text .side-right[data-v-000efb31]{display:inline-flex;flex-direction:column;justify-content:center;overflow:hidden;text-overflow:ellipsis}.side-text .side-right p[data-v-000efb31]{overflow:hidden;text-overflow:ellipsis;line-height:1}.side-text .side-right p[data-v-000efb31]:first-child{padding-bottom:7px}.side-text .side-right p[data-v-000efb31]:last-child{color:var(--ik-color-font-secondary, #b5b5c3);font-size:13px}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, computed as d, resolveComponent as k, openBlock as
|
|
1
|
+
import { defineComponent as z, computed as d, resolveComponent as k, openBlock as a, createElementBlock as s, Fragment as C, normalizeClass as u, normalizeStyle as r, createElementVNode as m, createBlock as b, withCtx as w, createTextVNode as I, toDisplayString as x } from "vue";
|
|
2
2
|
import { ikColor as $ } from "iking-utils-pro";
|
|
3
3
|
const M = (o, c) => (o.install = (i) => {
|
|
4
4
|
for (const e of [o, ...Object.values({})])
|
|
@@ -35,11 +35,12 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
35
35
|
title: {},
|
|
36
36
|
type: { default: "primary" },
|
|
37
37
|
warning: { type: Boolean },
|
|
38
|
-
width: {}
|
|
38
|
+
width: {},
|
|
39
|
+
iconClass: { default: "" }
|
|
39
40
|
},
|
|
40
41
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
41
42
|
setup(o, { emit: c }) {
|
|
42
|
-
const i = o, e = d(() => i),
|
|
43
|
+
const i = o, e = d(() => i), t = d(() => {
|
|
43
44
|
const { name: l } = e.value;
|
|
44
45
|
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";
|
|
45
46
|
}), n = d(() => {
|
|
@@ -63,7 +64,7 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
63
64
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
64
65
|
...l.length && { transform: l.join(" ") },
|
|
65
66
|
padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
|
|
66
|
-
...e.value.color &&
|
|
67
|
+
...e.value.color && t.value !== "iksig" ? {
|
|
67
68
|
"--ik-icon-deep-color": e.value.color,
|
|
68
69
|
"--ik-icon-shallow-color": e.value.colorLight || $.setOpacity(e.value.color, e.value.opacity)
|
|
69
70
|
} : {}
|
|
@@ -80,16 +81,17 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
80
81
|
};
|
|
81
82
|
return (l, p) => {
|
|
82
83
|
const _ = k("el-tooltip"), B = k("el-button");
|
|
83
|
-
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (
|
|
84
|
-
|
|
84
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (a(), s(
|
|
85
|
+
C,
|
|
85
86
|
{ key: 0 },
|
|
86
87
|
[
|
|
87
|
-
e.value.notip || !e.value.title ? (
|
|
88
|
+
e.value.notip || !e.value.title ? (a(), s(
|
|
88
89
|
"i",
|
|
89
90
|
{
|
|
90
91
|
key: 0,
|
|
91
92
|
class: u(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
92
|
-
[l.
|
|
93
|
+
[l.iconClass]: !0,
|
|
94
|
+
[l.name]: t.value === "unocss",
|
|
93
95
|
"show-bg": e.value.showBg || e.value.bg,
|
|
94
96
|
default: e.value.size === "default",
|
|
95
97
|
small: e.value.size === "small",
|
|
@@ -108,7 +110,7 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
108
110
|
onMouseleave: f
|
|
109
111
|
},
|
|
110
112
|
[
|
|
111
|
-
|
|
113
|
+
t.value === "iksig" ? (a(), s(
|
|
112
114
|
"i",
|
|
113
115
|
{
|
|
114
116
|
key: 0,
|
|
@@ -118,15 +120,15 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
118
120
|
null,
|
|
119
121
|
6
|
|
120
122
|
/* CLASS, STYLE */
|
|
121
|
-
)) :
|
|
123
|
+
)) : t.value === "svg" ? (a(), s("svg", S, [
|
|
122
124
|
m("use", {
|
|
123
125
|
"xlink:href": `#${e.value.name}`
|
|
124
126
|
}, null, 8, T)
|
|
125
|
-
])) :
|
|
127
|
+
])) : t.value === "img" ? (a(), s("img", {
|
|
126
128
|
key: 2,
|
|
127
129
|
src: e.value.name,
|
|
128
130
|
class: "h-[1em] w-[1em]"
|
|
129
|
-
}, null, 8, j)) : (
|
|
131
|
+
}, null, 8, j)) : (a(), s(
|
|
130
132
|
"i",
|
|
131
133
|
{
|
|
132
134
|
key: 3,
|
|
@@ -140,7 +142,7 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
140
142
|
],
|
|
141
143
|
38
|
|
142
144
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
143
|
-
)) : (
|
|
145
|
+
)) : (a(), b(_, {
|
|
144
146
|
key: 1,
|
|
145
147
|
content: e.value.title,
|
|
146
148
|
placement: "top",
|
|
@@ -152,7 +154,8 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
152
154
|
"i",
|
|
153
155
|
{
|
|
154
156
|
class: u(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
155
|
-
[l.
|
|
157
|
+
[l.iconClass]: !0,
|
|
158
|
+
[l.name]: t.value === "unocss",
|
|
156
159
|
"show-bg": e.value.showBg || e.value.bg,
|
|
157
160
|
default: e.value.size === "default",
|
|
158
161
|
small: e.value.size === "small",
|
|
@@ -162,7 +165,8 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
162
165
|
success: l.success || e.value.type === "success",
|
|
163
166
|
error: e.value.error || e.value.type === "error",
|
|
164
167
|
active: e.value.active,
|
|
165
|
-
disabled: e.value.disabled
|
|
168
|
+
disabled: e.value.disabled,
|
|
169
|
+
...l.$attrs.class || {}
|
|
166
170
|
}]),
|
|
167
171
|
style: r(n.value),
|
|
168
172
|
onClick: g,
|
|
@@ -171,7 +175,7 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
171
175
|
onMouseleave: f
|
|
172
176
|
},
|
|
173
177
|
[
|
|
174
|
-
|
|
178
|
+
t.value === "iksig" ? (a(), s(
|
|
175
179
|
"i",
|
|
176
180
|
{
|
|
177
181
|
key: 0,
|
|
@@ -181,15 +185,15 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
181
185
|
null,
|
|
182
186
|
6
|
|
183
187
|
/* CLASS, STYLE */
|
|
184
|
-
)) :
|
|
188
|
+
)) : t.value === "svg" ? (a(), s("svg", D, [
|
|
185
189
|
m("use", {
|
|
186
190
|
"xlink:href": `#${e.value.name}`
|
|
187
191
|
}, null, 8, E)
|
|
188
|
-
])) :
|
|
192
|
+
])) : t.value === "img" ? (a(), s("img", {
|
|
189
193
|
key: 2,
|
|
190
194
|
src: e.value.name,
|
|
191
195
|
class: "h-[1em] w-[1em]"
|
|
192
|
-
}, null, 8, O)) : (
|
|
196
|
+
}, null, 8, O)) : (a(), s(
|
|
193
197
|
"i",
|
|
194
198
|
{
|
|
195
199
|
key: 3,
|
|
@@ -211,13 +215,13 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
211
215
|
],
|
|
212
216
|
64
|
|
213
217
|
/* STABLE_FRAGMENT */
|
|
214
|
-
)) : (
|
|
218
|
+
)) : (a(), b(B, {
|
|
215
219
|
key: 1,
|
|
216
220
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
217
221
|
}, {
|
|
218
222
|
default: w(() => [
|
|
219
223
|
I(
|
|
220
|
-
|
|
224
|
+
x(e.value.title),
|
|
221
225
|
1
|
|
222
226
|
/* TEXT */
|
|
223
227
|
)
|
|
@@ -229,10 +233,10 @@ const M = (o, c) => (o.install = (i) => {
|
|
|
229
233
|
}
|
|
230
234
|
}), N = (o, c) => {
|
|
231
235
|
const i = o.__vccOpts || o;
|
|
232
|
-
for (const [e,
|
|
233
|
-
i[e] =
|
|
236
|
+
for (const [e, t] of c)
|
|
237
|
+
i[e] = t;
|
|
234
238
|
return i;
|
|
235
|
-
}, V = /* @__PURE__ */ N(L, [["__scopeId", "data-v-
|
|
239
|
+
}, V = /* @__PURE__ */ N(L, [["__scopeId", "data-v-64b61696"]]), Y = M(V);
|
|
236
240
|
export {
|
|
237
241
|
Y as IkSvgIcon,
|
|
238
242
|
Y as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-64b61696]{display:flex}.ik-svg-icon.ik-icon-span[data-v-64b61696]:not(:first-child){margin-left:var(--ik-margin-s-8)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as u, createElementBlock as v, createElementVNode as h, useCssVars as w, ref as p, watch as x, computed as k, resolveComponent as S, Fragment as
|
|
1
|
+
import { defineComponent as m, openBlock as u, createElementBlock as v, createElementVNode as h, useCssVars as w, ref as p, watch as x, computed as k, resolveComponent as S, Fragment as b, renderSlot as i, normalizeClass as C, createBlock as T, unref as f, createCommentVNode as V, createVNode as B, mergeProps as I, createSlots as $, withCtx as N } from "vue";
|
|
2
2
|
import { ElTree as E } from "element-plus";
|
|
3
3
|
const F = (e, o) => (e.install = (r) => {
|
|
4
4
|
for (const t of [e, ...Object.values({})])
|
|
@@ -48,7 +48,7 @@ const O = /* @__PURE__ */ m({
|
|
|
48
48
|
},
|
|
49
49
|
setup(e, { expose: o }) {
|
|
50
50
|
w((a) => ({
|
|
51
|
-
"
|
|
51
|
+
"3be8d276": _.value
|
|
52
52
|
}));
|
|
53
53
|
const r = e, t = p(""), l = p();
|
|
54
54
|
x(
|
|
@@ -64,17 +64,17 @@ const O = /* @__PURE__ */ m({
|
|
|
64
64
|
} }), (a, n) => {
|
|
65
65
|
const g = S("el-input");
|
|
66
66
|
return u(), v(
|
|
67
|
-
|
|
67
|
+
b,
|
|
68
68
|
null,
|
|
69
69
|
[
|
|
70
70
|
i(a.$slots, "inset", {}, void 0, !0),
|
|
71
71
|
h(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
class:
|
|
74
|
+
class: C(["ik-tree-main", { "auto-flow": e.autoFlow }])
|
|
75
75
|
},
|
|
76
76
|
[
|
|
77
|
-
e.showSearch ? (u(),
|
|
77
|
+
e.showSearch ? (u(), T(g, {
|
|
78
78
|
key: 0,
|
|
79
79
|
modelValue: t.value,
|
|
80
80
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
|
|
@@ -83,7 +83,7 @@ const O = /* @__PURE__ */ m({
|
|
|
83
83
|
placeholder: e.placeholder,
|
|
84
84
|
clearable: "",
|
|
85
85
|
"suffix-icon": f(M)
|
|
86
|
-
}, null, 8, ["modelValue", "placeholder", "suffix-icon"])) :
|
|
86
|
+
}, null, 8, ["modelValue", "placeholder", "suffix-icon"])) : V("v-if", !0),
|
|
87
87
|
B(f(E), I({
|
|
88
88
|
ref_key: "treeRef",
|
|
89
89
|
ref: l,
|
|
@@ -121,7 +121,7 @@ const O = /* @__PURE__ */ m({
|
|
|
121
121
|
for (const [t, l] of o)
|
|
122
122
|
r[t] = l;
|
|
123
123
|
return r;
|
|
124
|
-
}, R = /* @__PURE__ */ P(O, [["__scopeId", "data-v-
|
|
124
|
+
}, R = /* @__PURE__ */ P(O, [["__scopeId", "data-v-b8ae6ec2"]]), q = F(R);
|
|
125
125
|
export {
|
|
126
126
|
q as IkTree,
|
|
127
127
|
q as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ik-tree-main[data-v-
|
|
1
|
+
.ik-tree-main[data-v-b8ae6ec2]{display:flex;flex-direction:column;height:100%}.ik-tree-main.auto-flow[data-v-b8ae6ec2]{margin:-20px}.ik-tree-main.auto-flow .ik-tree-search[data-v-b8ae6ec2]{padding:0 var(--3be8d276)}.ik-tree-main.auto-flow .ik-tree.el-tree[data-v-b8ae6ec2]{padding:0 var(--3be8d276);overflow:auto}.ik-tree-main .ik-tree-search[data-v-b8ae6ec2]{margin-bottom:8px}.ik-tree-main .ik-tree-search[data-v-b8ae6ec2] .el-input-group__append{padding:0}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2]{flex:1;color:var(--ik-color-font-normal)}.ik-tree-main .ik-tree.el-tree.auto-flow[data-v-b8ae6ec2]{margin-right:calc(var(--3be8d276) * -1);padding-right:var(--3be8d276)}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2] .el-tree-node.is-current.is-focusable>.el-tree-node__content{color:var(--el-color-primary)}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2] .el-tree-node.is-expanded.is-focusable:not(.is-current)>.el-tree-node__content{color:var(--ik-text-color)}.ik-tree-main .ik-tree.el-tree[data-v-b8ae6ec2] .el-tree-node.is-expanded.is-focusable:not(.is-current) .is-current>.el-tree-node__content{color:var(--ik-header-menu-active-color);background-color:var(--el-color-primary-light-9)}
|
|
@@ -1056,7 +1056,8 @@ const ue = (a, o) => {
|
|
|
1056
1056
|
title: {},
|
|
1057
1057
|
type: { default: "primary" },
|
|
1058
1058
|
warning: { type: Boolean },
|
|
1059
|
-
width: {}
|
|
1059
|
+
width: {},
|
|
1060
|
+
iconClass: { default: "" }
|
|
1060
1061
|
},
|
|
1061
1062
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
1062
1063
|
setup(a, { emit: o }) {
|
|
@@ -1110,6 +1111,7 @@ const ue = (a, o) => {
|
|
|
1110
1111
|
{
|
|
1111
1112
|
key: 0,
|
|
1112
1113
|
class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1114
|
+
[f.iconClass]: !0,
|
|
1113
1115
|
[f.name]: e.value === "unocss",
|
|
1114
1116
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1115
1117
|
default: t.value.size === "default",
|
|
@@ -1173,6 +1175,7 @@ const ue = (a, o) => {
|
|
|
1173
1175
|
"i",
|
|
1174
1176
|
{
|
|
1175
1177
|
class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1178
|
+
[f.iconClass]: !0,
|
|
1176
1179
|
[f.name]: e.value === "unocss",
|
|
1177
1180
|
"show-bg": t.value.showBg || t.value.bg,
|
|
1178
1181
|
default: t.value.size === "default",
|
|
@@ -1183,7 +1186,8 @@ const ue = (a, o) => {
|
|
|
1183
1186
|
success: f.success || t.value.type === "success",
|
|
1184
1187
|
error: t.value.error || t.value.type === "error",
|
|
1185
1188
|
active: t.value.active,
|
|
1186
|
-
disabled: t.value.disabled
|
|
1189
|
+
disabled: t.value.disabled,
|
|
1190
|
+
...f.$attrs.class || {}
|
|
1187
1191
|
}]),
|
|
1188
1192
|
style: De(i.value),
|
|
1189
1193
|
onClick: s,
|
|
@@ -1248,7 +1252,7 @@ const ue = (a, o) => {
|
|
|
1248
1252
|
}, 8, ["type"]));
|
|
1249
1253
|
};
|
|
1250
1254
|
}
|
|
1251
|
-
}), xs = /* @__PURE__ */ zt(As, [["__scopeId", "data-v-
|
|
1255
|
+
}), xs = /* @__PURE__ */ zt(As, [["__scopeId", "data-v-64b61696"]]), Ce = $e(xs);
|
|
1252
1256
|
function ki(a) {
|
|
1253
1257
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1254
1258
|
}
|