support DatePicker & TimePicker

support DatePicker & TimePicker
This commit is contained in:
梁灏 2017-03-07 18:06:56 +08:00
parent 5b19b5f55f
commit 531cd1654b
19 changed files with 265 additions and 79 deletions

View file

@ -23,11 +23,11 @@ export default {
value: {}
},
created () {
if (!this.value) {
if (!this.currentValue) {
if (this.type === 'daterange' || this.type === 'datetimerange') {
this.value = ['',''];
this.currentValue = ['',''];
} else {
this.value = '';
this.currentValue = '';
}
}

View file

@ -24,11 +24,11 @@ export default {
value: {}
},
created () {
if (!this.value) {
if (!this.currentValue) {
if (this.type === 'timerange') {
this.value = ['',''];
this.currentValue = ['',''];
} else {
this.value = '';
this.currentValue = '';
}
}
this.panel = getPanel(this.type);