根据vux-https://github.com/airyland/vux 修改升级的2.0
http://jhwong.cn/vux2
(You can view the demos' codes in /src/demos)
# install
npm install vuxx
#vue-cli项目引用
#在webpack.base.conf.js添加loader
{
test: /vuxx.src.*?js$/,
loader: 'babel'
}
#使用组件
<template>
<div>
<group>
<cell title="示例"></cell>
</group>
</div>
</template>
<script>
import Cell from 'vuxx/src/components/Cell'
import Group from 'vuxx/src/components/Group'
export default {
components: {
Group,
Cell
}
}
</script>
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build