ant-design-vue/components/pagination/MiniSelect.jsx

23 lines
495 B
Vue
Raw Normal View History

2018-03-19 10:16:27 +08:00
2018-03-06 15:40:42 +08:00
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>
},
}
2018-03-19 10:16:27 +08:00