Merge changes I5dc43284,I8fc7f294,Id9acb551 into pre-release

* changes:
  amis-saas-7740 优化模型页面编辑器
  amis-saas-7740 优化模型页面编辑器
  amis-saas-7740 重构页面构建逻辑
This commit is contained in:
liaoxuezhi 2023-02-21 16:36:45 +08:00 committed by iCode
commit b41b92e167

View File

@ -29,7 +29,8 @@ export default class MiniEditor extends Editor {
}
render() {
const {preview, className, theme, data, isMobile} = this.props;
const {preview, className, theme, data, isMobile, autoFocus, previewProps} =
this.props;
return (
<div
@ -44,12 +45,14 @@ export default class MiniEditor extends Editor {
<div className="ae-Editor-inner" onContextMenu={this.handleContextMenu}>
<div className="ae-Main">
<Preview
{...previewProps}
isMobile={isMobile}
editable={!preview}
store={this.store}
manager={this.manager}
theme={theme}
data={data}
autoFocus={autoFocus}
></Preview>
</div>
</div>