mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
10427f7c3d
* feat: basic convert to cssinjs * feat: update * fix: lint issue * fix: remove important * chore: update * chore: update * refactor: add optionType for Radio instead of using prefixCls * fix: use colorPrimaryOutline for primary-1 * chore: add some comments * fix: conflict code cleanup * feat: use motionDurationSlow instead of radioDuration * chore: update * chore: update * fix: use isnert-inline for position left/right * fix: use css logical properties and values * fix: padding
16 lines
516 B
TypeScript
16 lines
516 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 };
|