feat(projects): 添加百度地图、升级依赖

ISSUES CLOSED: \
This commit is contained in:
Soybean
2022-05-29 22:39:07 +08:00
parent 4c2f535a9b
commit 39854a492b
5 changed files with 113 additions and 117 deletions

View File

@ -1,5 +1,5 @@
<template>
<div ref="domRef"></div>
<div ref="domRef" class="w-full h-full"></div>
</template>
<script setup lang="ts">

View File

@ -12,7 +12,7 @@
<script setup lang="ts">
import type { Component } from 'vue';
import { GaodeMap, TencentMap } from './components';
import { GaodeMap, TencentMap, BaiduMap } from './components';
interface Map {
id: string;
@ -22,7 +22,8 @@ interface Map {
const maps: Map[] = [
{ id: 'gaode', label: '高德地图', component: GaodeMap },
{ id: 'tencent', label: '腾讯地图', component: TencentMap }
{ id: 'tencent', label: '腾讯地图', component: TencentMap },
{ id: 'baidu', label: '百度地图', component: BaiduMap }
];
</script>