【常用】Vue文件模板

<template>
  <div id="mapDiv">
  </div>
</template>

<script>
export default {
  name: "",
  data () {
    return {
    };
  },
  props: [],
  components: {},
  beforeDestroy() {
       this.close()
  },
  mounted(){},
   methods:{
    abc:function(){//es5
      console.log(123);
    },
    bcd(){//es6
      console.log(223);
    },
  }
}
</script>
<style lang="scss" scoped>
</style>
<style>
#mapDiv {
  width: 100%;
  height: 100%;
  background: rgb(222, 222, 222);
}
</style>
posted @ 2022-08-11 16:02  ouousan  阅读(229)  评论(0)    收藏  举报