hookehuyr

fix

......@@ -1327,17 +1327,16 @@ export default {
*/
function handleAfterAdd(model: myObj, type: string) {
if (type === 'node') {
console.log(`新增节点`)
// console.log(`新增节点`)
flowData.value.nodes = editor.editorState.graph.save().nodes
}
if (type === 'edge') {
console.log(`新增连接线`)
// console.log(`新增连接线`)
flowData.value.edges = editor.editorState.graph.save().edges
}
}
function onClickCanvas(e: myEvent) {
console.log('单击画布');
state.detailModel = null;
editor.closeModel()
}
......@@ -1348,9 +1347,7 @@ export default {
* @param {myEvent} e - The event object containing information about the drag and drop.
*/
function onDragEndNode(e: myEvent) {
// TODO:可能需要接口保存相应位置,避免拖动窗口时数据丢失
const model = e.item.get('model')
console.log('onDragEndNode', model)
}
const copyData = () => { // 复制节点回调
......