Skip to content

Commit b389162

Browse files
authored
string -> _ReactNode_ (#741)
| cancelButtonText | 取消按钮文字 | _ReactNode_ | `取消` |
1 parent cfc9f55 commit b389162

File tree

1 file changed

+1
-1
lines changed
  • packages/react-vant/src/components/datetime-picker

1 file changed

+1
-1
lines changed

packages/react-vant/src/components/datetime-picker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ DatetimePicker 通过 type 属性来定义需要选择的时间类型,type 为
7575
| type | 时间类型,可选值为 `date` `time` <br> `year-month` `month-day` `datehour` | _string_ | `datetime` |
7676
| title | 顶部栏标题 | _ReactNode_ | `''` |
7777
| confirmButtonText | 确认按钮文字 | _ReactNode_ | `确认` |
78-
| cancelButtonText | 取消按钮文字 | _string_ | `取消` |
78+
| cancelButtonText | 取消按钮文字 | _ReactNode_ | `取消` |
7979
| showToolbar | 是否显示顶部栏 | _boolean_ | `true` |
8080
| loading | 是否显示加载状态 | _boolean_ | `false` |
8181
| readOnly | 是否为只读状态,只读状态下无法切换选项 | _boolean_ | `false` |

0 commit comments

Comments
 (0)