shineout 3.9.6-beta.4 → 3.9.6-beta.6

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/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.6-beta.4'
525
+ version: '3.9.6-beta.6'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12401,7 +12401,7 @@ var handleStyle = function handleStyle(style) {
12401
12401
  };
12402
12402
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12403
12403
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12404
- /* harmony default export */ var version = ('3.9.6-beta.4');
12404
+ /* harmony default export */ var version = ('3.9.6-beta.6');
12405
12405
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12406
12406
 
12407
12407
 
@@ -55548,6 +55548,9 @@ input_input_Input.displayName = 'ShineoutInput';
55548
55548
 
55549
55549
 
55550
55550
 
55551
+ // Components that support innerTitle and placeTitle props
55552
+
55553
+ var INNER_TITLE_SUPPORTED_COMPONENTS = ['Input', 'Select', 'Cascader', 'DatePicker', 'Textarea', 'EditableArea'];
55551
55554
  /* harmony default export */ var input_group = (function (props) {
55552
55555
  var _jssStyle$input;
55553
55556
  var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_.useState(false),
@@ -55627,12 +55630,23 @@ input_input_Input.displayName = 'ShineoutInput';
55627
55630
  }, i);
55628
55631
  }
55629
55632
  if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement(child)) {
55630
- return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, objectSpread2_default()(objectSpread2_default()({}, getProps(child)), {}, {
55633
+ var _child$type;
55634
+ var additionalProps = objectSpread2_default()(objectSpread2_default()({}, getProps(child)), {}, {
55631
55635
  disabled: child.props.disabled || disabled,
55632
- size: child.props.size || size,
55633
- innerTitle: child.props.innerTitle || innerTitle,
55634
- placeTitle: child.props.placeTitle || placeTitle
55635
- }));
55636
+ size: child.props.size || size
55637
+ });
55638
+
55639
+ // Only pass innerTitle and placeTitle to components that support them
55640
+ // Check by displayName to identify form components that accept these props
55641
+ var displayName = (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName;
55642
+ var supportsInnerTitle = displayName && INNER_TITLE_SUPPORTED_COMPONENTS.some(function (name) {
55643
+ return displayName.includes(name);
55644
+ });
55645
+ if (supportsInnerTitle) {
55646
+ additionalProps.innerTitle = child.props.innerTitle || innerTitle;
55647
+ additionalProps.placeTitle = child.props.placeTitle || placeTitle;
55648
+ }
55649
+ return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, additionalProps);
55636
55650
  }
55637
55651
  return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
55638
55652
  children: child
@@ -56421,7 +56435,7 @@ var ListOption = function ListOption(props) {
56421
56435
  highlight = _useContext.highlight;
56422
56436
  var result = getHighlightText({
56423
56437
  enable: highlight,
56424
- nodeList: renderItem(data),
56438
+ nodeList: renderItem(data, index),
56425
56439
  searchWords: filterText,
56426
56440
  highlightClassName: commonStyles === null || commonStyles === void 0 ? void 0 : commonStyles.highlight
56427
56441
  });
@@ -66496,8 +66510,10 @@ var thead_toNum = toNum;
66496
66510
  var handleDragMove = usePersistFn(function (deltaX) {
66497
66511
  props === null || props === void 0 || props.dragCol(context.dragIndex, deltaX);
66498
66512
  });
66499
- var handleDragEnd = usePersistFn(function () {
66500
- props === null || props === void 0 || props.resizeCol(context.dragIndex);
66513
+ var handleDragEnd = usePersistFn(function (deltaX) {
66514
+ if (deltaX !== 0) {
66515
+ props === null || props === void 0 || props.resizeCol(context.dragIndex);
66516
+ }
66501
66517
  context.dragIndex = -1;
66502
66518
  });
66503
66519
  var _useDragMock = use_drag_mock({
@@ -74822,7 +74838,7 @@ var upload_interface = __webpack_require__(8821);
74822
74838
 
74823
74839
 
74824
74840
  /* harmony default export */ var src_0 = ({
74825
- version: '3.9.6-beta.4'
74841
+ version: '3.9.6-beta.6'
74826
74842
  });
74827
74843
  }();
74828
74844
  /******/ return __webpack_exports__;