Material design ui for vue2
Install the component in the root directory of the project:
npm install ashe-ui -s
- Import AsheUI at the entry of your project:
import AsheUI from 'ashe-ui'
Vue.use(AsheUI,Vue)
- Instantiation in the template of the Vue component:
<d-news :newsObj=news />
- d-news props data explain
The component receives the data through the 'newsObj':
data() {
return {
news: {
type: 5,
imgList: ["https://raw.githubusercontent.com/github/explore/6c6508f34230f0ac0d49e847a326429eefbfc030/topics/vue/vue.png"],
title:'This is title',
time: 'This is date',
author: 'author or other content'
},
}
}
todo this
- news
- slideDown
- loading
- verification
- scrollbar object{withd,height,theme}
webpack
Component list
- news
- slideDown
- loading
- verification
- scrollbar