This commit is contained in:
ljcoder 2023-09-01 16:48:16 +08:00
parent afd550f39a
commit 6caf7ffcdb
4 changed files with 1319 additions and 530 deletions

View file

@ -1,7 +1,7 @@
{
"id": "excel",
"name": "Excel",
"version": "1.2.2",
"version": "1.2.3",
"minAppVersion": "0.15.0",
"description": "Create spreadsheets and easily embed them in Markdown",
"author": "ljcoder",

1825
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -216,7 +216,7 @@ export class ExcelView extends TextFileView {
const eri = this.cellsSelected.eri
const eci = this.cellsSelected.eci
console.log('data', data, sri, sci, eri, eci)
// console.log('data', data, sri, sci, eri, eci)
var html = "<table>"
@ -224,11 +224,11 @@ export class ExcelView extends TextFileView {
for (var row = sri; row <= eri; row ++) {
html += "<tr>"
const cells = data.rows._[`${row}`]
console.log('cells', row, cells.cells)
// console.log('cells', row, cells.cells)
if (cells) {
for (var col = sci; col <= eci; col ++ ) {
const cell = cells.cells[`${col}`]
console.log('cell', row, col, cell)
// console.log('cell', row, col, cell)
if (cell) {
if (cell.merge) {
html += `<td rowspan="${cell.merge[0]}" colspan="${cell.merge[1]}">${cell.text}</td>`

View file

@ -1,16 +0,0 @@
<html>
<head>
<link
rel="stylesheet"
href="https://unpkg.com/x-data-spreadsheet@1.1.9/dist/xspreadsheet.css"
/>
<script
lang="javascript"
type="text/javascript"
src="https://unpkg.com/x-data-spreadsheet@1.1.9/dist/xspreadsheet.js"
></script>
</head>
<body>
<table border="1"><tr><td rowspan="0" colspan="1">223</td></tr><tr><td>224dldlld</td></tr><tr></tr></table>
</body>
</html>