fix selecting and custom formats

This commit is contained in:
Nitwel
2020-09-14 14:56:52 +02:00
parent acf466cdec
commit d13ea6041e
4 changed files with 37 additions and 21 deletions

View File

@@ -34,7 +34,7 @@ export default defineComponent({
default: false,
},
value: {
type: [String, Object],
type: [String, Object, Array],
default: null,
},
altOptions: {
@@ -274,7 +274,7 @@ export default defineComponent({
};
function fillTemplate() {
if(props.type === 'json') {
if (props.type === 'json') {
try {
emit('input', JSON.parse(props.template));
} catch {}