Explorar el Código

优化表格复制功能并修复合并单元格逻辑

yusheng hace 5 meses
padre
commit
c538fcf370
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/components/templateDiv/customTable.vue

+ 1 - 1
src/components/templateDiv/customTable.vue

@@ -544,7 +544,7 @@
         let columns = JSON.parse(JSON.stringify(this.columns));
         columns.forEach((item, index) => {
           item.forEach((cell, _index) => {
-            if (cell.colspanKey.length) {
+            if (cell.colspanKey.length&&!cell.copyId) {
               cell.colspanKey.forEach((key, index) => {
                 let id = generateRandomString(5);
                 let { columnIndex, rowIndex } = this.getIndex(key);