ling-yun-custom-components 0.0.35 → 0.0.36
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/es/IconRenderer.mjs +62 -13
- package/es/IconSelect.mjs +15 -15
- package/es/PageNotFound.mjs +42 -0
- package/es/SearchBar.mjs +1 -1
- package/es/UpdatePasswordDialog.mjs +1 -1
- package/es/assets/PageNotFound.css +0 -0
- package/es/assets/layout3.css +1 -1
- package/es/chunks/global.BoqYDmws.js +8387 -0
- package/es/chunks/global.DBatr4rf.js +15746 -0
- package/es/chunks/global.DLyUBjAm.js +8080 -0
- package/es/chunks/global.DpSgdQXX.js +7906 -0
- package/es/chunks/layout.BgtHhnxJ.js +66 -0
- package/es/chunks/layout.C9yoozRN.js +592 -0
- package/es/chunks/layout.CRtj9xK9.js +230 -0
- package/es/chunks/layout.CYgILBXq.js +592 -0
- package/es/chunks/layout.DTDMwNO7.js +231 -0
- package/es/chunks/layout.D_fCzVf0.js +39 -0
- package/es/chunks/layout.DdM4MaRr.js +149 -0
- package/es/index.mjs +49 -44
- package/lib/IconRenderer.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/PageNotFound.js +1 -0
- package/lib/SearchBar.js +1 -1
- package/lib/UpdatePasswordDialog.js +1 -1
- package/lib/assets/PageNotFound.css +0 -0
- package/lib/assets/layout3.css +1 -1
- package/lib/chunks/global.3UE6pLnj.js +1 -0
- package/lib/chunks/global.BNCddmRI.js +1 -0
- package/lib/chunks/global.Cmc2k3td.js +1 -0
- package/lib/chunks/global.DUq6tY9B.js +1 -0
- package/lib/chunks/layout.BCsKDB9S.js +1 -0
- package/lib/chunks/layout.BbWwZ-k5.js +1 -0
- package/lib/chunks/layout.BlY_nSey.js +1 -0
- package/lib/chunks/layout.CsWdFS5P.js +1 -0
- package/lib/chunks/layout.D0p4CwoO.js +1 -0
- package/lib/chunks/layout.DE2mqrz_.js +1 -0
- package/lib/chunks/layout.YVnsUDl7.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +5 -4
package/es/IconRenderer.mjs
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { createBlock as
|
|
3
|
-
import { ElIcon as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { w as u } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { shallowRef as s, ref as m, watch as f, onMounted as y, createBlock as c, createCommentVNode as d, openBlock as i, unref as p, mergeProps as g, withCtx as b, resolveDynamicComponent as v } from "vue";
|
|
3
|
+
import { ElIcon as w } from "element-plus";
|
|
4
|
+
const a = {
|
|
5
|
+
lingyun: "lingyun",
|
|
6
|
+
aibox: "aibox"
|
|
7
|
+
}, h = async (e, n) => {
|
|
8
|
+
if (!n) return null;
|
|
9
|
+
try {
|
|
10
|
+
switch (e) {
|
|
11
|
+
case a.lingyun:
|
|
12
|
+
const { icons: o } = await import("./chunks/global.BoqYDmws.js");
|
|
13
|
+
return o[n] || null;
|
|
14
|
+
case a.aibox:
|
|
15
|
+
const { icons: t } = await import("./chunks/global.DBatr4rf.js");
|
|
16
|
+
return t[n] || null;
|
|
17
|
+
}
|
|
18
|
+
} catch (o) {
|
|
19
|
+
return console.warn(`Failed to load icon ${n} from ${e} library:`, o), null;
|
|
20
|
+
}
|
|
21
|
+
}, I = /* @__PURE__ */ Object.assign({
|
|
6
22
|
name: "IconRenderer"
|
|
7
23
|
}, {
|
|
8
24
|
__name: "layout",
|
|
@@ -12,6 +28,12 @@ const f = /* @__PURE__ */ Object.assign({
|
|
|
12
28
|
type: String,
|
|
13
29
|
default: ""
|
|
14
30
|
},
|
|
31
|
+
// 图标库类型: 'lingyun'(默认), 'aibox'
|
|
32
|
+
iconLibrary: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: a.lingyun,
|
|
35
|
+
validator: (e) => Object.values(a).includes(e)
|
|
36
|
+
},
|
|
15
37
|
// 图标大小
|
|
16
38
|
size: {
|
|
17
39
|
type: Number,
|
|
@@ -24,19 +46,46 @@ const f = /* @__PURE__ */ Object.assign({
|
|
|
24
46
|
}
|
|
25
47
|
},
|
|
26
48
|
setup(e) {
|
|
27
|
-
|
|
49
|
+
const n = e, o = s(null), t = m(!1), l = async () => {
|
|
50
|
+
if (!n.iconName) {
|
|
51
|
+
o.value = null;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (!t.value) {
|
|
55
|
+
t.value = !0;
|
|
56
|
+
try {
|
|
57
|
+
const r = await h(n.iconLibrary, n.iconName);
|
|
58
|
+
o.value = r;
|
|
59
|
+
} catch (r) {
|
|
60
|
+
console.error("Failed to load icon component:", r), o.value = null;
|
|
61
|
+
} finally {
|
|
62
|
+
t.value = !1;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return f(
|
|
67
|
+
() => [n.iconLibrary, n.iconName],
|
|
68
|
+
() => {
|
|
69
|
+
l();
|
|
70
|
+
},
|
|
71
|
+
{ immediate: !1 }
|
|
72
|
+
// 初始加载在 onMounted 中处理
|
|
73
|
+
), y(() => {
|
|
74
|
+
l();
|
|
75
|
+
}), (r, x) => e.iconName && o.value ? (i(), c(p(w), g({
|
|
28
76
|
key: 0,
|
|
29
77
|
size: e.size,
|
|
30
78
|
color: e.color
|
|
31
|
-
},
|
|
32
|
-
default:
|
|
33
|
-
(
|
|
79
|
+
}, r.$attrs), {
|
|
80
|
+
default: b(() => [
|
|
81
|
+
(i(), c(v(o.value)))
|
|
34
82
|
]),
|
|
35
83
|
_: 1
|
|
36
|
-
}, 16, ["size", "color"])) :
|
|
84
|
+
}, 16, ["size", "color"])) : d("", !0);
|
|
37
85
|
}
|
|
38
|
-
}),
|
|
86
|
+
}), N = u(I);
|
|
39
87
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
88
|
+
N as IconRenderer,
|
|
89
|
+
N as default,
|
|
90
|
+
a as iconLibraryMap
|
|
42
91
|
};
|
package/es/IconSelect.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { w as S } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { ref as p, computed as v, watch as N, createBlock as c, openBlock as o, unref as
|
|
2
|
+
import { ref as p, computed as v, watch as N, createBlock as c, openBlock as o, unref as n, withCtx as i, createElementVNode as x, createVNode as r, createElementBlock as u, createCommentVNode as E, Fragment as I, renderList as L, normalizeClass as h, resolveDynamicComponent as V, createTextVNode as j } from "vue";
|
|
3
3
|
import { ElPopover as B, ElInput as O, ElIcon as y } from "element-plus";
|
|
4
4
|
import { IconSearch as T, IconAdd as U } from "color-message-lingyun-vue";
|
|
5
|
-
import {
|
|
5
|
+
import { icons as g } from "./chunks/global.BoqYDmws.js";
|
|
6
6
|
import { I as A } from "./chunks/layout.DBgjqaxe.js";
|
|
7
7
|
import { _ as D } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
8
8
|
import './assets/IconSelect.css';const F = { class: "icon-select-content flex flex-col overflow-hidden" }, P = { class: "icon-select-grid overflow-y-auto display-grid" }, $ = ["title", "onClick"], q = {
|
|
@@ -34,20 +34,20 @@ import './assets/IconSelect.css';const F = { class: "icon-select-content flex fl
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["update:modelValue"],
|
|
36
36
|
setup(d, { emit: k }) {
|
|
37
|
-
const w = d, C = k, m = p(!1), s = p(""),
|
|
37
|
+
const w = d, C = k, m = p(!1), s = p(""), a = p(w.modelValue), _ = v(() => Object.entries(g).filter(([e]) => e.toLowerCase().includes("menu")).map(([e, l]) => ({
|
|
38
38
|
name: e,
|
|
39
39
|
component: l
|
|
40
40
|
}))), b = v(() => s.value ? _.value.filter(
|
|
41
41
|
(e) => e.name.toLowerCase().includes(s.value.toLowerCase())
|
|
42
|
-
) : _.value), f = v(() =>
|
|
43
|
-
|
|
42
|
+
) : _.value), f = v(() => a.value && g[a.value] || null), z = (e) => {
|
|
43
|
+
a.value = e.name, C("update:modelValue", e.name), m.value = !1;
|
|
44
44
|
};
|
|
45
45
|
return N(
|
|
46
46
|
() => w.modelValue,
|
|
47
47
|
(e) => {
|
|
48
|
-
|
|
48
|
+
a.value = e;
|
|
49
49
|
}
|
|
50
|
-
), (e, l) => (o(), c(
|
|
50
|
+
), (e, l) => (o(), c(n(B), {
|
|
51
51
|
visible: m.value,
|
|
52
52
|
"onUpdate:visible": l[1] || (l[1] = (t) => m.value = t),
|
|
53
53
|
placement: "bottom-start",
|
|
@@ -58,10 +58,10 @@ import './assets/IconSelect.css';const F = { class: "icon-select-content flex fl
|
|
|
58
58
|
x("div", {
|
|
59
59
|
class: h(["flex items-center pointer radius-16 justify-center w-icon-item", {
|
|
60
60
|
"select-icon-box bg-fcfdff text-202434 fz-14 flex-col": !f.value,
|
|
61
|
-
"icon-item":
|
|
61
|
+
"icon-item": a.value
|
|
62
62
|
}])
|
|
63
63
|
}, [
|
|
64
|
-
f.value ? (o(), c(
|
|
64
|
+
f.value ? (o(), c(n(y), {
|
|
65
65
|
key: 0,
|
|
66
66
|
size: d.iconSize
|
|
67
67
|
}, {
|
|
@@ -70,9 +70,9 @@ import './assets/IconSelect.css';const F = { class: "icon-select-content flex fl
|
|
|
70
70
|
]),
|
|
71
71
|
_: 1
|
|
72
72
|
}, 8, ["size"])) : (o(), u(I, { key: 1 }, [
|
|
73
|
-
r(
|
|
73
|
+
r(n(y), { size: 16 }, {
|
|
74
74
|
default: i(() => [
|
|
75
|
-
r(
|
|
75
|
+
r(n(U))
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}),
|
|
@@ -82,22 +82,22 @@ import './assets/IconSelect.css';const F = { class: "icon-select-content flex fl
|
|
|
82
82
|
]),
|
|
83
83
|
default: i(() => [
|
|
84
84
|
x("div", F, [
|
|
85
|
-
r(
|
|
85
|
+
r(n(O), {
|
|
86
86
|
class: "mg-b-12",
|
|
87
87
|
modelValue: s.value,
|
|
88
88
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => s.value = t),
|
|
89
89
|
placeholder: "搜索图标",
|
|
90
|
-
"prefix-icon":
|
|
90
|
+
"prefix-icon": n(T),
|
|
91
91
|
clearable: ""
|
|
92
92
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
|
93
93
|
x("div", P, [
|
|
94
94
|
(o(!0), u(I, null, L(b.value, (t) => (o(), u("div", {
|
|
95
95
|
key: t.name,
|
|
96
|
-
class: h(["icon-item radius-8 justify-center items-center pointer flex w-icon-item", { active:
|
|
96
|
+
class: h(["icon-item radius-8 justify-center items-center pointer flex w-icon-item", { active: a.value === t.name }]),
|
|
97
97
|
title: t.name,
|
|
98
98
|
onClick: (J) => z(t)
|
|
99
99
|
}, [
|
|
100
|
-
r(
|
|
100
|
+
r(n(y), { size: 50 }, {
|
|
101
101
|
default: i(() => [
|
|
102
102
|
(o(), c(V(t.component)))
|
|
103
103
|
]),
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { w as a } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { createElementBlock as u, openBlock as c, createVNode as r, createElementVNode as p, unref as e, withCtx as n, createTextVNode as f } from "vue";
|
|
3
|
+
import { Page404 as d, IconBack as m } from "color-message-lingyun-vue";
|
|
4
|
+
import { ElIcon as w, ElButton as x } from "element-plus";
|
|
5
|
+
const h = { class: "page-not-found flex flex-col items-center justify-center h-full w-full overflow-hidden" }, _ = {
|
|
6
|
+
__name: "layout",
|
|
7
|
+
props: {
|
|
8
|
+
// 默认跳转路由路径
|
|
9
|
+
routePath: {
|
|
10
|
+
type: String
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(l) {
|
|
14
|
+
const s = l, i = () => {
|
|
15
|
+
const o = window?.$wujie?.props?.useRouter();
|
|
16
|
+
o && o?.push?.(s.routePath);
|
|
17
|
+
};
|
|
18
|
+
return (o, t) => (c(), u("div", h, [
|
|
19
|
+
r(e(w), { size: 140 }, {
|
|
20
|
+
default: n(() => [
|
|
21
|
+
r(e(d))
|
|
22
|
+
]),
|
|
23
|
+
_: 1
|
|
24
|
+
}),
|
|
25
|
+
t[1] || (t[1] = p("div", { class: "pd-b-20 fz-16 text-666" }, "啊哦,你访问的页面不存在了", -1)),
|
|
26
|
+
r(e(x), {
|
|
27
|
+
onClick: i,
|
|
28
|
+
type: "primary",
|
|
29
|
+
icon: e(m)
|
|
30
|
+
}, {
|
|
31
|
+
default: n(() => [...t[0] || (t[0] = [
|
|
32
|
+
f("返回", -1)
|
|
33
|
+
])]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 8, ["icon"])
|
|
36
|
+
]));
|
|
37
|
+
}
|
|
38
|
+
}, E = a(_);
|
|
39
|
+
export {
|
|
40
|
+
E as PageNotFound,
|
|
41
|
+
E as default
|
|
42
|
+
};
|
package/es/SearchBar.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as h } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { ref as P, computed as v, createBlock as x, openBlock as C, withCtx as I, createVNode as D, unref as f, isRef as b } from "vue";
|
|
3
3
|
import { C as E } from "./chunks/layout.DXw3haOP.js";
|
|
4
|
-
import { S as k } from "./chunks/layout.
|
|
4
|
+
import { S as k } from "./chunks/layout.C9yoozRN.js";
|
|
5
5
|
import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A, AESCrypto as M } from "ling-yun-methods";
|
|
6
6
|
import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/UpdatePasswordDialog.css';const U = () => {
|
|
File without changes
|
package/es/assets/layout3.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-form[data-v-6092c6e2]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-6092c6e2]{display:flex}.filter-preview-form .el-form-item[data-v-6092c6e2]{width:var(--v21117ed0);margin-right:10px}.search-bar-form[data-v-6092c6e2]{grid-template-columns:repeat(auto-fit,minmax(var(--v21117ed0),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-6092c6e2]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-6092c6e2]{display:grid}.search-bar-item--wide[data-v-6092c6e2]{grid-column:span 2}.is-collapsed[data-v-
|
|
1
|
+
.filter-form[data-v-6092c6e2]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-6092c6e2]{display:flex}.filter-preview-form .el-form-item[data-v-6092c6e2]{width:var(--v21117ed0);margin-right:10px}.search-bar-form[data-v-6092c6e2]{grid-template-columns:repeat(auto-fit,minmax(var(--v21117ed0),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-6092c6e2]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-6092c6e2]{display:grid}.search-bar-item--wide[data-v-6092c6e2]{grid-column:span 2}.is-collapsed[data-v-146b7880]{max-height:var(--v1bbac240)}.operation-buttons[data-v-146b7880]{width:var(--v84cfd7f0);z-index:1}.h-32[data-v-146b7880]{height:32px}.drawer-header[data-v-146b7880]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-146b7880]{margin-left:auto}.border-top[data-v-146b7880]{border-top:1px solid var(--parting-line)}[data-v-146b7880] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-146b7880]{max-height:400px}[data-v-146b7880] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
|