mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
b9a6b7b578
* demo: update demo * add form * clear * add Select * add * fix style * fix style * fix * revert
36 lines
735 B
TypeScript
36 lines
735 B
TypeScript
import React from 'react';
|
|
import { Form, Input, Typography } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Form
|
|
name="label-ellipsis"
|
|
labelCol={{ span: 8 }}
|
|
wrapperCol={{ span: 16 }}
|
|
style={{ maxWidth: 600 }}
|
|
>
|
|
<Form.Item
|
|
label={
|
|
<Typography.Text ellipsis>
|
|
longtextlongtextlongtextlongtextlongtextlongtextlongtext
|
|
</Typography.Text>
|
|
}
|
|
name="username"
|
|
>
|
|
<Input />
|
|
</Form.Item>
|
|
|
|
<Form.Item
|
|
label={
|
|
<Typography.Text ellipsis>
|
|
longtext longtext longtext longtext longtext longtext longtext
|
|
</Typography.Text>
|
|
}
|
|
name="password"
|
|
>
|
|
<Input.Password />
|
|
</Form.Item>
|
|
</Form>
|
|
);
|
|
|
|
export default App;
|