1.0.2 • Published 7 years ago

vue-simple-cell v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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>

4、Result