2020-03-26 21:24:30 +08:00

37 lines
1.1 KiB
TypeScript

import React, { PureComponent } from 'react';
import Editor from '@ali/lowcode-editor-core';
import { PluginConfig, PluginClass } from '@ali/lowcode-editor-core/lib/definitions';
import './index.scss';
export interface LeftPluginProps {
active?: boolean;
config: PluginConfig;
disabled?: boolean;
editor: Editor;
locked?: boolean;
marked?: boolean;
onClick?: () => void;
pluginClass: PluginClass | undefined;
}
export interface LeftPluginState {
dialogVisible: boolean;
}
export default class LeftPlugin extends PureComponent<LeftPluginProps, LeftPluginState> {
static displayName: string;
static defaultProps: {
active: boolean;
config: {};
disabled: boolean;
marked: boolean;
locked: boolean;
onClick: () => void;
};
constructor(props: any, context: any);
componentDidMount(): void;
componentWillUnmount(): void;
handleClose: () => void;
handleOpen: () => void;
handleShow: () => void;
renderIcon: (clickCallback: any) => any;
render(): React.ReactNode;
}