"use strict";

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _ = _interopRequireDefault(require(".."));

var _2 = require("../..");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var style = {
  display: 'inline-block',
  marginRight: 10
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", {
  style: {
    display: 'flex'
  }
}, /*#__PURE__*/_react["default"].createElement(_["default"], {
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload",
  beforeUpload: beforeUpload,
  onChange: onChange,
  onSuccess: onSuccess,
  multiple: true,
  defaultValue: [{
    name: 'IMG.png',
    state: 'done',
    size: 1024,
    downloadURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
    fileURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
    imgURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg'
  }],
  style: style
}, /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  style: {
    margin: '0 0 10px'
  }
}, "Upload File")), /*#__PURE__*/_react["default"].createElement(_["default"], {
  shape: "card",
  style: style
}, "Upload File"), /*#__PURE__*/_react["default"].createElement(_["default"], {
  style: style
}, /*#__PURE__*/_react["default"].createElement("div", {
  className: "next-upload-card"
}, /*#__PURE__*/_react["default"].createElement(_2.Icon, {
  type: "attachment",
  size: "large"
}), /*#__PURE__*/_react["default"].createElement("div", {
  className: "next-upload-text"
}, "Attachment")))), document.getElementById('upload-demo-1'));

function beforeUpload(info) {
  console.log('beforeUpload : ', info);
}

function onChange(info) {
  console.log('onChange : ', info);
}

function onSuccess(info) {
  console.log('onSuccess : ', info);
}