在movable-area中如何获取movable-view的坐标

发布于 8 年前作者 fang175868 次浏览最后编辑 8 年前来自 issues

想获取movable-view在页面的位置,但一直获取不到,应该获取它?

2 回复
ping05
ping051 楼6 年前

touchChange(e){

    let moveDelail = {

        id:e.target.id,

        x:e.detail.x + e.target.offsetLeft,

        y:e.detail.y + e.target.offsetTop

    }

    console.log(moveDelail)

    },

gdeng
gdeng2 楼6 年前