[Improvement] ImagePreview: add test cases (#1198)

This commit is contained in:
neverland
2018-05-30 18:05:28 +08:00
committed by GitHub
parent 5ceb044815
commit 65fa5a6333
3 changed files with 75 additions and 7 deletions
+8 -7
View File
@@ -31,6 +31,14 @@ export default create({
},
props: {
images: {
type: Array,
default: () => []
},
startPosition: {
type: Number,
default: 0
},
overlay: {
type: Boolean,
default: true
@@ -41,13 +49,6 @@ export default create({
}
},
data() {
return {
images: [],
startPosition: 0
};
},
methods: {
onTouchStart() {
this.touchStartTime = new Date();