@bit-sun/business-component 4.0.13-alpha.27 → 4.0.13-alpha.28
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/dist/index.esm.js
CHANGED
|
@@ -7408,6 +7408,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7408
7408
|
clearTitle = props.clearTitle;
|
|
7409
7409
|
var _ref = requestConfig || {},
|
|
7410
7410
|
url = _ref.url,
|
|
7411
|
+
sourceKey = _ref.sourceKey,
|
|
7411
7412
|
otherParams = _ref.otherParams,
|
|
7412
7413
|
isMap = _ref.isMap,
|
|
7413
7414
|
_ref$mappingValueFiel = _ref.mappingValueField,
|
|
@@ -8000,7 +8001,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8000
8001
|
};
|
|
8001
8002
|
});
|
|
8002
8003
|
} else {
|
|
8003
|
-
var keys = res.list ? 'list' : 'items';
|
|
8004
|
+
var keys = sourceKey ? sourceKey : res.list ? 'list' : 'items';
|
|
8004
8005
|
source = res ? res[keys] ? res[keys].map(function (item) {
|
|
8005
8006
|
var _item$packingUnitList, _item$packingUnitList2;
|
|
8006
8007
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
package/dist/index.js
CHANGED
|
@@ -7431,6 +7431,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7431
7431
|
clearTitle = props.clearTitle;
|
|
7432
7432
|
var _ref = requestConfig || {},
|
|
7433
7433
|
url = _ref.url,
|
|
7434
|
+
sourceKey = _ref.sourceKey,
|
|
7434
7435
|
otherParams = _ref.otherParams,
|
|
7435
7436
|
isMap = _ref.isMap,
|
|
7436
7437
|
_ref$mappingValueFiel = _ref.mappingValueField,
|
|
@@ -8023,7 +8024,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8023
8024
|
};
|
|
8024
8025
|
});
|
|
8025
8026
|
} else {
|
|
8026
|
-
var keys = res.list ? 'list' : 'items';
|
|
8027
|
+
var keys = sourceKey ? sourceKey : res.list ? 'list' : 'items';
|
|
8027
8028
|
source = res ? res[keys] ? res[keys].map(function (item) {
|
|
8028
8029
|
var _item$packingUnitList, _item$packingUnitList2;
|
|
8029
8030
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
package/package.json
CHANGED
|
@@ -89,7 +89,7 @@ const AddSelect = (props: any) => {
|
|
|
89
89
|
isAllowRepeatedSelect = false,
|
|
90
90
|
clearTitle
|
|
91
91
|
} = props;
|
|
92
|
-
const { url, otherParams, isMap, mappingValueField = 'code' } = requestConfig || {};
|
|
92
|
+
const { url, sourceKey, otherParams, isMap, mappingValueField = 'code' } = requestConfig || {};
|
|
93
93
|
const realButtonProps = {type: "primary", ...buttonProps};
|
|
94
94
|
const selectRowKey = isAllowRepeatedSelect ? 'uuid' : mappingValueField
|
|
95
95
|
|
|
@@ -537,7 +537,7 @@ const AddSelect = (props: any) => {
|
|
|
537
537
|
};
|
|
538
538
|
});
|
|
539
539
|
} else {
|
|
540
|
-
const keys = res.list ? 'list' : 'items';
|
|
540
|
+
const keys = sourceKey ? sourceKey :res.list ? 'list' : 'items';
|
|
541
541
|
source = res
|
|
542
542
|
? res[keys]
|
|
543
543
|
? res[keys].map((item: any) => {
|