mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
amis-saas-7601 [Feature] 「编辑器」长文本公式输入框 样式统一
Change-Id: I6da3324f24536fb75a5f926ad592cb902e71d32a
This commit is contained in:
parent
55be53e5f0
commit
1ea2b82e85
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user