main.js
1009 Bytes
/*
* @Date: 2025-03-10 13:07:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-11 17:23:23
* @FilePath: /logic-flow2/src/main.js
* @Description: 文件描述
*/
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import "@logicflow/core/lib/style/index.css";
import '@logicflow/core/es/index.css'
import '@logicflow/extension/lib/style/index.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import LogicFlow from '@logicflow/core';
import { Menu, DndPanel, SelectionSelect, Control, InsertNodeInPolyline, Highlight } from "@logicflow/extension";
LogicFlow.use(Menu) // 右键菜单
LogicFlow.use(DndPanel) // 拖拽面板
LogicFlow.use(SelectionSelect) // 选中元素
// LogicFlow.use(Control) // 控制面板
LogicFlow.use(InsertNodeInPolyline) // 边上插入节点
LogicFlow.use(Highlight) // 高亮
const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')