Skip to content

Commit

Permalink
chore(polygon): 补充新的 Story
Browse files Browse the repository at this point in the history
新增3D 模式下的示例
  • Loading branch information
xyy94813 committed Nov 11, 2023
1 parent 36beca2 commit bfd53eb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/AMapPolygon/stories/AMapPolygon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default {
title: '组件(Components)/覆盖物(Overlay)/AMapPolygon',
decorators: [
withAutoFitView,
withAMap(),
withAMap({ viewMode: '3D', pitch: 30 }),
withAMapContainer,
withAPIContainer,
],
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit bfd53eb

Please sign in to comment.