Skip to content

Commit

Permalink
feat: some props are changed to deep watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Sep 7, 2022
1 parent 602ddf2 commit 6286cd6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/utils/cesium-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,8 @@ const shapePositions = {
shapePositions: {
type: Array as PropType<VcCartesian2Array>,
watcherOptions: {
cesiumObjectBuilder: makeCartesian2Array
cesiumObjectBuilder: makeCartesian2Array,
deep: true
}
}
}
Expand All @@ -1555,7 +1556,8 @@ const polylinePositions = {
polylinePositions: {
type: Array as PropType<VcCartesian3Array>,
watcherOptions: {
cesiumObjectBuilder: makeCartesian3Array
cesiumObjectBuilder: makeCartesian3Array,
deep: true
}
}
}
Expand Down Expand Up @@ -1616,7 +1618,8 @@ const colors = {
colors: {
type: Array as PropType<Array<VcColor>>,
watcherOptions: {
cesiumObjectBuilder: makeColors
cesiumObjectBuilder: makeColors,
deep: true
}
}
}
Expand Down

0 comments on commit 6286cd6

Please sign in to comment.