[update] 修改bug81904
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
@click="clickField"
|
||||
/>
|
||||
<!-- 使用lazy-render会在进入流程详情页时就卡顿 -->
|
||||
<!-- @opened="opened" -->
|
||||
<van-popup
|
||||
v-model="showCalendar"
|
||||
position="bottom"
|
||||
@@ -68,7 +69,8 @@ export default {
|
||||
return {
|
||||
showCalendar: false,
|
||||
// minDate: new Date(new Date().getFullYear() - 50, 0, 1),
|
||||
// maxDate: new Date(new Date().getFullYear() + 50, 0, 1)
|
||||
// maxDate: new Date(new Date().getFullYear() + 50, 0, 1),
|
||||
// millSeconds: 0,
|
||||
minDate: new Date(1949, 0, 1),
|
||||
maxDate: new Date(2100, 0, 1) // 设置时间可选日期时间跨度太大的话显示和隐藏日历很卡
|
||||
}
|
||||
@@ -96,7 +98,13 @@ export default {
|
||||
return
|
||||
}
|
||||
this.showCalendar = true
|
||||
// this.millSeconds = Date.now()
|
||||
// console.log(new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds(), this.millSeconds)
|
||||
}
|
||||
// opened () {
|
||||
// console.log(new Date().getHours() + ':' + new Date().getMinutes() + ':' + new Date().getSeconds(), Date.now())
|
||||
// console.log(Math.abs(Date.now() - this.millSeconds) + '毫秒')
|
||||
// }
|
||||
},
|
||||
model: {
|
||||
prop: 'value',
|
||||
|
||||
Reference in New Issue
Block a user