material design ui for vue2
使用说明
在项目的根目录下安装改组件:
npm install ashe-ui -s
- 在项目入口的引入该框架:
import AsheUI from 'ashe-ui'
Vue.use(AsheUI,Vue)- 在Vue组件的template中实例化:
<d-news :newsObj=news />- d-news props数据说明
在实例的组件通过newsObj接收数据,数据类型要求:
data() {
return {
news: {
type: 5,
imgList: ["https://raw.githubusercontent.com/github/explore/6c6508f34230f0ac0d49e847a326429eefbfc030/topics/vue/vue.png"],
title:'这是你的标题部分',
time: '这里显示时间',
author: '作者姓名等其他内容'
},
}
}即将完成
- news
- slideDown
- loading
- verification
- scrollbar object{withd,height,theme}
webpack组件清单
- news
- slideDown
- loading
- verification
该组件还在更新中,欢迎issues。
2018年3月28日