Skip to content

Commit

Permalink
fix(form): 分割线未生效
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Jan 8, 2025
1 parent 5ce15cd commit cf8ea20
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/cellgroup/cellgroup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

&:last-child {
.nut-cell-divider {
border-top: 0 !important;
border-top: 0;
}
}
}
Expand Down
18 changes: 18 additions & 0 deletions src/packages/formitem/formitem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
position: absolute;
left: -0.8em;
}

.nut-form-item-labeltxt {
font-size: $form-item-label-font-size;
height: 10px;
position: relative;
}

&-body {
flex: 1;
display: flex;
Expand Down Expand Up @@ -60,6 +62,7 @@

.nut-textarea {
padding: 0;

.nut-textarea-textarea {
font: inherit;
text-align: $form-item-body-input-text-align;
Expand All @@ -75,6 +78,16 @@
}
}

.nut-form {
.nut-cell-group {
.nut-cell-group-wrap-divider {
.nut-cell-divider {
border-top: $cell-divider-border-bottom;
}
}
}
}

[dir='rtl'] .nut-form-item,
.nut-rtl .nut-form-item {
&-label {
Expand All @@ -89,21 +102,26 @@
}
}
}

&-body {
&-slots {
text-align: right;

.nut-icon-ArrowRight,
.nut-icon-ArrowLeft {
transform: rotateY(180deg);
}

.nut-input-text {
text-align: right;
}

.nut-textarea-textarea {
text-align: right;
}
}
}

&-tips {
text-align: right;
}
Expand Down

0 comments on commit cf8ea20

Please sign in to comment.