@zat-design/sisyphus-react 3.7.2-beta.3 → 3.7.2-beta.4
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/ProEditTable/utils/getDefaultProps.js +2 -1
- package/es/ProForm/utils/rulesCreator.d.ts +1 -1
- package/es/ProForm/utils/rulesCreator.js +2 -1
- package/lib/ProEditTable/utils/getDefaultProps.js +3 -1
- package/lib/ProForm/utils/rulesCreator.d.ts +1 -1
- package/lib/ProForm/utils/rulesCreator.js +2 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
1
2
|
import { get, isEqual } from 'lodash';
|
|
2
3
|
var defaultPropsMap = {
|
|
3
4
|
ProSelect: function ProSelect(props) {
|
|
@@ -9,7 +10,7 @@ var defaultPropsMap = {
|
|
|
9
10
|
var defaultProps = {};
|
|
10
11
|
// formList场景传入列表过滤时
|
|
11
12
|
if (filterInList && namePath && name) {
|
|
12
|
-
var _namePath = namePath.
|
|
13
|
+
var _namePath = _toConsumableArray(namePath).splice(2, namePath.length - 1);
|
|
13
14
|
defaultProps.shouldUpdate = function (preValues, curValues) {
|
|
14
15
|
var _get, _get$map, _get2, _get2$map;
|
|
15
16
|
var preListValue = (_get = get(preValues, name)) === null || _get === void 0 ? void 0 : (_get$map = _get.map) === null || _get$map === void 0 ? void 0 : _get$map.call(_get, function (item) {
|
|
@@ -14,7 +14,8 @@ var getNonEmptyValuesByIndex = function getNonEmptyValuesByIndex(required, value
|
|
|
14
14
|
};
|
|
15
15
|
export var rulesCreator = function rulesCreator(_ref) {
|
|
16
16
|
var _result;
|
|
17
|
-
var rules = _ref.rules,
|
|
17
|
+
var _ref$rules = _ref.rules,
|
|
18
|
+
rules = _ref$rules === void 0 ? [] : _ref$rules,
|
|
18
19
|
label = _ref.label,
|
|
19
20
|
isSelect = _ref.isSelect,
|
|
20
21
|
names = _ref.names,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.getDefaultProps = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
7
9
|
var _lodash = require("lodash");
|
|
8
10
|
var defaultPropsMap = {
|
|
9
11
|
ProSelect: function ProSelect(props) {
|
|
@@ -15,7 +17,7 @@ var defaultPropsMap = {
|
|
|
15
17
|
var defaultProps = {};
|
|
16
18
|
// formList场景传入列表过滤时
|
|
17
19
|
if (filterInList && namePath && name) {
|
|
18
|
-
var _namePath = namePath.
|
|
20
|
+
var _namePath = (0, _toConsumableArray2.default)(namePath).splice(2, namePath.length - 1);
|
|
19
21
|
defaultProps.shouldUpdate = function (preValues, curValues) {
|
|
20
22
|
var _get, _get$map, _get2, _get2$map;
|
|
21
23
|
var preListValue = (_get = (0, _lodash.get)(preValues, name)) === null || _get === void 0 ? void 0 : (_get$map = _get.map) === null || _get$map === void 0 ? void 0 : _get$map.call(_get, function (item) {
|
|
@@ -22,7 +22,8 @@ var getNonEmptyValuesByIndex = function getNonEmptyValuesByIndex(required, value
|
|
|
22
22
|
};
|
|
23
23
|
var rulesCreator = exports.rulesCreator = function rulesCreator(_ref) {
|
|
24
24
|
var _result;
|
|
25
|
-
var rules = _ref.rules,
|
|
25
|
+
var _ref$rules = _ref.rules,
|
|
26
|
+
rules = _ref$rules === void 0 ? [] : _ref$rules,
|
|
26
27
|
label = _ref.label,
|
|
27
28
|
isSelect = _ref.isSelect,
|
|
28
29
|
names = _ref.names,
|