1.0.2 • Published 7 years ago
vue-simple-cell v1.0.2
About
一个简单的Vue组件
Build Setup
npm install vue-simple-cell --save
How to use
1、.vue文件里导入
import cell from "vue-simple-cell"
export default {
name: 'myComponent',
components: {
cell
}
}
2、prop可传递的属性
props: {
:dataAry="[{
title: '', // String
value: '', // String
dataList: [] // Array
}]"
}
3、Example
<cell
:dataAry="[{
title: '数量',
value: '0',
dataList: ['1', '2', '3']
},{
title: '高度',
value: '1米',
dataList: ['2米', '3米', '4米']
}]">
</cell>