@kmkf-fe-packages/basic-components 1.8.0-beta.6 → 1.8.0-beta.9
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 +3 -4
- package/dist/index.js +3 -4
- package/dist/src/apaas/SubForm/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -7661,7 +7661,8 @@ var SubForm = function SubForm(props) {
|
|
|
7661
7661
|
workOrderTemplateId = _props$subConfig.workOrderTemplateId,
|
|
7662
7662
|
correlationList = _props$subConfig.correlationList,
|
|
7663
7663
|
tableHeader = props.tableHeader,
|
|
7664
|
-
disabled = props.disabled
|
|
7664
|
+
disabled = props.disabled,
|
|
7665
|
+
platform = props.platform;
|
|
7665
7666
|
var ref = useRef(null);
|
|
7666
7667
|
var _useState = useState(false),
|
|
7667
7668
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7934,14 +7935,12 @@ var SubForm = function SubForm(props) {
|
|
|
7934
7935
|
}
|
|
7935
7936
|
};
|
|
7936
7937
|
var selectValueHandle = function selectValueHandle(record) {
|
|
7937
|
-
console.log('record', record);
|
|
7938
7938
|
var numberKeys = newTableHeader.reduce(function (prv, t) {
|
|
7939
7939
|
if (t.isNumber) {
|
|
7940
7940
|
prv.push(t.key);
|
|
7941
7941
|
}
|
|
7942
7942
|
return prv;
|
|
7943
7943
|
}, []);
|
|
7944
|
-
console.log('numberKeys', numberKeys);
|
|
7945
7944
|
var newValue = record || {};
|
|
7946
7945
|
if (numberKeys === null || numberKeys === void 0 ? void 0 : numberKeys.length) {
|
|
7947
7946
|
Object.keys(newValue).forEach(function (key) {
|
|
@@ -7950,7 +7949,6 @@ var SubForm = function SubForm(props) {
|
|
|
7950
7949
|
}
|
|
7951
7950
|
});
|
|
7952
7951
|
}
|
|
7953
|
-
console.log('newValue', newValue);
|
|
7954
7952
|
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
7955
7953
|
uuid: uuid()
|
|
7956
7954
|
})]));
|
|
@@ -7973,6 +7971,7 @@ var SubForm = function SubForm(props) {
|
|
|
7973
7971
|
onScrollCapture: onScrollCapture,
|
|
7974
7972
|
style: {
|
|
7975
7973
|
height: 320,
|
|
7974
|
+
maxWidth: platform !== 'pc' ? '325px' : '100%',
|
|
7976
7975
|
overflowY: 'scroll',
|
|
7977
7976
|
overflowX: 'auto'
|
|
7978
7977
|
}
|
package/dist/index.js
CHANGED
|
@@ -7673,7 +7673,8 @@ var SubForm = function SubForm(props) {
|
|
|
7673
7673
|
workOrderTemplateId = _props$subConfig.workOrderTemplateId,
|
|
7674
7674
|
correlationList = _props$subConfig.correlationList,
|
|
7675
7675
|
tableHeader = props.tableHeader,
|
|
7676
|
-
disabled = props.disabled
|
|
7676
|
+
disabled = props.disabled,
|
|
7677
|
+
platform = props.platform;
|
|
7677
7678
|
var ref = React.useRef(null);
|
|
7678
7679
|
var _useState = React.useState(false),
|
|
7679
7680
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7946,14 +7947,12 @@ var SubForm = function SubForm(props) {
|
|
|
7946
7947
|
}
|
|
7947
7948
|
};
|
|
7948
7949
|
var selectValueHandle = function selectValueHandle(record) {
|
|
7949
|
-
console.log('record', record);
|
|
7950
7950
|
var numberKeys = newTableHeader.reduce(function (prv, t) {
|
|
7951
7951
|
if (t.isNumber) {
|
|
7952
7952
|
prv.push(t.key);
|
|
7953
7953
|
}
|
|
7954
7954
|
return prv;
|
|
7955
7955
|
}, []);
|
|
7956
|
-
console.log('numberKeys', numberKeys);
|
|
7957
7956
|
var newValue = record || {};
|
|
7958
7957
|
if (numberKeys === null || numberKeys === void 0 ? void 0 : numberKeys.length) {
|
|
7959
7958
|
Object.keys(newValue).forEach(function (key) {
|
|
@@ -7962,7 +7961,6 @@ var SubForm = function SubForm(props) {
|
|
|
7962
7961
|
}
|
|
7963
7962
|
});
|
|
7964
7963
|
}
|
|
7965
|
-
console.log('newValue', newValue);
|
|
7966
7964
|
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
7967
7965
|
uuid: kmkfUtils.uuid()
|
|
7968
7966
|
})]));
|
|
@@ -7985,6 +7983,7 @@ var SubForm = function SubForm(props) {
|
|
|
7985
7983
|
onScrollCapture: onScrollCapture,
|
|
7986
7984
|
style: {
|
|
7987
7985
|
height: 320,
|
|
7986
|
+
maxWidth: platform !== 'pc' ? '325px' : '100%',
|
|
7988
7987
|
overflowY: 'scroll',
|
|
7989
7988
|
overflowX: 'auto'
|
|
7990
7989
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.9",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "cc462599bebe04c726f3885e2b440ba6a8b0825f"
|
|
69
69
|
}
|