added emits
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user