Vue.js vue konva使用VAR/props制作v-text

Vue.js vue konva使用VAR/props制作v-text,vue.js,konvajs,Vue.js,Konvajs,所以我们有一条线,它工作得很好 <v-text :config="{text: 'sampleText'}" /> 正确的方法是什么?您只需使用: <v-text :config="{text: sampleText}" /> 其中,sampleText是一个vue变量您只需使用: <v-text :config="{text: sampleText}" /> 其中,sampleText是一个vue变量 <v-text :config=

所以我们有一条线,它工作得很好

<v-text :config="{text: 'sampleText'}" />
正确的方法是什么?

您只需使用:

<v-text :config="{text: sampleText}" /> 

其中,
sampleText
是一个vue变量

您只需使用:

<v-text :config="{text: sampleText}" /> 

其中,
sampleText
是一个vue变量

<v-text :config="{text: sampleText}" />