Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Conversation

@bao2314483
Copy link

新版本Vue使用:content.sync来进行双向绑定必须在
组件下watch加入一下代码

content(val) {
const content = this.$refs.content.innerHTML
if (val !== content) {
this.$refs.content.innerHTML = val
this.$emit('update:content', val)
}
}

@bao2314483
Copy link
Author

麻烦提交npm

@PeakTai PeakTai merged commit dc130c9 into PeakTai:master Oct 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants