Giter VIP home page Giter VIP logo

Comments (7)

tangtao13 avatar tangtao13 commented on May 28, 2024

调试发现,下拉刷新操作操作DOM:this.updateDampText(needPullDown); this.moveBox(height);` 这两个函数,选择的DOM是先加载的DOM

from taro-listview.

tangtao13 avatar tangtao13 commented on May 28, 2024

能多传一个props 属性,用来操作 const target = document.getElementById("tip-dampText");const target = document.getElementById("bodyView"); 这两个ID选择器么?可以将tip-dampText和bodyView变成动态的么?

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

一个手机端项目,使用大大的组件,封装成一个公共的组件,在消息tab页,待办tab页引用它,,如果先进入消息tab页,下拉刷新可以正常显示,然后进入待办tab页,下拉刷新没有动画。

这里然后进入待办tab页,下拉刷新没有动画。是指再次进入页面吗?

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

调试发现,下拉刷新操作操作DOM:this.updateDampText(needPullDown); this.moveBox(height);` 这两个函数,选择的DOM是先加载的DOM

您的意思是页面上有两个#tip-dampText是吗,在多个组件同时挂载的时候。

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

能多传一个props 属性,用来操作 const target = document.getElementById("tip-dampText");const target = document.getElementById("bodyView"); 这两个ID选择器么?可以将tip-dampText和bodyView变成动态的么?

是不是,我把第二个问题解决了,就不需要这个功能了;
还是说这个功能你有啥用处,如果在H5模式下是可以通过DOM来直接操控。

from taro-listview.

tangtao13 avatar tangtao13 commented on May 28, 2024

项目也是使用Taro开发的。在H5模式下,在加载多个listview后,项目中存在多个#tip-dampText和#bodyview,下拉刷新的时候,会操作第一个选择到的DOM,无法操作想操作的DOM.能传递一个props,用来使#tip-dampText和#bodyview这两个DOM保持唯一么?

from taro-listview.

Rahim-Chan avatar Rahim-Chan commented on May 28, 2024

项目也是使用Taro开发的。在H5模式下,在加载多个listview后,项目中存在多个#tip-dampText和#bodyview,下拉刷新的时候,会操作第一个选择到的DOM,无法操作想操作的DOM.能传递一个props,用来使#tip-dampText和#bodyview这两个DOM保持唯一么?

已修复,升级最新版本即可。

from taro-listview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.