当前位置:网站首页>The error of van swipe in the rotation chart: cannot read a properties of null (reading width)
The error of van swipe in the rotation chart: cannot read a properties of null (reading width)
2022-07-24 03:13:00 【Colorful black】

In the use of vant When doing mobile terminal projects , When using the carousel map plug-in , stay data The above error will be thrown in the simulation data :
The solution given on the official website :
1. Use v-if Instead of v-show, use v-if To determine loading
2、 Use delayed re rendering .
watch: {
list(val) {
var _this = this;
setTimeout(() => {
_this.$refs.swipe.resize();
}, 500);
},
},
Tried two schemes : If the data is fixed directly in data in , It doesn't work
Unless stay data It is declared in that the rendered rotation list is empty , Assign value again when the data request comes , No problem
边栏推荐
- Rules for generating 13 digit barcode EAN-13 Code: the thirteenth digit is the verification code obtained by calculating the first twelve digits.
- uva1344
- Diversity of SIGIR '22 recommendation system papers
- JMeter interview script
- Ugui source code analysis - imaskable
- AcWing 4499. 画圆 (相似三角形)
- uva1467
- Secondary development of ArcGIS JS API -- loading national sky map
- SolidWorks cannot reference references
- Tweenmax+svg Pikachu transformation ball
猜你喜欢

Some properties of differential array operation

JS 数组 isAarray() typeof

TCP data transmission and performance

Ways to improve the utilization of openeuler resources 01: Introduction

322. Change

Take you into the world of MySQL mvcc

轮播图van-swipe的报错:cannot read a properties of null(reading width)

The function of SIP account - tell you what is SIP line

The simple use of ADB command combined with monkey is super detailed

How will you answer the "Hello world" challenge written in C language?
随机推荐
Water topic: connect rainwater
LeetCode-栈和队列刷题
CMT 注册——Google Scholar Id,Semantic Scholar Id,和 DBLP Id
Open source embedded sig in the openeuler community. Let's talk about its multi OS hybrid deployment framework
All codes of selenium
summernote富文本编辑器
自定义kindeditor富文本默认的宽高
FTP服务与配置
summernote 字体显示中文
Svn: e00002: can't convert string from 'UTF-8' to native encoding problem solving
Gpushare.com | 如何使用TensorBoardX可视化工具?
What is the security of Treasury reverse repo
Redux Usage Summary
MySQL sub database and sub table and its smooth expansion scheme
String.split()最详细源码解读及注意事项
Summernote rich text editor
Unity 消息推送
OSPF routing control
Open source quantum development framework cirq
Summernote font displays Chinese