You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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 };
|