element/packages/slider
2017-01-10 10:48:09 +08:00
..
src Slider: add show-input-controls, fixed #2304 2017-01-10 10:48:09 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
package.json Add vue-popup and dom helper 2016-12-26 11:41:15 +08:00
README.md component README update and fix 2016-12-16 10:57:54 +08:00

element-slider

A element-slider component for Vue.js.

Demo

http://element-component.github.io/element-slider

Installation

npm i element-slider -D

Usage

import Vue from 'vue'
import ElSlider from 'element-slider'
import 'element-theme-default/dist/slider.css'

Vue.use(ElSlider)

or

import Vue from 'vue'
import ElSlider from 'element-slider'

Vue.component('el-slider', ElSlider)

Attributes

参数 说明 类型 可选值 默认值
min 最小值 number 0
max 最大值 number 100
disabled 是否禁用 boolean false
step 步长 number 1
show-input 是否显示输入框 boolean false
show-stops 是否显示间断点 boolean false

Events

事件名称 说明 回调参数
change 值改变时触发 改变后的值

Development

make dev

## test
make test

## build
make build

License

MIT