mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-01 16:58:15 +00:00
37 lines
1.1 KiB
TypeScript
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;
|
|
}
|