0.0.1 • Published 7 years ago

vue-selects v0.0.1

Weekly downloads
7
License
-
Repository
github
Last release
7 years ago

vue-selects

grid component used for pc

Show my face

Installation

# install grid component
npm install vue-selects --save

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

DEMO

<template>
  <div id="app">
  	<selects
  		:selects-list="selects.selectsList"
  		:default-obj="selects.defaultObj"
  		:on-choice="choice"
  		>
  	</selects>
  </div>
</template>

<script>
import selects from 'components/'
export default {
	components: {
		selects,
	},
	data () {
		return {
			selects2: {
				selectsList: [{
					text: 'whole',
					id: '0'
				},{
					text: 'selects1',
					id: '1'
				}],
				defaultObj: {
					text: 'selects4',
					id: '1'
				}
			}
		}
	},
	methods: {
		choice(item){
			console.log(item);
		}
	}
}
</script>

API

  • 属性说明
属性说明类型默认值是否必传
selects-listdata listFunction-
default-objdefault value, it will be showedObject-
on-choicethe callback function, when choice one itemFunction-

版本升级

0.0.1

  • 基本功能实现