mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(ImagePreview): fit orientationchange (#6825)
* fix(ImagePreview): fit orientationchange * chore: remove log
This commit is contained in:
parent
96f3e90ff3
commit
ebb964aed8
@ -20,6 +20,7 @@ export default createComponent({
|
||||
}),
|
||||
BindEventMixin(function (bind) {
|
||||
bind(window, 'resize', this.resize, true);
|
||||
bind(window, 'orientationchange', this.resize, true);
|
||||
}),
|
||||
],
|
||||
|
||||
|
@ -18,6 +18,7 @@ export default createComponent({
|
||||
ParentMixin('vanSwipe'),
|
||||
BindEventMixin(function (bind, isBind) {
|
||||
bind(window, 'resize', this.resize, true);
|
||||
bind(window, 'orientationchange', this.resize, true);
|
||||
bind(window, 'visibilitychange', this.onVisibilityChange);
|
||||
|
||||
if (isBind) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user