Blame view

src/views/home/index.vue 1.63 KB
宋楠 committed
1 2 3 4
<!-- home -->
<template>
  <div class="app-container">
    <div class="warpper">
sunnie committed
5
      <h1 class="demo-home__title"><img src="https://imgs.solui.cn/weapp/logo.png" /><span> VUE H5开发模板</span></h1>
宋楠 committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
      <h2 class="demo-home__desc">
        A vue h5 template with Vant UI
      </h2>
    </div>
    <van-cell icon="success" v-for="item in list" :key="item" :title="item" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        'Vue-cli4',
宋楠 committed
20 21
        '配置多环境变量',
        'VantUI 组件按需加载',
sunnie committed
22
        'Sass 全局样式',
宋楠 committed
23
        'Webpack 4',
sunnie committed
24 25
        'Vuex 状态管理',
        'Axios 封装及接口管理',
sunnie committed
26
        'Vue-router',
sunnie committed
27
        'Webpack 4 vue.config.js 基础配置',
sunnie committed
28 29 30 31 32 33
        '配置 proxy 跨域',
        '配置 alias 别名',
        '配置 打包分析',
        '配置 externals 引入 cdn 资源',
        '去掉 console.log',
        'splitChunks 单独打包第三方模块',
sunnie committed
34 35
        '添加 IE 兼容',
        'Eslint+Pettier 统一开发规范'
宋楠 committed
36 37 38 39
      ]
    }
  },

40
  computed: {},
宋楠 committed
41

42
  mounted() {},
宋楠 committed
43

宋楠 committed
44
  methods: {}
宋楠 committed
45 46 47 48 49 50
}
</script>
<style lang="scss" scoped>
.app-container {
  .warpper {
    padding: 12px;
宋楠 committed
51
    background: #fff;
宋楠 committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
    .demo-home__title {
      margin: 0 0 6px;
      font-size: 32px;
      .demo-home__title img,
      .demo-home__title span {
        display: inline-block;
        vertical-align: middle;
      }
      img {
        width: 32px;
      }
      span {
        margin-left: 16px;
        font-weight: 500;
      }
    }
    .demo-home__desc {
      margin: 0 0 20px;
      color: rgba(69, 90, 100, 0.6);
      font-size: 14px;
    }
  }
}
</style>