在使用uni-transition的过程中发现uniapp怎么好像不支持custom-class?[what]官方注解中提示nvue 不支持 custom-class,于是我搜索了一下了解到原来我目前的状态就是nvue!是我孤陋寡闻了,怪不得一直用不了[捂脸]。
就像上面那样,使用:styles去绑定一个topClass。
topClass: {
'width': '100rpx',
'height': '100rpx',
'borderRadius': '50%',
'backgroundColor': '#fff',
'position': 'fixed',
'right': '10%',
'bottom': '10%',
'display': 'flex',
'justifyContent': 'center',
'alignItems': 'center',
}
然后通过控制topshow就可以实现渐入渐出的效果了[微笑]。
文章来源于本人个人站点,同为原创作者,转载注明出处,侵权必究: uni-transition的一个未知bug?使用中发现不支持custom-class | 瑷程序
留言与评论(共有 0 条评论) “” |