当前位置:网站首页>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
边栏推荐
猜你喜欢
![Hospital PACS source code PACS ultrasonic Department source code DICOM image workstation source code [source code free sharing]](/img/7d/c309b7b0b919df44b5c1461d79e7e7.png)
Hospital PACS source code PACS ultrasonic Department source code DICOM image workstation source code [source code free sharing]

Xiaodi and Xiaohui

openEuler 资源利用率提升之道 01:概论

IDEA Clone的项目报Cannot resolve symbol ‘Override‘

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

PMP preparation experience | good habits, good process, good results

Diversity of SIGIR '22 recommendation system papers

Hcip day 10 (initial BGP border gateway protocol)

summernote富文本编辑器

CMT registration - Google Scholar ID, semantic scholar ID, and DBLP ID
随机推荐
All codes of selenium
关于Aries框架增删改查-查Demo
O3DE 的Lumberyard 游戏引擎
CMT registration - Google Scholar ID, semantic scholar ID, and DBLP ID
水题: 接雨水
I developed an app similar to wechat runnable applet with fluent
How to write selenium's testng.xml
Symbol類型
kettle
Nodejs builds cloud native microservice applications based on dapr, a quick start guide from 0 to 1
Huawei then responded to the rumor of "cleaning up employees over the age of 34". How can programmers cope with the "35 year old crisis"?
Super complete PMP reference document summary
Symbol type
Microsoft win11/10 package manager Winget will support the installation of applications from zip files
Liveqing live RTMP on demand video streaming platform how to carry the Sid and token returned by the login interface to call authentication streamtoken video streaming authentication
Dynamic programming-01 knapsack problem
Insist on accompanying study
How to realize software function safety
Ugui source code analysis - Mask
【AMC】联邦量化