Comparing version 3.0.2 to 3.0.3
@@ -102,3 +102,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
}; | ||
return React.createElement("div", Object.assign({}, otherProps, { | ||
return React.createElement(React.Fragment, null, React.createElement("div", Object.assign({}, otherProps, { | ||
className: className, | ||
@@ -119,3 +119,3 @@ onClick: preview && !isError ? onPreview : onClick, | ||
className: "".concat(prefixCls, "-placeholder") | ||
}, placeholder), preview && !isError && React.createElement(Preview, { | ||
}, placeholder)), preview && !isError && React.createElement(Preview, { | ||
"aria-hidden": !isShowPreview, | ||
@@ -122,0 +122,0 @@ visible: isShowPreview, |
@@ -118,3 +118,3 @@ "use strict"; | ||
}; | ||
return React.createElement("div", Object.assign({}, otherProps, { | ||
return React.createElement(React.Fragment, null, React.createElement("div", Object.assign({}, otherProps, { | ||
className: className, | ||
@@ -135,3 +135,3 @@ onClick: preview && !isError ? onPreview : onClick, | ||
className: "".concat(prefixCls, "-placeholder") | ||
}, placeholder), preview && !isError && React.createElement(_Preview.default, { | ||
}, placeholder)), preview && !isError && React.createElement(_Preview.default, { | ||
"aria-hidden": !isShowPreview, | ||
@@ -138,0 +138,0 @@ visible: isShowPreview, |
{ | ||
"name": "rc-image", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "React easy to use image component", | ||
@@ -32,5 +32,3 @@ "keywords": [ | ||
"compile": "father build && lessc assets/index.less assets/index.css", | ||
"gh-pages": "npm run build && father doc deploy", | ||
"prepublishOnly": "npm run compile && np --yolo --no-publish", | ||
"postpublish": "npm run gh-pages", | ||
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md", | ||
@@ -69,4 +67,4 @@ "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", | ||
"react-dom": "^16.13.1", | ||
"typescript": "^3.9.7" | ||
"typescript": "^4.0.2" | ||
} | ||
} |
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
47566