2022-03-30 16:38:08 +08:00
|
|
|
import * as React from 'react';
|
|
|
|
import type { SelectProps } from '../select';
|
2022-06-22 14:57:09 +08:00
|
|
|
import Select from '../select';
|
2022-03-30 16:38:08 +08:00
|
|
|
|
|
|
|
interface MiniOrMiddleSelectInterface extends React.FC<SelectProps> {
|
|
|
|
Option: typeof Select.Option;
|
|
|
|
}
|
|
|
|
|
2022-11-19 13:47:33 +08:00
|
|
|
const MiniSelect: MiniOrMiddleSelectInterface = (props) => <Select {...props} size="small" />;
|
|
|
|
const MiddleSelect: MiniOrMiddleSelectInterface = (props) => <Select {...props} size="middle" />;
|
2022-03-30 16:38:08 +08:00
|
|
|
|
|
|
|
MiniSelect.Option = Select.Option;
|
|
|
|
MiddleSelect.Option = Select.Option;
|
|
|
|
|
|
|
|
export { MiniSelect, MiddleSelect };
|