File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ import { MouseTool } from '@uiw/react-amap-mouse-tool';
4949
5050### 基本用法
5151
52- 注意,需要加载 ` <APILoader plugin="AMap.MouseTool"> ` ,需要加载 ` AMap.MouseTool ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
52+ 注意,需要加载 ` <APILoader plugin={[ "AMap.MouseTool"]} > ` ,需要加载 ` AMap.MouseTool ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
5353
5454``` jsx
55- < APILoader plugin= " AMap.MouseTool" >
55+ < APILoader plugin= {[ " AMap.MouseTool" ]} >
5656```
5757<!-- rehype:style=background: #fff3b7;-->
5858
@@ -122,7 +122,7 @@ const Example = () => {
122122}
123123
124124const Mount = () => (
125- < APILoader akey= " a7a90e05a37d3f6bf76d4a9032fc9129" plugin= " AMap.MouseTool" >
125+ < APILoader akey= " a7a90e05a37d3f6bf76d4a9032fc9129" plugin= { " AMap.MouseTool" } >
126126 < Example / >
127127 < / APILoader>
128128);
Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ import { PolyEditor } from '@uiw/react-amap-poly-editor';
5252
5353### 基本用法
5454
55- 注意,需要加载 ` <APILoader plugin="AMap.PolyEditor"> ` ,需要加载 ` AMap.PolyEditor ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
55+ 注意,需要加载 ` <APILoader plugin={[ "AMap.PolyEditor"]} > ` ,需要加载 ` AMap.PolyEditor ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
5656
5757``` jsx
58- < APILoader plugin= " AMap.PolyEditor" >
58+ < APILoader plugin= {[ " AMap.PolyEditor" ]} >
5959```
6060<!-- rehype:style=background: #fff3b7;-->
6161
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ import { PolygonEditor } from '@uiw/react-amap-polygon-editor';
4949
5050### 基本用法
5151
52- 注意,需要加载 ` <APILoader plugin="AMap.PolygonEditor"> ` ,需要加载 ` AMap.PolygonEditor ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
52+ 注意,需要加载 ` <APILoader plugin={[ "AMap.PolygonEditor"]} > ` ,需要加载 ` AMap.PolygonEditor ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
5353
5454``` jsx
55- < APILoader plugin= " AMap.PolygonEditor" >
55+ < APILoader plugin= {[ " AMap.PolygonEditor" ]} >
5656```
5757<!-- rehype:style=background: #fff3b7;-->
5858
@@ -125,7 +125,7 @@ const Example = () => {
125125}
126126
127127const Mount = () => (
128- < APILoader akey= " a7a90e05a37d3f6bf76d4a9032fc9129" plugin= " AMap.PolygonEditor" >
128+ < APILoader akey= " a7a90e05a37d3f6bf76d4a9032fc9129" plugin= {[ " AMap.PolygonEditor" ]} >
129129 < Example / >
130130 < / APILoader>
131131);
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ import { PolylineEditor } from '@uiw/react-amap-polyline-editor';
4949
5050### 基本用法
5151
52- 注意,需要加载 ` <APILoader plugin="AMap.PolylineEditor"> ` ,需要加载 ` AMap.PolylineEditor ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
52+ 注意,需要加载 ` <APILoader plugin={[ "AMap.PolylineEditor"]} > ` ,需要加载 ` AMap.PolylineEditor ` <!-- rehype:style=background: #ffe3da;color: #ff5722;--> 插件,如果点击进入当前页面,需要 ` 刷新 ` <!-- rehype:style=background: #e91e63;color: #fff;--> 页面。
5353
5454``` jsx
55- < APILoader plugin= " AMap.PolylineEditor" >
55+ < APILoader plugin= {[ " AMap.PolylineEditor" ]} >
5656```
5757<!-- rehype:style=background: #fff3b7;-->
5858
You can’t perform that action at this time.
0 commit comments