Skip to content

Commit

Permalink
chore: 删除无用代码 (#11056)
Browse files Browse the repository at this point in the history
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
  • Loading branch information
qkiroc and qkiroc authored Oct 15, 2024
1 parent 36eb15f commit a3ad371
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions packages/amis-editor-core/src/component/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -601,7 +584,6 @@ export default class Editor extends Component<
amisEnv,
readonly
} = this.props;
const {mobileDimensions, mobileScale} = this.state;

return (
<div
Expand Down

0 comments on commit a3ad371

Please sign in to comment.