import {getCurrentInstance} from 'vue'; import {filterEmpty, getListenersFromInstance, getOptionProps} from '../_util/props-util'; import VcSelect, {SelectProps} from '../select'; export default { props: { ...SelectProps }, Option: VcSelect.Option, render(ctx) { const instance = getCurrentInstance(); const selectOptionsProps = getOptionProps(instance); const selelctProps = { ...selectOptionsProps, size: 'small', ...getListenersFromInstance(instance) }; return {filterEmpty(ctx.$slots.default)}; } };