File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,17 @@ const props = defineProps({
6060 readonly: {
6161 type: Boolean ,
6262 default: false
63+ },
64+ defaultLanguage: {
65+ type: String ,
66+ default: ' json'
6367 }
6468})
6569
6670const emits = defineEmits ([' update:modelValue' , ' update:parseError' ])
6771
6872const insideValue = ref ({})
69- const language = ref (' json ' )
73+ const language = ref (props . defaultLanguage )
7074const code = ref (' {}' )
7175
7276/**
Original file line number Diff line number Diff line change 5353 <v-window-item value =" schema" >
5454 <object-editor
5555 v-model =" schema"
56+ default-language =" yaml"
5657 @update:parse-error =" err => setParseError('schema', err)"
5758 />
5859 </v-window-item >
5960 <v-window-item value =" options" >
6061 <object-editor
6162 v-model =" options"
63+ default-language =" yaml"
6264 @update:parse-error =" err => setParseError('options', err)"
6365 />
6466 </v-window-item >
You can’t perform that action at this time.
0 commit comments