ant-design-vue/components/pagination/MiniSelect.tsx

19 lines
514 B
Vue
Raw Normal View History

2020-10-19 14:19:33 +00:00
import { defineComponent } from 'vue';
2019-01-12 03:33:27 +00:00
import VcSelect, { SelectProps } from '../select';
import { getOptionProps, getSlot } from '../_util/props-util';
2018-03-06 07:40:42 +00:00
2020-10-19 14:19:33 +00:00
export default defineComponent({
inheritAttrs: false,
2020-10-19 14:19:33 +00:00
props: SelectProps(),
2018-03-06 07:40:42 +00:00
Option: VcSelect.Option,
2019-01-12 03:33:27 +00:00
render() {
const selectOptionsProps = getOptionProps(this);
2020-10-19 14:19:33 +00:00
const selelctProps: any = {
...selectOptionsProps,
size: 'small',
...this.$attrs,
2019-01-12 03:33:27 +00:00
};
return <VcSelect {...selelctProps}>{getSlot(this)}</VcSelect>;
2018-03-06 07:40:42 +00:00
},
2020-10-19 14:19:33 +00:00
});