diff --git a/src/components/AMapPolygon/stories/AMapPolygon.stories.tsx b/src/components/AMapPolygon/stories/AMapPolygon.stories.tsx index 6dc7196..c5f2f10 100644 --- a/src/components/AMapPolygon/stories/AMapPolygon.stories.tsx +++ b/src/components/AMapPolygon/stories/AMapPolygon.stories.tsx @@ -38,7 +38,7 @@ export default { title: '组件(Components)/覆盖物(Overlay)/AMapPolygon', decorators: [ withAutoFitView, - withAMap(), + withAMap({ viewMode: '3D', pitch: 30 }), withAMapContainer, withAPIContainer, ], @@ -382,6 +382,14 @@ CustomStyle.args = { strokeDasharray: [10, 40], }; +export const In3DMode: typeof Template = Template.bind({}); +In3DMode.storyName = '3D 模式'; +In3DMode.args = { + extrusionHeight: 300, + roofColor: 'red', + wallColor: 'yellow', +}; + export const ClickEvent: typeof Template = Template.bind({}); ClickEvent.storyName = '点击事件(左单/左双/右单)'; ClickEvent.args = {