From eb7d8402b8c23bbdb06f3199a114592f0a5d94e8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 11 五月 2022 13:23:25 +0800
Subject: [PATCH] 2022-05-11
---
src/menu/components/share/sourcecomponent/index.jsx | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/menu/components/share/sourcecomponent/index.jsx b/src/menu/components/share/sourcecomponent/index.jsx
index d59dfc1..012c84e 100644
--- a/src/menu/components/share/sourcecomponent/index.jsx
+++ b/src/menu/components/share/sourcecomponent/index.jsx
@@ -1,12 +1,13 @@
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'
-class CopyComponent extends Component {
+class SourceComponent extends Component {
static propTpyes = {
type: PropTypes.string,
placement: PropTypes.any,
@@ -68,16 +69,18 @@
<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}
width={visible !== 'system' ? 600 : 1000}
closable={false}
maskClosable={false}
+ okText="纭畾"
+ cancelText="鍙栨秷"
onOk={this.popSubmit}
onCancel={() => {this.setState({visible: ''})}}
destroyOnClose
@@ -89,4 +92,4 @@
}
}
-export default CopyComponent
\ No newline at end of file
+export default SourceComponent
\ No newline at end of file
--
Gitblit v1.8.0