|
|
|
@ -26,7 +26,6 @@ |
|
|
|
<span v-else style="width:16px;" /> |
|
|
|
<strong class="tree-name">{{ node.name }}</strong> |
|
|
|
<span v-if="node.description" class="tree-desc">{{ node.description }}</span> |
|
|
|
<span class="tree-doc-count">({{ node.documentCount||0 }} 篇)</span> |
|
|
|
</div> |
|
|
|
<t-space :size="4"> |
|
|
|
<t-button size="small" variant="text" @click="openEdit(node)">编辑</t-button> |
|
|
|
@ -120,5 +119,4 @@ function countDescendants(node:any):number{if(!node.children?.length)return 0;le |
|
|
|
.tree-arrow{cursor:pointer;user-select:none;font-size:12px;width:16px;text-align:center;color:var(--color-text-tertiary);} |
|
|
|
.tree-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} |
|
|
|
.tree-desc{color:var(--color-text-tertiary);font-size:12px;margin-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;} |
|
|
|
.tree-doc-count{color:var(--color-text-tertiary);font-size:11px;margin-left:8px;white-space:nowrap;} |
|
|
|
</style> |