ant-design/components/tree-select/demo/render-panel.md
二货机器人 254bbda86d
feat: Select like component support pure render (#36407)
* feat: support select pure render

* test: Update snapshot

* chore: fix pure render export ts

* chore: fix lint

* test: do not care about ssr
2022-07-07 20:05:19 +08:00

826 B

order title debug
999
zh-CN en-US
_InternalPanelDoNotUseOrYouWillBeFired _InternalPanelDoNotUseOrYouWillBeFired
true

zh-CN

调试用组件,请勿直接使用。

en-US

Debug usage. Do not use in your production.

import { TreeSelect } from 'antd';
import React from 'react';

const { _InternalPanelDoNotUseOrYouWillBeFired: InternalTreeSelect } = TreeSelect;

const treeData = [
  {
    title: 'Node1',
    value: '0-0',
    children: [
      {
        title: 'Child Node1',
        value: '0-0-1',
      },
      {
        title: 'Child Node2',
        value: '0-0-2',
      },
    ],
  },
  {
    title: 'Node2',
    value: '0-1',
  },
];

const App: React.FC = () => (
  <InternalTreeSelect defaultValue="lucy" style={{ width: '100%' }} treeData={treeData} />
);

export default App;