@hw-component/form 1.8.6 → 1.8.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/es/config.js +3 -3
- package/lib/config.js +3 -3
- package/package.json +5 -7
- package/src/components/config.ts +3 -3
package/es/config.js
CHANGED
|
@@ -29,13 +29,13 @@ var baseConfig = {
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
dateRanges: {
|
|
32
|
-
最近三天: function
|
|
32
|
+
最近三天: function three() {
|
|
33
33
|
return [rangeStartDay(2), moment()];
|
|
34
34
|
},
|
|
35
|
-
最近七天: function
|
|
35
|
+
最近七天: function seven() {
|
|
36
36
|
return [rangeStartDay(6), moment()];
|
|
37
37
|
},
|
|
38
|
-
最近三十天: function
|
|
38
|
+
最近三十天: function thirty() {
|
|
39
39
|
return [rangeStartDay(29), moment()];
|
|
40
40
|
}
|
|
41
41
|
},
|
package/lib/config.js
CHANGED
|
@@ -30,13 +30,13 @@ var baseConfig = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
dateRanges: {
|
|
33
|
-
最近三天: function
|
|
33
|
+
最近三天: function three() {
|
|
34
34
|
return [rangeStartDay(2), moment()];
|
|
35
35
|
},
|
|
36
|
-
最近七天: function
|
|
36
|
+
最近七天: function seven() {
|
|
37
37
|
return [rangeStartDay(6), moment()];
|
|
38
38
|
},
|
|
39
|
-
最近三十天: function
|
|
39
|
+
最近三十天: function thirty() {
|
|
40
40
|
return [rangeStartDay(29), moment()];
|
|
41
41
|
}
|
|
42
42
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hw-component/form",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.8",
|
|
4
4
|
"description": "基于antd二次开发",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,18 +34,17 @@
|
|
|
34
34
|
"not dead"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"core-js": "3",
|
|
38
|
+
"copy-to-clipboard": "3.3.1"
|
|
37
39
|
},
|
|
38
40
|
"peerDependencies": {
|
|
39
41
|
"react": "17.0.0",
|
|
40
42
|
"react-color": "^2.19.3",
|
|
41
43
|
"react-dom": "17.0.2",
|
|
42
|
-
"react-router-dom": "^6.11.2",
|
|
43
44
|
"@types/react-color": "^3.0.9",
|
|
44
45
|
"@ant-design/icons": "4.6.2",
|
|
45
46
|
"ahooks": "2.10.9",
|
|
46
|
-
"antd": "4.20.7"
|
|
47
|
-
"copy-to-clipboard": "3.3.1",
|
|
48
|
-
"core-js": "3"
|
|
47
|
+
"antd": "4.20.7"
|
|
49
48
|
},
|
|
50
49
|
"devDependencies": {
|
|
51
50
|
"@babel/core": "^7.21.8",
|
|
@@ -96,8 +95,7 @@
|
|
|
96
95
|
"@types/react-color": "^3.0.9",
|
|
97
96
|
"@ant-design/icons": "4.6.2",
|
|
98
97
|
"ahooks": "2.10.9",
|
|
99
|
-
"antd": "4.20.7"
|
|
100
|
-
"copy-to-clipboard": "3.3.1"
|
|
98
|
+
"antd": "4.20.7"
|
|
101
99
|
},
|
|
102
100
|
"cssPrefix": "hw"
|
|
103
101
|
}
|
package/src/components/config.ts
CHANGED
|
@@ -26,13 +26,13 @@ export const baseConfig: IFormConfigContextProps = {
|
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
dateRanges: {
|
|
29
|
-
最近三天: ()
|
|
29
|
+
最近三天: function three(){
|
|
30
30
|
return [rangeStartDay(2), moment()]
|
|
31
31
|
},
|
|
32
|
-
最近七天: ()
|
|
32
|
+
最近七天: function seven() {
|
|
33
33
|
return [rangeStartDay(6),moment()]
|
|
34
34
|
},
|
|
35
|
-
最近三十天:()
|
|
35
|
+
最近三十天:function thirty() {
|
|
36
36
|
return [rangeStartDay(29), moment()]
|
|
37
37
|
},
|
|
38
38
|
},
|