From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/menu/components/share/sourcecomponent/index.jsx | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/menu/components/share/sourcecomponent/index.jsx b/src/menu/components/share/sourcecomponent/index.jsx index 569fc8d..012c84e 100644 --- a/src/menu/components/share/sourcecomponent/index.jsx +++ b/src/menu/components/share/sourcecomponent/index.jsx @@ -1,7 +1,8 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' -import { Radio, Icon, Modal } from 'antd' +import { Radio, Modal } from 'antd' +import { PaperClipOutlined, DeleteOutlined } from '@ant-design/icons' import InputForm from './inputform' import './index.scss' @@ -68,10 +69,10 @@ <Radio.Button value="upload" size="small" onClick={() => this.handleChange('upload')}>涓婁紶</Radio.Button> <Radio.Button value="system" size="small" onClick={() => this.handleChange('system')}>绯荤粺</Radio.Button> </Radio.Group> : null} - {url ? <div className="mk-source-item-info"> - <Icon type="paper-clip" /> + {url ? <div className={'mk-source-item-info' + (type !== 'video' ? ' picture' : '')}> + {type === 'video' ? <PaperClipOutlined /> : <img src={url} alt="" />} <a target="_blank" rel="noopener noreferrer" href={url}>{name}</a> - <Icon title="鍒犻櫎鏂囦欢" type="delete" onClick={this.deleteUrl}/> + <DeleteOutlined title="鍒犻櫎鏂囦欢" onClick={this.deleteUrl}/> </div> : null} <Modal visible={!!visible} -- Gitblit v1.8.0