We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vben Admin V5
Form的layout值为vertical时,labelClass参数失效
<script lang="ts" setup> import { Page } from '@vben/common-ui'; import { Button, Card, message } from 'ant-design-vue'; import { useVbenForm, z } from '#/adapter/form'; const [Form, formApi] = useVbenForm({ commonConfig: { componentProps: { class: 'w-full', }, }, handleSubmit: onSubmit, layout: 'vertical', schema: [ { component: 'Input', componentProps: { placeholder: '请输入', }, fieldName: 'field1', label: '字段1', labelClass: 'mb-2', rules: 'required', }, ], wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3', }); function onSubmit(values: Record<string, any>) { message.success({ content: `form values: ${JSON.stringify(values)}`, }); } </script> <template> <Page description="表单校验示例" title="表单组件"> <Card title="基础组件校验示例"> <template #extra> <Button @click="() => formApi.validate()">校验表单</Button> <Button class="mx-2" @click="() => formApi.resetValidate()"> 清空校验信息 </Button> </template> <Form /> </Card> </Page> </template>
/
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version
Vben Admin V5
Describe the bug?
Form的layout值为vertical时,labelClass参数失效
Reproduction
System Info
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: