@chalabi/svelte-sheets 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +7 -1
- package/dist/Open.svelte +1 -1
- package/dist/Sheet.svelte +1 -1
- package/dist/Toolbar.svelte +1 -1
- package/dist/actions/selected.js +1 -1
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -35,9 +35,15 @@ You will need to have typescript svelte-preprocess enabled in your webpack/rollu
|
|
|
35
35
|
let data = [
|
|
36
36
|
["mazda", "renault", "volkswagen"][("10000km", "20000km", "300000km")],
|
|
37
37
|
];
|
|
38
|
+
const options = {
|
|
39
|
+
tableHeight: "70vh",
|
|
40
|
+
defaultColWidth: "120px",
|
|
41
|
+
readOnly: true,
|
|
42
|
+
disableHover: true,
|
|
43
|
+
};
|
|
38
44
|
</script>
|
|
39
45
|
|
|
40
|
-
<Sheet {style} {mergeCells} {columns} {data} />
|
|
46
|
+
<Sheet {style} {mergeCells} {columns} {data} {options} theme="dark" />
|
|
41
47
|
```
|
|
42
48
|
|
|
43
49
|
Alternatively you can use the toolbar to open any kind of excel files
|
package/dist/Open.svelte
CHANGED
package/dist/Sheet.svelte
CHANGED
|
@@ -19,7 +19,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
return t;
|
|
20
20
|
};
|
|
21
21
|
import { onMount, tick } from "svelte";
|
|
22
|
-
import XLSX from "xlsx";
|
|
22
|
+
import * as XLSX from "xlsx";
|
|
23
23
|
import { resizable } from "./actions/index.js";
|
|
24
24
|
import { draggable } from "./actions/draggable.js";
|
|
25
25
|
import { defaultconfig } from "./defaultconfig.js";
|
package/dist/Toolbar.svelte
CHANGED
package/dist/actions/selected.js
CHANGED