From 32b84012bb8e2f05295c4237d17224700b149c8f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 31 十二月 2020 16:33:27 +0800 Subject: [PATCH] merge 2020-12-31 --- src/templates/zshare/pasteform/index.jsx | 11 +++-------- 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/templates/zshare/pasteform/index.jsx b/src/templates/zshare/pasteform/index.jsx index b843b94..016a03f 100644 --- a/src/templates/zshare/pasteform/index.jsx +++ b/src/templates/zshare/pasteform/index.jsx @@ -1,14 +1,13 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' import { Form, Row, Col, Input, notification } from 'antd' -import Utils from '@/utils/utils.js' import './index.scss' const { TextArea } = Input class MainSearch extends Component { static propTpyes = { - dict: PropTypes.object // 瀛楀吀椤� + inputSubmit: PropTypes.func // 鍥炶溅浜嬩欢 } componentDidMount () { @@ -38,10 +37,6 @@ duration: 5 }) _config = '' - } - - if (_config && _config.uuid) { // 姣忔绮樿创鏃舵洿鏂癐D锛岄槻姝㈤噸澶嶇矘璐存椂id閲嶅 - _config.uuid = Utils.getuuid() } if (_config) { @@ -76,10 +71,10 @@ rules: [ { required: true, - message: this.props.dict['form.required.input'] + '閰嶇疆淇℃伅!' + message: '璇疯緭鍏ラ厤缃俊鎭�!' } ] - })(<TextArea autoSize={{ minRows: 6, maxRows: 6 }} />)} + })(<TextArea autoSize={{ minRows: 6, maxRows: 6 }} onPressEnter={() => this.props.inputSubmit && this.props.inputSubmit()}/>)} </Form.Item> </Col> </Row> -- Gitblit v1.8.0