added emits

This commit is contained in:
Marco Curatitoli
2023-01-10 12:21:28 +01:00
committed by GitHub
parent ff7f6d20b5
commit cdb286a906

View File

@@ -43,9 +43,15 @@ export default buildComponent({
name: 'polyline', name: 'polyline',
ctr: () => google.maps.Polyline, ctr: () => google.maps.Polyline,
emits: evants,
afterCreate() { afterCreate(inst) {
let clearEvents = () => {} let clearEvents = () => {}
events.forEach((event)=> {
inst.addListener(event, (payload)=> {
this.$emit(event, payload)
});
})
this.$watch( this.$watch(
'path', 'path',