提交 2214818c authored 作者: lihuihui's avatar lihuihui

update

上级 316ceb93
......@@ -6,6 +6,8 @@ import IconFlowLine from '@/components/icon/IconFlowLine.vue'
const props = defineProps<{ node: NodeProps }>()
const action = inject('action')
const emit = defineEmits<{ (e: 'setting'): void }>()
const { findNode, removeNodes } = useVueFlow()
......@@ -30,7 +32,7 @@ const handleToolbar = function () {
<template>
<div class="custom-node" @click="handleToolbar">
<div class="node-toolbar" v-if="toolbarShow">
<el-icon size="12" @click="onRemove"><Delete /></el-icon>
<el-icon v-if="action !== 'view'" size="12" @click="onRemove"><Delete /></el-icon>
<el-icon size="12" @click="emit('setting')"><Setting /></el-icon>
</div>
<div class="custom-node__inner">
......@@ -71,7 +73,7 @@ const handleToolbar = function () {
background: #6a6c8a;
}
}
.handle-right{
.handle-right {
width: 10px;
border-radius: 0;
right: -5px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论