Commit 7f72253b672b74b590e9c8f2b0e5d96f4f4c20b2
1 parent
1af3dd1f
update date demo
Showing
1 changed file
with
13 additions
and
2 deletions
Show diff stats
examples/routers/date.vue
... | ... | @@ -191,14 +191,25 @@ |
191 | 191 | |
192 | 192 | <template> |
193 | 193 | <div> |
194 | - <DatePicker v-model="value" @on-change="handleChange" type="daterange" placeholder="Select date" style="width: 200px"></DatePicker> | |
194 | + <DatePicker v-model="value" @on-change="handleChange" type="datetimerange" placeholder="Select date" style="width: 400px"></DatePicker> | |
195 | + <DatePicker v-model="value2" type="datetime" @on-change="handleChange" style="width: 200px"></DatePicker> | |
196 | + <TimePicker type="time" placeholder="Select time" style="width: 168px"></TimePicker> | |
197 | + {{ value }} | |
198 | + <br> | |
199 | + {{ value2 }} | |
200 | + <br><br> | |
201 | + <DatePicker type="year" v-model="value3" placeholder="Select year" style="width: 200px"></DatePicker> | |
202 | + <DatePicker type="month" v-model="value4" placeholder="Select month" style="width: 200px"></DatePicker> | |
195 | 203 | </div> |
196 | 204 | </template> |
197 | 205 | <script> |
198 | 206 | export default { |
199 | 207 | data () { |
200 | 208 | return { |
201 | - value: [] | |
209 | + value: ['2018-03-05 10:00:00', '2018-05-15 10:01:00'], | |
210 | + value2: '2018-02-05 10:09:00', | |
211 | + value3: '1978', | |
212 | + value4: '1978-05' | |
202 | 213 | } |
203 | 214 | }, |
204 | 215 | methods: { | ... | ... |