@blocklet/editor 2.4.60 → 2.4.61

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.
@@ -60,6 +60,37 @@ const StyledEditorWrapper = styled(Box) `
60
60
  }
61
61
  }
62
62
 
63
+ /* table 支持圆角框 */
64
+ .PlaygroundEditorTheme__table {
65
+ border-collapse: separate; // 为了出现圆角效果
66
+ border-spacing: 0;
67
+ }
68
+ .PlaygroundEditorTheme__tableCell {
69
+ border-top: 0;
70
+ border-right: 1px solid ${({ theme }) => theme.palette.divider};
71
+ border-bottom: 1px solid ${({ theme }) => theme.palette.divider};
72
+ border-left: 0;
73
+ }
74
+ .PlaygroundEditorTheme__table tr:nth-of-type(1) th {
75
+ border-top: 1px solid ${({ theme }) => theme.palette.divider};
76
+ }
77
+ .PlaygroundEditorTheme__table tr th:first-child {
78
+ border-left: 1px solid ${({ theme }) => theme.palette.divider};
79
+ }
80
+
81
+ .PlaygroundEditorTheme__table tr:nth-of-type(1) th:first-child {
82
+ border-top-left-radius: ${({ theme }) => theme.shape.borderRadius}px;
83
+ }
84
+ .PlaygroundEditorTheme__table tr:nth-of-type(1) th:last-child {
85
+ border-top-right-radius: ${({ theme }) => theme.shape.borderRadius}px;
86
+ }
87
+ .PlaygroundEditorTheme__table tr:last-child th:first-child {
88
+ border-bottom-left-radius: ${({ theme }) => theme.shape.borderRadius}px;
89
+ }
90
+ .PlaygroundEditorTheme__table tr:last-child td:last-child {
91
+ border-bottom-right-radius: ${({ theme }) => theme.shape.borderRadius}px;
92
+ }
93
+
63
94
  /* fix: 自定义样式引起的 cell 高度偏大的问题 */
64
95
  .PlaygroundEditorTheme__tableCell p {
65
96
  margin: 0;
@@ -68,10 +99,6 @@ const StyledEditorWrapper = styled(Box) `
68
99
  .PlaygroundEditorTheme__tableRowStriping tr:nth-child(even) {
69
100
  background-color: ${({ theme }) => theme.palette.grey[100]} !important;
70
101
  }
71
-
72
- .PlaygroundEditorTheme__tableCell {
73
- border: 1px solid ${({ theme }) => theme.palette.divider} !important;
74
- }
75
102
  .PlaygroundEditorTheme__tableCellHeader {
76
103
  background-color: ${({ theme }) => theme.palette.grey[50]} !important;
77
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/editor",
3
- "version": "2.4.60",
3
+ "version": "2.4.61",
4
4
  "main": "lib/index.js",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -70,7 +70,7 @@
70
70
  "ufo": "^1.5.4",
71
71
  "url-join": "^4.0.1",
72
72
  "zustand": "^4.5.5",
73
- "@blocklet/pdf": "2.4.60"
73
+ "@blocklet/pdf": "2.4.61"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@babel/core": "^7.25.2",