Vue从开始到入坑

2017-01-22  本文已影响78人  itcong

Vue从开始到入坑

查看官网和网友的资料总结

1.首先通过vue-cli脚手架快速建立项目(不多介绍)
2.UI使用Vux

const webpackConfig = module.exports
 const vuxLoader = require('vux-loader')
module.exports = vuxLoader.merge(webpackConfig, {
  options: {},
  plugins: [
    {
      name: 'vux-ui'
    }
  ]
})
<template>
  <div id="app">
    11122
    <group>
      <cell title="title" value="value"></cell>
    </group>
    <grid>
      <grid-item label="Grid" v-for="i in 9">
        ![](./assets/logo.png)
      </grid-item>
    </grid>
  </div>
</template>
<script>
import { Group, Cell, Grid, GridItem } from 'vux'
export default {
  name: 'app',
  components: {
    Group,
    Cell,
    Grid,
    GridItem
  }
}
</script>
效果图
下一步,添加vue-route

©itcong

上一篇 下一篇

猜你喜欢

热点阅读