diff --git a/packages/x6-vue-shape/src/view.ts b/packages/x6-vue-shape/src/view.ts index b839df10ab4..07c71cf0e14 100644 --- a/packages/x6-vue-shape/src/view.ts +++ b/packages/x6-vue-shape/src/view.ts @@ -29,8 +29,10 @@ export class VueShapeView extends NodeView { const graph = this.graph if (root) { + // 从registry注册表中获取组件自定义vue组件 const { component } = shapeMaps[node.shape] if (component) { + // 渲染自定义vue组件 if (isVue2) { const Vue = Vue2 as any this.vm = new Vue({