Skip to content

Commit 4dfd1fa

Browse files
committed
docs(TimePicker): fix invalid code block
1 parent c8983b3 commit 4dfd1fa

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

packages/vant/src/address-list/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
| switchable | Whether to allow switch address | _boolean_ | `true` |
9191
| add-button-text | Add button text | _string_ | `Add new address` |
9292
| default-tag-text | Default tag text | _string_ | - |
93-
| right-icon `v4.4.2` | Right Icon | _string_ | `edit` |
93+
| right-icon `v4.5.0` | Right Icon | _string_ | `edit` |
9494

9595
### Events
9696

packages/vant/src/address-list/README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
| switchable | 是否允许切换地址 | _boolean_ | `true` |
9191
| add-button-text | 底部按钮文字 | _string_ | `新增地址` |
9292
| default-tag-text | 默认地址标签文字 | _string_ | - |
93-
| right-icon `v4.4.2` | 右侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props) | _string_ | `edit` |
93+
| right-icon `v4.5.0` | 右侧图标名称或图片链接,等同于 Icon 组件的 [name 属性](#/zh-CN/icon#props) | _string_ | `edit` |
9494

9595
### Events
9696

packages/vant/src/time-picker/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Using `min-time` and `max-time` props to limit the time range, Convention format
173173
/>
174174
```
175175

176-
````js
176+
```js
177177
import { ref } from 'vue';
178178

179179
export default {
@@ -182,16 +182,15 @@ export default {
182182
return { currentTime };
183183
},
184184
};
185-
186-
185+
```
187186

188187
### Advanced Usage
189188

190189
The third parameter of the `filter` function can get the currently selected time, which can be used to filter unwanted times more flexibly when using the uncontrolled mode.
191190

192191
```html
193192
<van-time-picker title="Choose Time" :filter="filter" />
194-
````
193+
```
195194

196195
```js
197196
export default {
@@ -241,8 +240,8 @@ export default {
241240
| max-minute | Max minute | _number \| string_ | `59` |
242241
| min-second | Min second | _number \| string_ | `0` |
243242
| max-second | Max second | _number \| string_ | `59` |
244-
| min-time `v4.4.2` | Min time, format reference `07:40:00`, `min-hour` `min-minute` `min-second` is invalid when used | _string_ | - |
245-
| max-time `v4.4.2` | Max time, format reference `10:20:00`, `min-hour` `min-minute` `max-second` is invalid when used | _string_ | - |
243+
| min-time `v4.5.0` | Min time, format reference `07:40:00`, `min-hour` `min-minute` `min-second` is invalid when used | _string_ | - |
244+
| max-time `v4.5.0` | Max time, format reference `10:20:00`, `min-hour` `min-minute` `max-second` is invalid when used | _string_ | - |
246245
| title | Toolbar title | _string_ | `''` |
247246
| confirm-button-text | Text of confirm button | _string_ | `Confirm` |
248247
| cancel-button-text | Text of cancel button | _string_ | `Cancel` |

packages/vant/src/time-picker/README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ export default {
241241
| max-minute | 可选的最大分钟 | _number \| string_ | `59` |
242242
| min-second | 可选的最小秒数 | _number \| string_ | `0` |
243243
| max-second | 可选的最大秒数 | _number \| string_ | `59` |
244-
| min-time `v4.4.2` | 可选的最小时间,格式参考 `07:40:00`,使用时 `min-hour` `min-minute` `min-second` 无效 | _string_ | - |
245-
| max-time `v4.4.2` | 可选的最大时间,格式参考 `10:20:00`,使用时 `max-hour` `max-minute` `max-second` 无效 | _string_ | - |
244+
| min-time `v4.5.0` | 可选的最小时间,格式参考 `07:40:00`,使用时 `min-hour` `min-minute` `min-second` 无效 | _string_ | - |
245+
| max-time `v4.5.0` | 可选的最大时间,格式参考 `10:20:00`,使用时 `max-hour` `max-minute` `max-second` 无效 | _string_ | - |
246246
| title | 顶部栏标题 | _string_ | `''` |
247247
| confirm-button-text | 确认按钮文字 | _string_ | `确认` |
248248
| cancel-button-text | 取消按钮文字 | _string_ | `取消` |

0 commit comments

Comments
 (0)