fix(mescroll): 移除鸿蒙端强制刷新slot的临时方案
This commit is contained in:
@@ -15,9 +15,7 @@
|
||||
@init="mescrollInit"
|
||||
>
|
||||
<!-- 数据列表 -->
|
||||
<view :key="'slot-' + renderSlotKey">
|
||||
<slot name="list"></slot>
|
||||
</view>
|
||||
<slot name="list"></slot>
|
||||
</mescroll>
|
||||
</template>
|
||||
|
||||
@@ -47,7 +45,6 @@ export default {
|
||||
onScroll: true
|
||||
},
|
||||
scrollY: 0,
|
||||
renderSlotKey: 0,
|
||||
isInit: false
|
||||
};
|
||||
},
|
||||
@@ -95,12 +92,6 @@ export default {
|
||||
upCallback() {
|
||||
//联网加载数据
|
||||
this.$emit('getData', this.mescroll);
|
||||
// #ifdef MP-HARMONY
|
||||
// 鸿蒙 ArkUI 对 slot 内容响应式更新不敏感,数据加载后通过改变 key 强制重建
|
||||
setTimeout(() => {
|
||||
this.renderSlotKey++;
|
||||
}, 300);
|
||||
// #endif
|
||||
},
|
||||
//点击空布局按钮的回调
|
||||
emptyClick() {
|
||||
|
||||
Reference in New Issue
Block a user