amis-saas-7601 [Feature] 「编辑器」长文本公式输入框 样式统一

Change-Id: I6da3324f24536fb75a5f926ad592cb902e71d32a
This commit is contained in:
jiatianqi 2022-11-14 20:32:03 +08:00
parent 55be53e5f0
commit 1ea2b82e85

View File

@ -1,7 +1,7 @@
import React, {useEffect} from 'react';
import {Modal, Button} from 'amis';
import cx from 'classnames';
import Editor from 'amis-ui/lib/components/formula/Editor';
import FormulaEditor from 'amis-ui/lib/components/formula/Editor';
export interface FormulaPickerProps {
onConfirm: (data: string) => void;
@ -38,16 +38,13 @@ const FormulaPicker: React.FC<FormulaPickerProps> = props => {
return (
<Modal
className={cx('FormulaPicker-Modal')}
size="lg"
size="md"
show
onHide={handleClose}
closeOnEsc
>
<Modal.Header onClose={handleClose}>
<Modal.Title></Modal.Title>
</Modal.Header>
<Modal.Body>
<Editor
<FormulaEditor
header="表达式"
variables={variables}
variableMode={variableMode}