feat: 预加载优化、nav-bar 箭头居中优化
This commit is contained in:
@@ -54,7 +54,8 @@ Component({
|
||||
},
|
||||
methods: {
|
||||
onTap() {
|
||||
this.triggerEvent('tap', {
|
||||
// 使用 cardtap 避免与原生 tap 同名,防止安卓上父级 bindtap 重复触发 navigateTo
|
||||
this.triggerEvent('cardtap', {
|
||||
title: this.data.title,
|
||||
path: this.data.path,
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
class="worksheet-card worksheet-card--{{variant}}"
|
||||
hover-class="worksheet-card--active"
|
||||
hover-stay-time="100"
|
||||
bindtap="onTap">
|
||||
catchtap="onTap">
|
||||
<block wx:if="{{variant === 'track'}}">
|
||||
<view class="worksheet-card__top">
|
||||
<image
|
||||
|
||||
Reference in New Issue
Block a user