2019-01-12 11:33:27 +08:00
|
|
|
import VcSelect, { SelectProps } from '../select';
|
|
|
|
import { getOptionProps, filterEmpty } from '../_util/props-util';
|
2018-03-06 15:40:42 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
...SelectProps,
|
|
|
|
},
|
|
|
|
Option: VcSelect.Option,
|
2019-01-12 11:33:27 +08:00
|
|
|
render() {
|
|
|
|
const selectOptionsProps = getOptionProps(this);
|
2018-03-06 15:40:42 +08:00
|
|
|
const selelctProps = {
|
|
|
|
props: {
|
|
|
|
...selectOptionsProps,
|
|
|
|
size: 'small',
|
|
|
|
},
|
|
|
|
on: this.$listeners,
|
2019-01-12 11:33:27 +08:00
|
|
|
};
|
|
|
|
return <VcSelect {...selelctProps}>{filterEmpty(this.$slots.default)}</VcSelect>;
|
2018-03-06 15:40:42 +08:00
|
|
|
},
|
2019-01-12 11:33:27 +08:00
|
|
|
};
|