vue-html5-editor icon indicating copy to clipboard operation
vue-html5-editor copied to clipboard

输入内容后,content的值不变化

Open SunCyril opened this issue 8 years ago • 5 comments

`<vue-html5-editor :content="content" :height="500" @change="updateData">

data () { return { content: '' } }`

当给输入框赋值后,content的值一直是空,并没有变化,是怎么回事呢?

SunCyril avatar Aug 11 '17 07:08 SunCyril

我也遇到了同样的问题

44886 avatar Aug 12 '17 12:08 44886

好像content不是双向绑定的,可以在updateData回调中将值手动传回了。

updateData: function(data) {
    this.content = data;
}

preview中也是这样实现的。

sumy7 avatar Aug 18 '17 05:08 sumy7

我已经提交了支持双向绑定功能了

bao2314483 avatar Aug 18 '17 09:08 bao2314483

怎么进行双向数据绑定啊,求指教!!!

weijing1224 avatar Feb 08 '18 10:02 weijing1224

目前这个插件只能自己绑定事件来进行双向绑定 @change="val=>AddForm.GoodsCredentials=val"

bao2314483 avatar Feb 09 '18 01:02 bao2314483