ant-design/components/pagination/Select.tsx
vagusX 10427f7c3d
Refactor/cssinjs in radio (#34740)
* 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
2022-04-14 19:14:54 +08:00

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 };