@@ -85,7 +85,6 @@ const handleNodeMousedown = (event?: MouseEvent) => {
8585 set (model , ' isHovered' , ! model .isSelected )
8686 model .graphModel .toFront (model .id )
8787}
88- const showicon = ref <number | string | null >(null )
8988const resizeStepContainer = (nodeHeight : number ) => {
9089 if (nodeHeight > 0 && ! model .virtual ) {
9190 model .setHeight (nodeHeight )
@@ -295,6 +294,8 @@ onBeforeUnmount(() => {
295294 <el-collapse-transition >
296295 <div v-show =" showNode" class =" mt-4" @pointermove.stop @pointerenter.stop @mousedown.stop @keydown.stop @click.stop >
297296 <slot />
297+
298+ <!-- 输出参数 -->
298299 <template v-if =" nodeFields .length > 0 " >
299300 <div class =" flex-between" >
300301 <h6 class =" mk-title-decoration my-2" >{{ output_title }}</h6 >
@@ -303,25 +304,25 @@ onBeforeUnmount(() => {
303304 <el-switch v-model =" enable_exception" size =" small" />
304305 </div >
305306 </div >
306- <div class =" mk-gray-card" >
307+ <div class =" mk-gray-card space-y-4 " >
307308 <template v-for =" (item , index ) in nodeFields " :key =" index " >
308- <div class =" flex-between my-2 " @mouseenter = " showicon = index " @mouseleave = " showicon = null " >
309+ <div class =" group flex-between" >
309310 <span class =" break-all" >{{ item.label }} {{ '{' + item.value + '}' }}</span >
310- <el-tooltip effect =" dark" content =" 复制参数" placement =" top" v-if = " showicon === index " >
311- <el-button class =" p-0! " link @click =" copyText(item.globeLabel)" >
311+ <el-tooltip effect =" dark" content =" 复制参数" placement =" top" >
312+ <el-button class =" group-hover-visible " link @click =" copyText(item.globeLabel)" >
312313 <MkIcon name="icon_copy_outlined" />
313314 </el-button >
314315 </el-tooltip >
315316 </div >
316317 </template >
317318 </div >
318319
319- <div v-if =" enable_exception" class =" mk-gray-card" >
320+ <div v-if =" enable_exception" class =" mk-gray-card space-y-4 " >
320321 <template v-for =" (item , index ) in abnormalNodeFields " :key =" index " >
321- <div class =" flex-between my-2 " @mouseenter = " showicon = 'abnormal' + index " @mouseleave = " showicon = null " >
322+ <div class =" group flex-between" >
322323 <span class =" break-all" >{{ item.label }} {{ '{' + item.value + '}' }}</span >
323- <el-tooltip effect =" dark" content =" 复制参数" placement =" top" v-if = " showicon === 'abnormal' + index " >
324- <el-button class =" p-0! " link @click =" copyText(item.globeLabel)" >
324+ <el-tooltip effect =" dark" content =" 复制参数" placement =" top" >
325+ <el-button class =" group-hover-visible " link @click =" copyText(item.globeLabel)" >
325326 <MkIcon name="icon_copy_outlined" />
326327 </el-button >
327328 </el-tooltip >
0 commit comments