We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
由于命名差异,目前 Taro 的 Swiper 组件,只支持 onAnimationFinish 事件, 不支持支付宝小程序原生 Swiper 组件的 onAnimationEnd 事件,导致编译至支付宝小程序后,Swiper 组件在动画结束时,无法触发 animationEnd 事件。
Swiper
onAnimationFinish
onAnimationEnd
animationEnd
例如,Taro UI 的日历组件依赖 onAnimationFinish 来更新月份数据,由于上述问题,该组件在支付宝小程序上不能通过滑动切换月份。
仍然采用 onAnimationFinish 命名,但在编译至支付宝小程序后,修改 base.axml 中的 <template name="tmpl_0_swiper"> 基础模板, 将 swiper 节点中的 onAnimationFinish 修改为 onAnimationEnd
base.axml
<template name="tmpl_0_swiper">
swiper
编译前:
<Swiper ...otherPorps onAnimationFinish={handleAnimationFinish} > // ... </Swiper>
编译后的 base.axml:
<template name="tmpl_0_swiper"> <swiper ...otherProps onAnimationEnd="eh" > ... </swiper> </template>
The text was updated successfully, but these errors were encountered:
支付宝 TextArea 的 showCount 属性也支持一下吧。
TextArea
showCount
Sorry, something went wrong.
fix(runtime): 同步3.0修改
42b6a09
1. Swiper 可以循环最多 4次。 2. 锁定 stencil 小版本 3. 修复支付宝不触发 Swiper 的 onanimationfinish 事件的问题,#7945
3.1 修复
No branches or pull requests
这个特性解决了什么问题?
由于命名差异,目前 Taro 的
Swiper
组件,只支持onAnimationFinish
事件, 不支持支付宝小程序原生Swiper
组件的onAnimationEnd
事件,导致编译至支付宝小程序后,Swiper
组件在动画结束时,无法触发animationEnd
事件。例如,Taro UI 的日历组件依赖
onAnimationFinish
来更新月份数据,由于上述问题,该组件在支付宝小程序上不能通过滑动切换月份。这个 API 长什么样?
仍然采用
onAnimationFinish
命名,但在编译至支付宝小程序后,修改base.axml
中的<template name="tmpl_0_swiper">
基础模板, 将swiper
节点中的onAnimationFinish
修改为onAnimationEnd
编译前:
编译后的
base.axml
:The text was updated successfully, but these errors were encountered: