From 71a0e75ecb56ae643fe1e86188d45f93f48388c9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 28 八月 2020 14:07:41 +0800 Subject: [PATCH] 2020-08-28 --- src/templates/sharecomponent/settingcomponent/settingform/customscript/index.jsx | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/templates/sharecomponent/settingcomponent/settingform/customscript/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/customscript/index.jsx index ce05920..b165a19 100644 --- a/src/templates/sharecomponent/settingcomponent/settingform/customscript/index.jsx +++ b/src/templates/sharecomponent/settingcomponent/settingform/customscript/index.jsx @@ -1,14 +1,13 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Row, Col, Input, Button, notification, Modal, Select } from 'antd' +import { Form, Row, Col, Button, notification, Modal, Select } from 'antd' import moment from 'moment' import Utils from '@/utils/utils.js' import SettingUtils from '../utils.jsx' import Api from '@/api' +import CodeMirror from '@/templates/zshare/codemirror' import './index.scss' - -const { TextArea } = Input class CustomForm extends Component { static propTpyes = { @@ -151,7 +150,6 @@ let _setting = {...setting, customScript: _customScript} - let param = { func: 's_debug_sql', LText: SettingUtils.getDebugSql(_setting, arr_field, regoptions, swhere) @@ -268,7 +266,7 @@ message: this.props.dict['form.required.input'] + 'sql!' } ] - })(<TextArea rows={15} />)} + })(<CodeMirror />)} </Form.Item> </Col> </Row> -- Gitblit v1.8.0