ant-design-vue/components/upload/Dragger.jsx
2020-01-19 16:58:38 +08:00

21 lines
504 B
Vue

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>;
},
};