mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
fix: 公式编辑器 variableMode 失效 (#4252)
This commit is contained in:
parent
3594fc8a81
commit
0e317b8f97
@ -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">
|
||||
|
@ -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}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user