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

修复双向绑定content #93

Merged
merged 1 commit into from
Oct 26, 2017
Merged

修复双向绑定content #93

merged 1 commit into from
Oct 26, 2017

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