Skip to content

Commit b70ff85

Browse files
committed
docs: align readme badge layout
1 parent 01e7631 commit b70ff85

2 files changed

Lines changed: 22 additions & 46 deletions

File tree

README.md

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
<h1>@rc-component/input-number</h1>
33
<p><sub><img alt="Ant Design" height="14" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" style="vertical-align: -0.125em;" /> Part of the Ant Design ecosystem.</sub></p>
44
<p>🔢 Accessible React number input with precision, formatting, keyboard, and wheel support.</p>
5-
</div>
6-
7-
<p align="center">English | <a href="./README.zh-CN.md">简体中文</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]
135

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>
1414
</div>
1515

16+
<p align="center">English | <a href="./README.zh-CN.md">简体中文</a></p>
1617

1718
## Highlights
1819

@@ -148,16 +149,3 @@ The release flow is handled by `@rc-component/np` through the `rc-np` command af
148149
## License
149150

150151
@rc-component/input-number is released under the [MIT](./LICENSE) 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

README.zh-CN.md

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
<h1>@rc-component/input-number</h1>
33
<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>
44
<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]
135

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>
1414
</div>
1515

16+
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
1617

1718
## 特性
1819

@@ -111,10 +112,10 @@ ref.current?.focus();
111112
ref.current?.blur();
112113
```
113114

114-
| 参数 | 类型 | 说明 |
115-
| ------------- | --------------------------------------- | -------------------- |
116-
| focus | `(options?: InputFocusOptions) => void` | 集中输入。 |
117-
| blur | `() => void` | 模糊输入。 |
115+
| 参数 | 类型 | 说明 |
116+
| ------------- | --------------------------------------- | ------------ |
117+
| focus | `(options?: InputFocusOptions) => void` | 集中输入。 |
118+
| blur | `() => void` | 模糊输入。 |
118119
| nativeElement | `HTMLElement` | 根原生元素。 |
119120

120121
## 键盘与滚轮
@@ -148,16 +149,3 @@ npm run prepublishOnly
148149
## 许可证
149150

150151
@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

Comments
 (0)