wt-enjoy-link-antd-repack 4.1.53 → 4.1.55
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.
@@ -1,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["warehouseId", "initialValue", "searchTimes", "rowLabel"];
|
2
|
+
var _excluded = ["warehouseId", "initialValue", "searchTimes", "rowLabel", "isAutoGenerate"];
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
@@ -51,6 +51,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
51
51
|
searchTimes = _props$searchTimes === void 0 ? 300 : _props$searchTimes,
|
52
52
|
_props$rowLabel = props.rowLabel,
|
53
53
|
rowLabel = _props$rowLabel === void 0 ? 'warehouseAreaCode' : _props$rowLabel,
|
54
|
+
_props$isAutoGenerate = props.isAutoGenerate,
|
55
|
+
isAutoGenerate = _props$isAutoGenerate === void 0 ? null : _props$isAutoGenerate,
|
54
56
|
restProps = _objectWithoutProperties(props, _excluded);
|
55
57
|
var _useState = useState(),
|
56
58
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -70,7 +72,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
70
72
|
setLoading(true);
|
71
73
|
getWarehouseAreaList({
|
72
74
|
id: initialValue,
|
73
|
-
warehouseId: warehouseId
|
75
|
+
warehouseId: warehouseId,
|
76
|
+
isAutoGenerate: isAutoGenerate
|
74
77
|
}).then(function (res) {
|
75
78
|
if (res !== null && res !== void 0 && res.length && res[0].id) {
|
76
79
|
setAreaList(res);
|
@@ -82,21 +85,22 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
82
85
|
setLoading(false);
|
83
86
|
});
|
84
87
|
}
|
85
|
-
}, [initialValue, props.initSelectValue, props.value, rowLabel, warehouseId]);
|
88
|
+
}, [initialValue, isAutoGenerate, props.initSelectValue, props.value, rowLabel, warehouseId]);
|
86
89
|
var onSearch = useCallback(function (sValue) {
|
87
90
|
if (timerRef.current) clearTimeout(timerRef.current);
|
88
91
|
timerRef.current = setTimeout(function () {
|
89
92
|
setLoading(true);
|
90
93
|
getWarehouseAreaList({
|
91
94
|
warehouseId: warehouseId,
|
92
|
-
warehouseAreaCode: trim(sValue)
|
95
|
+
warehouseAreaCode: trim(sValue),
|
96
|
+
isAutoGenerate: isAutoGenerate
|
93
97
|
}).then(function (res) {
|
94
98
|
setAreaList(res);
|
95
99
|
}).finally(function () {
|
96
100
|
setLoading(false);
|
97
101
|
});
|
98
102
|
}, searchTimes);
|
99
|
-
}, [searchTimes, warehouseId]);
|
103
|
+
}, [isAutoGenerate, searchTimes, warehouseId]);
|
100
104
|
return /*#__PURE__*/_jsx(TableSelectBase, _objectSpread(_objectSpread({
|
101
105
|
ref: ref
|
102
106
|
}, restProps), {}, {
|
@@ -16,5 +16,6 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
16
16
|
isAutoGenerate?: string | undefined;
|
17
17
|
remoteSearchValue?: string | undefined;
|
18
18
|
isQueryScene?: number | undefined;
|
19
|
+
locationCodes?: string | undefined;
|
19
20
|
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
20
21
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["ownerId", "locationCode", "warehouseAreaId", "warehouseId", "warehouseIds", "onChange", "onChangeData", "type", "areaType", "interfaceType", "temperateZone", "isFirstLoad", "isAutoGenerate", "isQueryScene"];
|
2
|
+
var _excluded = ["ownerId", "locationCode", "warehouseAreaId", "warehouseId", "warehouseIds", "onChange", "onChangeData", "type", "areaType", "interfaceType", "temperateZone", "isFirstLoad", "isAutoGenerate", "isQueryScene", "locationCodes"];
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
@@ -57,6 +57,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
57
57
|
isAutoGenerate = _props$isAutoGenerate === void 0 ? '2' : _props$isAutoGenerate,
|
58
58
|
_props$isQueryScene = props.isQueryScene,
|
59
59
|
isQueryScene = _props$isQueryScene === void 0 ? 2 : _props$isQueryScene,
|
60
|
+
locationCodes = props.locationCodes,
|
60
61
|
restProps = _objectWithoutProperties(props, _excluded);
|
61
62
|
var _useState5 = useState(isFirstLoad),
|
62
63
|
_useState6 = _slicedToArray(_useState5, 2),
|
@@ -82,7 +83,8 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
82
83
|
isFirstLoadSearch: isFirstLoadSearch,
|
83
84
|
remoteSearchCValue: remoteSearchCValue,
|
84
85
|
isAutoGenerate: isAutoGenerate,
|
85
|
-
isQueryScene: isQueryScene
|
86
|
+
isQueryScene: isQueryScene,
|
87
|
+
locationCodes: locationCodes
|
86
88
|
};
|
87
89
|
return interfaceType && interfaceType === '1' ? _objectSpread(_objectSpread({}, params), {}, {
|
88
90
|
warehouseAreaType: areaType,
|
@@ -92,7 +94,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
92
94
|
page: 1,
|
93
95
|
size: 20
|
94
96
|
});
|
95
|
-
}, [locationCode, warehouseAreaId, warehouseId, warehouseIds, areaType, interfaceType, ownerId, temperateZone, isFirstLoadSearch, remoteSearchCValue, isAutoGenerate, isQueryScene]);
|
97
|
+
}, [locationCode, warehouseAreaId, warehouseId, warehouseIds, areaType, interfaceType, ownerId, temperateZone, isFirstLoadSearch, remoteSearchCValue, isAutoGenerate, isQueryScene, locationCodes]);
|
96
98
|
var handleOnChange = useCallback(function (value, option) {
|
97
99
|
if (onChange) onChange(value, option);
|
98
100
|
if (onChangeData) {
|