@arco-themes/vue-neutral 0.0.4 → 0.0.5
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 +6 -0
- package/components/Table/index.css +1 -1
- package/components/Table/index.less +20 -7
- package/css/arco.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.arco-table .arco-table-container{border-radius:8px}.arco-table .arco-table-element thead tr:first-child th:first-child{border-top-left-radius:8px}.arco-table .arco-table-element thead tr:first-child th:last-child{border-top-right-radius:8px}.arco-table .arco-table-element tbody tr:first-child td:first-child{border-top-left-radius:8px}.arco-table .arco-table-element tbody tr:first-child td:last-child{border-top-right-radius:8px}.arco-table .arco-table-element thead+tbody tr:first-child td:first-child,.arco-table .arco-table-element thead+tbody tr:first-child td:last-child{border-top-left-radius:0;border-top-right-radius:0}
|
|
1
|
+
.arco-table .arco-table-container{border-radius:8px}.arco-table .arco-table-element thead tr:first-child th:first-child{border-top-left-radius:8px}.arco-table .arco-table-element thead tr:first-child th:last-child{border-top-right-radius:8px}.arco-table .arco-table-element tbody tr:first-child td:first-child{border-top-left-radius:8px}.arco-table .arco-table-element tbody tr:first-child td:last-child{border-top-right-radius:8px}.arco-table .arco-table-element thead+tbody tr:first-child td:first-child,.arco-table .arco-table-element thead+tbody tr:first-child td:last-child{border-top-left-radius:0;border-top-right-radius:0}.arco-table .arco-table-element tbody tr:last-child td:first-child{border-bottom-left-radius:8px}.arco-table .arco-table-element tbody tr:last-child td:last-child{border-bottom-right-radius:8px}.arco-table .arco-table-container:has(.arco-table-header) .arco-table-body .arco-table-element tbody tr:first-child td:first-child,.arco-table .arco-table-container:has(.arco-table-header) .arco-table-body .arco-table-element tbody tr:first-child td:last-child{border-top-left-radius:0;border-top-right-radius:0}.arco-table:has(.arco-table-footer) tbody tr:last-child td:first-child,.arco-table .arco-table-element:has(tfoot) tbody tr:last-child td:first-child,.arco-table:has(.arco-table-footer) tbody tr:last-child td:last-child,.arco-table .arco-table-element:has(tfoot) tbody tr:last-child td:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
.arco-table-container {
|
|
3
3
|
border-radius: @border-radius-medium;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
5
|
.arco-table-element {
|
|
7
6
|
// 表头:顶部圆角
|
|
8
7
|
thead tr:first-child th:first-child {
|
|
@@ -11,7 +10,6 @@
|
|
|
11
10
|
thead tr:first-child th:last-child {
|
|
12
11
|
border-top-right-radius: @border-radius-medium;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
// 无表头:首行 body 顶部圆角
|
|
16
14
|
tbody tr:first-child td:first-child {
|
|
17
15
|
border-top-left-radius: @border-radius-medium;
|
|
@@ -19,20 +17,35 @@
|
|
|
19
17
|
tbody tr:first-child td:last-child {
|
|
20
18
|
border-top-right-radius: @border-radius-medium;
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
// 有表头:首行 body 顶部取消圆角
|
|
20
|
+
// 有表头(单表模式):取消首行 body 顶部圆角
|
|
24
21
|
thead + tbody tr:first-child td:first-child,
|
|
25
22
|
thead + tbody tr:first-child td:last-child {
|
|
26
23
|
border-top-left-radius: 0;
|
|
27
24
|
border-top-right-radius: 0;
|
|
28
25
|
}
|
|
29
|
-
|
|
30
26
|
// 最后一行:底部圆角
|
|
31
27
|
tbody tr:last-child td:first-child {
|
|
32
|
-
|
|
28
|
+
border-bottom-left-radius: @border-radius-medium;
|
|
33
29
|
}
|
|
34
30
|
tbody tr:last-child td:last-child {
|
|
35
|
-
|
|
31
|
+
border-bottom-right-radius: @border-radius-medium;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
// 有表头(固定表头 / scroll.y 拆分表模式):取消 body 首行顶部圆角
|
|
35
|
+
.arco-table-container:has(.arco-table-header) {
|
|
36
|
+
.arco-table-body .arco-table-element tbody tr:first-child td:first-child,
|
|
37
|
+
.arco-table-body .arco-table-element tbody tr:first-child td:last-child {
|
|
38
|
+
border-top-left-radius: 0;
|
|
39
|
+
border-top-right-radius: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// 带表格 footer 或 tfoot 时:取消 body 末行底部圆角
|
|
43
|
+
&:has(.arco-table-footer),
|
|
44
|
+
.arco-table-element:has(tfoot) {
|
|
45
|
+
tbody tr:last-child td:first-child,
|
|
46
|
+
tbody tr:last-child td:last-child {
|
|
47
|
+
border-bottom-left-radius: 0;
|
|
48
|
+
border-bottom-right-radius: 0;
|
|
36
49
|
}
|
|
37
50
|
}
|
|
38
51
|
}
|