fixed DatePicker bug

edit date when Do Not use options props
This commit is contained in:
梁灏 2016-12-23 12:24:48 +08:00
parent 63e0444e55
commit d31b080199
2 changed files with 11 additions and 26 deletions

View file

@ -1,30 +1,15 @@
<template>
<date-picker :open="true" type="date" placeholder="选择日期" style="width: 200px"><span></span></date-picker>
<row>
<i-col span="12">
<date-picker type="date" placeholder="选择日期" style="width: 200px"></date-picker>
</i-col>
<i-col span="12">
<date-picker type="daterange" placement="bottom-end" placeholder="选择日期" style="width: 200px"></date-picker>
</i-col>
</row>
</template>
<script>
export default {
data () {
return {
open: false,
value3: ''
}
},
methods: {
handleClick () {
this.open = !this.open;
},
handleChange (date) {
this.value3 = date;
},
c (s) {
console.log(s)
},
clear (s) {
console.log(s)
},
ok (s) {
console.log(s)
}
}
}
</script>