diff --git a/src/image-preview/index.js b/src/image-preview/index.js index 5c7a67791..172b8e4d8 100644 --- a/src/image-preview/index.js +++ b/src/image-preview/index.js @@ -15,13 +15,13 @@ const defaultConfig = { onChange: null, lazyLoad: false, showIndex: true, + closeable: false, + closeIcon: 'clear', asyncClose: false, startPosition: 0, swipeDuration: 500, showIndicators: false, closeOnPopstate: false, - closeable: false, - closeIcon: 'clear', closeIconPosition: 'top-right', }; diff --git a/types/image-preview.d.ts b/types/image-preview.d.ts index c3b653f0d..b501cf779 100644 --- a/types/image-preview.d.ts +++ b/types/image-preview.d.ts @@ -10,11 +10,14 @@ export type ImagePreviewOptions = className?: any; lazyLoad?: boolean; showIndex?: boolean; + closeable?: boolean; + closeIcon?: string; asyncClose?: boolean; swipeDuration?: number; startPosition?: number; showIndicators?: boolean; closeOnPopstate?: boolean; + closeIconPosition?: string; onClose?: () => void; onChange?: (index: number) => void; };