@byteluck-fe/model-driven-engine 2.8.0-alpha.13 → 2.8.0-alpha.16
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/esm/common/Store.js +3 -1
- package/dist/index.umd.js +6 -6
- package/package.json +2 -2
package/dist/esm/common/Store.js
CHANGED
|
@@ -122,7 +122,9 @@ var Store = /*#__PURE__*/ function() {
|
|
|
122
122
|
var controlInfo = this.controlIdMapping[controlId];
|
|
123
123
|
if (controlInfo !== undefined) {
|
|
124
124
|
var data = this.state[controlInfo.dataView][controlId];
|
|
125
|
-
|
|
125
|
+
var _controlInfo_children;
|
|
126
|
+
// 只有明细表key,再通过rowIndex获取行数据
|
|
127
|
+
if (rowIndex !== undefined && Object.keys((_controlInfo_children = controlInfo === null || controlInfo === void 0 ? void 0 : controlInfo.children) !== null && _controlInfo_children !== void 0 ? _controlInfo_children : {}).length > 0) {
|
|
126
128
|
return data[rowIndex];
|
|
127
129
|
} else {
|
|
128
130
|
return data;
|