Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
Ifar-Xml-Edtor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pangchong
Ifar-Xml-Edtor
Commits
bc1ecc6a
Commit
bc1ecc6a
authored
Jul 24, 2026
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(editor): 修正节点标题的条件判断逻辑
- 优化了节点标题的三元表达式,避免不必要的括号 - 保证标题显示更加准确,提升用户体验 - 改进代码可读性和维护性
parent
9f776d90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/views/editor/components/NodeTree/index.vue
+1
-1
No files found.
src/views/editor/components/NodeTree/index.vue
View file @
bc1ecc6a
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment