Skip to content

Latest commit

 

History

History
109 lines (72 loc) · 4.18 KB

README-zh.md

File metadata and controls

109 lines (72 loc) · 4.18 KB

el-number-range

Build Status NPM Download NPM Version NPM License PRs Welcome Automated Release Notes by gren

数字范围输入框组件

introduce

Table of Contents

Introduction

数字范围输入框,适用于需要输入范围的场景,比如价格,积分范围。

⬆ Back to Top

Feature

  • 自动进行范围纠正
  • 可自定义输入框范围 min/max

⬆ Back to Top

Demo

⬆ Back to Top

Install

# 确保提前安装了element-ui且注册了el-input-number
yarn add element-ui --save

# Step1 安装
yarn add @femessage/el-number-range
// Step2 在需要的.vue 文件中
<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

设置最小值

min

⬆ Back to Top

Contributors

Thanks goes to these wonderful people (emoji key):

linrunzheng
linrunzheng

💻 📖
EVILLT
EVILLT

🚇
Donald Shen
Donald Shen

🐛 📖
levy
levy

🚇 👀

This project follows the all-contributors specification. Contributions of any kind welcome!

⬆ Back to Top

License

MIT

⬆ Back to Top