This commit is contained in:
2020-07-27 19:27:01 +00:00
parent b4ef3376b2
commit bc0c0f28ac
3 changed files with 113 additions and 12 deletions

View File

@@ -64,6 +64,7 @@ export default {
type: Number,
default: null
},
readonly: { type: Boolean, default: false },
disabled: { type: Boolean, default: false },
ayaType: {
@@ -78,16 +79,17 @@ export default {
type: Boolean,
default: false
},
label: { type: String, default: "" }
},
watch: {
ayaType(val,oldVal){
if(val!=oldVal && oldVal!=null){
//change of type so clear out the list
this.searchResults=[];
this.searchEntry=null;
this.lastSelection=null;
this.initialized=false;
ayaType(val, oldVal) {
if (val != oldVal && oldVal != null) {
//change of type so clear out the list
this.searchResults = [];
this.searchEntry = null;
this.lastSelection = null;
this.initialized = false;
}
},
value(val) {
@@ -123,6 +125,9 @@ export default {
}
},
methods: {
getFullSelectionValue() {
return this.lastSelection;
},
hasError: function() {
return this.errors.length > 0;
},