mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-22 03:22:31 +08:00

* feat(auto-complete): popup supports Semantic DOM and retire some api * refactor(auto-complete, select): deprecate `onDropdownVisibleChange` in favor of `onOpenChange` and update related tests * refactor: adjust semantic demo logic * docs: update api description * docs: update doc * docs: add space * docs: update * chore: update semantic demo logic * feat: add CP support * feat: add CP support for tree-select and update doc * docs: update Select and TreeSelect common props in configuration documentation * Update components/config-provider/index.zh-CN.md Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> Signed-off-by: Jony J <1844749591@qq.com> * feat: add root support * docs: update doc * chore: bump cascader version --------- Signed-off-by: Jony J <1844749591@qq.com> Co-authored-by: thinkasany <480968828@qq.com> Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
21 lines
478 B
TypeScript
21 lines
478 B
TypeScript
import React from 'react';
|
|
import { Select } from 'antd';
|
|
|
|
import TemplateSemanticPreview from '../../../.dumi/components/TemplateSemanticPreview';
|
|
|
|
const App: React.FC = () => {
|
|
return (
|
|
<TemplateSemanticPreview
|
|
component={Select}
|
|
style={{ width: 200 }}
|
|
defaultValue="aojunhao123"
|
|
options={[
|
|
{ value: 'aojunhao123', label: 'aojunhao123' },
|
|
{ value: 'thinkasany', label: 'thinkasany' },
|
|
]}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default App;
|