vue-konva 让 v-text 使用 vars/props

vue-konva make v-text use vars/props

所以我们有一条工作正常的线路

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

但是如何让v-text元素使用vuevariable/props?

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

vue 不喜欢这样:

Errors compiling template:    
  invalid expression: Unexpected token { in {text: {{sampleText}}}

正确的方法是什么?

你只需要使用:

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

其中sampleText是vue变量