Browse Source

[Improvement][UI] Scrolling will be applied to parent model on editor scrolled to top/bottom (#11335)

3.1.0-release
Chris Ho 2 years ago committed by GitHub
parent
commit
991414edc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      dolphinscheduler-ui/src/components/monaco-editor/index.tsx

5
dolphinscheduler-ui/src/components/monaco-editor/index.tsx

@ -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

Loading…
Cancel
Save