@femessage/el-number-range
v1.2.0
Published
[![](https://cdn.nlark.com/yuque/0/2019/svg/224563/1561960751889-d4d8cf71-81dd-4316-b470-96ec2f671707.svg#align=left&display=inline&height=20&originHeight=20&originWidth=90&size=0&status=done&width=90)](https://travis-ci.com/FEMessage/el-number-range) [![
Downloads
24
Readme
el-number-range
Number range input component, first number should be not be bigger than the second.
Table of Contents
Introduction
The number range component is suitable for scenarios which needs set number range via two inputs, such as price range.
Feature
- Automatically range correction
- Support set min and max
Demo
Install
# ensure installed element-ui and registered el-input-number
yarn add element-ui --save
# Step1 install
yarn add @femessage/el-number-range
// Step2 In the required .vue file
<template>
<el-number-range v-model="range" />
</template>
<script>
import ElNumberRange from '@femessage/el-number-range'
export default {
components: {
ElNumberRange
},
data() {
return {
range: [0, 1000]
}
}
}
</script>
Example
Max
Min
Contributors
Thanks goes to these wonderful people (emoji key):
| linrunzheng💻 📖 | EVILLT🚇 | Donald Shen🐛 📖 | levy🚇 👀 | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |