Loading package.json +1 −1 Original line number Diff line number Diff line { "name": "@fawmi/vue-google-maps", "description": "Google Map components for Vue.js 3", "version": "0.7.10", "version": "0.7.11", "private": false, "main": "src/main.js", "keywords": [ Loading src/components/infoWindow.vue +5 −8 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ const props = { }, } const events = ['domready', 'closeclick', 'content_changed'] const events = ['domready', 'click', 'closeclick', 'content_changed'] export default buildComponent({ mappedProps: props, Loading Loading @@ -61,17 +61,14 @@ export default buildComponent({ }) } }, emits: ['closeclick'], methods: { _openInfoWindow() { this.$infoWindowObject.close() if (this.opened) { if (this.$markerObject !== null) { this.$infoWindowObject.open(this.$map, this.$markerObject) } else { this.$infoWindowObject.open(this.$map) } } else { this.$infoWindowObject.close() this.$emit('closeclick') } }, }, Loading src/components/marker.vue +5 −1 Original line number Diff line number Diff line <template> <div v-if="$slots.default"> <div @click="()=> {console.log('sdfsd')}"> <slot></slot> </div> </template> Loading Loading @@ -89,6 +89,7 @@ export default buildComponent({ default: null, }, }, emits: events, unmounted() { if (!this.$markerObject) { return Loading @@ -114,6 +115,9 @@ export default buildComponent({ if (this.$clusterPromise) { this.$clusterPromise.then((co) => { co.addMarker(inst) inst.addListener('click', ()=> { this.$emit('click') }); this.$clusterObject = co }) } Loading Loading
package.json +1 −1 Original line number Diff line number Diff line { "name": "@fawmi/vue-google-maps", "description": "Google Map components for Vue.js 3", "version": "0.7.10", "version": "0.7.11", "private": false, "main": "src/main.js", "keywords": [ Loading
src/components/infoWindow.vue +5 −8 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ const props = { }, } const events = ['domready', 'closeclick', 'content_changed'] const events = ['domready', 'click', 'closeclick', 'content_changed'] export default buildComponent({ mappedProps: props, Loading Loading @@ -61,17 +61,14 @@ export default buildComponent({ }) } }, emits: ['closeclick'], methods: { _openInfoWindow() { this.$infoWindowObject.close() if (this.opened) { if (this.$markerObject !== null) { this.$infoWindowObject.open(this.$map, this.$markerObject) } else { this.$infoWindowObject.open(this.$map) } } else { this.$infoWindowObject.close() this.$emit('closeclick') } }, }, Loading
src/components/marker.vue +5 −1 Original line number Diff line number Diff line <template> <div v-if="$slots.default"> <div @click="()=> {console.log('sdfsd')}"> <slot></slot> </div> </template> Loading Loading @@ -89,6 +89,7 @@ export default buildComponent({ default: null, }, }, emits: events, unmounted() { if (!this.$markerObject) { return Loading @@ -114,6 +115,9 @@ export default buildComponent({ if (this.$clusterPromise) { this.$clusterPromise.then((co) => { co.addMarker(inst) inst.addListener('click', ()=> { this.$emit('click') }); this.$clusterObject = co }) } Loading