bhd-components 0.9.21 → 0.9.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # bhd-components
2
2
 
3
- **当前版本:** 0.9.17
3
+ **当前版本:** 0.9.21
4
4
 
5
5
  ## Install
6
6
 
@@ -1673,7 +1673,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
1673
1673
  curIndex: 0,
1674
1674
  multiSelect: false,
1675
1675
  imgError: false,
1676
- actionCloseFlag: 0 // 关闭按钮位置 0是跟随图片 1固定右上角
1676
+ actionCloseFlag: 0
1677
1677
  });
1678
1678
  _define_property(_assert_this_initialized(_this), "scaleChange", function(value) {
1679
1679
  var _this_state = _this.state, maxScale = _this_state.maxScale, minScale = _this_state.minScale;
@@ -2026,7 +2026,7 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2026
2026
  className: "".concat(modules_63b47c51$5.viewImgAction, " ").concat(modules_63b47c51$5.actionTop),
2027
2027
  children: /*#__PURE__*/ jsx("span", {
2028
2028
  // id="actionClose"
2029
- // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
2029
+ // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
2030
2030
  className: modules_63b47c51$5.viewImgActionClose,
2031
2031
  title: "关闭",
2032
2032
  onClick: this.close,
@@ -2111,15 +2111,15 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2111
2111
  // this.state.actionCloseFlag===0&&(
2112
2112
  // <span
2113
2113
  // id="actionClose"
2114
- // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
2115
- // className={styles.viewImgActionClose}
2116
- // title="关闭"
2114
+ // style={{right:`calc(-40px + (-12px * (1 / ${scaleValue / 100}) ))` ,transform: `scale(calc(1 / ${scaleValue / 100}),calc(1 / ${scaleValue / 100}))`,transformOrigin: `top left`}}
2115
+ // className={styles.viewImgActionClose}
2116
+ // title="关闭"
2117
2117
  // onClick={this.close}>
2118
2118
  // <CustomClose />
2119
2119
  // </span>
2120
2120
  // )
2121
2121
  // }
2122
- // </div>
2122
+ // </div>
2123
2123
  /*#__PURE__*/ jsxs(Fragment, {
2124
2124
  children: [
2125
2125
  /*#__PURE__*/ jsx("img", {
@@ -2176,7 +2176,9 @@ var ViewImage = /*#__PURE__*/ function(_React_Component) {
2176
2176
  return ViewImage;
2177
2177
  }(React.Component);
2178
2178
  var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
2179
- var visible = props.visible, className = props.className;
2179
+ var visible = props.visible, className = props.className, _props_getContainer = props.getContainer, getContainer = _props_getContainer === void 0 ? function() {
2180
+ return document.body;
2181
+ } : _props_getContainer;
2180
2182
  var viewRef = useRef(null);
2181
2183
  useImperativeHandle(ref, function() {
2182
2184
  return {
@@ -2199,6 +2201,7 @@ var AppViewImage = /*#__PURE__*/ forwardRef(function(props, ref) {
2199
2201
  background: "rgba(0, 0, 0, 0.65)"
2200
2202
  },
2201
2203
  wrapClassName: "".concat(modules_63b47c51$5.AppViewImage, " ").concat(className || ""),
2204
+ getContainer: getContainer,
2202
2205
  children: visible && /*#__PURE__*/ jsx(ViewImage, _object_spread_props(_object_spread({}, props), {
2203
2206
  ref: viewRef
2204
2207
  }))