@zat-design/sisyphus-react 3.4.9-beta.1 → 3.4.9-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.
- package/es/ProForm/components/combination/ProModalSelect/index.js +1 -1
- package/es/ProForm/components/combination/ProRangeLimit/index.js +6 -2
- package/es/ProSelect/index.js +0 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.js +1 -1
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +6 -2
- package/lib/ProSelect/index.js +0 -2
- package/package.json +2 -2
|
@@ -122,8 +122,12 @@ var ProRangeLimit = function ProRangeLimit(props) {
|
|
|
122
122
|
start = _ref9[0],
|
|
123
123
|
end = _ref9[1];
|
|
124
124
|
if (e.target.checked) {
|
|
125
|
-
var _start, _end;
|
|
126
|
-
|
|
125
|
+
var _rest$allowEmpty, _start, _end;
|
|
126
|
+
if (((_rest$allowEmpty = rest.allowEmpty) === null || _rest$allowEmpty === void 0 ? void 0 : _rest$allowEmpty[0]) === true) {
|
|
127
|
+
start = null;
|
|
128
|
+
} else {
|
|
129
|
+
start = start || moment().startOf('day');
|
|
130
|
+
}
|
|
127
131
|
end = foreverMoment;
|
|
128
132
|
onChange([start, end, e.target.checked], [(_start = start) === null || _start === void 0 ? void 0 : _start.format(format), (_end = end) === null || _end === void 0 ? void 0 : _end.format(format), foreverStr]);
|
|
129
133
|
} else {
|
package/es/ProSelect/index.js
CHANGED
|
@@ -269,8 +269,6 @@ export var ProSelect = function ProSelect(props, ref) {
|
|
|
269
269
|
return value;
|
|
270
270
|
};
|
|
271
271
|
var newSelectList = selectList;
|
|
272
|
-
console.log('otherProps', otherProps, filterInList);
|
|
273
|
-
debugger;
|
|
274
272
|
if ((otherProps === null || otherProps === void 0 ? void 0 : otherProps.listName) && filterInList) {
|
|
275
273
|
newSelectList = getSelectList({
|
|
276
274
|
otherProps: otherProps,
|
|
@@ -124,8 +124,12 @@ var ProRangeLimit = function ProRangeLimit(props) {
|
|
|
124
124
|
start = _ref9[0],
|
|
125
125
|
end = _ref9[1];
|
|
126
126
|
if (e.target.checked) {
|
|
127
|
-
var _start, _end;
|
|
128
|
-
|
|
127
|
+
var _rest$allowEmpty, _start, _end;
|
|
128
|
+
if (((_rest$allowEmpty = rest.allowEmpty) === null || _rest$allowEmpty === void 0 ? void 0 : _rest$allowEmpty[0]) === true) {
|
|
129
|
+
start = null;
|
|
130
|
+
} else {
|
|
131
|
+
start = start || (0, _moment.default)().startOf('day');
|
|
132
|
+
}
|
|
129
133
|
end = foreverMoment;
|
|
130
134
|
onChange([start, end, e.target.checked], [(_start = start) === null || _start === void 0 ? void 0 : _start.format(format), (_end = end) === null || _end === void 0 ? void 0 : _end.format(format), foreverStr]);
|
|
131
135
|
} else {
|
package/lib/ProSelect/index.js
CHANGED
|
@@ -270,8 +270,6 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
|
|
|
270
270
|
return value;
|
|
271
271
|
};
|
|
272
272
|
var newSelectList = selectList;
|
|
273
|
-
console.log('otherProps', otherProps, filterInList);
|
|
274
|
-
debugger;
|
|
275
273
|
if ((otherProps === null || otherProps === void 0 ? void 0 : otherProps.listName) && filterInList) {
|
|
276
274
|
newSelectList = (0, _utils.getSelectList)({
|
|
277
275
|
otherProps: otherProps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zat-design/sisyphus-react",
|
|
3
|
-
"version": "3.4.9-beta.
|
|
3
|
+
"version": "3.4.9-beta.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@dnd-kit/sortable": "^7.0.2",
|
|
59
59
|
"@dnd-kit/utilities": "^3.2.1",
|
|
60
60
|
"@pansy/react-watermark": "^3.1.13",
|
|
61
|
-
"@zat-design/utils": "^1.1.
|
|
61
|
+
"@zat-design/utils": "^1.1.21",
|
|
62
62
|
"ahooks": "3.7.4",
|
|
63
63
|
"antd": "4.24.8",
|
|
64
64
|
"big.js": "^6.2.1",
|