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