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.
ant-design-vue/components/pagination/MiniSelect.jsx

20 lines
465 B

import VcSelect, { SelectProps } from '../select';
import { getOptionProps, getSlot } from '../_util/props-util';
7 years ago
export default {
inheritAttrs: false,
7 years ago
props: {
...SelectProps,
},
Option: VcSelect.Option,
render() {
const selectOptionsProps = getOptionProps(this);
7 years ago
const selelctProps = {
...selectOptionsProps,
size: 'small',
...this.$attrs,
};
return <VcSelect {...selelctProps}>{getSlot(this)}</VcSelect>;
7 years ago
},
};