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
b6bb941a
Commit
b6bb941a
authored
Jul 30, 2026
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 处理渲染样式问题
parent
e2062d14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/views/editor/components/DocNodeRenderer/index.vue
+4
-4
No files found.
src/views/editor/components/DocNodeRenderer/index.vue
View file @
b6bb941a
...
@@ -603,15 +603,15 @@
...
@@ -603,15 +603,15 @@
<!-- 12.5 TOR (力矩组合) 渲染 -->
<!-- 12.5 TOR (力矩组合) 渲染 -->
<
template
v-else-if=
"node.tagName === 'TOR'"
>
<
template
v-else-if=
"node.tagName === 'TOR'"
>
<span
<span
class=
"inline
-flex items-baseline
text-color1 cursor-pointer select-none"
class=
"inline text-color1 cursor-pointer select-none"
:data-node-id=
"node.id"
:data-node-id=
"node.id"
:class=
"[editorStore.selectedNodeId === node.id ? 'ring-2 ring-primary ring-offset-1 rounded-sm bg-primary/20 px-0.5' : '']"
:class=
"[editorStore.selectedNodeId === node.id ? 'ring-2 ring-primary ring-offset-1 rounded-sm bg-primary/20 px-0.5' : '']"
@
click
.
stop=
"editorStore.setSelectedNodeId(node.id)"
@
click
.
stop=
"editorStore.setSelectedNodeId(node.id)"
>
>
<template
v-for=
"(child, idx) in node.children.filter((c) => c.tagName === 'TORVALUE')"
:key=
"child.id"
>
<template
v-for=
"(child, idx) in node.children.filter((c) => c.tagName === 'TORVALUE')"
:key=
"child.id"
>
<span
v-if=
"idx > 0"
class=
"text-color3 mx-0.5 select-none"
>
(
</span>
<span
v-if=
"idx > 0"
class=
"
inline
text-color3 mx-0.5 select-none"
>
(
</span>
<DocNodeRenderer
:node=
"child"
:parent=
"node"
is-inline
/>
<DocNodeRenderer
:node=
"child"
:parent=
"node"
is-inline
/>
<span
v-if=
"idx > 0"
class=
"text-color3 select-none"
>
)
</span>
<span
v-if=
"idx > 0"
class=
"
inline
text-color3 select-none"
>
)
</span>
</
template
>
</
template
>
</span>
</span>
</template>
</template>
...
@@ -619,7 +619,7 @@
...
@@ -619,7 +619,7 @@
<!-- 12.6 TORVALUE (具体力矩值) 渲染 -->
<!-- 12.6 TORVALUE (具体力矩值) 渲染 -->
<
template
v-else-if=
"node.tagName === 'TORVALUE'"
>
<
template
v-else-if=
"node.tagName === 'TORVALUE'"
>
<span
<span
class=
"inline
-flex items-center
text-color1 cursor-pointer select-none font-mono underline hover:text-primary transition-all"
class=
"inline text-color1 cursor-pointer select-none font-mono underline hover:text-primary transition-all"
:data-node-id=
"node.id"
:data-node-id=
"node.id"
:class=
"[editorStore.selectedNodeId === node.id ? 'ring-2 ring-primary ring-offset-1 rounded-sm bg-primary/20 px-0.5' : '']"
:class=
"[editorStore.selectedNodeId === node.id ? 'ring-2 ring-primary ring-offset-1 rounded-sm bg-primary/20 px-0.5' : '']"
@
click
.
stop=
"editorStore.setSelectedNodeId(node.id)"
@
click
.
stop=
"editorStore.setSelectedNodeId(node.id)"
...
...
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