pages/index.vue
@@ -345,8 +345,14 @@ }, methods: { onRowClick(index) { this.selectedIndexs = [index]; // 单选 // 手动触发 selectionChange 以同步复选框 this.selectedIndexs = [index]; this.$nextTick(() => { const row = this.tableData[index]; if (this.$refs.table && this.$refs.table.toggleRowSelection) { this.$refs.table.clearSelection && this.$refs.table.clearSelection(); this.$refs.table.toggleRowSelection(row, true); } }); this.selectionChange({ detail: { index } }); }, checkForUpdate() {