"use strict";

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

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

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

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

var defaultValue = [{
  uid: '0',
  name: 'IMG.png',
  state: 'done',
  url: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
  downloadURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
  imgURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
  size: 2000
}];

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_["default"], {
  listType: "image",
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload" // accept="image/png, image/jpg, image/jpeg, image/gif, image/bmp"
  ,
  beforeUpload: beforeUpload,
  size: "small",
  onChange: onChange,
  defaultValue: defaultValue
}), /*#__PURE__*/_react["default"].createElement(_["default"], {
  listType: "image",
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload" // accept="image/png, image/jpg, image/jpeg, image/gif, image/bmp"
  ,
  beforeUpload: beforeUpload,
  size: "medium",
  onChange: onChange,
  defaultValue: defaultValue
}), /*#__PURE__*/_react["default"].createElement(_["default"], {
  listType: "image",
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload" // accept="image/png, image/jpg, image/jpeg, image/gif, image/bmp"
  ,
  beforeUpload: beforeUpload,
  size: "large",
  onChange: onChange,
  defaultValue: [{
    uid: '0',
    name: 'IMG.png',
    state: 'done',
    url: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
    downloadURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
    imgURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
    size: 2000
  }]
}), /*#__PURE__*/_react["default"].createElement(_["default"], {
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload",
  beforeUpload: beforeUpload,
  onChange: onChange,
  size: "small",
  listType: "text",
  defaultValue: defaultValue
}), /*#__PURE__*/_react["default"].createElement(_["default"], {
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload",
  beforeUpload: beforeUpload,
  onChange: onChange,
  size: "medium",
  listType: "text",
  defaultValue: defaultValue
}), /*#__PURE__*/_react["default"].createElement(_["default"], {
  action: "https://www.easy-mock.com/mock/5b713974309d0d7d107a74a3/alifd/upload",
  beforeUpload: beforeUpload,
  onChange: onChange,
  size: "large",
  listType: "text",
  defaultValue: defaultValue
})), document.getElementById('upload-demo-18'));

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

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