图标应具有“类型”道具或“组件”道具或“儿童”?

时间:2019-08-27 10:09:56

标签: reactjs ant-design-pro

NameError: name 'guess' is not defined

我删除了页面的图标标签,但仍然报告错误。 我删除了子组件中的Icon标记,但仍然报告错误。

Warning: Icon should have `type` prop or `component` prop or `children`. 
How to troubleshoot the issue?

import React from 'react';
import { bindActionCreators,createStore } from 'redux';
import { Link, browserHistory } from 'react-router';
import { connect } from 'react-redux';
import actions from '../../actions/information/inforResource.js';
import Dropdown from '../../components/common/dropdown.js';
import ListSearch from '../../components/common/listSearch.js';
import moment from 'moment';
import {Modal, Icon, Button, Row, Col, Form, DatePicker, Select, Table, Input, Pagination, Menu, Tooltip, Drawer, message, Avatar} from 'antd';

<Icon type="delete"/>

0 个答案:

没有答案