"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _vue = require("vue");

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _propsUtil = require("../_util/props-util");

var _Upload = _interopRequireDefault(require("./Upload"));

var _interface = require("./interface");

var _excluded = ["height"],
    _excluded2 = ["style"];

var _default2 = (0, _vue.defineComponent)({
  name: 'AUploadDragger',
  inheritAttrs: false,
  props: _interface.UploadProps,
  render: function render() {
    var _this = this;

    var props = (0, _propsUtil.getOptionProps)(this);
    var height = props.height,
        restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
    var _this$$attrs = this.$attrs,
        style = _this$$attrs.style,
        restAttrs = (0, _objectWithoutProperties2.default)(_this$$attrs, _excluded2);
    var draggerProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, restProps), restAttrs), {}, {
      type: 'drag',
      style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, style), {}, {
        height: height
      })
    });
    return (0, _vue.createVNode)(_Upload.default, draggerProps, {
      default: function _default() {
        return [(0, _propsUtil.getSlot)(_this)];
      }
    });
  }
});

exports.default = _default2;