chore: 删除无用代码 (#11056)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2024-10-15 20:59:31 +08:00 committed by GitHub
parent 36eb15fe8f
commit a3ad371e5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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