import Vue from 'vue' Vue.component("screen-select", { template: `
`, props: { data:{ type:Array }, val:{ type:[String,Number] } }, data() { return { show:false, value:'' } }, mounted(){ }, methods: { clickSelectInput(){ this.show = true }, clickSelectOption(item){ this.value = item.text this.$emit('option',item); this.show = false }, hideSelectOption(){ this.show = false } }, watch:{ val:{ hander(){ this.value=this.val||''; } } } })