소스 검색

feat:地图组件暂存

张益铭 4 년 전
부모
커밋
3c8e0c5277
8개의 변경된 파일82개의 추가작업 그리고 2개의 파일을 삭제
  1. 13 1
      public/serverConfig.json
  2. 19 0
      src/components/map/amap.vue
  3. 19 0
      src/components/map/baiduMap.vue
  4. 1 0
      src/locales/ch.json
  5. 1 0
      src/locales/en.json
  6. 9 0
      src/router/index.ts
  7. 19 0
      src/views/components/map/index.vue
  8. 1 1
      src/views/welcome.vue

+ 13 - 1
public/serverConfig.json

@@ -1,3 +1,15 @@
 {
-  "version": "1.0.0"
+  "version": "1.0.0",
+  "MapConfigure": {
+    "amapKey": "97b3248d1553172e81f168cf94ea667e",
+    "baiduKey": "wTHbkkEweiFqZLKunMIjcrb2RcqNXkhc",
+    "options": {
+      "resizeEnable": true,
+      "center": [
+        114.085947,
+        22.547
+      ],
+      "zoom": 12
+    }
+  }
 }

+ 19 - 0
src/components/map/amap.vue

@@ -0,0 +1,19 @@
+<template>
+  <div>
+
+  </div>
+</template>
+
+<script lang='ts'>
+export default {
+  setup(){
+    return{
+
+    }
+  },
+}
+</script>
+
+<style scoped>
+
+</style>

+ 19 - 0
src/components/map/baiduMap.vue

@@ -0,0 +1,19 @@
+<template>
+  <div>
+
+  </div>
+</template>
+
+<script lang='ts'>
+export default {
+  setup(){
+    return{
+
+    }
+  },
+}
+</script>
+
+<style scoped>
+
+</style>

+ 1 - 0
src/locales/ch.json

@@ -8,6 +8,7 @@
   "401": "401",
   "components": "组件",
   "video": "视频组件",
+  "map": "地图组件",
   "draggable": "拖拽组件",
   "split-pane": "切割面板"
 }

+ 1 - 0
src/locales/en.json

@@ -8,6 +8,7 @@
   "401": "401",
   "components": "Components",
   "video": "Video Components",
+  "map": "Map Components",
   "draggable": "Draggable Components",
   "split-pane": "Split Pane"
 }

+ 9 - 0
src/router/index.ts

@@ -41,6 +41,15 @@ const routes: Array<RouteRecordRaw> = [
           savedPosition: true
         }
       },
+      {
+        path: '/components/map',
+        component: () => import(/* webpackChunkName: "components" */ '../views/components/map/index.vue'),
+        meta: {
+          title: 'map',
+          showLink: false,
+          savedPosition: true
+        }
+      },
       {
         path: '/components/draggable',
         component: () => import(/* webpackChunkName: "components" */ '../views/components/draggable/index.vue'),

+ 19 - 0
src/views/components/map/index.vue

@@ -0,0 +1,19 @@
+<template>
+  <div>
+
+  </div>
+</template>
+
+<script lang='ts'>
+export default {
+  setup(){
+    return{
+
+    }
+  },
+}
+</script>
+
+<style scoped>
+
+</style>

+ 1 - 1
src/views/welcome.vue

@@ -2,7 +2,7 @@
   <div class="welcome">
     <a
       title="欢迎Star"
-      href="https://github.com/xiaoxian521/CURD-TS/tree/vue-ts"
+      href="https://github.com/xiaoxian521/CURD-TS"
       target="_blank"
       >点击打开仓库地址</a
     >