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

19 lines
440 B
Vue
Raw Normal View History

2020-10-19 14:19:33 +00:00
import { defineComponent } from 'vue';
2021-08-22 08:59:13 +00:00
import VcSelect, { selectProps } from '../select';
2018-03-06 07:40:42 +00:00
2020-10-19 14:19:33 +00:00
export default defineComponent({
inheritAttrs: false,
2021-08-22 08:59:13 +00:00
props: selectProps(),
2018-03-06 07:40:42 +00:00
Option: VcSelect.Option,
2021-08-29 09:05:23 +00:00
setup(props, { attrs, slots }) {
return () => {
const selelctProps: any = {
...props,
size: 'small',
...attrs,
};
return <VcSelect {...selelctProps} v-slots={slots}></VcSelect>;
2019-01-12 03:33:27 +00:00
};
2018-03-06 07:40:42 +00:00
},
2020-10-19 14:19:33 +00:00
});