qhtv1-mouseEvt兼容电脑端长按 滑动 悬停事件 - 更新日志

1.0.12(2022-07-04)

取消调试打印

1.0.11(2022-07-04)

优化3端实时滑动(移动)realTimeMove,传出原生事件

1.0.10(2022-07-04)

优化:H5滑动时误触发点击事件(滑动时应不触发点击事件)

1.0.9(2022-07-02)

优化电脑端手机模式下单击事件重复

1.0.8(2022-06-30)

兼容H5/Android

1.0.7(2022-06-24)

优化:嵌套使用时,部分层点击事件不生效;增加 点击按下/弹起时间阈值clickMS,连击 阈值moreMS ,长按 阈值longMS ,调试打印组件内日志 debug 等参数

1.0.6(2022-06-24)

222

1.0.5(2022-06-24)

添加示例

1.0.4(2022-06-23)

111

1.0.3(2022-06-23)

        {{item.auto?'实时调整':'弹起后调整'}}{{item.name+ind}}   

export default {
    data() {
        return {
            // cursorArr:['col-resize','row-resize'],
            downType:'pointer',
            arr:[
                {name:'测试A',width:600,height:100,auto:true},
                {name:'测试B',width:600,height:100,auto:true},
                {name:'测试C',width:600,height:100,auto:true},
                {name:'测试D',width:600,height:100,auto:true},
                {name:'测试E',width:600,height:100,auto:true},
                ],
        }
    },
    methods: {
        showTest(evt,text,item){
            console.log("myTab evt: ",evt,text);
            if(item.auto&&evt.realTimeMove){
                item.width=evt.offset.width-evt.x;
                item.height=evt.offset.height-evt.y;
                this.downType='move'
            }else if(!item.auto&&(evt.moveRight||evt.moveLeft)){
                this.downType='row-resize'
                item.width=evt.offset.width-evt.x;
            }else if(!item.auto&&(evt.moveTop||evt.moveBottom)){
                this.downType='col-resize'
                item.height=evt.offset.height-evt.y;

            }else{
                this.downType='pointer'
                uni.showToast({title:text+item.name,icon:'success'});
            }
        },
    }
}

1.0.2(2022-06-23)

name:"qhtv1-mouseEvt", 错了,修复一下

1.0.1(2022-06-23)

  * @property  {type} cursor 鼠标样式
  * @event {Function} longpress 长按:{x:0,y:0,max:x,mouseupXY:{x:1,y:1},longpress:长按}
  * @event {Function} click 单击:{x:0,y:0,max:x,mouseupXY:{x:1,y:1},clickCount:1,click:单击}
  * @event {Function} dblClick 双击:{x:0,y:0,max:x,mouseupXY:{x:1,y:1},clickCount:2,dblClick:双击}
  * @event {Function} moreClick 连续点击:{x:0,y:0,max:x,mouseupXY:{x:1,y:1},clickCount:4,moreClick:连续点击}
  * @event {Function} realTimeMove 正在移动:{x:0,y:0,max:x,mouseupXY:{x:1,y:1},realTimeMove:正在移动}
  * @event {Function} mousePause 悬停:{x:0,y:0,max:x,mouseupXY:{x:1,y:1},mousePause:鼠标悬停} 
  * @event {Function} moveLeft 左滑:{x:0,y:0,max:x,mouseupXY:{x:1,y:1},moveLeft:向左滑}
  * @event {Function} moveRight 右滑:同上
  * @event {Function} moveTop 上滑:同上
  * @event {Function} moveBottom 下滑:同上
  * @event {Function} focus 鼠标是否还在

1.0.0(2022-06-23)

呃呃呃呃