[Improvement] ImagePreview: add test cases (#1198)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user