shineout 3.5.3-beta.8 → 3.5.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/cjs/index.js CHANGED
@@ -500,5 +500,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
500
500
  // 此文件由脚本自动生成,请勿直接修改。
501
501
  // This file was generated automatically by a script. Please do not modify it directly.
502
502
  var _default = exports.default = {
503
- version: '3.5.3-beta.8'
503
+ version: '3.5.3'
504
504
  };
package/dist/shineout.js CHANGED
@@ -12030,7 +12030,7 @@ var handleStyle = function handleStyle(style) {
12030
12030
  };
12031
12031
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12032
12032
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12033
- /* harmony default export */ var version = ('3.5.3-beta.8');
12033
+ /* harmony default export */ var version = ('3.5.3');
12034
12034
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12035
12035
 
12036
12036
 
@@ -42783,6 +42783,10 @@ var useDate = function useDate(props) {
42783
42783
  context.cachedMonth = date;
42784
42784
  return context.cachedDays;
42785
42785
  };
42786
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
42787
+ // 当weekStartsOn从0变为1时,需要清空context.cachedDays, 否则会显示不正确的星期顺序
42788
+ context.cachedDays = [];
42789
+ }, [options.weekStartsOn]);
42786
42790
  var handleNextYear = use_persist_fn(function () {
42787
42791
  var date = util.addYears(current, 1, options);
42788
42792
  setCurrent(date);
@@ -43605,9 +43609,6 @@ var Day = function Day(props) {
43605
43609
  length: len
43606
43610
  }).map(function (_, index) {
43607
43611
  var start = index * 7;
43608
- // console.log('======================')
43609
- // console.log('days, start, days[start + 3]: >>', days, start, days[start + 3])
43610
- // console.log('======================')
43611
43612
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("tr", {
43612
43613
  className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerRow, props.type === 'week' && (styles === null || styles === void 0 ? void 0 : styles.pickerRowWeek)),
43613
43614
  children: [renderWeek(days[start + 3]), days.slice(start, start + 7).map(function (item, index) {
@@ -44861,7 +44862,8 @@ var DatePicker = function DatePicker(props0) {
44861
44862
  }
44862
44863
  var options = {
44863
44864
  timeZone: props.timeZone,
44864
- weekStartsOn: getLocale(locale, 'startOfWeek')
44865
+ // 需要确保 weekStartsOn number,否则后续的星期顺序计算都会出错
44866
+ weekStartsOn: Number(getLocale(locale, 'startOfWeek'))
44865
44867
  };
44866
44868
  var inputAbleResult = useInputAble({
44867
44869
  value: props.value,
@@ -66968,7 +66970,7 @@ var upload_interface = __webpack_require__(8821);
66968
66970
 
66969
66971
 
66970
66972
  /* harmony default export */ var src_0 = ({
66971
- version: '3.5.3-beta.8'
66973
+ version: '3.5.3'
66972
66974
  });
66973
66975
  }();
66974
66976
  /******/ return __webpack_exports__;