{"id":19057418,"url":"https://github.com/femessage/el-number-range","last_synced_at":"2025-04-24T05:21:56.295Z","repository":{"id":56378021,"uuid":"168123674","full_name":"FEMessage/el-number-range","owner":"FEMessage","description":"🔢Number range input component","archived":false,"fork":false,"pushed_at":"2020-11-11T10:26:20.000Z","size":3254,"stargazers_count":1,"open_issues_count":13,"forks_count":9,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-18T13:09:43.415Z","etag":null,"topics":["number-input","range-input"],"latest_commit_sha":null,"homepage":"https://femessage.github.io/el-number-range/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FEMessage.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-29T09:03:23.000Z","updated_at":"2023-08-20T18:26:23.000Z","dependencies_parsed_at":"2022-08-15T17:40:24.257Z","dependency_job_id":null,"html_url":"https://github.com/FEMessage/el-number-range","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fel-number-range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fel-number-range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fel-number-range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FEMessage%2Fel-number-range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FEMessage","download_url":"https://codeload.github.com/FEMessage/el-number-range/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250567890,"owners_count":21451517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["number-input","range-input"],"created_at":"2024-11-08T23:57:04.100Z","updated_at":"2025-04-24T05:21:56.278Z","avatar_url":"https://github.com/FEMessage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# el-number-range\n\n[![Build Status](https://travis-ci.com/FEMessage/el-number-range.svg?branch=master)](https://travis-ci.com/FEMessage/el-number-range)\n[![NPM Download](https://img.shields.io/npm/dm/@femessage/el-number-range.svg)](https://www.npmjs.com/package/@femessage/el-number-range)\n[![NPM Version](https://img.shields.io/npm/v/@femessage/el-number-range.svg)](https://www.npmjs.com/package/@femessage/el-number-range)\n[![NPM License](https://img.shields.io/npm/l/@femessage/el-number-range.svg)](https://github.com/FEMessage/el-number-range/blob/master/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/FEMessage/el-number-range/pulls)\n[![Automated Release Notes by gren](https://img.shields.io/badge/%F0%9F%A4%96-release%20notes-00B2EE.svg)](https://github-tools.github.io/github-release-notes/)\n\n数字范围输入框组件\n\n![introduce](https://i.screenshot.net/8lw5osg)\n\n## Table of Contents \u003c!-- omit in toc --\u003e\n\n* [Introduction](#introduction)\n* [Feature](#feature)\n* [Demo](#demo)\n* [Install](#install)\n* [Example](#example)\n  * [设置最大值](#设置最大值)\n  * [设置最小值](#设置最小值)\n* [License](#license)\n\n## Introduction\n\n数字范围输入框，适用于需要输入范围的场景，比如价格，积分范围。\n\n[⬆ Back to Top](#table-of-contents)\n\n## Feature\n\n* 自动进行范围纠正\n* 可自定义输入框范围 min/max\n\n[⬆ Back to Top](#table-of-contents)\n\n## Demo\n\n* [doc and online demo](https://femessage.github.io/el-number-range/)\n\n[⬆ Back to Top](#table-of-contents)\n\n## Install\n\n```sh\n# 确保提前安装了element-ui且注册了el-input-number\nyarn add element-ui --save\n\n# Step1 安装\nyarn add @femessage/el-number-range\n```\n\n```vue\n// Step2 在需要的.vue 文件中\n\u003ctemplate\u003e\n  \u003cel-number-range v-model=\"range\" /\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport ElNumberRange from '@femessage/el-number-range'\n\nexport default {\n  components: {\n    ElNumberRange\n  },\n  data() {\n    return {\n      range: [0, 1000]\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n[⬆ Back to Top](#table-of-contents)\n\n## Example\n\n### 设置最大值\n\n![max](https://i.screenshot.net/e3yvzt8)\n\n### 设置最小值\n\n![min](https://i.screenshot.net/4n4pmum)\n\n[⬆ Back to Top](#table-of-contents)\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\u003ctr\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/linrunzheng\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/20603896?v=4\" width=\"100px;\" alt=\"linrunzheng\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003elinrunzheng\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/FEMessage/el-number-range/commits?author=linrunzheng\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/FEMessage/el-number-range/commits?author=linrunzheng\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"https://evila.me\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/19513289?v=4\" width=\"100px;\" alt=\"EVILLT\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eEVILLT\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-evillt\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e\u003c/td\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"https://donaldshen.github.io/portfolio\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/19591950?v=4\" width=\"100px;\" alt=\"Donald Shen\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDonald Shen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/FEMessage/el-number-range/issues?q=author%3Adonaldshen\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/FEMessage/el-number-range/commits?author=donaldshen\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/levy9527/blog\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/9384365?v=4\" width=\"100px;\" alt=\"levy\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003elevy\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-levy9527\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"#review-levy9527\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n[⬆ Back to Top](#table-of-contents)\n\n## License\n\n[MIT](./LICENSE)\n\n[⬆ Back to Top](#table-of-contents)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemessage%2Fel-number-range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffemessage%2Fel-number-range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemessage%2Fel-number-range/lists"}