mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 04:27:41 +08:00
21 lines
482 B
Vue
21 lines
482 B
Vue
import { getOptionProps } from '../_util/props-util'
|
|
import Upload from './Upload'
|
|
import { UploadProps } from './interface'
|
|
|
|
export default {
|
|
name: 'AUploadDragger',
|
|
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>
|
|
},
|
|
}
|