2019-06-15 20:28:43 +08:00
|
|
|
---
|
|
|
|
order: 9999
|
|
|
|
title:
|
|
|
|
zh-CN: 样式自定义
|
|
|
|
en-US: Style Customization
|
|
|
|
debug: true
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
测试一些 `style` 修改样式的行为。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Use `style` to change default style.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2019-06-15 20:28:43 +08:00
|
|
|
import { Divider } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2019-06-15 20:28:43 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-04-21 14:16:33 +08:00
|
|
|
<>
|
2020-07-28 15:45:51 +08:00
|
|
|
<Divider style={{ borderWidth: 2, borderColor: '#7cb305' }} />
|
2019-06-15 20:28:43 +08:00
|
|
|
<Divider style={{ borderColor: '#7cb305' }} dashed />
|
2020-09-23 13:33:35 +08:00
|
|
|
<Divider style={{ borderColor: '#7cb305' }} dashed>
|
|
|
|
Text
|
|
|
|
</Divider>
|
2020-07-28 15:45:51 +08:00
|
|
|
<Divider type="vertical" style={{ height: 60, borderColor: '#7cb305' }} />
|
2019-06-15 20:28:43 +08:00
|
|
|
<Divider type="vertical" style={{ height: 60, borderColor: '#7cb305' }} dashed />
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2019-06-15 20:28:43 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-06-15 20:28:43 +08:00
|
|
|
```
|