ant-design-vue/components/upload/Dragger.jsx

21 lines
482 B
Vue
Raw Normal View History

2018-04-13 08:19:50 +00:00
import { getOptionProps } from '../_util/props-util'
import Upload from './Upload'
import { UploadProps } from './interface'
export default {
name: 'AUploadDragger',
2018-04-13 08:19:50 +00:00
props: UploadProps,
render () {
const props = getOptionProps(this)
const draggerProps = {
props: {
...props,
type: 'drag',
},
on: this.$listeners,
style: { height: this.height },
}
return <Upload {...draggerProps} >{this.$slots.default}</Upload>
},
}