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
bc154aa9
Commit
bc154aa9
authored
Oct 16, 2026
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(editor): 优化模板嵌套格式,提升代码可读性
- 将多行 template 标签合并为单行,简化代码结构 - 统一缩进,减少冗余换行 - 保持代码风格一致,方便后续维护
parent
9bd93c5a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
src/views/editor/components/DocNodeRenderer/index.vue
+2
-8
No files found.
src/views/editor/components/DocNodeRenderer/index.vue
View file @
bc154aa9
...
@@ -1324,10 +1324,7 @@
...
@@ -1324,10 +1324,7 @@
<
div
class
=
"flex flex-wrap items-center gap-1.5 text-sm"
:
style
=
"{ justifyContent: 'var(--cell-align, flex-start)'
}
"
>
<
div
class
=
"flex flex-wrap items-center gap-1.5 text-sm"
:
style
=
"{ justifyContent: 'var(--cell-align, flex-start)'
}
"
>
<
span
class
=
"text-color2 font-medium"
>
FIN
:
<
/span
>
<
span
class
=
"text-color2 font-medium"
>
FIN
:
<
/span
>
<
template
v
-
for
=
"eindata in node.children"
:
key
=
"eindata.id"
>
<
template
v
-
for
=
"eindata in node.children"
:
key
=
"eindata.id"
>
<
template
<
template
v
-
for
=
"child in getEinDataSubChildren(eindata)"
:
key
=
"child.id"
>
v
-
for
=
"child in getEinDataSubChildren(eindata)"
:
key
=
"child.id"
>
<
span
<
span
class
=
"font-mono cursor-pointer hover:underline transition-all"
class
=
"font-mono cursor-pointer hover:underline transition-all"
:
data
-
node
-
id
=
"child.id"
:
data
-
node
-
id
=
"child.id"
...
@@ -1357,10 +1354,7 @@
...
@@ -1357,10 +1354,7 @@
:
parent
=
"eindata"
:
parent
=
"eindata"
/>
/>
<
div
class
=
"pl-2"
>
<
div
class
=
"pl-2"
>
<
template
<
template
v
-
for
=
"child in getEinDataSubChildren(eindata)"
:
key
=
"child.id"
>
v
-
for
=
"child in getEinDataSubChildren(eindata)"
:
key
=
"child.id"
>
<
span
<
span
class
=
"font-mono cursor-pointer hover:underline transition-all"
class
=
"font-mono cursor-pointer hover:underline transition-all"
:
data
-
node
-
id
=
"child.id"
:
data
-
node
-
id
=
"child.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