提交 13b2d6b8 编写于 作者: KK's avatar KK

日历部件长按事件调整

上级 8ec01bc9
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<van-steps active-icon="passed" inactive-icon="passed" direction="vertical"> <van-steps active-icon="passed" inactive-icon="passed" direction="vertical">
<van-step v-for="(i,index) in evendata[activeItem]" :key="index"> <van-step v-for="(i,index) in evendata[activeItem]" :key="index">
<p>{{i.time}}</p> <p>{{i.time}}</p>
<div class="touch" v-for="(item,index) in i.evens" :key="index" @touchstart="touchStart" @touchend="touchEnd"> <div class="touch" v-for="(item,index) in i.evens" :key="index">
<ion-checkbox v-show="showCheack" class="touch-checkbox" @click.stop="checkboxSelect(item)"></ion-checkbox> <ion-checkbox v-show="showCheack" class="touch-checkbox" @click.stop="checkboxSelect(item)"></ion-checkbox>
<div :key="item.id" class="even-box"> <div :key="item.id" class="even-box">
<#-- BENGIN: 事件内容项 --> <#-- BENGIN: 事件内容项 -->
......
...@@ -710,34 +710,6 @@ import moment from 'moment'; ...@@ -710,34 +710,6 @@ import moment from 'moment';
this.selectedArray.splice(count,1); this.selectedArray.splice(count,1);
} }
} }
/**
* 长按定时器
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public loop :any;
/**
* 开始长按
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public touchStart () {
      clearTimeout(this.loop); //再次清空定时器,防止重复注册定时器
      this.loop = setTimeout(() => {
this.$emit('showCheackChange', !this.showCheack);
      }, 1000);
    }
/**
* 结束长按
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public touchEnd () {
clearTimeout(this.loop); //清空定时器,防止重复注册定时器
}
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册