mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
c0304cca55
* fix: Pagination should display middle size Select when ConfigProvider componentSize is large close #34744 * fix snapshot
17 lines
517 B
TypeScript
17 lines
517 B
TypeScript
import * as React from 'react';
|
|
import Select from '../select';
|
|
import type { SelectProps } from '../select';
|
|
|
|
interface MiniOrMiddleSelectInterface extends React.FC<SelectProps> {
|
|
Option: typeof Select.Option;
|
|
}
|
|
|
|
const MiniSelect: MiniOrMiddleSelectInterface = props => <Select {...props} size="small" />;
|
|
const MiddleSelect: MiniOrMiddleSelectInterface = props => <Select {...props} size="middle" />;
|
|
|
|
MiniSelect.Option = Select.Option;
|
|
MiddleSelect.Option = Select.Option;
|
|
|
|
export { MiniSelect, MiddleSelect };
|
|
|