fix: 公式编辑器 variableMode 失效 (#4252)

This commit is contained in:
Allen 2022-05-07 18:16:22 +08:00 committed by GitHub
parent 3594fc8a81
commit 0e317b8f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -480,7 +480,6 @@ export default class PlayGround extends React.Component {
render() {
const {vertical, mini, height, theme, classPrefix} = this.props;
console.log(classPrefix);
if (mini) {
return (
<div className="Playgroud Playgroud--mini">

View File

@ -275,6 +275,7 @@ export class FormulaPicker extends React.Component<
variables,
functions,
children,
variableMode,
...rest
} = this.props;
const {isOpened, value, editorValue, isError} = this.state;
@ -377,7 +378,7 @@ export class FormulaPicker extends React.Component<
{...rest}
variables={this.state.variables ?? variables}
functions={this.state.functions ?? functions}
variableMode={this.state.variableMode}
variableMode={this.state.variableMode ?? variableMode}
value={editorValue}
onChange={this.handleEditorChange}
/>