Comparing version 5.0.0 to 5.0.1
import * as React from 'react'; | ||
import { GetContainer } from 'rc-util/lib/PortalWrapper'; | ||
import { PreviewProps } from './Preview'; | ||
import PreviewGroup from './PreviewGroup'; | ||
@@ -10,2 +11,3 @@ export interface ImagePreviewType { | ||
mask?: React.ReactNode; | ||
icons?: PreviewProps['icons']; | ||
} | ||
@@ -12,0 +14,0 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder' | 'onClick'> { |
@@ -54,3 +54,4 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
getPreviewContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer, | ||
previewMask = _ref2.mask; | ||
previewMask = _ref2.mask, | ||
icons = _ref2.icons; | ||
@@ -207,3 +208,4 @@ var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc; | ||
alt: alt, | ||
getContainer: getPreviewContainer | ||
getContainer: getPreviewContainer, | ||
icons: icons | ||
})); | ||
@@ -210,0 +212,0 @@ }; |
import * as React from 'react'; | ||
import { GetContainer } from 'rc-util/lib/PortalWrapper'; | ||
import { PreviewProps } from './Preview'; | ||
import PreviewGroup from './PreviewGroup'; | ||
@@ -10,2 +11,3 @@ export interface ImagePreviewType { | ||
mask?: React.ReactNode; | ||
icons?: PreviewProps['icons']; | ||
} | ||
@@ -12,0 +14,0 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder' | 'onClick'> { |
@@ -75,3 +75,4 @@ "use strict"; | ||
getPreviewContainer = _ref2$getContainer === void 0 ? undefined : _ref2$getContainer, | ||
previewMask = _ref2.mask; | ||
previewMask = _ref2.mask, | ||
icons = _ref2.icons; | ||
@@ -228,3 +229,4 @@ var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc; | ||
alt: alt, | ||
getContainer: getPreviewContainer | ||
getContainer: getPreviewContainer, | ||
icons: icons | ||
})); | ||
@@ -231,0 +233,0 @@ }; |
{ | ||
"name": "rc-image", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "React easy to use image component", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71248
1796