|
|
@ -97,7 +97,10 @@ export default defineComponent({ |
|
|
|
readOnly: formItem.mergedDisabledRef.value || props.options?.readOnly, |
|
|
|
readOnly: formItem.mergedDisabledRef.value || props.options?.readOnly, |
|
|
|
value: props.defaultValue ?? props.value, |
|
|
|
value: props.defaultValue ?? props.value, |
|
|
|
automaticLayout: true, |
|
|
|
automaticLayout: true, |
|
|
|
theme: monacoEditorThemeRef.value |
|
|
|
theme: monacoEditorThemeRef.value, |
|
|
|
|
|
|
|
scrollbar: { |
|
|
|
|
|
|
|
alwaysConsumeMouseWheel: false |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
editor.onDidChangeModelContent(() => { |
|
|
|
editor.onDidChangeModelContent(() => { |
|
|
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props |
|
|
|
const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props |
|
|
|