- indicator-color 无效?
<swiper indicator-dots indicator-color="#FFFFFF" indicator-active-color="#FF6633"> indicator-color 无效,但 indicator-active-color 有效 indicator-color="rgba(255,255,255,1)" 同样也无效
2023-10-06 - 页面 borderRadius(border-radius ) 无效
官方文档 - Skyline 渲染引擎 - 增强特性 - 自定义路由,页面中示例代码 borderRadius 设置无效 在 3.0.1 之前,有效;在 3.0.1 无效 https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/custom-route.html 文档中的实例代码: const HalfScreenDialogRouteBuilder = (customRouteContext) => { const { primaryAnimation, } = customRouteContext const handlePrimaryAnimation = () => { 'worklet' let t = primaryAnimation.value // 距离顶部边距因子 const topDistance = 0.12 // 距离顶部边距 const marginTop = topDistance * screenHeight // 半屏页面大小 const pageHeight = (1 - topDistance) * screenHeight // 自底向上显示页面 const transY = pageHeight * (1 - t) return { borderRadius: '10px', // *** 这里无效 *** marginTop: `${marginTop}px`, height: `${pageHeight}px`, transform: `translateY(${transY}px)`, } } return { handlePrimaryAnimation, } }
2023-08-31 - borderRadius 不生效?
// 下面是官方案例中的 handlePrimaryAnimation 函数,设置的 borderRadius 不生效(基础库 3.0.1) // 有的版本在工具中运行生效,而IOS预览无效;而 3.0.1 无论是工具还是预览都无效 // 链接:https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/custom-route.html const handlePrimaryAnimation = () => { 'worklet' let t = primaryAnimation.value if (!userGestureInProgress.value) { t = _curvePrimaryAnimation.value } const topDistance = 0.12 const marginTop = topDistance * screenHeight const pageHeight = (1 - topDistance) * screenHeight const transY = pageHeight * (1 - t) return { borderRadius: '10px', marginTop: `${marginTop}px`, height: `${pageHeight}px`, transform: `translateY(${transY}px)`, }
2023-08-30 - 示例代码有误
https://developers.weixin.qq.com/miniprogram/dev/framework/runtime/skyline/worklet.html [图片]
2023-08-10