shineout 3.5.3-beta.8 → 3.5.3-fix.1
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 +1 -1
- package/dist/shineout.js +14 -13
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
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-
|
|
503
|
+
version: '3.5.3-fix.1'
|
|
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-
|
|
12033
|
+
/* harmony default export */ var version = ('3.5.3-fix.1');
|
|
12034
12034
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12035
12035
|
|
|
12036
12036
|
|
|
@@ -33391,19 +33391,18 @@ function useInputAble(props) {
|
|
|
33391
33391
|
var render = useRender(syncValue);
|
|
33392
33392
|
var shouldUseState = delay || !control;
|
|
33393
33393
|
var value = shouldUseState ? stateValue : valuePo;
|
|
33394
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
33395
|
-
if (context.timer) {
|
|
33396
|
-
clearTimeout(context.timer);
|
|
33397
|
-
context.timer = null;
|
|
33398
|
-
}
|
|
33394
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
33399
33395
|
if (delay && control && props.value !== stateValue) {
|
|
33400
33396
|
changeStateValue(props.value);
|
|
33397
|
+
} else if (context.timer) {
|
|
33398
|
+
clearTimeout(context.timer);
|
|
33399
|
+
context.timer = null;
|
|
33401
33400
|
}
|
|
33402
33401
|
}, [props.value, delay, control]);
|
|
33403
33402
|
var forceDelayChange = use_persist_fn(function () {
|
|
33404
|
-
if (context.
|
|
33403
|
+
if (context.delayChange) context.delayChange();
|
|
33404
|
+
if (context.timer) {
|
|
33405
33405
|
clearTimeout(context.timer);
|
|
33406
|
-
context.delayChange();
|
|
33407
33406
|
context.timer = null;
|
|
33408
33407
|
context.delayChange = null;
|
|
33409
33408
|
}
|
|
@@ -42783,6 +42782,10 @@ var useDate = function useDate(props) {
|
|
|
42783
42782
|
context.cachedMonth = date;
|
|
42784
42783
|
return context.cachedDays;
|
|
42785
42784
|
};
|
|
42785
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
42786
|
+
// 当weekStartsOn从0变为1时,需要清空context.cachedDays, 否则会显示不正确的星期顺序
|
|
42787
|
+
context.cachedDays = [];
|
|
42788
|
+
}, [options.weekStartsOn]);
|
|
42786
42789
|
var handleNextYear = use_persist_fn(function () {
|
|
42787
42790
|
var date = util.addYears(current, 1, options);
|
|
42788
42791
|
setCurrent(date);
|
|
@@ -43605,9 +43608,6 @@ var Day = function Day(props) {
|
|
|
43605
43608
|
length: len
|
|
43606
43609
|
}).map(function (_, index) {
|
|
43607
43610
|
var start = index * 7;
|
|
43608
|
-
// console.log('======================')
|
|
43609
|
-
// console.log('days, start, days[start + 3]: >>', days, start, days[start + 3])
|
|
43610
|
-
// console.log('======================')
|
|
43611
43611
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("tr", {
|
|
43612
43612
|
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
43613
|
children: [renderWeek(days[start + 3]), days.slice(start, start + 7).map(function (item, index) {
|
|
@@ -44861,7 +44861,8 @@ var DatePicker = function DatePicker(props0) {
|
|
|
44861
44861
|
}
|
|
44862
44862
|
var options = {
|
|
44863
44863
|
timeZone: props.timeZone,
|
|
44864
|
-
weekStartsOn
|
|
44864
|
+
// 需要确保 weekStartsOn 是 number,否则后续的星期顺序计算都会出错
|
|
44865
|
+
weekStartsOn: Number(getLocale(locale, 'startOfWeek'))
|
|
44865
44866
|
};
|
|
44866
44867
|
var inputAbleResult = useInputAble({
|
|
44867
44868
|
value: props.value,
|
|
@@ -66968,7 +66969,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
66968
66969
|
|
|
66969
66970
|
|
|
66970
66971
|
/* harmony default export */ var src_0 = ({
|
|
66971
|
-
version: '3.5.3-
|
|
66972
|
+
version: '3.5.3-fix.1'
|
|
66972
66973
|
});
|
|
66973
66974
|
}();
|
|
66974
66975
|
/******/ return __webpack_exports__;
|