support DatePicker & TimePicker
support DatePicker & TimePicker
This commit is contained in:
parent
5b19b5f55f
commit
531cd1654b
19 changed files with 265 additions and 79 deletions
|
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue