Skip to content

Commit

Permalink
docs: ✏️ 优化DateTimePicker组件关于time类型选择器绑定值格式的介绍
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingkai authored and Moonofweisheng committed Sep 18, 2023
1 parent 2b493f4 commit 9e958c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/component/datetime-picker-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -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="时分" />
Expand Down
4 changes: 2 additions & 2 deletions docs/component/datetime-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
```

## 修改展示格式
Expand Down

0 comments on commit 9e958c7

Please sign in to comment.