This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: aonoa <1991849113@qq.com>
- Loading branch information
Showing
12 changed files
with
8,989 additions
and
9,396 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script lang="ts" setup> | ||
</script> | ||
<template> | ||
<div>Demo待补充</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script lang="ts" setup> | ||
</script> | ||
<template> | ||
<div>Demo待补充</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script lang="ts" setup> | ||
import { Gaode } from '@vben/demo' | ||
</script> | ||
<template> | ||
<Gaode /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script lang="ts" setup> | ||
</script> | ||
<template> | ||
<div>Demo待补充</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<script setup> | ||
import { onMounted, onUnmounted } from "vue"; | ||
import AMapLoader from "@amap/amap-jsapi-loader"; | ||
let map = null; | ||
onMounted(() => { | ||
AMapLoader.load({ | ||
key: "d7bb98e7185300250dd5f918c12f484b", // 申请好的Web端开发者Key,首次调用 load 时必填 | ||
version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15 | ||
plugins: ['AMap.Scale'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等 | ||
}) | ||
.then((AMap) => { | ||
map = new AMap.Map("container", { | ||
// 设置地图容器id | ||
viewMode: "3D", // 是否为3D地图模式 | ||
zoom: 11, // 初始化地图级别 | ||
center: [116.397428, 39.90923], // 初始化地图中心点位置 | ||
}); | ||
map.addControl(new AMap.Scale()); | ||
}) | ||
.catch((e) => { | ||
console.log(e); | ||
}); | ||
}); | ||
onUnmounted(() => { | ||
map?.destroy(); | ||
}); | ||
</script> | ||
<template> | ||
<div id="container"></div> | ||
</template> | ||
<style scoped> | ||
#container { | ||
width: 100%; | ||
height: 830px; | ||
} | ||
</style> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,92 @@ | ||
import {LAYOUT} from '../../basic' | ||
|
||
// const charts: RouteRecordItem = { | ||
// path: '/charts', | ||
// name: 'Charts', | ||
// component: LAYOUT, | ||
// redirect: '/charts/index', | ||
// meta: { | ||
// title: '图表', | ||
// orderNo: 6, | ||
// icon: 'material-symbols:bubble-chart-outline', | ||
// root: true | ||
// }, | ||
// children: [] | ||
// } | ||
// | ||
// export default charts | ||
|
||
const charts: RouteRecordItem = { | ||
path: '/charts', | ||
name: 'Charts', | ||
component: LAYOUT, | ||
redirect: '/charts/index', | ||
redirect: '/charts/echarts/map', | ||
meta: { | ||
title: '图表', | ||
orderNo: 6, | ||
icon: 'material-symbols:bubble-chart-outline', | ||
root: true | ||
orderNo: 500, | ||
icon: 'ion:bar-chart-outline', | ||
title: 'routes.demo.charts.charts', | ||
}, | ||
children: [] | ||
} | ||
children: [ | ||
{ | ||
path: 'baiduMap', | ||
name: 'BaiduMap', | ||
meta: { | ||
title: 'routes.demo.charts.baiduMap', | ||
}, | ||
component: () => import('@/pages/demo/charts/map/Baidu.vue'), | ||
}, | ||
{ | ||
path: 'aMap', | ||
name: 'AMap', | ||
meta: { | ||
title: 'routes.demo.charts.aMap', | ||
}, | ||
component: () => import('@/pages/demo/charts/map/Gaode.vue'), | ||
}, | ||
{ | ||
path: 'googleMap', | ||
name: 'GoogleMap', | ||
meta: { | ||
title: 'routes.demo.charts.googleMap', | ||
}, | ||
component: () => import('@/pages/demo/charts/map/Google.vue'), | ||
}, | ||
{ | ||
path: 'echarts', | ||
name: 'Echarts', | ||
component: LAYOUT, | ||
meta: { | ||
title: 'Echarts', | ||
}, | ||
redirect: '/charts/echarts/map', | ||
children: [ | ||
{ | ||
path: 'map', | ||
name: 'Map', | ||
component: () => import('@/pages/demo/charts/Map.vue'), | ||
meta: { | ||
title: 'routes.demo.charts.map', | ||
}, | ||
}, | ||
{ | ||
path: 'line', | ||
name: 'Line', | ||
component: () => import('@/pages/demo/charts/Line.vue'), | ||
meta: { | ||
title: 'routes.demo.charts.line', | ||
}, | ||
}, | ||
{ | ||
path: 'pie', | ||
name: 'Pie', | ||
component: () => import('@/pages/demo/charts/Pie.vue'), | ||
meta: { | ||
title: 'routes.demo.charts.pie', | ||
}, | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
|
||
export default charts | ||
export default charts; |
Oops, something went wrong.