- Adding map page (where is the location) #100
- fix menu appear Admin and Manager
This commit is contained in:
4
src/components/CGoogleMap/CGoogleMap.scss
Normal file
4
src/components/CGoogleMap/CGoogleMap.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
#map {
|
||||
height: 400px;
|
||||
width: 90%;
|
||||
}
|
||||
28
src/components/CGoogleMap/CGoogleMap.ts
Normal file
28
src/components/CGoogleMap/CGoogleMap.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import Vue from 'vue'
|
||||
import { Component, Prop, Watch } from 'vue-property-decorator'
|
||||
|
||||
import { toolsext } from '@src/store/Modules/toolsext'
|
||||
|
||||
@Component({
|
||||
name: 'CGoogleMap'
|
||||
})
|
||||
|
||||
export default class CGoogleMap extends Vue {
|
||||
@Prop({ required: true, default: 'one' }) public tab
|
||||
|
||||
public map = null
|
||||
|
||||
public initMap() {
|
||||
|
||||
// this.map = new window.google.maps.Map(document.getElementById('map'), {
|
||||
// center: { lat: -34.397, lng: 150.644 },
|
||||
// zoom: 8
|
||||
// })
|
||||
}
|
||||
|
||||
public async mounted() {
|
||||
// await this.$google()
|
||||
// this.initMap()
|
||||
}
|
||||
|
||||
}
|
||||
12
src/components/CGoogleMap/CGoogleMap.vue
Normal file
12
src/components/CGoogleMap/CGoogleMap.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<q-page class="flex flex-center">
|
||||
<div id="map"></div>
|
||||
</q-page>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CGoogleMap.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CGoogleMap.scss';
|
||||
</style>
|
||||
1
src/components/CGoogleMap/index.ts
Normal file
1
src/components/CGoogleMap/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export {default as CGoogleMap} from './CGoogleMap.vue'
|
||||
Reference in New Issue
Block a user