docs(inputNumber): fix focus version to 5.22.0 (#51478)

This commit is contained in:
thinkasany 2024-11-04 15:18:48 +08:00 committed by GitHub
parent 299c394c81
commit e8f7b0a620
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ When a numeric value needs to be provided.
<code src="./demo/out-of-range.tsx">Out of range</code> <code src="./demo/out-of-range.tsx">Out of range</code>
<code src="./demo/presuffix.tsx">Prefix / Suffix</code> <code src="./demo/presuffix.tsx">Prefix / Suffix</code>
<code src="./demo/status.tsx">Status</code> <code src="./demo/status.tsx">Status</code>
<code src="./demo/focus.tsx" version="5.23.0">Focus</code> <code src="./demo/focus.tsx" version="5.22.0">Focus</code>
<code src="./demo/controls.tsx" debug>Icon</code> <code src="./demo/controls.tsx" debug>Icon</code>
<code src="./demo/render-panel.tsx" debug>_InternalPanelDoNotUseOrYouWillBeFired</code> <code src="./demo/render-panel.tsx" debug>_InternalPanelDoNotUseOrYouWillBeFired</code>
<code src="./demo/debug-token.tsx" debug>Override Component Style</code> <code src="./demo/debug-token.tsx" debug>Override Component Style</code>
@ -74,7 +74,7 @@ Common props ref[Common props](/docs/react/common-props)
| Name | Description | Type | Version | | Name | Description | Type | Version |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| blur() | Remove focus | - | | | blur() | Remove focus | - | |
| focus() | Get focus | (option?: { preventScroll?: boolean, cursor?: 'start' \| 'end' \| 'all' }) | cursor - 5.23.0 | | focus() | Get focus | (option?: { preventScroll?: boolean, cursor?: 'start' \| 'end' \| 'all' }) | cursor - 5.22.0 |
| nativeElement | The native DOM element | - | 5.17.3 | | nativeElement | The native DOM element | - | 5.17.3 |
## Design Token ## Design Token

View File

@ -30,7 +30,7 @@ demo:
<code src="./demo/out-of-range.tsx">超出边界</code> <code src="./demo/out-of-range.tsx">超出边界</code>
<code src="./demo/presuffix.tsx">前缀/后缀</code> <code src="./demo/presuffix.tsx">前缀/后缀</code>
<code src="./demo/status.tsx">自定义状态</code> <code src="./demo/status.tsx">自定义状态</code>
<code src="./demo/focus.tsx" version="5.23.0">聚焦</code> <code src="./demo/focus.tsx" version="5.22.0">聚焦</code>
<code src="./demo/controls.tsx" debug>图标按钮</code> <code src="./demo/controls.tsx" debug>图标按钮</code>
<code src="./demo/render-panel.tsx" debug>_InternalPanelDoNotUseOrYouWillBeFired</code> <code src="./demo/render-panel.tsx" debug>_InternalPanelDoNotUseOrYouWillBeFired</code>
<code src="./demo/debug-token.tsx" debug>覆盖组件样式</code> <code src="./demo/debug-token.tsx" debug>覆盖组件样式</code>
@ -75,7 +75,7 @@ demo:
| 名称 | 说明 | 参数 | 版本 | | 名称 | 说明 | 参数 | 版本 |
| --- | --- | --- | --- | | --- | --- | --- | --- |
| blur() | 移除焦点 | - | | | blur() | 移除焦点 | - | |
| focus() | 获取焦点 | (option?: { preventScroll?: boolean, cursor?: 'start' \| 'end' \| 'all' }) | cursor - 5.23.0 | | focus() | 获取焦点 | (option?: { preventScroll?: boolean, cursor?: 'start' \| 'end' \| 'all' }) | cursor - 5.22.0 |
| nativeElement | 获取原生 DOM 元素 | - | 5.17.3 | | nativeElement | 获取原生 DOM 元素 | - | 5.17.3 |
## 主题变量Design Token ## 主题变量Design Token