Vanessa 2023-05-07 17:31:50 +08:00
parent 9bbfd2a3e4
commit 8fe520f4af
8 changed files with 67 additions and 8 deletions

View file

@ -1,14 +1,18 @@
import {App} from "../index";
import {EventBus} from "./EventBus";
export class Plugin {
public i18n: IObject;
public eventBus: EventBus;
constructor(options: {
app: App,
id: string,
name: string,
i18n: IObject
}) {
this.i18n = options.i18n;
this.eventBus = new EventBus(options.name);
}
public getData() {