select vue component fixes.
This commit is contained in:
parent
73c8f60e48
commit
151248281a
@ -419,7 +419,7 @@ export default {
|
|||||||
description: "Selectbox attribute name"
|
description: "Selectbox attribute name"
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
type: [String, Number],
|
type: [String, Number, Array],
|
||||||
default: null,
|
default: null,
|
||||||
description: "Selectbox selected value"
|
description: "Selectbox selected value"
|
||||||
},
|
},
|
||||||
@ -609,10 +609,18 @@ export default {
|
|||||||
this.selectOptions = options;
|
this.selectOptions = options;
|
||||||
},
|
},
|
||||||
value: function (value) {
|
value: function (value) {
|
||||||
this.real_model = value.toString();
|
if (this.multiple) {
|
||||||
|
this.real_model = value;
|
||||||
|
} else {
|
||||||
|
this.real_model = value.toString();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
model: function (value) {
|
model: function (value) {
|
||||||
this.real_model = value.toString();
|
if (this.multiple) {
|
||||||
|
this.real_model = value;
|
||||||
|
} else {
|
||||||
|
this.real_model = value.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -422,7 +422,7 @@ export default {
|
|||||||
description: "Selectbox attribute name"
|
description: "Selectbox attribute name"
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
type: String,
|
type: [String, Number, Array],
|
||||||
default: null,
|
default: null,
|
||||||
description: "Selectbox selected value"
|
description: "Selectbox selected value"
|
||||||
},
|
},
|
||||||
@ -707,7 +707,18 @@ export default {
|
|||||||
//this.selectOptions = options;
|
//this.selectOptions = options;
|
||||||
},
|
},
|
||||||
value: function (value) {
|
value: function (value) {
|
||||||
this.real_model = value;
|
if (this.multiple) {
|
||||||
|
this.real_model = value;
|
||||||
|
} else {
|
||||||
|
this.real_model = value.toString();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
model: function (value) {
|
||||||
|
if (this.multiple) {
|
||||||
|
this.real_model = value;
|
||||||
|
} else {
|
||||||
|
this.real_model = value.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user