docs: ✏️ 优化DateTimePicker组件关于time类型选择器绑定值格式的介绍

This commit is contained in:
xuqingkai 2023-09-18 16:42:53 +08:00 committed by weisheng
parent 2b493f4766
commit 9e958c73f1
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ const value = ref<number>(Date.now())
## time 类型
`time` 类型只展示时分。
`time` 类型只展示时分,绑定值为 `HH:mm` 格式
```html
<wd-datetime-picker-view type="time" v-model="value" label="时分" />

View File

@ -60,13 +60,13 @@ const value = ref<number>(Date.now())
## time 类型
`time` 类型只展示时分。
`time` 类型只展示时分,绑定值为 `HH:mm` 格式
```html
<wd-datetime-picker type="time" v-model="value" label="时分" />
```
```typescript
const value = ref<number>(Date.now())
const value4 = ref<string>('09:20')
```
## 修改展示格式