@zat-design/sisyphus-react 3.13.13-beta.1 → 3.13.13-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.
@@ -93,11 +93,7 @@ export var ProTimeLimit = function ProTimeLimit(props) {
|
|
93
93
|
if (checkedForever) {
|
94
94
|
onChange(moment(foreverString, format));
|
95
95
|
} else {
|
96
|
-
|
97
|
-
onChange(moment());
|
98
|
-
setTimeout(function () {
|
99
|
-
onChange(null);
|
100
|
-
}, 0);
|
96
|
+
onChange(null);
|
101
97
|
}
|
102
98
|
};
|
103
99
|
if (isView) {
|
@@ -133,7 +129,6 @@ export var ProTimeLimit = function ProTimeLimit(props) {
|
|
133
129
|
compact: true,
|
134
130
|
className: "pro-time-limit",
|
135
131
|
children: [_jsx(_DatePicker, _objectSpread(_objectSpread(_objectSpread({
|
136
|
-
defaultPickerValue: moment(),
|
137
132
|
disabled: disabled || isForever
|
138
133
|
}, initialConfig), _omit(_rest, ['placeholder'])), {}, {
|
139
134
|
format: _format,
|
@@ -100,11 +100,7 @@ var ProTimeLimit = exports.ProTimeLimit = function ProTimeLimit(props) {
|
|
100
100
|
if (checkedForever) {
|
101
101
|
onChange((0, _moment.default)(foreverString, format));
|
102
102
|
} else {
|
103
|
-
|
104
|
-
onChange((0, _moment.default)());
|
105
|
-
setTimeout(function () {
|
106
|
-
onChange(null);
|
107
|
-
}, 0);
|
103
|
+
onChange(null);
|
108
104
|
}
|
109
105
|
};
|
110
106
|
if (isView) {
|
@@ -140,7 +136,6 @@ var ProTimeLimit = exports.ProTimeLimit = function ProTimeLimit(props) {
|
|
140
136
|
compact: true,
|
141
137
|
className: "pro-time-limit",
|
142
138
|
children: [(0, _jsxRuntime.jsx)(_datePicker.default, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
143
|
-
defaultPickerValue: (0, _moment.default)(),
|
144
139
|
disabled: disabled || isForever
|
145
140
|
}, initialConfig), (0, _omit2.default)(_rest, ['placeholder'])), {}, {
|
146
141
|
format: _format,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zat-design/sisyphus-react",
|
3
|
-
"version": "3.13.13-beta.
|
3
|
+
"version": "3.13.13-beta.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -52,7 +52,8 @@
|
|
52
52
|
],
|
53
53
|
"resolutions": {
|
54
54
|
"@types/react": "^17.0.53",
|
55
|
-
"mockjs/commander": "9.2.0"
|
55
|
+
"mockjs/commander": "9.2.0",
|
56
|
+
"react-draggable": "<4.5.0"
|
56
57
|
},
|
57
58
|
"dependencies": {
|
58
59
|
"@ant-design/icons": "^4.2.2",
|