fix code styles
This commit is contained in:
parent
62c0079a8d
commit
b44d3ea571
|
@ -24,7 +24,7 @@ const props = defineProps({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['reset', 'input', 'save', 'scroll'])
|
const emit = defineEmits(['reset', 'input', 'save'])
|
||||||
|
|
||||||
const scrollTop = ref(0)
|
const scrollTop = ref(0)
|
||||||
|
|
||||||
|
@ -116,9 +116,8 @@ watch(
|
||||||
if (editorNode != null) {
|
if (editorNode != null) {
|
||||||
editorNode.setValue(content)
|
editorNode.setValue(content)
|
||||||
editorNode.onDidLayoutChange(() => {
|
editorNode.onDidLayoutChange(() => {
|
||||||
if (scrollTop.value > 0) {
|
if (scrollTop.value > 0) {
|
||||||
console.log(scrollTop.value);
|
editorNode.setScrollTop(scrollTop.value)
|
||||||
editorNode.setScrollTop(scrollTop.value);
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
await nextTick(() => emit('reset', content))
|
await nextTick(() => emit('reset', content))
|
||||||
|
|
Loading…
Reference in New Issue