fix(ImagePreview): close event triggered twice (#5411)

This commit is contained in:
neverland
2019-12-28 08:43:57 +08:00
committed by GitHub
parent 93e6c81c49
commit 8dea26db95
11 changed files with 234 additions and 254 deletions

View File

@@ -1,7 +1,7 @@
import { createNamespace } from '../utils';
import { WHITE } from '../utils/constant';
import { inherit } from '../utils/functional';
import { PopupMixin } from '../mixins/popup';
import { popupMixinProps } from '../mixins/popup';
import Popup from '../popup';
// Types
@@ -48,7 +48,7 @@ function Notify(
}
Notify.props = {
...PopupMixin.props,
...popupMixinProps,
background: String,
className: null as any,
message: [Number, String],