Selectbox set default model..

This commit is contained in:
Cüneyt Şentürk 2020-03-19 20:56:37 +03:00
parent d54c0369b9
commit 0fe4e143d4

View File

@ -445,14 +445,14 @@ export default {
description: "Selectbox attribute name"
},
value: {
type: [String, Number, Array],
type: [String, Number, Array, Object],
default: '',
description: "Selectbox selected value"
},
options: null,
model: {
type: [String, Number],
type: [String, Number, Array, Object],
default: '',
description: "Selectbox selected model"
},
@ -544,7 +544,11 @@ export default {
this.real_model = this.value;
if (this.model.length) {
this.real_model = this.model;
if (eval(this.model) !== undefined) {
this.real_model = eval(this.model);
} else {
this.real_model = this.model;
}
}
if (this.multiple && !this.real_model.length) {