Comments (7)
调试发现,下拉刷新操作操作DOM:
this.updateDampText(needPullDown); this.moveBox(height);` 这两个函数,选择的DOM是先加载的DOM
from taro-listview.
能多传一个props 属性,用来操作 const target = document.getElementById("tip-dampText");
和 const target = document.getElementById("bodyView");
这两个ID选择器么?可以将tip-dampText和bodyView变成动态的么?
from taro-listview.
一个手机端项目,使用大大的组件,封装成一个公共的组件,在消息tab页,待办tab页引用它,,如果先进入消息tab页,下拉刷新可以正常显示,然后进入待办tab页,下拉刷新没有动画。
这里然后进入待办tab页,下拉刷新没有动画。
是指再次进入页面吗?
from taro-listview.
调试发现,下拉刷新操作操作DOM:
this.updateDampText(needPullDown); this.moveBox(height);` 这两个函数,选择的DOM是先加载的DOM
您的意思是页面上有两个#tip-dampText
是吗,在多个组件同时挂载的时候。
from taro-listview.
能多传一个props 属性,用来操作
const target = document.getElementById("tip-dampText");
和const target = document.getElementById("bodyView");
这两个ID选择器么?可以将tip-dampText和bodyView变成动态的么?
是不是,我把第二个问题解决了,就不需要这个功能了;
还是说这个功能你有啥用处,如果在H5模式下是可以通过DOM来直接操控。
from taro-listview.
项目也是使用Taro开发的。在H5模式下,在加载多个listview后,项目中存在多个#tip-dampText和#bodyview,下拉刷新的时候,会操作第一个选择到的DOM,无法操作想操作的DOM.能传递一个props,用来使#tip-dampText和#bodyview这两个DOM保持唯一么?
from taro-listview.
项目也是使用Taro开发的。在H5模式下,在加载多个listview后,项目中存在多个#tip-dampText和#bodyview,下拉刷新的时候,会操作第一个选择到的DOM,无法操作想操作的DOM.能传递一个props,用来使#tip-dampText和#bodyview这两个DOM保持唯一么?
已修复,升级最新版本即可。
from taro-listview.
Related Issues (20)
- 2.0.2报错 HOT 1
- taro3.0.15报错Super expression must either be null or a function HOT 7
- 下拉刷新和释放刷新那几个字好大啊,能小点吗 HOT 1
- +1
- 2.0.3版本在 npm 包中找不到 HOT 5
- taro3.0.19使用taro-listview1.4.4版本报错 HOT 3
- taro-listview2.0版本使用以下参数下拉刷新没有生效! HOT 10
- 发现了好几个bug HOT 4
- 请问是否支持2.x 以及3.x HOT 2
- Super expression must either be null or a function HOT 4
- 第一页数据未满一屏时,不能上拉请求第二页数据 HOT 3
- android 7 及以下版本,滑动卡顿 HOT 1
- 百度小程序下拉刷新报错Cannot read property 'eventHappen' of null HOT 1
- 支持上拉加载和下拉刷新增加活动指示器吗 HOT 2
- 上拉加载更多问题 HOT 6
- 自定义页面 UI的属性设置无效 HOT 2
- 自定义无效 HOT 2
- 加载中、下拉刷新 文字不居中
- lazyBox_lazyView的缓存里只有viewHeight,key丢失
- onScroll weapp 没有用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taro-listview.