【发布时间】:2020-04-25 15:50:09
【问题描述】:
vue-konva 有问题,不能在同一层创建太多形状 例如:
<template>
<v-stage :config = "stage">
<v-layer>
<v-circle :config = "circle1"
/>
</v-layer>
<v-layer>
<v-circle :config = "circle2"
/>
</v-layer>
</v-stage>
</template>
结果我得到了第一个形状和错误:
vue.common.dev.js:630 [Vue warn]: Error in mounted hook: "TypeError: parentKonvaNode.add is not a function"
found in
---> <VArrow>
<VCircle>... (1 recursive calls)
<VLayer>
<Edge>
<VStage>
<Anonymous>
<Root>
【问题讨论】:
-
你能做一个演示吗?
标签: vue.js geometry layer stage vue-konva