color-star-custom-components 0.0.17 → 0.0.19
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 +1 -1
- package/es/IconSelect.mjs +1 -1
- package/es/TreeSelect.mjs +1 -1
- package/es/TreeShowSelect.mjs +15 -15
- package/es/assets/TreeShowSelect.css +1 -1
- package/es/assets/layout2.css +1 -1
- package/es/chunks/config.CoPXYdA2.js +24 -0
- package/es/chunks/global.x-Q7eQXM.js +1967 -0
- package/es/chunks/layout.Bfp28Us0.js +411 -0
- package/es/index.mjs +1 -1
- package/lib/IconRenderer.js +1 -1
- package/lib/IconSelect.js +1 -1
- package/lib/TreeSelect.js +1 -1
- package/lib/TreeShowSelect.js +1 -1
- package/lib/assets/TreeShowSelect.css +1 -1
- package/lib/assets/layout2.css +1 -1
- package/lib/chunks/config.DMN5tCD5.js +1 -0
- package/lib/chunks/global.C6r6Rdiw.js +1 -0
- package/lib/chunks/layout.C2rgMh2f.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/IconRenderer.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as s } from "./chunks/index.bCzIhWFw.js";
|
|
2
2
|
import { useCssVars as u, shallowRef as m, ref as f, watch as d, onMounted as p, createBlock as c, createCommentVNode as y, openBlock as l, unref as v, mergeProps as g, withCtx as b, resolveDynamicComponent as C } from "vue";
|
|
3
3
|
import { ElIcon as I } from "element-plus";
|
|
4
|
-
import { i, g as N } from "./chunks/config.
|
|
4
|
+
import { i, g as N } from "./chunks/config.CoPXYdA2.js";
|
|
5
5
|
import { _ as h } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import './assets/IconRenderer.css';const w = /* @__PURE__ */ Object.assign({
|
|
7
7
|
name: "IconRenderer"
|
package/es/IconSelect.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { w as M } from "./chunks/index.bCzIhWFw.js";
|
|
|
2
2
|
import { useCssVars as $, ref as r, shallowRef as F, computed as P, watch as x, onMounted as R, createBlock as i, openBlock as l, unref as u, withCtx as s, createElementVNode as k, createVNode as I, createElementBlock as d, createSlots as U, resolveDynamicComponent as h, Fragment as V, renderList as D, normalizeClass as j, createCommentVNode as T, createTextVNode as q, markRaw as z } from "vue";
|
|
3
3
|
import { ElPopover as G, ElInput as H, ElIcon as w } from "element-plus";
|
|
4
4
|
import { _ as J } from "./chunks/layout.CJWd6Qr3.js";
|
|
5
|
-
import { i as N, g as K, a as Q } from "./chunks/config.
|
|
5
|
+
import { i as N, g as K, a as Q } from "./chunks/config.CoPXYdA2.js";
|
|
6
6
|
import { _ as W } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
7
|
import './assets/IconSelect.css';const X = { class: "icon-select-content flex flex-col overflow-hidden" }, Y = {
|
|
8
8
|
key: 0,
|
package/es/TreeSelect.mjs
CHANGED
package/es/TreeShowSelect.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { w as P } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { useAttrs as
|
|
2
|
+
import { useAttrs as C, ref as m, computed as v, watch as D, createBlock as L, openBlock as z, unref as u, withCtx as p, createElementVNode as d, normalizeStyle as A, toDisplayString as _, createVNode as x, mergeProps as R, renderSlot as g } from "vue";
|
|
3
3
|
import { ElAutoResizer as j } from "element-plus";
|
|
4
|
-
import { T as b } from "./chunks/layout.
|
|
4
|
+
import { T as b } from "./chunks/layout.Bfp28Us0.js";
|
|
5
5
|
import { _ as B } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
6
|
import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent flex flex-col overflow-hidden" }, H = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, I = { class: "pd-r-12 pd-l-12 flex-1 overflow-hidden" }, M = { class: "right-box w-50-percent flex flex-col overflow-hidden" }, O = { class: "head-box fz-14 pd-t-8 pd-b-8 pd-l-12 pd-r-12 mg-b-8 text-202434" }, U = { class: "pd-r-12 pd-l-12 flex-1 selected-list overflow-hidden pd-t-8" }, $ = /* @__PURE__ */ Object.assign({
|
|
7
7
|
name: "TreeShowSelect"
|
|
@@ -21,7 +21,7 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
21
21
|
},
|
|
22
22
|
emits: ["getCheckedNode"],
|
|
23
23
|
setup(w, { emit: N }) {
|
|
24
|
-
const
|
|
24
|
+
const a = w, S = N, s = C(), r = m(), y = v(() => s.treeProps ? s.treeProps : { value: "id", label: "label", children: "children" }), f = (e) => String(e).includes("%") ? e : e + "px", t = m([]), h = v(() => a.rightTreeList?.length ? a.rightTreeList : t.value), V = (e) => {
|
|
25
25
|
const { selectedNode: l, selectedValue: n, selectedParentNodes: i } = e;
|
|
26
26
|
t.value = l, S("getCheckedNode", {
|
|
27
27
|
selectedValue: n,
|
|
@@ -30,18 +30,18 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
30
30
|
// // 选中节点的集合
|
|
31
31
|
selectedParentNodes: i
|
|
32
32
|
});
|
|
33
|
-
}, T = (e) => {
|
|
34
|
-
a.value?.setNodeCheckStatus(e[y.value.value], !1);
|
|
35
33
|
}, k = (e) => {
|
|
34
|
+
r.value?.setNodeCheckStatus(e[y.value.value], !1);
|
|
35
|
+
}, T = (e) => {
|
|
36
36
|
t.value = e || [];
|
|
37
37
|
};
|
|
38
|
-
return
|
|
39
|
-
() =>
|
|
38
|
+
return D(
|
|
39
|
+
() => a.modelValue,
|
|
40
40
|
(e) => {
|
|
41
|
-
|
|
41
|
+
T(e);
|
|
42
42
|
},
|
|
43
43
|
{ immediate: !0, deep: !0 }
|
|
44
|
-
), (e, l) => (z(),
|
|
44
|
+
), (e, l) => (z(), L(u(j), null, {
|
|
45
45
|
default: p(({ width: n, height: i }) => [
|
|
46
46
|
d("div", {
|
|
47
47
|
class: "out-box flex radius-8 text-202434 overflow-hidden",
|
|
@@ -51,14 +51,14 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
51
51
|
})
|
|
52
52
|
}, [
|
|
53
53
|
d("div", E, [
|
|
54
|
-
d("div", H, _(
|
|
54
|
+
d("div", H, _(r.value && r.value.allNodeNumbers || 0) + "项 ", 1),
|
|
55
55
|
d("div", I, [
|
|
56
56
|
x(b, R({
|
|
57
57
|
modelValue: t.value,
|
|
58
58
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
|
|
59
59
|
ref_key: "treeRef",
|
|
60
|
-
ref:
|
|
61
|
-
}, u(
|
|
60
|
+
ref: r
|
|
61
|
+
}, u(s), { onHandleCheck: V }), {
|
|
62
62
|
node: p(({ node: o, data: c }) => [
|
|
63
63
|
g(e.$slots, "node", {
|
|
64
64
|
node: o,
|
|
@@ -76,11 +76,11 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
76
76
|
modelValue: t.value,
|
|
77
77
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => t.value = o),
|
|
78
78
|
class: "tree-select-list",
|
|
79
|
-
treeProps: u(
|
|
79
|
+
treeProps: u(s).treeProps,
|
|
80
80
|
treeList: h.value,
|
|
81
81
|
isListMode: !0,
|
|
82
82
|
isMultiple: !1,
|
|
83
|
-
onHandleDeleteNode:
|
|
83
|
+
onHandleDeleteNode: k
|
|
84
84
|
}, {
|
|
85
85
|
node: p(({ node: o, data: c }) => [
|
|
86
86
|
g(e.$slots, "node", {
|
|
@@ -97,7 +97,7 @@ import './assets/TreeShowSelect.css';const E = { class: "left-box w-50-percent f
|
|
|
97
97
|
_: 3
|
|
98
98
|
}));
|
|
99
99
|
}
|
|
100
|
-
}), K = /* @__PURE__ */ B($, [["__scopeId", "data-v-
|
|
100
|
+
}), K = /* @__PURE__ */ B($, [["__scopeId", "data-v-109ec2d9"]]), W = P(K);
|
|
101
101
|
export {
|
|
102
102
|
W as TreeShowSelect,
|
|
103
103
|
W as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.w-50-percent[data-v-
|
|
1
|
+
.w-50-percent[data-v-109ec2d9]{width:50%}.out-box[data-v-109ec2d9]{border:1px solid var(--parting-line)}.out-box .head-box[data-v-109ec2d9]{border-bottom:1px solid var(--parting-line)}.out-box .left-box[data-v-109ec2d9]{border-right:1px solid var(--parting-line)}.out-box .selected-list .selected-item[data-v-109ec2d9]{height:32px}.out-box .selected-list .selected-item[data-v-109ec2d9]:hover{background:var(--primary-color-5)}.out-box .selected-list .virtual-scroller[data-v-109ec2d9]{height:100%}.tree-select-list[data-v-109ec2d9] .el-tree-node__content{margin-bottom:8px;padding:4px 0;height:32px;border-radius:8px}
|
package/es/assets/layout2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.el-tree .el-tree-node__content{position:relative}.element-tree-node-label-wrapper{flex:1;display:flex;align-items:center}.element-tree-node-label{font-size:12px}.element-tree-node-line-ver{display:block;position:absolute;top:0;left:0;height:100%;border-left:1px dashed #dcdfe6}.element-tree-node-line-ver.last-node-isLeaf-line{height:50%}.element-tree-node-line-hor{display:block;position:absolute;top:50%;left:0;height:0;border-bottom:1px dashed #dcdfe6}.element-tree-node-label-line{flex:1;border-top:1px dashed #dcdfe6;align-self:center;margin:0 10px}[data-v-
|
|
1
|
+
.el-tree .el-tree-node__content{position:relative}.element-tree-node-label-wrapper{flex:1;display:flex;align-items:center}.element-tree-node-label{font-size:12px}.element-tree-node-line-ver{display:block;position:absolute;top:0;left:0;height:100%;border-left:1px dashed #dcdfe6}.element-tree-node-line-ver.last-node-isLeaf-line{height:50%}.element-tree-node-line-hor{display:block;position:absolute;top:50%;left:0;height:0;border-bottom:1px dashed #dcdfe6}.element-tree-node-label-line{flex:1;border-top:1px dashed #dcdfe6;align-self:center;margin:0 10px}[data-v-c58a0c5b] .el-tree-node__label{line-height:22px}[data-v-c58a0c5b] .el-tree-node:focus>.el-tree-node__content{background-color:transparent}[data-v-c58a0c5b] .el-tree-node__content{border-radius:8px}[data-v-c58a0c5b] .el-tree-node__content:hover{background-color:var(--primary-color-5)}[data-v-c58a0c5b] .element-tree-node-label{font-size:14px}.list-item[data-v-c58a0c5b]{height:32px}.list-item[data-v-c58a0c5b]:hover{background:var(--primary-color-5)}[data-v-c58a0c5b] .element-tree-node-line-ver,[data-v-c58a0c5b] .element-tree-node-line-hor{border-color:var(--neutral-color-19)}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
lingyun: "lingyun",
|
|
3
|
+
aibox: "aibox"
|
|
4
|
+
}, o = async (n) => {
|
|
5
|
+
switch (n) {
|
|
6
|
+
case a.lingyun:
|
|
7
|
+
return await import("./global.CnGuevjX.js");
|
|
8
|
+
case a.aibox:
|
|
9
|
+
return await import("./global.x-Q7eQXM.js");
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
}, i = async (n, r) => {
|
|
13
|
+
if (!r) return null;
|
|
14
|
+
try {
|
|
15
|
+
return (await o(n))[r] || null;
|
|
16
|
+
} catch (t) {
|
|
17
|
+
return console.warn(`Failed to load icon ${r} from ${n} library:`, t), null;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
o as a,
|
|
22
|
+
i as g,
|
|
23
|
+
a as i
|
|
24
|
+
};
|