Skip to content

Commit 12ef092

Browse files
authored
fix(form): 分割线未生效 (#2927)
1 parent 5ce15cd commit 12ef092

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/packages/cellgroup/cellgroup.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
&:last-child {
5252
.nut-cell-divider {
53-
border-top: 0 !important;
53+
border-top: 0;
5454
}
5555
}
5656
}

src/packages/formitem/formitem.scss

+18
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
position: absolute;
2626
left: -0.8em;
2727
}
28+
2829
.nut-form-item-labeltxt {
2930
font-size: $form-item-label-font-size;
3031
height: 10px;
3132
position: relative;
3233
}
34+
3335
&-body {
3436
flex: 1;
3537
display: flex;
@@ -60,6 +62,7 @@
6062

6163
.nut-textarea {
6264
padding: 0;
65+
6366
.nut-textarea-textarea {
6467
font: inherit;
6568
text-align: $form-item-body-input-text-align;
@@ -75,6 +78,16 @@
7578
}
7679
}
7780

81+
.nut-form {
82+
.nut-cell-group {
83+
.nut-cell-group-wrap-divider {
84+
.nut-cell-divider {
85+
border-top: $cell-divider-border-bottom;
86+
}
87+
}
88+
}
89+
}
90+
7891
[dir='rtl'] .nut-form-item,
7992
.nut-rtl .nut-form-item {
8093
&-label {
@@ -89,21 +102,26 @@
89102
}
90103
}
91104
}
105+
92106
&-body {
93107
&-slots {
94108
text-align: right;
109+
95110
.nut-icon-ArrowRight,
96111
.nut-icon-ArrowLeft {
97112
transform: rotateY(180deg);
98113
}
114+
99115
.nut-input-text {
100116
text-align: right;
101117
}
118+
102119
.nut-textarea-textarea {
103120
text-align: right;
104121
}
105122
}
106123
}
124+
107125
&-tips {
108126
text-align: right;
109127
}

0 commit comments

Comments
 (0)