UNPKG

vue-google-places

Version:
38 lines (36 loc) 649 B
import VueGooglePlaces from './VueGooglePlaces' export default { props: { value: String, }, data () { return { val: this.value, place: null } }, watch: { value (value) { this.val = value } }, render (h) { return h(VueGooglePlaces, { ref: 'gp', attrs: this.$attrs, on: { ...this.$listeners, placechanged: (place) => { this.place = place this.$emit('placechanged', place) }, input: (value) => { this.val = value this.$emit('input', value) } } }, [ this.renderInput() ]) } }