|
2 | 2 | <h1>@rc-component/input-number</h1> |
3 | 3 | <p><sub><img alt="Ant Design" height="14" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" style="vertical-align: -0.125em;" /> Ant Design 生态的一部分。</sub></p> |
4 | 4 | <p>🔢 React 数字输入组件,支持格式化、精度、步进和键盘交互。</p> |
5 | | -</div> |
6 | | - |
7 | | -<p align="center"><a href="./README.md">English</a> | 简体中文</p> |
8 | | - |
9 | | - |
10 | | -<div align="center"> |
11 | | - |
12 | | -[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url] [![dumi][dumi-image]][dumi-url] |
13 | 5 |
|
| 6 | + <p> |
| 7 | + <a href="https://npmjs.org/package/@rc-component/input-number"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/input-number.svg?style=flat-square"></a> |
| 8 | + <a href="https://npmjs.org/package/@rc-component/input-number"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/input-number.svg?style=flat-square"></a> |
| 9 | + <a href="https://github.com/react-component/input-number/actions/workflows/react-component-ci.yml"><img alt="build status" src="https://github.com/react-component/input-number/actions/workflows/react-component-ci.yml/badge.svg"></a> |
| 10 | + <a href="https://app.codecov.io/gh/react-component/input-number"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/input-number/master.svg?style=flat-square"></a> |
| 11 | + <a href="https://bundlephobia.com/package/@rc-component/input-number"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/input-number?style=flat-square"></a> |
| 12 | + <a href="https://github.com/umijs/dumi"><img alt="dumi" src="https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square"></a> |
| 13 | + </p> |
14 | 14 | </div> |
15 | 15 |
|
| 16 | +<p align="center"><a href="./README.md">English</a> | 简体中文</p> |
16 | 17 |
|
17 | 18 | ## 特性 |
18 | 19 |
|
@@ -111,10 +112,10 @@ ref.current?.focus(); |
111 | 112 | ref.current?.blur(); |
112 | 113 | ``` |
113 | 114 |
|
114 | | -| 参数 | 类型 | 说明 | |
115 | | -| ------------- | --------------------------------------- | -------------------- | |
116 | | -| focus | `(options?: InputFocusOptions) => void` | 集中输入。 | |
117 | | -| blur | `() => void` | 模糊输入。 | |
| 115 | +| 参数 | 类型 | 说明 | |
| 116 | +| ------------- | --------------------------------------- | ------------ | |
| 117 | +| focus | `(options?: InputFocusOptions) => void` | 集中输入。 | |
| 118 | +| blur | `() => void` | 模糊输入。 | |
118 | 119 | | nativeElement | `HTMLElement` | 根原生元素。 | |
119 | 120 |
|
120 | 121 | ## 键盘与滚轮 |
@@ -148,16 +149,3 @@ npm run prepublishOnly |
148 | 149 | ## 许可证 |
149 | 150 |
|
150 | 151 | @rc-component/input-number 基于 [MIT](./LICENSE) 许可证发布。 |
151 | | - |
152 | | -[npm-image]: https://img.shields.io/npm/v/@rc-component/input-number.svg?style=flat-square |
153 | | -[npm-url]: https://npmjs.org/package/@rc-component/input-number |
154 | | -[github-actions-image]: https://github.com/react-component/input-number/actions/workflows/react-component-ci.yml/badge.svg |
155 | | -[github-actions-url]: https://github.com/react-component/input-number/actions/workflows/react-component-ci.yml |
156 | | -[codecov-image]: https://img.shields.io/codecov/c/github/react-component/input-number/master.svg?style=flat-square |
157 | | -[codecov-url]: https://app.codecov.io/gh/react-component/input-number |
158 | | -[download-image]: https://img.shields.io/npm/dm/@rc-component/input-number.svg?style=flat-square |
159 | | -[download-url]: https://npmjs.org/package/@rc-component/input-number |
160 | | -[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/input-number |
161 | | -[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/@rc-component/input-number?style=flat-square |
162 | | -[dumi-url]: https://github.com/umijs/dumi |
163 | | -[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square |
0 commit comments