mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-05-04 23:18:05 +08:00
Unify coding style
This commit is contained in:
parent
565f04d49d
commit
ced23f350a
@ -96,13 +96,13 @@ onMounted(async () => {
|
|||||||
// add shortcut for save
|
// add shortcut for save
|
||||||
editorNode.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, (event) => {
|
editorNode.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, (event) => {
|
||||||
emit('save')
|
emit('save')
|
||||||
});
|
})
|
||||||
|
|
||||||
if (props.rememberScroll) {
|
if (props.rememberScroll) {
|
||||||
editorNode.onDidScrollChange((event) => {
|
editorNode.onDidScrollChange((event) => {
|
||||||
// Update scrolltop when scroll height changes, ie. content changes
|
// Update scrolltop when scroll height changes, ie. content changes
|
||||||
if (!event.scrollHeightChanged) {
|
if (!event.scrollHeightChanged) {
|
||||||
scrollTop.value = event.scrollTop;
|
scrollTop.value = event.scrollTop
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user