Skip to content

Commit

Permalink
x6-vue-shape渲染自定义vue组件
Browse files Browse the repository at this point in the history
  • Loading branch information
yelikang committed Jan 24, 2025
1 parent bc11c59 commit cab6e2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/x6-vue-shape/src/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ export class VueShapeView extends NodeView<VueShape> {
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({
Expand Down

0 comments on commit cab6e2c

Please sign in to comment.