mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 21:18:14 +08:00
23 lines
495 B
Vue
23 lines
495 B
Vue
|
|
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>
|
|
},
|
|
}
|
|
|