Skip to content

Commit 2bc2983

Browse files
committed
docs: fix Chinese README API names
1 parent 7e7a243 commit 2bc2983

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

README.zh-CN.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66

77
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
88

9-
109
<div align="center">
1110

1211
[![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]
1312

1413
</div>
1514

16-
1715
## 特性
1816

1917
- 水平、垂直和内联菜单模式。
@@ -98,9 +96,9 @@ npm start
9896
| inlineCollapsed | `boolean` | - | 折叠内联菜单布局。 |
9997
| inlineIndent | `number` | `24` | 内联模式的缩进宽度。 |
10098
| itemIcon | `ReactNode \| (props: RenderIconInfo) => ReactNode` | - | 自定义项目图标。 |
101-
| 项目 | `ItemType[]` | - | 菜单项配置。 |
99+
| items | `ItemType[]` | - | 菜单项配置。 |
102100
| mode | `'horizontal' \| 'vertical' \| 'inline'` | `vertical` | Menu display mode. |
103-
| 运动 | `CSSMotionProps` | - | 菜单转换的运动配置。 |
101+
| motion | `CSSMotionProps` | - | 菜单转换的运动配置。 |
104102
| multiple | `boolean` | `false` | 允许选择多个项目。 |
105103
| openKeys | `string[]` | - | 受控打开子菜单键。 |
106104
| overflowedIndicator | `ReactNode` | `"..."` | 为溢出项目呈现的指示器。 |
@@ -151,11 +149,11 @@ type ItemType =
151149

152150
### Ref
153151

154-
| Method | 类型 | 说明 |
155-
| --- | --- | --- |
156-
| `focus` | `(options?: FocusOptions) => void` | 聚焦活动项目或第一个启用的项目。 |
157-
| `findItem` | `({ key: string }) => HTMLElement \| null` | 查找项目键的 DOM 元素。 |
158-
| `list` | `HTMLUListElement` | 根菜单列表元素。 |
152+
| Method | 类型 | 说明 |
153+
| ---------- | ------------------------------------------ | -------------------------------- |
154+
| `focus` | `(options?: FocusOptions) => void` | 聚焦活动项目或第一个启用的项目。 |
155+
| `findItem` | `({ key: string }) => HTMLElement \| null` | 查找项目键的 DOM 元素。 |
156+
| `list` | `HTMLUListElement` | 根菜单列表元素。 |
159157

160158
## 本地开发
161159

0 commit comments

Comments
 (0)