@zat-design/sisyphus-react 3.4.5-beta.35 → 3.4.5-beta.37

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.
@@ -4221,10 +4221,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
4221
4221
  .pro-edit-table .ant-space .ant-btn-link:first-child {
4222
4222
  padding-left: 0;
4223
4223
  }
4224
- .pro-edit-table .ant-table-header > table .ant-table-thead > tr > th.ant-table-selection-column {
4225
- padding-left: var(--zaui-space-size-md, 16px);
4226
- padding-right: var(--zaui-space-size-md, 16px);
4227
- }
4228
4224
  .pro-edit-table .ant-table-header > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
4229
4225
  position: static;
4230
4226
  top: 0;
package/dist/less.esm.css CHANGED
@@ -4221,10 +4221,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
4221
4221
  .pro-edit-table .ant-space .ant-btn-link:first-child {
4222
4222
  padding-left: 0;
4223
4223
  }
4224
- .pro-edit-table .ant-table-header > table .ant-table-thead > tr > th.ant-table-selection-column {
4225
- padding-left: var(--zaui-space-size-md, 16px);
4226
- padding-right: var(--zaui-space-size-md, 16px);
4227
- }
4228
4224
  .pro-edit-table .ant-table-header > table .ant-table-thead > tr > th:not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]).is-required.is-required-right .pro-edit-table-title::before {
4229
4225
  position: static;
4230
4226
  top: 0;
@@ -87,11 +87,6 @@
87
87
  }
88
88
  }
89
89
 
90
- .@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th.@{ant-prefix}-table-selection-column {
91
- padding-left: var(--zaui-space-size-md, 16px);
92
- padding-right: var(--zaui-space-size-md, 16px);
93
- }
94
-
95
90
  .@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th:not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan]).is-required {
96
91
  &.is-required-right {
97
92
  .pro-edit-table-title {
@@ -150,5 +150,5 @@ export var getDisabled = function getDisabled(_ref2) {
150
150
  if (isFunction(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled)) {
151
151
  return convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled.apply(columnFieldProps, _toConsumableArray(params)));
152
152
  }
153
- return convertToBoolean(column === null || column === void 0 ? void 0 : column.disabled) || convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled);
153
+ return convertToBoolean(column === null || column === void 0 ? void 0 : column.disabled) || convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled) || convertToBoolean(tabledDisabled);
154
154
  };
@@ -13,9 +13,8 @@ export var useChanged = function useChanged(_ref) {
13
13
  return get(originalValues, name);
14
14
  }) : get(originalValues, name);
15
15
  var notWatch = !equalWith && (!originalValues || originalValue === undefined);
16
- if (notWatch) form = [];
17
- var value = _Form.useWatch(namesStr || name, form);
18
16
  if (notWatch) return [false];
