Browse Source

add lib/index.js

wumuwumu 5 years ago
parent
commit
ffc4c04ded
2 changed files with 22 additions and 2 deletions
  1. 1 2
      src/App.js
  2. 21 0
      src/lib/index.js

+ 1 - 2
src/App.js

@@ -4,8 +4,7 @@ import "./App.css";
 
 import loadJs from "./lib/loadScript";
 import { loadMap } from "./lib/api";
-import Map from "./lib/Map";
-import Marker from "./lib/Marker";
+import {Map,Marker} from './lib'
 import MassMarks from "./lib/MassMarks";
 import LayerTraffic from "./lib/LayerTraffic";
 import Polygon from "./lib/Polygon";

+ 21 - 0
src/lib/index.js

@@ -0,0 +1,21 @@
+import Map from './Map'
+import Circle from './Circle'
+import Geolocation from './Geolocation'
+import InfoWindow from './InfoWindow'
+import LayerTraffic from './LayerTraffic'
+import Marker from './Marker'
+import MassMarks from './MassMarks'
+import Polygon from './Polygon'
+import Polyline from './Polyline'
+
+export  {
+  Map,
+  Circle,
+  Geolocation,
+  InfoWindow,
+  LayerTraffic,
+  Marker,
+  MassMarks,
+  Polygon,
+  Polyline
+}