diff --git a/src/components/flow/FlowEditor.vue b/src/components/flow/FlowEditor.vue index 3bdeac1..ea98265 100644 --- a/src/components/flow/FlowEditor.vue +++ b/src/components/flow/FlowEditor.vue @@ -20,7 +20,7 @@ import { register } from '@logicflow/vue-node-registry'; import ShikigamiSelectNode from './nodes/yys/ShikigamiSelectNode.vue'; import YuhunSelectNode from './nodes/yys/YuhunSelectNode.vue'; import PropertySelectNode from './nodes/yys/PropertySelectNode.vue'; -// import ImageNode from './nodes/common/ImageNode.vue'; +import ImageNode from './nodes/common/ImageNode.vue'; // import TextNode from './nodes/common/TextNode.vue'; import PropertyPanel from './PropertyPanel.vue'; import { useFilesStore } from "@/ts/useStore"; @@ -53,7 +53,7 @@ function registerNodes(lfInstance: LogicFlow) { register({ type: 'yuhunSelect', component: YuhunSelectNode }, lfInstance); register({ type: 'propertySelect', component: PropertySelectNode }, lfInstance); - // register({ type: 'imageNode', component: ImageNode }, lfInstance); + register({ type: 'imageNode', component: ImageNode }, lfInstance); // register({ type: 'textNode', component: TextNode }, lfInstance); } @@ -77,15 +77,15 @@ onMounted(() => { { text: '置于顶层', callback(node: NodeData) { - console.log(lfInstance.getNodeModelById(node.id).zIndex) lfInstance.setElementZIndex(node.id, 'top'); + console.log("置顶"+lfInstance.getNodeModelById(node.id).zIndex) } }, { text: '置于底层', callback(node: NodeData) { - console.log(lfInstance.getNodeModelById(node.id).zIndex) lfInstance.setElementZIndex(node.id, 'bottom'); + console.log("置底"+lfInstance.getNodeModelById(node.id).zIndex) } }, { @@ -215,4 +215,4 @@ function handlePaneContextMenu({ e }: { e: MouseEvent }) { background-color: #f5f7fa; color: #409eff; } - \ No newline at end of file + diff --git a/src/components/flow/PropertyPanel.vue b/src/components/flow/PropertyPanel.vue index 18e1451..32a26df 100644 --- a/src/components/flow/PropertyPanel.vue +++ b/src/components/flow/PropertyPanel.vue @@ -1,13 +1,10 @@