【发布时间】:2021-09-18 15:01:17
【问题描述】:
style={{ top: '20' }} - 这似乎不起作用。我该怎么办。所有其他 antd 功能都可以正常工作。
const LoginModal = ({ showModal, setShowModal }) => {
//const [form] = Form.useForm();
const onFinish = (values) => {
console.log('Received values of form: ', values);
};
return (
<Modal
title="Sign In"
**style={{ top: '20' }}**
visible={showModal}
onCancel={() => setShowModal(!showModal)}
width={500}
>
<h1>Welcome Back !</h1>
<Form
name="normal_login"
className="login-form"
initialValues={{
remember: true,
}}
onFinish={onFinish}
>
【问题讨论】:
标签: reactjs react-redux antd