0.1.57 • Published 6 months ago

obstacle-wl-1 v0.1.57

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

😊

我自己用的。

for me

🚀github


导出方法 export methods
import x6 from './x6'

const components = [x6]

function install(Vue){
    components.forEach(comp => {
        Vue.component(comp.name, comp)
    })
}

if(typeof window !== "undefined" && window.Vue){
    install(window.Vue)
}

export { x6 }

export default { install }
导出数据 export data
exportData(cb)
if(cb instanceof Function) cb(this.graph.toJSON(),this.graph);
      return this.graph.toJSON()
获取实例
getGraph(){
      return this.graph
    },
渲染数据
renderData(data: cellJSONObject)

快捷键

名称方法注释
复制ctrl+c点击节点后按ctrl+c
粘贴ctrl+v复制后按ctrl+v
框选ctrl+按下鼠标左键拖动
删除delete选中节点后按delete
批量粘贴框选后按ctrl+v
批量删除框选后按delete
点选ctrl+鼠标左键单击
效果图预览

🚀github npm.io