mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 15:49:10 +08:00
254bbda86d
* feat: support select pure render * test: Update snapshot * chore: fix pure render export ts * chore: fix lint * test: do not care about ssr
38 lines
709 B
Markdown
38 lines
709 B
Markdown
---
|
|
order: 999
|
|
title:
|
|
zh-CN: _InternalPanelDoNotUseOrYouWillBeFired
|
|
en-US: _InternalPanelDoNotUseOrYouWillBeFired
|
|
debug: true
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
调试用组件,请勿直接使用。
|
|
|
|
## en-US
|
|
|
|
Debug usage. Do not use in your production.
|
|
|
|
```tsx
|
|
import { Select } from 'antd';
|
|
import React from 'react';
|
|
|
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalSelect } = Select;
|
|
|
|
const App: React.FC = () => (
|
|
<InternalSelect
|
|
defaultValue="lucy"
|
|
style={{ width: 120 }}
|
|
options={[
|
|
{ label: 'Jack', value: 'jack' },
|
|
{ label: 'Lucy', value: 'lucy' },
|
|
{ label: 'Disabled', value: 'disabled' },
|
|
{ label: 'Bamboo', value: 'bamboo' },
|
|
]}
|
|
/>
|
|
);
|
|
|
|
export default App;
|
|
```
|