Commit b6bb941a by pangchong

feat: 处理渲染样式问题

parent e2062d14
...@@ -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)"
......
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