как поменять иконку драггера в ant.design - PullRequest
0 голосов
/ 21 октября 2019

Я пытаюсь изменить значок перетаскивания в ant.design, но мне не удалось, может кто-нибудь помочь мне, как достичь моей цели. Я поделюсь кодом и ссылкой, мне нужно решить эту проблему.

Спасибо

import React from 'react';
import ReactDOM from 'react-dom';
import 'antd/dist/antd.css';
import './index.css';
import { Upload, Icon, message } from 'antd';

const { Dragger } = Upload;

const props = {
  name: 'file',
  multiple: true,
  action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76',
  onChange(info) {
    const { status } = info.file;
    if (status !== 'uploading') {
      console.log(info.file, info.fileList);
    }
    if (status === 'done') {
      message.success(`${info.file.name} file uploaded successfully.`);
    } else if (status === 'error') {
      message.error(`${info.file.name} file upload failed.`);
    }
  },
};

ReactDOM.render(
  <Dragger {...props}>
    <p className="ant-upload-drag-icon">
      <Icon type="inbox" />
    </p>
    <p className="ant-upload-text">Click or drag file to this area to upload</p>
    <p className="ant-upload-hint">
      Support for a single or bulk upload. Strictly prohibit from uploading company data or other
      band files
    </p>
  </Dragger>,
  document.getElementById('container'),
);

Ссылка Ссылка для просмотра в codeSandBox

Вопрос:

Я хочу поменять иконку синего цвета, пожалуйста, помогите мне

...