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

Form component's layout won't work in TSX #3075

Closed
1 task
x86cloud opened this issue Oct 31, 2020 · 1 comment
Closed
1 task

Form component's layout won't work in TSX #3075

x86cloud opened this issue Oct 31, 2020 · 1 comment
Labels

Comments

@x86cloud
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.0.0-beta.11

Environment

vue: 3.0.2

Reproduction link

https://2x.antdv.com

Steps to reproduce

vertical :

          <Form layout="vertical">
            {/* <Form.Item label="用户名" required {...validateInfos.username}> */}
            <Form.Item label="用户名" required>
              <Input type="text" v-model={[modelRef.username, 'value']} />
            </Form.Item>
            <Form.Item label="密码" required>
              <Input type="password" v-model={[modelRef.password, 'value']} />
            </Form.Item>
            <Form.Item>
              <Button type="primary" disabled={!modelRef.password || !modelRef.username} onClick={login}>
                登 录
              </Button>
            </Form.Item>
          </Form>

image

horizontal:

 <Form>
            {/* <Form.Item label="用户名" required {...validateInfos.username}> */}
            <Form.Item label="用户名" required>
              <Input type="text" v-model={[modelRef.username, 'value']} />
            </Form.Item>
            <Form.Item label="密码" required>
              <Input type="password" v-model={[modelRef.password, 'value']} />
            </Form.Item>
            <Form.Item>
              <Button type="primary" disabled={!modelRef.password || !modelRef.username} onClick={login}>
                登 录
              </Button>
            </Form.Item>
          </Form>

image

What is expected?

work normally

What is actually happening?

layout won't work

@x86cloud x86cloud changed the title Form component's layout won't work Form component's layout won't work in TSX Oct 31, 2020
tangjinzhou pushed a commit that referenced this issue Nov 1, 2020
@github-actions
Copy link

github-actions bot commented Nov 2, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants