diff --git a/kicc-ui/src/components/AMap/index.ts b/kicc-ui/src/components/AMap/index.ts new file mode 100644 index 00000000..12f708ab --- /dev/null +++ b/kicc-ui/src/components/AMap/index.ts @@ -0,0 +1,4 @@ +import { withInstall } from '/@/utils'; +import Amap from './src/Amap.vue'; + +export const AMap = withInstall(Amap); diff --git a/kicc-ui/src/components/AMap/src/Amap.vue b/kicc-ui/src/components/AMap/src/Amap.vue new file mode 100644 index 00000000..811183c0 --- /dev/null +++ b/kicc-ui/src/components/AMap/src/Amap.vue @@ -0,0 +1,122 @@ + + + diff --git a/kicc-ui/src/components/AMap/src/data.ts b/kicc-ui/src/components/AMap/src/data.ts new file mode 100644 index 00000000..281518cf --- /dev/null +++ b/kicc-ui/src/components/AMap/src/data.ts @@ -0,0 +1,22 @@ + +type mapType = { + plateNumber: string; + driver: string; + 'orientation|1-360': number; + 'lng|113-114.1-10': number; + 'lat|34-35.1-10': number; +}; + +export const mapList = (): mapType[] => { + const result: mapType[] = []; + for (let index = 0; index < 200; index++) { + result.push({ + plateNumber: '豫A@natural(11111, 99999)@character(\'upper\')', + driver: '@cname()', + 'orientation|1-360': 100, + 'lng|113-114.1-10': 1, + 'lat|34-35.1-10': 1 + }); + } + return result; +}; diff --git a/kicc-ui/src/views/map/index.vue b/kicc-ui/src/views/map/index.vue new file mode 100644 index 00000000..a56f1846 --- /dev/null +++ b/kicc-ui/src/views/map/index.vue @@ -0,0 +1,11 @@ + + +