1.2.0 • Published 4 years ago

@femessage/el-number-range v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

el-number-range

npm.io npm.io npm.io npm.io npm.io npm.io

Number range input component, first number should be not be bigger than the second.

npm.io

中文文档

Table of Contents

Introduction

The number range component is suitable for scenarios which needs set number range via two inputs, such as price range.

⬆Back to Top

Feature

  • Automatically range correction
  • Support set min and max

⬆Back to Top

Demo

⬆Back to Top

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>

⬆Back to Top

Example

Max

npm.io

Min

npm.io

⬆Back to Top

Contributors

Thanks goes to these wonderful people (emoji key):

npm.iolinrunzheng💻 📖npm.ioEVILLT🚇npm.ioDonald Shen🐛 📖npm.iolevy🚇 👀
1.2.0

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago