Skip to content

Commit 477d228

Browse files
committed
feat(image-preview): support longTapSave to control bs click option
1 parent 5220a34 commit 477d228

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,15 @@
7777
type: Number,
7878
default: 400
7979
},
80+
longTapSave: {
81+
type: Boolean,
82+
default: false
83+
},
8084
preventDefault: {
8185
type: Boolean,
82-
default: true
86+
default() {
87+
return !this.longTapSave
88+
}
8389
}
8490
},
8591
data() {
@@ -91,6 +97,7 @@
9197
left: true,
9298
right: true
9399
},
100+
click: !this.longTapSave,
94101
useTransition: !isAndroid,
95102
probeType: 3,
96103
preventDefault: this.preventDefault

0 commit comments

Comments
 (0)