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.
19 lines
514 B
19 lines
514 B
import { defineComponent } from 'vue';
|
|
import VcSelect, { SelectProps } from '../select';
|
|
import { getOptionProps, getSlot } from '../_util/props-util';
|
|
|
|
export default defineComponent({
|
|
inheritAttrs: false,
|
|
props: SelectProps(),
|
|
Option: VcSelect.Option,
|
|
render() {
|
|
const selectOptionsProps = getOptionProps(this);
|
|
const selelctProps: any = {
|
|
...selectOptionsProps,
|
|
size: 'small',
|
|
...this.$attrs,
|
|
};
|
|
return <VcSelect {...selelctProps}>{getSlot(this)}</VcSelect>;
|
|
},
|
|
});
|