@kdcloudjs/kdesign 1.6.36 → 1.6.38

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/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.6.35
3
+ * @kdcloudjs/kdesign v1.6.37
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -8923,7 +8923,8 @@ var compDefaultProps = {
8923
8923
  dragMode: 'crop',
8924
8924
  viewMode: 0,
8925
8925
  aspectRatio: NaN,
8926
- okText: '确认裁剪'
8926
+ okText: '确认裁剪',
8927
+ autoCropArea: 0.5
8927
8928
  },
8928
8929
  Anchor: {
8929
8930
  type: 'bookmarks',
@@ -18109,6 +18110,7 @@ var Cropper = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_6__["forwardRef
18109
18110
  dragMode = props.dragMode,
18110
18111
  viewMode = props.viewMode,
18111
18112
  aspectRatio = props.aspectRatio,
18113
+ autoCropArea = props.autoCropArea,
18112
18114
  _props$modal = props.modal,
18113
18115
  modal = _props$modal === void 0 ? true : _props$modal,
18114
18116
  _props$zoomOnWheel = props.zoomOnWheel,
@@ -18125,9 +18127,9 @@ var Cropper = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_6__["forwardRef
18125
18127
  dragMode: dragMode,
18126
18128
  cropBoxMovable: cropBoxMovable,
18127
18129
  modal: modal,
18128
- autoCropArea: 0.5
18130
+ autoCropArea: autoCropArea
18129
18131
  };
18130
- }, [aspectRatio, viewMode, zoomOnWheel, dragMode, modal, cropBoxMovable]);
18132
+ }, [aspectRatio, viewMode, zoomOnWheel, dragMode, cropBoxMovable, modal, autoCropArea]);
18131
18133
  Object(react__WEBPACK_IMPORTED_MODULE_6__["useEffect"])(function () {
18132
18134
  if (!imgRef.current) return;
18133
18135
  if (!imgSrc) return;
@@ -18226,7 +18228,7 @@ __webpack_require__.r(__webpack_exports__);
18226
18228
 
18227
18229
 
18228
18230
 
18229
- var _excluded = ["prefixCls", "containerWidth", "containerHeight", "title", "visible", "onClose", "onCropSuccess", "onCropFailed", "dragMode", "viewMode", "aspectRatio", "modal", "okText", "okBtn", "image", "zoomOnWheel", "imageMaxSize", "cropBoxMovable", "customComponents", "showDeaultToolbar"];
18231
+ var _excluded = ["prefixCls", "containerWidth", "containerHeight", "title", "visible", "onClose", "onCropSuccess", "onCropFailed", "dragMode", "viewMode", "aspectRatio", "modal", "okText", "okBtn", "image", "zoomOnWheel", "imageMaxSize", "cropBoxMovable", "customComponents", "showDeaultToolbar", "autoCropArea"];
18230
18232
 
18231
18233
 
18232
18234
 
@@ -18268,6 +18270,7 @@ var InternalImageCropper = function InternalImageCropper(props, forwardedRef) {
18268
18270
  cropBoxMovable = _getCompProps.cropBoxMovable,
18269
18271
  customComponents = _getCompProps.customComponents,
18270
18272
  showDeaultToolbar = _getCompProps.showDeaultToolbar,
18273
+ autoCropArea = _getCompProps.autoCropArea,
18271
18274
  restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getCompProps, _excluded);
18272
18275
  var prefixCls = getPrefixCls(pkgPrefixCls, 'image-cropper', customPrefixcls);
18273
18276
  var handleOkClick = /*#__PURE__*/function () {
@@ -18318,6 +18321,7 @@ var InternalImageCropper = function InternalImageCropper(props, forwardedRef) {
18318
18321
  zoomOnWheel: zoomOnWheel,
18319
18322
  cropBoxMovable: cropBoxMovable,
18320
18323
  imgSrc: cropperSrc,
18324
+ autoCropArea: autoCropArea,
18321
18325
  ref: cropperRef
18322
18326
  });
18323
18327
  var OperationBarNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_operation_bar__WEBPACK_IMPORTED_MODULE_10__["default"], {
@@ -25259,7 +25263,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
25259
25263
  getPrefixCls = _React$useContext.getPrefixCls,
25260
25264
  prefixCls = _React$useContext.prefixCls,
25261
25265
  userDefaultProps = _React$useContext.compDefaultProps;
25262
- var initValue = props.value === undefined ? props.defaultValue : props.value;
25266
+ var initValue = typeof props.value === 'undefined' ? props.defaultValue : props.value;
25263
25267
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__["useState"](initValue),
25264
25268
  _React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_React$useState, 2),
25265
25269
  value = _React$useState2[0],
@@ -25267,7 +25271,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
25267
25271
 
25268
25272
  // 从props更新value值
25269
25273
  react__WEBPACK_IMPORTED_MODULE_4__["useEffect"](function () {
25270
- if (props.value !== undefined) {
25274
+ if (typeof props.value !== 'undefined') {
25271
25275
  setValue(props.value);
25272
25276
  }
25273
25277
  }, [props.value]);
@@ -25537,7 +25541,9 @@ var InternalRadio = function InternalRadio(props, ref) {
25537
25541
  }, [checked, defaultChecked, context === null || context === void 0 ? void 0 : context.value]);
25538
25542
  var onChange = function onChange(e) {
25539
25543
  if (disabled) return;
25540
- setIsChecked(e.target.checked);
25544
+ if (typeof (context === null || context === void 0 ? void 0 : context.value) === 'undefined') {
25545
+ setIsChecked(e.target.checked);
25546
+ }
25541
25547
  if (props.onChange) {
25542
25548
  props.onChange(e);
25543
25549
  }
@@ -31105,13 +31111,13 @@ var Table = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"]
31105
31111
  Object(_feature_sort__WEBPACK_IMPORTED_MODULE_13__["default"])(pipeline, sort);
31106
31112
  Object(_feature_autoRowSpan__WEBPACK_IMPORTED_MODULE_14__["default"])(pipeline, autoRowSpan);
31107
31113
  Object(_feature_treeMode__WEBPACK_IMPORTED_MODULE_16__["default"])(pipeline, treeMode);
31114
+ Object(_feature_colGroupExtendable__WEBPACK_IMPORTED_MODULE_24__["default"])(pipeline, columnGroupExtend);
31108
31115
  Object(_feature_columnResize__WEBPACK_IMPORTED_MODULE_17__["default"])(pipeline, columnResize);
31109
31116
  Object(_feature_columnDrag__WEBPACK_IMPORTED_MODULE_18__["default"])(pipeline, columnDrag);
31110
31117
  Object(_feature_contextMenu__WEBPACK_IMPORTED_MODULE_19__["default"])(pipeline, contextMenu);
31111
31118
  Object(_feature_useRangeSelection__WEBPACK_IMPORTED_MODULE_20__["default"])(pipeline, rangeSelection);
31112
31119
  Object(_feature_mergeCellHover__WEBPACK_IMPORTED_MODULE_21__["default"])(pipeline);
31113
31120
  Object(_feature_useFooterDataSource__WEBPACK_IMPORTED_MODULE_23__["default"])(pipeline, footerDataSource);
31114
- Object(_feature_colGroupExtendable__WEBPACK_IMPORTED_MODULE_24__["default"])(pipeline, columnGroupExtend);
31115
31121
 
31116
31122
  /* -------------------------------------------------------------------------- */
31117
31123
  /* after useTablePipeline, merge pipeline.getProps result */