Skip to content

Input component inTSX,there's a display error when using prefix slots #3073

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

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

Comments

@x86cloud
Copy link

x86cloud commented Oct 31, 2020

  • 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

const iconUser = () => {
return <UserOutlined style="color:rgba(0,0,0,.25)" />;
};

return () => (
<div class="login-wrap">
<div class="login-box">
<Form ref="form" model={modelRef}>
{/* <Form.Item label="用户名" required {...validateInfos.username}> */}
<Form.Item label="用户名" required>
<Input type="text" v-slots={{ prefix: iconUser }} v-model={[modelRef.username, 'value']} />
</Form.Item>
</Form>
</div>
</div>
);

QQ截图20201031110602

What is expected?

input component could display normal

What is actually happening?

there's only input area contains background color, others were clear background

tangjinzhou pushed a commit that referenced this issue Nov 1, 2020
@github-actions
Copy link

github-actions bot commented Nov 1, 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 1, 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