This commit is contained in:
2025-09-05 18:53:23 +08:00
parent e78b8c2073
commit 9c9ac8e84f
30 changed files with 4307 additions and 186 deletions

View File

@ -65,7 +65,7 @@
position: absolute;
color: var(--color-sdk-auxiliary-public);
font-size: 14px;
z-index: 999999;
z-index: 99;
background: linear-gradient(0deg, var(--color-sdk-bg-gradual)), rgba(0, 0, 0, 0.6);
border: 1.5px solid;
border-image: linear-gradient(to bottom, var(--color-sdk-gradual)) 1;
@ -76,8 +76,6 @@
}
.YJ-custom-base-dialog * {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
@ -171,7 +169,7 @@
position: relative;
}
.YJ-custom-base-dialog button:not(button[disabled="disabled"]):hover {
.YJ-custom-base-dialog button:not(button[disabled]):hover {
border-color: rgba(var(--color-sdk-base-rgb), 1) !important;
cursor: pointer;
}
@ -3888,3 +3886,81 @@
/* 移回顶部外 */
}
}
.yj-custom-icon {
display: inline-block;
width: 22px;
height: 10px;
margin-right: 5px;
}
.yj-custom-icon.line {
border: 1px solid rgba(255, 255, 255, 1);
height: 0px;
margin-top: 4px;
}
.yj-custom-icon.dash-line {
border: 1px dashed rgba(255, 255, 255, 1);
height: 0px;
margin-top: 4px;
}
.yj-custom-icon.light-line {
border: 1px solid rgba(255, 255, 255, 1);
height: 0px;
margin-top: 4px;
box-shadow: 0 0 3px #fff
}
.yj-custom-icon.tail-line {
background: url(../../img/arrow/tail.png) 100% 100% no-repeat;
background-size: 100% 100%;
}
.yj-custom-icon.mult-tail-line {
background: url(../../img/arrow/tail.png) 100% 100% no-repeat;
background-size: 100% 100%;
}
.yj-custom-icon.flow-dash-line1 {
border: 1px dashed rgba(255, 255, 255, 1);
height: 0px;
margin-top: 4px;
}
.yj-custom-icon.flow-dash-line2 {
border: 1px dashed rgba(255, 255, 255, 1);
height: 0px;
margin-top: 4px;
}
.yj-custom-icon.pic-line1 {
background: url(../../img/arrow/1.png) 100% 100% no-repeat;
background-size: 100% 100%;
}
.yj-custom-icon.pic-line2 {
background: url(../../img/arrow/2.png) 100% 100% no-repeat;
background-size: 100% 100%;
}
.yj-custom-icon.pic-line3 {
background: url(../../img/arrow/3.png) 100% 100% no-repeat;
background-size: 100% 100%;
}
.yj-custom-icon.pic-line4 {
background: url(../../img/arrow/4.png) 100% 100% no-repeat;
background-size: 100% 100%;
}
.yj-custom-icon.pic-line5 {
background: url(../../img/arrow/5.png) 100% 100% no-repeat;
background-size: 100% 100%;
}
.yj-custom-icon.pic-line6 {
background: url(../../img/arrow/6.png) 100% 100% no-repeat;
background-size: 100% 100%;
}

View File

@ -23,7 +23,7 @@ window.newFuzzySearch = function(
let notSearchTypeNodesIds = [];
if (notSearchType.length) {
allNodes.forEach((allNodeItem) => {
if (notSearchType.includes(allNodeItem.source_type)) {
if (notSearchType.includes(allNodeItem.sourceType)) {
notSearchTypeNodesIds.push(allNodeItem[idKey]);
}
});
@ -81,19 +81,19 @@ window.newFuzzySearch = function(
hideAllNode(allNodes);
nodeChildren.forEach((item) => {
if (item.oldname) {
item.source_name = item.oldname;
item.sourceName = item.oldname;
zTreeObj.updateNode(item);
}
if (contrast) {
if ((item.source_name || "").indexOf(contrast) > -1) {
console.log("source_name包含关键字");
if ((item.sourceName || "").indexOf(contrast) > -1) {
console.log("sourceName包含关键字");
console.log(item);
console.log(item.source_name);
console.log(item.sourceName);
item.oldname = item.source_name;
item.oldname = item.sourceName;
item.highlight = true;
let F = new RegExp(contrast, "gi");
item.source_name = item.oldname.replace(F, function(h) {
item.sourceName = item.oldname.replace(F, function(h) {
let str =
'<span style="color: whitesmoke;background-color: darkred;">' +
h +