/**
 * title: ""
 * description: ""
 */
import React from 'react';
import { Upload } from '@alicloud/console-components';

function onDragOver() {
  console.log('dragover callback');
}

function onDrop(fileList) {
  console.log('drop callback : ', fileList);
}
export default () => {
  return (
    <Upload.Dragger
    // 'text' | 'text-image' | 'image' | 'card' | 'picture' | 'picture-card' | 'none';
      listType="image"
      onDragOver={onDragOver}
      onDrop={onDrop}
      defaultValue={[
        {
          name: 'IMG.png',
          state: 'done',
          url: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
          imgURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
        },
        {
          name: 'IMG.png',
          state: 'uploading',
          percent: 50,
          downloadURL: '',
          fileURL: 'https://img.alicdn.com/tps/TB19O79MVXXXXcZXVXXXXXXXXXX-1024-1024.jpg',
          imgURL: '',
        },
        {
          name: 'IMG.png',
          state: 'error',
          errorMsg: '上传失败提示',
          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',
        },
      ]}
    />
  );
};


