Commit bc154aa9 by pangchong

style(editor): 优化模板嵌套格式,提升代码可读性

- 将多行 template 标签合并为单行,简化代码结构
- 统一缩进,减少冗余换行
- 保持代码风格一致,方便后续维护
parent 9bd93c5a
...@@ -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"
......
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