| + # + | + {#each columns as col, colIndex (colIndex)} +
+
+ updateColumnName(colIndex, e.currentTarget.value)}
+ on:keydown={handleKeydown}
+ class="flex-1 p-2 font-semibold text-sm bg-transparent border-none outline-none focus:bg-blue-50"
+ />
+ {#if columns.length > 1}
+
+ {/if}
+
+ |
+ {/each}
+ + |
|---|---|---|
| + {rowIndex + 1} + | + {#each row as cell, colIndex (colIndex)} ++ updateCell(rowIndex, colIndex, e.currentTarget.value)} + on:keydown={(e) => handleKeydown(e, rowIndex, colIndex)} + class="w-full p-2 text-sm bg-white border-none outline-none focus:bg-blue-50" + /> + | + {/each} ++ {#if rows.length > 1} + + {/if} + | +