Skip to content

Commit e7a85a2

Browse files
committed
refactor(image-preview): remove longTap prop
1 parent 477d228 commit e7a85a2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/components/image-preview/image-preview.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,9 @@
7777
type: Number,
7878
default: 400
7979
},
80-
longTapSave: {
81-
type: Boolean,
82-
default: false
83-
},
8480
preventDefault: {
8581
type: Boolean,
86-
default() {
87-
return !this.longTapSave
88-
}
82+
default: true
8983
}
9084
},
9185
data() {
@@ -97,7 +91,6 @@
9791
left: true,
9892
right: true
9993
},
100-
click: !this.longTapSave,
10194
useTransition: !isAndroid,
10295
probeType: 3,
10396
preventDefault: this.preventDefault

0 commit comments

Comments
 (0)