元素数从1变成大于1时,初始化设置需要重新计算
Open
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 441
- PR merge metrics
- No merged PRs in 30d
Description
初始化时 data 只有一个元素 设置了isAutoplay = true,isLooping = true
这时isAutoplay和isLooping会自动变成false
当调用loadData 设置data 大于一个元素 isAutoplay 和 isLooping 还是false
需要手动设置 实例的 isAutoplay 和 isLooping 为true 然后 调用实例方法play
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the initialization logic and the loadData and play entry points. Reproduce the sequence with one item, then load more than one item, and verify that isAutoplay and isLooping are recalculated so playback and looping work without manually resetting the properties.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100