Skip to content

Commit

Permalink
fix(marker3d): type error
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Aug 6, 2024
1 parent 4f4c87d commit 3c224d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/overlay/marker3d/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
size,
fillColor,
fillOpacity,
shape: window[shape]
shape: window[shape as any] as unknown as number
}
if (icon) {
options.icon = getIconConfig()
Expand Down
2 changes: 1 addition & 1 deletion types/BMapGL/overlay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ declare namespace BMapGL {

interface Marker3DOptions {
size?: number
shape?: 'BMAP_SHAPE_CIRCLE' | 'BMAP_SHAPE_RECT'
shape?: number
fillColor?: string
fillOpacity?: number
icon?: Icon
Expand Down

0 comments on commit 3c224d4

Please sign in to comment.