shineout 3.7.8-beta.1 → 3.7.8-beta.3

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-zh_CN.md CHANGED
@@ -11,7 +11,7 @@
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
13
13
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
14
- <img src="https://img.shields.io/badge/React-%3E%3D16.8.0-green.svg?style=flat-square">
14
+ <img src="https://img.shields.io/badge/React-%3E%3D16.14.0-green.svg?style=flat-square">
15
15
  </p>
16
16
 
17
17
  ## ✨ 特性
package/README.md CHANGED
@@ -11,7 +11,7 @@ English | [简体中文](./README-zh_CN.md)
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/v/shineout.svg?style=flat-square"></a>
13
13
  <a href="https://www.npmjs.com/package/shineout"><img src="https://img.shields.io/npm/dm/shineout.svg?style=flat-square"></a>
14
- <img src="https://img.shields.io/badge/React-%3E%3D16.8.0-green.svg?style=flat-square">
14
+ <img src="https://img.shields.io/badge/React-%3E%3D16.14.0-green.svg?style=flat-square">
15
15
  </p>
16
16
 
17
17
  ## ✨ Features
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.7.8-beta.1'
525
+ version: '3.7.8-beta.3'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.8-beta.1');
12237
+ /* harmony default export */ var version = ('3.7.8-beta.3');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -42522,8 +42522,8 @@ var Cascader = function Cascader(props0) {
42522
42522
  }
42523
42523
  }, [data]);
42524
42524
 
42525
- // 修复外部受控打开的场景下,从外部修改value导致的面板勾选情况没有及时同步
42526
- if (openProp && !shallowEqual(value, datum.getValue())) {
42525
+ // 修复外部受控打开或renderOptionList做全选的场景下,从外部修改value导致的面板勾选情况没有及时同步
42526
+ if ((openProp || props.renderOptionList) && !shallowEqual(value, datum.getValue())) {
42527
42527
  datum.setValue(value);
42528
42528
  }
42529
42529
  ;
@@ -42532,9 +42532,6 @@ var Cascader = function Cascader(props0) {
42532
42532
  datum.setValue(value);
42533
42533
  if (!open) return;
42534
42534
  updatePathByValue();
42535
- if (props.renderOptionList) {
42536
- updatePath();
42537
- }
42538
42535
  }, [value, open]);
42539
42536
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
42540
42537
  if (filterText !== undefined) {
@@ -45939,7 +45936,9 @@ var useTime = function useTime(props) {
45939
45936
  _props$secondStep = props.secondStep,
45940
45937
  secondStep = _props$secondStep === void 0 ? 1 : _props$secondStep,
45941
45938
  staticMin = props.staticMin,
45942
- staticMax = props.staticMax;
45939
+ staticMax = props.staticMax,
45940
+ position = props.position,
45941
+ rangeDate = props.rangeDate;
45943
45942
  var min = util.resetTimeByFormat(mi, format, options);
45944
45943
  var max = util.resetTimeByFormat(ma, format, options);
45945
45944
  var current = props.value || util.newDate(undefined, options);
@@ -45965,7 +45964,7 @@ var useTime = function useTime(props) {
45965
45964
  disabledTime = props.disabledTime;
45966
45965
  if (disabledTime) {
45967
45966
  var _time = util.format(date, util.TIME_FORMAT, options);
45968
- if (typeof disabledTime === 'function') return disabledTime(_time);
45967
+ if (typeof disabledTime === 'function') return disabledTime(_time, position, rangeDate === null || rangeDate === void 0 ? void 0 : rangeDate[0], rangeDate === null || rangeDate === void 0 ? void 0 : rangeDate[1]);
45969
45968
  return disabledTime === _time;
45970
45969
  }
45971
45970
  var isDis = disabled && typeof disabled === 'function' ? disabled(date) : false;
@@ -46316,7 +46315,9 @@ var Time = function Time(props) {
46316
46315
  disabledTime: props.disabledTime,
46317
46316
  hourStep: props.hourStep,
46318
46317
  minuteStep: props.minuteStep,
46319
- secondStep: props.secondStep
46318
+ secondStep: props.secondStep,
46319
+ position: props.position,
46320
+ rangeDate: props.rangeDate
46320
46321
  }),
46321
46322
  func = _useTimePick.func,
46322
46323
  times = _useTimePick.times;
@@ -71834,7 +71835,7 @@ var upload_interface = __webpack_require__(8821);
71834
71835
 
71835
71836
 
71836
71837
  /* harmony default export */ var src_0 = ({
71837
- version: '3.7.8-beta.1'
71838
+ version: '3.7.8-beta.3'
71838
71839
  });
71839
71840
  }();
71840
71841
  /******/ return __webpack_exports__;