提交 8d9d6218 编写于 作者: B baiy 提交者: ninecents

fix diff editor lost focus

上级 f5639ffe
......@@ -29,9 +29,11 @@ export default {
},
watch: {
value:{
handler(){
this.reset()
value: {
handler(val) {
if (this.editor !== null) {
this.editor.customSetValue(val)
}
},
deep: true
},
......@@ -72,10 +74,11 @@ export default {
</script>
<style>
.diff-editor .CodeMirror-merge{
.diff-editor .CodeMirror-merge {
border: none;
}
.diff-editor .CodeMirror-merge,.diff-editor .CodeMirror-merge-pane, .diff-editor .CodeMirror-merge .CodeMirror {
.diff-editor .CodeMirror-merge, .diff-editor .CodeMirror-merge-pane, .diff-editor .CodeMirror-merge .CodeMirror {
height: 100%;
}
</style>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册