parent
0346b11868
commit
4dc069ab05
@ -0,0 +1,22 @@
|
||||
<script>
|
||||
import VcSelect, { SelectProps } from '../select'
|
||||
import { getOptionProps, filterEmpty } from '../_util/props-util'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
...SelectProps,
|
||||
},
|
||||
Option: VcSelect.Option,
|
||||
render () {
|
||||
const selectOptionsProps = getOptionProps(this)
|
||||
const selelctProps = {
|
||||
props: {
|
||||
...selectOptionsProps,
|
||||
size: 'small',
|
||||
},
|
||||
on: this.$listeners,
|
||||
}
|
||||
return <VcSelect {...selelctProps}>{filterEmpty(this.$slots.default)}</VcSelect>
|
||||
},
|
||||
}
|
||||
</script>
|
Loading…
Reference in new issue