Skip to content

Commit

Permalink
fix: 修复FormItem渲染空label
Browse files Browse the repository at this point in the history
fix: 修复Button无默认高度

fix: 修复Input无默认颜色

fix: 修复目录结构错误
  • Loading branch information
Tenny committed Jun 18, 2024
1 parent 54f648b commit 26863b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/form/FormItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
:style="{
'--nt-form-label-width': labelWidth ? labelWidth : undefined,
}"
v-if="label != null"
>
{{ label }}
</label>
Expand Down Expand Up @@ -42,6 +43,7 @@ const props = withDefaults(
{
required: undefined,
error: undefined,
label: undefined,
},
);
Expand Down
2 changes: 1 addition & 1 deletion style/button/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
vertical-align: middle;
padding: 0 11px;
line-height: 1;
height: var(--nt-form-edit-height);
height: var(--nt-form-edit-height, 32px);
border-radius: 3px;
font-size: 14px;
color: var(--nt-btn-color);
Expand Down
2 changes: 1 addition & 1 deletion style/input/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
width: auto;
}
.nt-input:focus {
border-color: var(--nt-primary-color);
border-color: var(--nt-primary-color, #52c41a);
}

0 comments on commit 26863b7

Please sign in to comment.