@zat-design/sisyphus-react 3.13.12 → 3.13.13-beta.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.
@@ -93,7 +93,11 @@ export var ProTimeLimit = function ProTimeLimit(props) {
93
93
  if (checkedForever) {
94
94
  onChange(moment(foreverString, format));
95
95
  } else {
96
- onChange(null);
96
+ // 防止长期选择后,时间面板还是9999-01-01
97
+ onChange(moment());
98
+ setTimeout(function () {
99
+ onChange(null);
100
+ }, 0);
97
101
  }
98
102
  };
99
103
  if (isView) {
@@ -129,6 +133,7 @@ export var ProTimeLimit = function ProTimeLimit(props) {
129
133
  compact: true,
130
134
  className: "pro-time-limit",
131
135
  children: [_jsx(_DatePicker, _objectSpread(_objectSpread(_objectSpread({
136
+ defaultPickerValue: moment(),
132
137
  disabled: disabled || isForever
133
138
  }, initialConfig), _omit(_rest, ['placeholder'])), {}, {
134
139
  format: _format,
@@ -100,7 +100,11 @@ var ProTimeLimit = exports.ProTimeLimit = function ProTimeLimit(props) {
100
100
  if (checkedForever) {
101
101
  onChange((0, _moment.default)(foreverString, format));
102
102
  } else {
103
- onChange(null);
103
+ // 防止长期选择后,时间面板还是9999-01-01
104
+ onChange((0, _moment.default)());
105
+ setTimeout(function () {
106
+ onChange(null);
107
+ }, 0);
104
108
  }
105
109
  };
106
110
  if (isView) {
@@ -136,6 +140,7 @@ var ProTimeLimit = exports.ProTimeLimit = function ProTimeLimit(props) {
136
140
  compact: true,
137
141
  className: "pro-time-limit",
138
142
  children: [(0, _jsxRuntime.jsx)(_datePicker.default, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
143
+ defaultPickerValue: (0, _moment.default)(),
139
144
  disabled: disabled || isForever
140
145
  }, initialConfig), (0, _omit2.default)(_rest, ['placeholder'])), {}, {
141
146
  format: _format,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.12",
3
+ "version": "3.13.13-beta.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",