白色主题

This commit is contained in:
2023-02-12 19:04:01 +08:00
parent d736a5912f
commit 57ab6fbb49
411 changed files with 1752 additions and 5304 deletions

View File

@@ -17,6 +17,11 @@ let BackTop = class BackTop extends SuperComponent {
multipleSlots: true,
};
this.properties = props;
this.relations = {
'../pull-down-refresh/pull-down-refresh': {
type: 'ancestor',
},
};
this.data = {
prefix,
classPrefix: name,
@@ -54,11 +59,17 @@ let BackTop = class BackTop extends SuperComponent {
}
},
toTop() {
var _a;
this.triggerEvent('to-top');
wx.pageScrollTo({
scrollTop: 0,
duration: 300,
});
if (this.$parent) {
(_a = this.$parent) === null || _a === void 0 ? void 0 : _a.setScrollTop(0);
}
else {
wx.pageScrollTo({
scrollTop: 0,
duration: 300,
});
}
},
};
}