mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-30 22:39:34 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
17 lines
511 B
TypeScript
17 lines
511 B
TypeScript
import * as React from 'react';
|
|
|
|
import type { SelectProps } from '../select';
|
|
import Select from '../select';
|
|
|
|
type CompoundedComponent = React.FC<SelectProps> & {
|
|
Option: typeof Select.Option;
|
|
};
|
|
|
|
const MiniSelect: CompoundedComponent = (props) => <Select {...props} showSearch size="small" />;
|
|
const MiddleSelect: CompoundedComponent = (props) => <Select {...props} showSearch size="middle" />;
|
|
|
|
MiniSelect.Option = Select.Option;
|
|
MiddleSelect.Option = Select.Option;
|
|
|
|
export { MiniSelect, MiddleSelect };
|