2020-02-06 10:02:02 +08:00
|
|
|
---
|
|
|
|
order: 23
|
|
|
|
title:
|
|
|
|
zh-CN: 无边框
|
|
|
|
en-US: Bordered-less
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
无边框样式。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Bordered-less style component.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2020-02-06 10:02:02 +08:00
|
|
|
import { Select } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2020-02-06 10:02:02 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-02-06 10:02:02 +08:00
|
|
|
<>
|
2022-09-19 18:01:16 +08:00
|
|
|
<Select
|
|
|
|
defaultValue="lucy"
|
|
|
|
style={{ width: 120 }}
|
|
|
|
bordered={false}
|
|
|
|
options={[
|
|
|
|
{
|
|
|
|
value: 'jack',
|
|
|
|
label: 'Jack',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'lucy',
|
|
|
|
label: 'Lucy',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'Yiminghe',
|
|
|
|
label: 'yiminghe',
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
<Select
|
|
|
|
defaultValue="lucy"
|
|
|
|
style={{ width: 120 }}
|
|
|
|
disabled
|
|
|
|
bordered={false}
|
|
|
|
options={[
|
|
|
|
{
|
|
|
|
value: 'lucy',
|
|
|
|
label: 'Lucy',
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
/>
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2020-02-06 10:02:02 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2020-02-06 10:02:02 +08:00
|
|
|
```
|