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.
23 lines
495 B
23 lines
495 B
7 years ago
|
|
||
7 years ago
|
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>
|
||
|
},
|
||
|
}
|
||
7 years ago
|
|