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',
ctr: () => google.maps.Polyline,
afterCreate() {
emits: evants,
afterCreate(inst) {
let clearEvents = () => {}
events.forEach((event)=> {
inst.addListener(event, (payload)=> {
this.$emit(event, payload)
});
})
this.$watch(
'path',