|
@@ -13,6 +13,9 @@ Component({
|
|
|
endDate: {
|
|
|
type: String,
|
|
|
value: getTime.formatTime(new Date(), '-').split(' ')[0]
|
|
|
+ },
|
|
|
+ getDate: {
|
|
|
+ type: Function
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -91,9 +94,7 @@ Component({
|
|
|
}) {
|
|
|
let arr = detail.value;
|
|
|
this.handleChange(`${this.data.years[arr[0]]}-${this.data.months[arr[1]]}-${this.data.days[arr[2]]}`)
|
|
|
- setTimeout(() => {
|
|
|
- console.log(`${this.data.years[arr[0]]}-${this.data.months[arr[1]]}-${this.data.days[arr[2]]}`)
|
|
|
- }, 300)
|
|
|
+ this.triggerEvent("getDate", `${this.data.years[arr[0]]}-${this.data.months[arr[1]]}-${this.data.days[arr[2]]}`);
|
|
|
},
|
|
|
}
|
|
|
})
|