pref: 优化树状菜单样式

This commit is contained in:
xiaozzzi 2024-04-07 01:33:36 +08:00
parent 63340b5a05
commit 77908005a2
3 changed files with 5 additions and 5 deletions

View File

@ -81,7 +81,7 @@
<div v-else class="name-wrapper" :style="{ maxWidth: isNotBlank(data.icon) ? 'calc(100% - 25px)' : '100%' }">
{{ data.n }}
</div>
<bl-tag v-for="tag in tags(data, viewStyle)" style="margin-top: 4px" :bg-color="tag.bgColor" :color="tag.color" :icon="tag.icon">
<bl-tag v-for="tag in tags(data, viewStyle)" style="margin-top: 4px" :bg-color="tag.bgColor" :icon="tag.icon">
{{ tag.content }}
</bl-tag>
</div>

View File

@ -88,8 +88,8 @@ $icon-size: 17px;
.sync-line {
position: absolute;
width: 2px;
height: 70%;
top: 15%;
height: 60%;
top: 20%;
border-radius: 10px;
}

View File

@ -37,7 +37,7 @@ export const tags = (
}
if (doc.ty === 1 && doc.star === 1) {
if (viewStyle.isShowFolderStarTag) {
icons.unshift({ bgColor: 'rgb(220,192,36)', color: '#6a5b00', icon: 'bl-star-line' })
icons.unshift({ bgColor: 'rgb(220,192,36)', icon: 'bl-star-line' })
}
}
return icons
@ -52,7 +52,7 @@ export const tagLins = (doc: DocTree) => {
if (doc.star === 1) {
lines.push('star-line')
}
if (doc.o === 1 && doc.ty === 3) {
if (doc.o === 1) {
lines.push('open-line')
}
if (doc.vd === 1) {