2020-07-16 00:25:47 +08:00
|
|
|
---
|
|
|
|
order: 98
|
|
|
|
title:
|
2022-10-19 12:05:24 +08:00
|
|
|
zh-CN: Style Debug
|
|
|
|
en-US: Style Debug
|
2020-07-16 00:25:47 +08:00
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
2022-10-19 12:05:24 +08:00
|
|
|
Buggy! 测试一些踩过的样式坑。
|
2020-07-16 00:25:47 +08:00
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Buggy!
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2020-07-16 00:25:47 +08:00
|
|
|
import { Input } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2020-07-16 00:25:47 +08:00
|
|
|
|
|
|
|
const { TextArea } = Input;
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-07-16 00:25:47 +08:00
|
|
|
<div style={{ backgroundColor: 'rgba(0, 0, 128, .2)' }}>
|
|
|
|
<Input placeholder="Unbordered" bordered={false} />
|
|
|
|
<Input placeholder="Unbordered" bordered={false} size="large" />
|
|
|
|
<TextArea placeholder="Unbordered" bordered={false} />
|
|
|
|
<TextArea placeholder="Unbordered" bordered={false} allowClear />
|
|
|
|
<Input placeholder="Unbordered" bordered={false} allowClear />
|
|
|
|
<Input prefix="¥" suffix="RMB" bordered={false} />
|
|
|
|
<Input prefix="¥" suffix="RMB" disabled bordered={false} />
|
2022-10-19 12:05:24 +08:00
|
|
|
<TextArea allowClear style={{ border: '2px solid #000' }} />
|
2022-04-03 23:27:45 +08:00
|
|
|
</div>
|
2020-07-16 00:25:47 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-07-16 00:25:47 +08:00
|
|
|
```
|