mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-15 14:00:35 +00:00
22 lines
613 B
TypeScript
22 lines
613 B
TypeScript
import React, { PureComponent } from 'react';
|
|
import './index.scss';
|
|
import { PluginProps } from '@ali/lowcode-editor-framework/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);
|
|
init: () => void;
|
|
updateState: (state: number) => void;
|
|
handleUndoClick: () => void;
|
|
handleRedoClick: () => void;
|
|
render(): React.ReactNode;
|
|
}
|