Vue.js 如何在Vue中设置消息模板?

Vue.js 如何在Vue中设置消息模板?,vue.js,vuetify.js,Vue.js,Vuetify.js,例如,我有一条带有{{hello}}世界的消息带值hello=Hola我怎样才能做到?我知道我们可以使用{{hello}}来获取标记值,但是如果我想使用模板消息呢 我真正想要的是 <tag :message=`{{hello}} world!` :hello="hola" /> 我尝试这种方法 <tag :message="`${hello} world!`" :hello="hello" /> data(){ return{ hello:

例如,我有一条带有
{{hello}}世界的消息带值
hello=Hola
我怎样才能做到?我知道我们可以使用
{{hello}}
来获取标记值,但是如果我想使用模板消息呢

我真正想要的是

<tag
  :message=`{{hello}} world!`
  :hello="hola"
/>

我尝试这种方法

<tag
  :message="`${hello} world!`"
  :hello="hello"
/>
data(){
  return{
    hello:'hora'
  }
}

数据(){
返回{
你好:'hora'
}
}