mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-18 07:42:54 +00:00
25 lines
722 B
TypeScript
25 lines
722 B
TypeScript
import React, { PureComponent } from 'react';
|
|
import './index.scss';
|
|
import { PluginProps } from '@ali/lowcode-editor-core/lib/definitions';
|
|
export interface IProps {
|
|
editor: any;
|
|
logo?: string;
|
|
}
|
|
export interface IState {
|
|
undoEnable: boolean;
|
|
redoEnable: boolean;
|
|
}
|
|
export default class UndoRedo extends PureComponent<IProps & PluginProps, IState> {
|
|
static display: string;
|
|
private history;
|
|
constructor(props: any);
|
|
componentDidMount(): void;
|
|
componentWillUnmount(): void;
|
|
handleHistoryChange: (history: any) => void;
|
|
init: () => void;
|
|
updateState: (state: number) => void;
|
|
handleUndoClick: () => void;
|
|
handleRedoClick: () => void;
|
|
render(): React.ReactNode;
|
|
}
|