You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
问题描述
[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚]
JSX中使用使用swiper组件报错 Uncaught (in promise) TypeError: Swipers is not a constructor at Swiper.componentDidMount (index.js?a9b7:87) at eval (index.js?1e21:1584) at errorCatcher (index.js?1e21:1482) at eval (index.js?1e21:1583) at Array.forEach (<anonymous>) at flushMount (index.js?1e21:1579) at updateComponent (index.js?1e21:1666) at Route.forceUpdate (index.js?1e21:1762) at eval (index.js?e6ae:2515) 复现步骤
this.mySwiper = new Swipers(this.$el, opt)
问题描述
[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚]
JSX中使用使用swiper组件报错
Uncaught (in promise) TypeError: Swipers is not a constructor at Swiper.componentDidMount (index.js?a9b7:87) at eval (index.js?1e21:1584) at errorCatcher (index.js?1e21:1482) at eval (index.js?1e21:1583) at Array.forEach (<anonymous>) at flushMount (index.js?1e21:1579) at updateComponent (index.js?1e21:1666) at Route.forceUpdate (index.js?1e21:1762) at eval (index.js?e6ae:2515)
复现步骤
this.mySwiper = new Swipers(this.$el, opt)
[或者可以直接贴源代码,能贴文字就不要截图]
``<Swiper
className='swplist'
indicatorActiveColor='#333'
vertical={false}
circular={false}
onChange={this['swiptype']}
current={mediasel}
indicatorDots={false}
autoplay={false}>
{
mediatps.map((tp,idx)=>{
return (<SwiperItem className={'swipitem'}>
<View className={'booklist'}>
{list(idx)}
{pagectrl(idx)}
)
})}
}
`js
// 这里可以贴代码
The text was updated successfully, but these errors were encountered: