From 0472ec32cadb4f9bca6dbab82ac33a42e76f37ed Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 28 六月 2022 16:24:15 +0800 Subject: [PATCH] 菜单栏&时间轴 --- src/menu/components/share/sourcecomponent/inputform/index.jsx | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/menu/components/share/sourcecomponent/inputform/index.jsx b/src/menu/components/share/sourcecomponent/inputform/index.jsx index cb5888a..729dda2 100644 --- a/src/menu/components/share/sourcecomponent/inputform/index.jsx +++ b/src/menu/components/share/sourcecomponent/inputform/index.jsx @@ -2,6 +2,7 @@ import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' import { Input, Form, Row, Col, Pagination, Empty, Button, Modal, notification } from 'antd' +import { PlusOutlined } from '@ant-design/icons' import Api from '@/api' import Utils from '@/utils/utils.js' @@ -48,7 +49,7 @@ if (_form && _form.focus) { _form.focus() } - } catch {} + } catch (e) {} } shouldComponentUpdate (nextProps, nextState) { @@ -63,14 +64,14 @@ let videos = sessionStorage.getItem('app_videos') try { originlist = JSON.parse(videos) - } catch { + } catch (e) { originlist = [] } } else { let pictures = sessionStorage.getItem('app_pictures') try { originlist = JSON.parse(pictures) - } catch { + } catch (e) { originlist = [] } } @@ -174,8 +175,8 @@ </Form.Item> : null} {keyword === 'system' ? <Search value={searchKey} placeholder="" onChange={(e) => this.setState({searchKey: e.target.value})} onSearch={this.changeSearch} enterButton/> : null} - {keyword === 'system' ? <Button className="picture-plus mk-green" icon="plus" onClick={() => this.handleSource({typecharone: type})}> - 娣诲姞 + {keyword === 'system' ? <Button className="picture-plus mk-green" onClick={() => this.handleSource({typecharone: type})}> + <PlusOutlined /> 娣诲姞 </Button> : null} {keyword === 'system' && list.length ? <Row gutter={16} style={{minHeight: '250px'}}> -- Gitblit v1.8.0