You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { getOptionProps, getListeners } 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: getListeners(this),
|
|
|
|
style: { height: this.height },
|
|
|
|
};
|
|
|
|
return <Upload {...draggerProps}>{this.$slots.default}</Upload>;
|
|
|
|
},
|
|
|
|
};
|