mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 04:58:16 +08:00
22 lines
572 B
Vue
22 lines
572 B
Vue
import { getOptionProps, getSlot } from '../_util/props-util';
|
|
import Upload from './Upload';
|
|
import { UploadProps } from './interface';
|
|
|
|
export default {
|
|
name: 'AUploadDragger',
|
|
inheritAttrs: false,
|
|
props: UploadProps,
|
|
render() {
|
|
const props = getOptionProps(this);
|
|
const { height, ...restProps } = props;
|
|
const { style, ...restAttrs } = this.$attrs;
|
|
const draggerProps = {
|
|
...restProps,
|
|
...restAttrs,
|
|
type: 'drag',
|
|
style: { ...style, height },
|
|
};
|
|
return <Upload {...draggerProps}>{getSlot(this)}</Upload>;
|
|
},
|
|
};
|