mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 删除无用代码 (#11056)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
36eb15fe8f
commit
a3ad371e5a
@ -139,16 +139,7 @@ export interface EditorProps extends PluginEventListener {
|
||||
readonly?: boolean;
|
||||
}
|
||||
|
||||
export default class Editor extends Component<
|
||||
EditorProps,
|
||||
{
|
||||
mobileDimensions: {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
mobileScale: number;
|
||||
}
|
||||
> {
|
||||
export default class Editor extends Component<EditorProps> {
|
||||
readonly store: EditorStoreType;
|
||||
readonly manager: EditorManager;
|
||||
readonly mainRef = React.createRef<HTMLDivElement>();
|
||||
@ -228,14 +219,6 @@ export default class Editor extends Component<
|
||||
this.toDispose.push(
|
||||
this.manager.on('preview2editor', () => this.manager.rebuild())
|
||||
);
|
||||
|
||||
this.state = {
|
||||
mobileDimensions: {
|
||||
width: 375,
|
||||
height: 667
|
||||
},
|
||||
mobileScale: 100
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
@ -601,7 +584,6 @@ export default class Editor extends Component<
|
||||
amisEnv,
|
||||
readonly
|
||||
} = this.props;
|
||||
const {mobileDimensions, mobileScale} = this.state;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user