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