import React, { Component } from 'react'; import { HomeIconI, PluginItem, ItoolbarConfig } from './definition/common'; import 'antd/es/tabs/style/css'; import './index.css'; interface Iprops { title?: string; toolbarConfig: any[]; dataSource?: any[]; background: string; homeIcon: HomeIconI; isMini?: boolean; } interface IState { dataSource: PluginItem[]; selectKey: string; activeKey: string; title: string; pageError: any; background: string; homeIcon: HomeIconI; } export default class Fitment extends Component { constructor(props: Iprops); componentDidMount(): void; onAddPlugin: (pluginId: string, key?: string, props?: any) => { pluginId: string; key: string; props: any; }; createPluginInstance: (pluginId: string, key?: string, props?: any) => { pluginId: string; key: string; props: any; }; addRyuProps: (key: string, plugin: any, props: any) => any; get plugins(): React.CElement>[]; getPluginById: (id: string) => any; getPluginByKey: (key: string) => any; getPropsByKey: (key: string) => any; changeProps: (newProps: any, fn: () => void) => void; getValueFromState: () => { title: string; background: string; homeIcon: HomeIconI; dataSource: PluginItem[]; }; addGetValue: (items: any[]) => ItoolbarConfig[]; removeRyuProps: (props: any) => any; onTitleChange: (value: string) => void; onBackgroundChange: (value: any) => void; onIconChange: (v: HomeIconI) => void; onInsertPluginBefore: (pluginId: string, key: string) => void; onInsertPluginAfter: (pluginId: string, key: string) => void; onMovePlugin: (from: any, to: any) => void; onMovePluginBefore: (from: any, to: any) => void; onMovePluginAfter: (from: any, to: any) => void; predicate: (key: string) => (data: any) => boolean; moveAction: (action: any, key: string) => void; moveUp: (key: string) => void; moveDown: (key: string) => void; moveTop: (key: string) => void; moveBottom: (key: string) => void; select: (key: string) => void; delete: (key: string) => void; render(): JSX.Element; } export {};