未验证 提交 991414ed 编写于 作者: C Chris Ho 提交者: GitHub

[Improvement][UI] Scrolling will be applied to parent model on editor scrolled...

[Improvement][UI] Scrolling will be applied to parent model on editor scrolled to top/bottom (#11335)
上级 3aa9f2ea
......@@ -97,7 +97,10 @@ export default defineComponent({
readOnly: formItem.mergedDisabledRef.value || props.options?.readOnly,
value: props.defaultValue ?? props.value,
automaticLayout: true,
theme: monacoEditorThemeRef.value
theme: monacoEditorThemeRef.value,
scrollbar: {
alwaysConsumeMouseWheel: false
}
})
editor.onDidChangeModelContent(() => {
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册