jd-opensource / jd-opensource/taro-ui

[H5端]:taroUI的Swiper组件在浏览器平台报错:Cannot read property 'speed' of undefined与Cannot read property 'autoplay' of undefined

Open
#1,252 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

1.问题描述
taroUI在H5端报错:Cannot read property 'speed' of undefined 与 Cannot read property 'autoplay' of undefined;

2.代码
![error](https://user-images.githubusercontent.com/57671953/100852260-348e3700-34c1-11eb-98f3-0f16c283fdea.png)
![code](https://user-images.githubusercontent.com/57671953/100852568-a6ff1700-34c1-11eb-9a3e-e23597043368.png)
![errorInfo](https://user-images.githubusercontent.com/57671953/100853171-6c49ae80-34c2-11eb-8ecf-ba92c6fce777.png)

3.期望行为
浏览器不报'speed'与 'autoplay' 的错误;

4.版本信息
(1)Taro 版本 [v.2.2.15]
(2)Taro UI 版本 [v.2.3.4]
(3)报错平台:谷歌浏览器

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.