diff --git a/src/components/common/TableBody.vue b/src/components/common/TableBody.vue
index b0b5351..74efa79 100644
--- a/src/components/common/TableBody.vue
+++ b/src/components/common/TableBody.vue
@@ -49,7 +49,7 @@
)"
:key="i"
>
-
+
diff --git a/src/models/param/slotsBox.ts b/src/models/param/slotsBox.ts
index 8982bd3..089ae07 100644
--- a/src/models/param/slotsBox.ts
+++ b/src/models/param/slotsBox.ts
@@ -57,7 +57,10 @@ export default class SlotsBox {
* 将 columns 的叶子结点平铺
*/
private setLeafCols() {
- this.cols = this.tableHeaders.leafs.map(v => v.node);
+ this.cols = this.tableHeaders.leafs.map((v, i) => {
+ v.node.props = Object.assign({}, v.node.props, { __index: i });
+ return v.node;
+ });
}
setSlots(slots: Slots) {