2020-03-26 21:53:39 +08:00

25 lines
733 B
TypeScript

import React, { PureComponent } from 'react';
import { PluginProps } from '@ali/lowcode-editor-core/lib/definitions';
import './index.scss';
export interface LibrayInfo {
label: string;
value: string;
}
export interface IState {
loading: boolean;
libs: LibrayInfo[];
searchKey: string;
currentLib: string;
componentList: object[];
}
export default class ComponentListPlugin extends PureComponent<PluginProps, IState> {
static displayName: string;
constructor(props: any);
componentDidMount(): void;
transformMaterial: (componentList: any) => any;
initComponentList: () => void;
searchAction: (value: string) => void;
filterMaterial: () => any;
render(): React.ReactNode;
}