17
+ var value = _Form.useWatch(namesStr || name, form);
19
18
  var changed = diffOriginal({
20
19
  originalValue: originalValue,
21
20
  value: value,
@@ -80,10 +80,8 @@ export var useListChanged = function useListChanged(params) {
80
80
  }) : undefined;
81
81
  var noChange = !equalWith && (!originalValues || originalValue === undefined);
82
82
  var _form = form;
83
- // @ts-ignore
84
- if (notWatch) _form = [];
85
- var value = _Form.useWatch(namePath, _form);
86
83
  if (notWatch || noChange) return [false];
84
+ var value = _Form.useWatch(namePath, _form);
87
85
  var changed = diffOriginal({
88
86
  value: value,
89
87
  originalValue: originalValue,
@@ -175,10 +175,6 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
175
175
  * @return {*}
176
176
  */
177
177
  var handleBeforeUpload = function handleBeforeUpload(file, fileList) {
178
- if (!isFunction(beforeUpload)) {
179
- return false;
180
- }
181
- // TODO
182
178
  if (!validateFileExt(extExt, file)) {
183
179
  var _locale$ProUpload2;
184
180
  _message.error("".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload2 = locale.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.errorInfoExt, "\u3010").concat(extExt.join('、'), "\u3011"));
@@ -189,7 +185,9 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
189
185
  _message.error("".concat(locale === null || locale === void 0 ? void 0 : (_locale$ProUpload3 = locale.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.errorInfoSize).concat(size, "M"));
190
186
  return false;
191
187
  }
192
- return beforeUpload(file, fileList);
188
+ if (beforeUpload) {
189
+ return beforeUpload(file, fileList);
190
+ }
193
191
  };
194
192
  var handleRemove = function handleRemove(file) {
195
193
  var nextList = _fileList.slice();
@@ -244,7 +242,8 @@ var ProUpload = /*#__PURE__*/React.forwardRef(function (props, ref) {
244
242
  showUploadList: showUploadList,
245
243
  method: method,
246
244
  accept: accept,
247
- data: _objectSpread({}, dataParams)
245
+ data: _objectSpread({}, dataParams),
246
+ name: name
248
247
  }, residueProps);
249
248
  var baseProps = {
250
249
  isView: isView,
@@ -87,11 +87,6 @@
87
87
  }
88
88
  }
89
89
 
90
- .@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th.@{ant-prefix}-table-selection-column {
91
- padding-left: var(--zaui-space-size-md, 16px);
92
- padding-right: var(--zaui-space-size-md, 16px);
93
- }
94
-
95
90
  .@{ant-prefix}-table-header>table .@{ant-prefix}-table-thead>tr>th:not(.@{ant-prefix}-table-selection-column):not(.@{ant-prefix}-table-row-expand-icon-cell):not([colspan]).is-required {
96
91
  &.is-required-right {
97
92
  .pro-edit-table-title {
@@ -157,5 +157,5 @@ var getDisabled = exports.getDisabled = function getDisabled(_ref2) {
157
157
  if ((0, _lodash.isFunction)(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled)) {
158
158
  return convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled.apply(columnFieldProps, (0, _toConsumableArray2.default)(params)));
159
159
  }
160
- return convertToBoolean(column === null || column === void 0 ? void 0 : column.disabled) || convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled);
160
+ return convertToBoolean(column === null || column === void 0 ? void 0 : column.disabled) || convertToBoolean(columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled) || convertToBoolean(tabledDisabled);
161
161
  };
@@ -18,9 +18,8 @@ var useChanged = exports.useChanged = function useChanged(_ref) {
18
18
  return (0, _lodash.get)(originalValues, name);
19
19
  }) : (0, _lodash.get)(originalValues, name);
20
20
  var notWatch = !equalWith && (!originalValues || originalValue === undefined);
21
- if (notWatch) form = [];
22
- var value = _antd.Form.useWatch(namesStr || name, form);
23
21
  if (notWatch) return [false];
22
+ var value = _antd.Form.useWatch(namesStr || name, form);
24
23
  var changed = (0, _diffOriginal.diffOriginal)({
25
24
  originalValue: originalValue,
26
25
  value: value,
@@ -85,10 +85,8 @@ var useListChanged = exports.useListChanged = function useListChanged(params) {
85
85
  }) : undefined;
86
86
  var noChange = !equalWith && (!originalValues || originalValue === undefined);
87
87
  var _form = form;
88
- // @ts-ignore
89
- if (notWatch) _form = [];
90
- var value = _antd.Form.useWatch(namePath, _form);
91
88
  if (notWatch || noChange) return [false];
89
+ var value = _antd.Form.useWatch(namePath, _form);
92
90
  var changed = (0, _diffOriginal.diffOriginal)({
93
91
  value: value,
94
92
  originalValue: originalValue,
@@ -182,10 +182,6 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
182
182
  * @return {*}
183
183
  */
184
184
  var handleBeforeUpload = function handleBeforeUpload(file, fileList) {
185
- if (!(0, _lodash.isFunction)(beforeUpload)) {
186
- return false;
187
- }
188
- // TODO
189
185
  if (!(0, _uitls.validateFileExt)(extExt, file)) {
190
186
  var _locale$ProUpload2;
191
187
  _antd.message.error("".concat(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload2 = _locale.default.ProUpload) === null || _locale$ProUpload2 === void 0 ? void 0 : _locale$ProUpload2.errorInfoExt, "\u3010").concat(extExt.join('、'), "\u3011"));
@@ -196,7 +192,9 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
196
192
  _antd.message.error("".concat(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProUpload3 = _locale.default.ProUpload) === null || _locale$ProUpload3 === void 0 ? void 0 : _locale$ProUpload3.errorInfoSize).concat(size, "M"));
197
193
  return false;
198
194
  }
199
- return beforeUpload(file, fileList);
195
+ if (beforeUpload) {
196
+ return beforeUpload(file, fileList);
197
+ }
200
198
  };
201
199
  var handleRemove = function handleRemove(file) {
202
200
  var nextList = _fileList.slice();
@@ -251,7 +249,8 @@ var ProUpload = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
251
249
  showUploadList: showUploadList,
252
250
  method: method,
253
251
  accept: accept,
254
- data: (0, _objectSpread2.default)({}, dataParams)
252
+ data: (0, _objectSpread2.default)({}, dataParams),
253
+ name: name
255
254
  }, residueProps);
256
255
  var baseProps = {
257
256
  isView: isView,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.5-beta.35",
3
+ "version": "3.4.5-beta.37",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",