We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb50e3a commit f5e9302Copy full SHA for f5e9302
2 files changed
src/spreadSheet/style.scss
@@ -7,5 +7,15 @@
7
th:first-child {
8
border-left: 0;
9
}
10
+ th:last-child {
11
+ border-right: 0;
12
+ }
13
+ td:last-child {
14
15
16
+ // 最后一行
17
+ tr:last-child th, tr:last-child td {
18
+ border-bottom: 0;
19
20
21
src/utils/copy.tsx
@@ -60,7 +60,10 @@ export default class CopyUtils {
60
let succeeded;
61
62
try {
63
- succeeded = document.execCommand('copy');
+ // 浏览器兼容性处理,当前语法已废弃,延迟处理可以保证复制成功
64
+ setTimeout(() => {
65
+ succeeded = document.execCommand('copy');
66
+ });
67
} catch (err) {
68
succeeded = false;
69
0 commit comments