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