Skip to content

Commit

Permalink
feat: update overlay components watch callback
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglei1020 committed Aug 10, 2022
1 parent 76cf9aa commit 97f9e6a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/overlay/bm-circle/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,22 @@
bindEvents(props, vueEmits, circle)
}
// 监听值变化
watch(() => props.center, () => setCenter, { deep: true })
watch(() => props.radius, () => setRadius)
watch(() => props.strokeColor, () => setStrokeColor)
watch(() => props.strokeOpacity, () => setStrokeOpacity)
watch(() => props.fillColor, () => setFillColor)
watch(() => props.fillOpacity, () => setFillOpacity)
watch(() => props.strokeWeight, () => setStrokeWeight)
watch(() => props.strokeStyle, () => setStrokeStyle)
watch(() => props.enableMassClear, () => setMassClear)
watch(() => props.enableEditing, () => setEditing)
watch(() => props.center, setCenter, { deep: true })
watch(() => props.radius, setRadius)
watch(() => props.strokeColor, setStrokeColor)
watch(() => props.strokeOpacity, setStrokeOpacity)
watch(() => props.fillColor, setFillColor)
watch(() => props.fillOpacity, setFillOpacity)
watch(() => props.strokeWeight, setStrokeWeight)
watch(() => props.strokeStyle, setStrokeStyle)
watch(() => props.enableMassClear, setMassClear)
watch(() => props.enableEditing, setEditing)
init()
ready(map)
return cal
})
function setRadius(radius: number): void {
circle.setRadius(radius)
}
Expand Down

0 comments on commit 97f9e6a

Please sign in to comment.