fix
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
/>
|
||||
<span>{{ currentComponent?.title }}</span>
|
||||
<div class="delete-icon" @click="onDeleteClick">
|
||||
<SvgIcon name="delete" size="16" size-unit="px" color="#fff" />
|
||||
<SvgIcon name="flowDelete" size="16" size-unit="px" color="#fff" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="body" @mousedown.stop>
|
||||
@@ -35,10 +35,13 @@
|
||||
import ColorPalette from './color-palette.vue'
|
||||
import To3View from './to-3view.vue'
|
||||
import To3DModel from './to-3d-model.vue'
|
||||
import { ElMessageBox } from 'element-plus'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
// import ToVideo from './to-video.vue'
|
||||
// import AddPrint from './add-print.vue'
|
||||
// import ToCAD from './to-cad.vue'
|
||||
const { t: $t } = useI18n()
|
||||
const components = [
|
||||
{
|
||||
tier: NODE_DATATIER.CARDS_SELECT,
|
||||
@@ -130,7 +133,17 @@
|
||||
}
|
||||
//删除功能卡片
|
||||
const onDeleteClick = ()=>{
|
||||
stateManager.deleteNode(attrs.node.id)
|
||||
ElMessageBox.confirm(
|
||||
$t('flowCanvas.deleteCardConfirm'),
|
||||
'',
|
||||
{
|
||||
confirmButtonText: $t('flowCanvas.confirm'),
|
||||
cancelButtonText: $t('flowCanvas.cancel'),
|
||||
}
|
||||
).then(() => {
|
||||
stateManager.deleteNode(attrs.node.id)
|
||||
}).catch(() => {
|
||||
})
|
||||
}
|
||||
onMounted(() => {
|
||||
for (const key in props.data) {
|
||||
|
||||
Reference in New Issue
Block a user