Skip to content

Commit 65a9298

Browse files
authored
docs: picker info parameter add version doc (#6881)
1 parent c97a495 commit 65a9298

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/guide/v5-for-19.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Therefore, you need to use a compatibility configuration to make antd-mobile wor
2121
`unstableSetRender` is a low-level registration method that allows developers to modify the rendering method of ReactDOM. Write the following code at the entry of your application:
2222

2323
```js
24-
import { unstableSetRender } from 'antd-mobile'; // Support since version ^5.39.1
24+
import { unstableSetRender } from 'antd-mobile'; // Support since version ^5.40.0
2525
import { createRoot } from 'react-dom/client';
2626

2727
unstableSetRender((node, container) => {

docs/guide/v5-for-19.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
`unstableSetRender` 为底层注册方法,允许开发者修改 ReactDOM 的渲染方法。在你的应用入口处写入:
2222

2323
```js
24-
import { unstableSetRender } from 'antd-mobile'; // Support since version ^5.39.1
24+
import { unstableSetRender } from 'antd-mobile'; // Support since version ^5.40.0
2525
import { createRoot } from 'react-dom/client';
2626

2727
unstableSetRender((node, container) => {

src/components/picker/index.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ type PickerDate = Date & {
163163
| onConfirm | Triggered when confirming | `(value: PickerDate) => void` | - |
164164
| onSelect | Triggered when the options are changed | `(value: PickerDate) => void` | - |
165165
| precision | Precision | `'year' \| 'month' \| 'day' \| 'hour' \| 'minute' \| 'second' \| 'week' \| 'week-day' \| 'quarter'` | `'day'` |
166-
| renderLabel | The function to custom rendering the label shown on a column. `type` means any value in `precision` or `now`, `data` means the default number | `(type: Precision \| 'now', data: number, info: { selected: boolean }) => ReactNode` | - |
166+
| renderLabel | The function to custom rendering the label shown on a column. `type` means any value in `precision` or `now`, `data` means the default number | `(type: Precision \| 'now', data: number, info: { selected: boolean }) => ReactNode` | - | 5.40.0 |
167167
| tillNow | Show till now in list | `boolean` | - | 5.27.0 |
168168
| value | Selected value | `PickerDate` | - |
169169

src/components/picker/index.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ type PickerDate = Date & {
165165
| onConfirm | 确认时触发 | `(value: PickerDate) => void` | - |
166166
| onSelect | 选项改变时触发 | `(value: PickerDate) => void` | - |
167167
| precision | 精度 | `'year' \| 'month' \| 'day' \| 'hour' \| 'minute' \| 'second' \| 'week' \| 'week-day' \| 'quarter'` | `'day'` |
168-
| renderLabel | 自定义渲染每列展示的内容。其中 `type` 参数为 `precision` 中的任意值或 `now``data` 参数为默认渲染的数字 | `(type: Precision \| 'now', data: number, info: { selected: boolean }) => ReactNode` | - |
168+
| renderLabel | 自定义渲染每列展示的内容。其中 `type` 参数为 `precision` 中的任意值或 `now``data` 参数为默认渲染的数字 | `(type: Precision \| 'now', data: number, info: { selected: boolean }) => ReactNode` | - | 5.40.0 |
169169
| tillNow | 是否展示“至今” | `boolean` | - | 5.27.0 |
170170
| value | 选中值 | `PickerDate` | - |
171171

0 commit comments

Comments
 (0)