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

up-form组件属性borderBottom、errorType不生效 #614

Open
zhupeikang opened this issue Jan 8, 2025 · 2 comments
Open

up-form组件属性borderBottom、errorType不生效 #614

zhupeikang opened this issue Jan 8, 2025 · 2 comments

Comments

@zhupeikang
Copy link

HBuilderX:4.36
uview-plus:3.3.61
代码如下:




问题一:运行在h5端,borderBottom属性放在form组件上是不生效的。但是如果放在formItem就会生效。
问题二:errorType在设置为toast的时候。无任何提示信息

@zhupeikang
Copy link
Author

       <up-form ref="formRef" :border-bottom="true" :model="formData" errorType="toast">
          <up-form-item" prop="mobile">
            <up-input
                v-model="formData.mobile"
                border="none"
                placeholder="请输入手机号"
                type="number"
            >
            </up-input>
          </up-form-item>
        </up-form>

@zhupeikang
Copy link
Author

校验规则是通过setRules方法设置的。errorType除了toast不能正常工作外,其他的都可以

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

1 participant