Commit bc1ecc6a by pangchong

fix(editor): 修正节点标题的条件判断逻辑

- 优化了节点标题的三元表达式,避免不必要的括号
- 保证标题显示更加准确,提升用户体验
- 改进代码可读性和维护性
parent 9f776d90
......@@ -142,7 +142,7 @@
<!-- Label & Subtitle -->
<div
class="flex-1 min-w-0 flex items-center space-x-2 z-10"
:title="(item.fullSubtitle || item.subtitle) ? `${item.tagName} ${item.fullSubtitle || item.subtitle}` : item.tagName"
:title="item.fullSubtitle || item.subtitle ? `${item.tagName} ${item.fullSubtitle || item.subtitle}` : item.tagName"
>
<!-- 节点名称高亮 -->
<span class="font-bold text-sm flex-shrink-0" v-html="highlightText(item.tagName, pattern)"></span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment