feat(Swipe): add lazy-render prop

This commit is contained in:
chenjiahan
2020-03-22 15:39:34 +08:00
parent f701de9e58
commit 365f2b16f7
6 changed files with 96 additions and 37 deletions
+3 -2
View File
@@ -33,6 +33,7 @@ export default createComponent({
height: [Number, String],
autoplay: [Number, String],
vertical: Boolean,
lazyRender: Boolean,
indicatorColor: String,
loop: {
type: Boolean,
@@ -62,13 +63,13 @@ export default createComponent({
data() {
return {
computedWidth: 0,
computedHeight: 0,
offset: 0,
active: 0,
deltaX: 0,
deltaY: 0,
swiping: false,
computedWidth: 0,
computedHeight: 0,
};
},