Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uni-forms-item无校验error时,页面间隔较大 #538

Open
AbelWangYaBo opened this issue Jun 22, 2022 · 1 comment
Open

uni-forms-item无校验error时,页面间隔较大 #538

AbelWangYaBo opened this issue Jun 22, 2022 · 1 comment

Comments

@AbelWangYaBo
Copy link

AbelWangYaBo commented Jun 22, 2022

目前的uni-forms-item无论是否有校验信息,都会有padding-bottom: 22px,导致表单间隔较大,是否可以考虑只在有校验/报错信息时,才将padding-bottom设置为22px?

页面:uni-forms-item

// uni-forms-item

// line 453,注释padding
.uni-forms-item__inner {
  // padding-bottom: 22px;
}

// line 544
// 当有error时,增加padding-bottom
.uni-forms-item-error {
  .uni-forms-item__inner {
    padding-bottom: 22px;
  }
}
@mehaotian
Copy link
Collaborator

padding-bottom: 22px 是为了解决 错误信息出现时,页面抖动问题,可以考虑后续添加配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants