@sheinx/base 3.5.3-beta.7 → 3.5.3-beta.8
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/date-picker/day.js +1 -1
- package/esm/date-picker/day.js +1 -1
- package/package.json +2 -2
package/cjs/date-picker/day.js
CHANGED
|
@@ -105,7 +105,7 @@ var Day = function Day(props) {
|
|
|
105
105
|
length: 7
|
|
106
106
|
}).map(function (_, index) {
|
|
107
107
|
// weekStartsOn可能是字符串,需要转换为数字,否则得到星期顺序不正确
|
|
108
|
-
var num = (props.options.weekStartsOn + index) % 7;
|
|
108
|
+
var num = (Number(props.options.weekStartsOn) + index) % 7;
|
|
109
109
|
return weeks[num];
|
|
110
110
|
});
|
|
111
111
|
var renderWeek = function renderWeek(item) {
|
package/esm/date-picker/day.js
CHANGED
|
@@ -100,7 +100,7 @@ var Day = function Day(props) {
|
|
|
100
100
|
length: 7
|
|
101
101
|
}).map(function (_, index) {
|
|
102
102
|
// weekStartsOn可能是字符串,需要转换为数字,否则得到星期顺序不正确
|
|
103
|
-
var num = (props.options.weekStartsOn + index) % 7;
|
|
103
|
+
var num = (Number(props.options.weekStartsOn) + index) % 7;
|
|
104
104
|
return weeks[num];
|
|
105
105
|
});
|
|
106
106
|
var renderWeek = function renderWeek(item) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.5.3-beta.
|
|
3
|
+
"version": "3.5.3-beta.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.5.3-beta.
|
|
13
|
+
"@sheinx/hooks": "3.5.3-beta.8",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|