| 8 | import { IPublicTypeTitleContent, IPublicTypeWidgetBaseConfig } from '@alilc/lowcode-types'; |
| 9 | |
| 10 | export interface IWidget { |
| 11 | readonly name: string; |
| 12 | readonly content: ReactNode; |
| 13 | readonly align?: string; |
| 14 | readonly isWidget: true; |
| 15 | readonly visible: boolean; |
| 16 | readonly disabled?: boolean; |
| 17 | readonly body: ReactNode; |
| 18 | readonly skeleton: ISkeleton; |
| 19 | readonly config: IPublicTypeWidgetBaseConfig; |
| 20 | |
| 21 | getName(): string; |
| 22 | getContent(): any; |
| 23 | show(): void; |
| 24 | hide(): void; |
| 25 | toggle(): void; |
| 26 | enable?(): void; |
| 27 | disable?(): void; |
| 28 | } |
| 29 | |
| 30 | export class Widget implements IWidget { |
| 31 | readonly isWidget = true; |
no outgoing calls
no test coverage detected
searching dependent graphs…