@byteluck-fe/model-driven-engine 1.7.6-bete.19 → 1.7.6-bete.20
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/Engine.js +14 -3
- package/dist/index.umd.js +6 -6
- package/package.json +3 -3
|
@@ -592,8 +592,19 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
592
592
|
var index = this.getInstanceRowIndex(instance);
|
|
593
593
|
var options = eventOptionsTemp || {};
|
|
594
594
|
if (_instanceof(instance, RuntimeListControl)) {
|
|
595
|
-
|
|
596
|
-
|
|
595
|
+
// const hasValue = Object.keys(instance.rowProps).length > 0
|
|
596
|
+
// debugger
|
|
597
|
+
// if (!hasValue) {
|
|
598
|
+
// instance.children = instance.props.headers.map((header) => {
|
|
599
|
+
// // instance.rowProps[header.id] = (this.createInstance as any)(
|
|
600
|
+
// // header.controlType
|
|
601
|
+
// // )
|
|
602
|
+
// return (this.createInstance as any)(
|
|
603
|
+
// header.controlType
|
|
604
|
+
// )
|
|
605
|
+
// })
|
|
606
|
+
// }
|
|
607
|
+
// instance.children.length = 0
|
|
597
608
|
var newValue = value;
|
|
598
609
|
// @ts-ignore
|
|
599
610
|
var newRows = [];
|
|
@@ -604,7 +615,7 @@ var Engine = /*#__PURE__*/ function(Watcher) {
|
|
|
604
615
|
// 答:始终应该取 subtableRow 的props,因为它是从 subtable-headers-columns 里copy下来的,并且可能会被同行的其他列修改
|
|
605
616
|
// const rowID =
|
|
606
617
|
// const subtableRow = genSubTableRowInstanceFromHeaders(instance.props.headers)
|
|
607
|
-
// instance.
|
|
618
|
+
// instance.setRowProps()
|
|
608
619
|
// for (let i = 0; i < newValue.length; i++) {
|
|
609
620
|
// // @ts-ignore
|
|
610
621
|
// const row = this.listControlCreateRow(instance, 'subtable-row')
|