当前位置:网站首页>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
边栏推荐
- How to write selenium's testng.xml
- 【AMC】联邦量化
- FTP service and configuration
- What is the security of Treasury reverse repo
- Insist on accompanying study
- Water topic: connect rainwater
- Unity Message push
- CMT registration - Google Scholar ID, semantic scholar ID, and DBLP ID
- Example of producer consumer code implemented by the destructor framework without lock
- Redux Usage Summary
猜你喜欢

An introductory example of structure and combinatorial ideas in go language

Ugui source code analysis - imaterialmodifier

summernote富文本编辑器

Babylon.js cool canvas background animation JS special effects

FTP服務與配置

自定义kindeditor富文本默认的宽高

JS array isaarray() typeof

Soft test --- fundamentals of programming language (Part 1)

Hcip day 10 (initial BGP border gateway protocol)

Ugui source code analysis - stencilmaterial
随机推荐
Leetcode stack and queue questions
uva1445
Open source embedded sig in the openeuler community. Let's talk about its multi OS hybrid deployment framework
JMeter interview script
Hcip day 10 (initial BGP border gateway protocol)
Skywalking distributed system application performance monitoring tool - upper
移动通信的新定义:R&SCMX500 将提高5G设备的IP数据吞吐量
SolidWorks CAM data cannot be recovered because a processed part has been detected.
Test interview questions
Tweenmax+svg Pikachu transformation ball
Unity 消息推送
Gpushare.com | 如何使用TensorBoardX可视化工具?
Diversity of SIGIR '22 recommendation system papers
FTP服务与配置
Attack and defense world web practice area (webshell, command_execution, simple_js)
AcWing 4499. 画圆 (相似三角形)
Secondary development of ArcGIS JS API -- loading national sky map
summernote 字体显示中文
How will you answer the "Hello world" challenge written in C language?
go errors