Skip to content

Commit 4de5f81

Browse files
committed
- support fixed rows / columns, frozen rows / columns and idx cells
toggling
1 parent 8279845 commit 4de5f81

File tree

17 files changed

+368
-120
lines changed

17 files changed

+368
-120
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Logs
22

3+
## v0.0.3
4+
5+
- support fixed rows / columns, frozen rows / columns and idx cells toggling
6+
7+
38
## v0.0.2
49

510
- fix bug: edited failed if edited node is outside range of visible sheet.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ initialize:
2626
})
2727

2828

29+
## Constructor Options
30+
31+
- `root`: container element or selector.
32+
- `fixed`: {row, col}. default {row: 0, col: 0}
33+
- `frozen`: {row, col}. default {row: 0, col: 0}
34+
- `idx`: {row, col}. default {row: true, col: true}
35+
36+
2937
## API
3038

3139
- `set({row, col, content})` - set content to `content` for cells in row `row` and col `col`.

dist/index.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
text-align: center;
3333
user-select: none;
3434
}
35+
.sheet .cell.fixed,
36+
.sheet .cell.fixed.frozen {
37+
z-index: 100;
38+
}
39+
.sheet .cell.fixed {
40+
background: #fafbfc;
41+
}
42+
.sheet .cell.frozen {
43+
z-index: 12;
44+
background: #fdfeff;
45+
}
3546
.sheet .range {
3647
z-index: 10;
3748
border: 1px solid #27f;
@@ -44,7 +55,7 @@
4455
position: absolute;
4556
}
4657
.sheet .caret {
47-
z-index: 11;
58+
z-index: 15;
4859
border: 2px solid #27f;
4960
user-select: none;
5061
pointer-events: none;
@@ -55,7 +66,7 @@
5566
position: absolute;
5667
}
5768
.sheet .edit {
58-
z-index: 21;
69+
z-index: 121;
5970
border: 2px solid #27f;
6071
opacity: 0;
6172
display: none;

dist/index.js

Lines changed: 112 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)