iview/test/routers/date.vue

31 lines
707 B
Vue
Raw Normal View History

2016-12-12 20:34:28 +08:00
<template>
2016-12-23 10:31:37 +08:00
<date-picker :open="true" type="date" placeholder="选择日期" style="width: 200px"><span></span></date-picker>
2016-12-12 20:34:28 +08:00
</template>
<script>
export default {
data () {
2016-12-14 23:08:57 +08:00
return {
2016-12-22 15:08:05 +08:00
open: false,
value3: ''
2016-12-14 23:08:57 +08:00
}
2016-12-12 20:34:28 +08:00
},
2016-12-15 20:16:58 +08:00
methods: {
2016-12-22 15:08:05 +08:00
handleClick () {
this.open = !this.open;
2016-12-15 20:16:58 +08:00
},
2016-12-22 15:08:05 +08:00
handleChange (date) {
this.value3 = date;
2016-12-16 14:15:11 +08:00
},
2016-12-22 15:08:05 +08:00
c (s) {
console.log(s)
},
clear (s) {
console.log(s)
},
ok (s) {
console.log(s)
2016-12-15 20:16:58 +08:00
}
}
2016-12-12 20:34:28 +08:00
}
2016-12-22 15:08:05 +08:00
</script>