mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
pref: 优化排序显示
This commit is contained in:
parent
5b55cb5c59
commit
68fbccdf20
@ -66,9 +66,9 @@
|
||||
@nodeCollapse="handleNodeCollapse"
|
||||
@nodeDrop="handleDrop">
|
||||
<template #default="{ node, data }">
|
||||
<div v-if="isShowSort" class="sort-tag" :style="{ backgroundColor: getColor(node) }">{{ data.s }}</div>
|
||||
<div class="menu-item-wrapper" :id="'article-doc-wrapper-' + data.i" @click.right="handleClickRightMenu($event, data)">
|
||||
<div :class="[viewStyle.isShowSubjectStyle ? (data.t?.includes('subject') ? 'subject-title' : 'doc-title') : 'doc-title']">
|
||||
<div v-if="isShowSort" class="sort-tag" :style="{ backgroundColor: getColor(node) }">{{ data.s }}</div>
|
||||
<div class="doc-name">
|
||||
<img class="menu-icon-img" v-if="isShowImg(data, viewStyle)" :src="data.icon" />
|
||||
<svg v-else-if="isShowSvg(data, viewStyle)" class="icon menu-icon" aria-hidden="true">
|
||||
|
@ -3,7 +3,6 @@ $icon-size: 17px;
|
||||
.doc-title {
|
||||
@include flex(row, flex-start, flex-start);
|
||||
width: 100%;
|
||||
position: relative;
|
||||
padding: 1px 0;
|
||||
|
||||
.doc-name {
|
||||
@ -73,9 +72,9 @@ $icon-size: 17px;
|
||||
.sort-tag {
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
padding: 0 2px;
|
||||
margin-top: 3px;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 2px;
|
||||
|
@ -155,6 +155,7 @@
|
||||
|
||||
:deep(.el-tree-node__content) {
|
||||
height: auto;
|
||||
position: relative;
|
||||
|
||||
&:hover {
|
||||
border-radius: 5px;
|
||||
|
@ -58,10 +58,10 @@
|
||||
@nodeCollapse="handleNodeCollapse"
|
||||
@nodeDrop="handleDrop">
|
||||
<template #default="{ node, data }">
|
||||
<div v-if="data.ty !== 11 && isShowSort" class="sort-tag" :style="{ backgroundColor: getColor(node) }">{{ data.s }}</div>
|
||||
<div v-if="data.ty === 11" class="menu-divider"></div>
|
||||
<div v-else class="menu-item-wrapper" @click.right="handleClickRightMenu($event, data)">
|
||||
<div class="doc-title">
|
||||
<div v-if="isShowSort" class="sort-tag" :style="{ backgroundColor: getColor(node) }">{{ data.s }}</div>
|
||||
<div class="doc-name">
|
||||
<img class="menu-icon-img" v-if="isShowImg(data, viewStyle)" :src="data.icon" />
|
||||
<svg v-else-if="isShowSvg(data, viewStyle)" class="icon menu-icon" aria-hidden="true">
|
||||
|
Loading…
Reference in New Issue
Block a user