[update] 修改bug81904

This commit is contained in:
lideqin
2024-02-21 18:29:25 +08:00
parent 8f72b775fc
commit 85360e24df
+9 -1
View File
@@ -15,6 +15,7 @@
@click="clickField" @click="clickField"
/> />
<!-- 使用lazy-render会在进入流程详情页时就卡顿 --> <!-- 使用lazy-render会在进入流程详情页时就卡顿 -->
<!-- @opened="opened" -->
<van-popup <van-popup
v-model="showCalendar" v-model="showCalendar"
position="bottom" position="bottom"
@@ -68,7 +69,8 @@ export default {
return { return {
showCalendar: false, showCalendar: false,
// minDate: new Date(new Date().getFullYear() - 50, 0, 1), // 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), minDate: new Date(1949, 0, 1),
maxDate: new Date(2100, 0, 1) // 设置时间可选日期时间跨度太大的话显示和隐藏日历很卡 maxDate: new Date(2100, 0, 1) // 设置时间可选日期时间跨度太大的话显示和隐藏日历很卡
} }
@@ -96,7 +98,13 @@ export default {
return return
} }
this.showCalendar = true 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: { model: {
prop: 'value', prop: 'value',