(table, rowIndex)
| 283 | |
| 284 | // 表格操作函数 |
| 285 | function addRowAbove(table, rowIndex) { |
| 286 | const newRow = table.insertRow(rowIndex); |
| 287 | const colCount = table.rows[0].children.length; |
| 288 | for (let i = 0; i < colCount; i++) { |
| 289 | const cell = newRow.insertCell(); |
| 290 | cell.style.cssText = 'padding: 12px; border: 1px solid #e5e7eb; color: #374151; min-height: 20px;'; |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | function addRowBelow(table, rowIndex) { |
| 295 | const newRow = table.insertRow(rowIndex + 1); |
no outgoing calls
no test coverage detected