mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
docs(DatePicker): fix basic usage
This commit is contained in:
parent
61ef6b9a98
commit
66aa2906e0
@ -21,7 +21,12 @@ app.use(DatePicker);
|
|||||||
### Basic Usage
|
### Basic Usage
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-date-picker v-model="currentDate" title="Choose Date" />
|
<van-date-picker
|
||||||
|
v-model="currentDate"
|
||||||
|
title="Choose Date"
|
||||||
|
:min-date="minDate"
|
||||||
|
:max-date="maxDate"
|
||||||
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
@ -23,7 +23,12 @@ app.use(DatePicker);
|
|||||||
通过 `v-model` 绑定当前选中的日期,通过 `min-date` 和 `max-date` 属性来设定可选的时间范围。
|
通过 `v-model` 绑定当前选中的日期,通过 `min-date` 和 `max-date` 属性来设定可选的时间范围。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-date-picker v-model="currentDate" title="选择日期" />
|
<van-date-picker
|
||||||
|
v-model="currentDate"
|
||||||
|
title="选择日期"
|
||||||
|
:min-date="minDate"
|
||||||
|
:max-date="maxDate"
|
||||||
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user