mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
b9a6b7b578
* demo: update demo * add form * clear * add Select * add * fix style * fix style * fix * revert
31 lines
694 B
TypeScript
31 lines
694 B
TypeScript
import React from 'react';
|
|
import { Button, Form, Input } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Form
|
|
name="wrap"
|
|
labelCol={{ flex: '110px' }}
|
|
labelAlign="left"
|
|
labelWrap
|
|
wrapperCol={{ flex: 1 }}
|
|
colon={false}
|
|
style={{ maxWidth: 600 }}
|
|
>
|
|
<Form.Item label="正常标签文案" name="username" rules={[{ required: true }]}>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item label="超长标签文案超长标签文案" name="password" rules={[{ required: true }]}>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item label=" ">
|
|
<Button type="primary" htmlType="submit">
|
|
Submit
|
|
</Button>
|
|
</Form.Item>
|
|
</Form>
|
|
);
|
|
|
|
export default App;
|