Browse Source

fix(nc-gui): pr review changes

pull/7855/head
Ramesh Mane 8 months ago
parent
commit
c01458ee51
  1. 20
      packages/nc-gui/components/monaco/Editor.vue

20
packages/nc-gui/components/monaco/Editor.vue

@ -15,20 +15,18 @@ interface Props {
autoFocus?: boolean
}
const props = withDefaults(defineProps<Props>(), {
modelValue: '',
lang: 'json',
validate: true,
disableDeepCompare: false,
autoFocus: true,
})
const {
hideMinimap,
lang = 'json',
validate = true,
disableDeepCompare = false,
readOnly,
autoFocus = true,
modelValue = '',
} = defineProps<Props>()
const emits = defineEmits(['update:modelValue'])
const { modelValue } = toRefs(props)
const { hideMinimap, lang, validate, disableDeepCompare, readOnly, autoFocus } = props
const vModel = computed<string>({
get: () => {
if (typeof modelValue === 'object') {

Loading…
Cancel
Save