this.editorRef = editor}
value={this.state.value}
onBeforeChange={(editor, data, value) => {
this.setState({ value });
}}
onChange={(editor, data, value) => {
this.replaceToWidget(editor, data, value, inlineWidgetOpts);
}}
options={{
lineNumbers: false,
mode: { name: this.props.type === "sql" ? "text/x-sql" : "application/json" },
autofocus: false,
styleActiveLine: true,
lineWrapping: true,
foldGutter: true,
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
lint: false,
indentUnit: 2,
cursorHeight: 0.85,
placeholder: "",
showCursorWhenSelecting: true
}}
onKeyDown={(_, { keyCode }) => keyCode === 8 && this.handleBackSpaceRedo()}
/>
{widgets.map((w, i) => {
return (
);
})}
{
_.map(keyboardBaseBtns, item => {
const { key, label } = item;
return ;
})
}
{/*公式参数列表*/}