fix: the install method is missing parameters

This commit is contained in:
就眠儀式
2022-02-22 15:27:36 +08:00
parent ff0f7fcbf0
commit 5d6cf7ed55
2 changed files with 3 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ import LayException from "./component/exception/index";
import LayResult from "./component/result/index";
import LayFullscreen from "./component/fullscreen/index";
import LayConfigProvider from "./provider";
import { InstallOptions } from "./types";
const components: Record<string, Component> = {
LaySplitPanel,
@@ -154,7 +155,7 @@ const components: Record<string, Component> = {
LayConfigProvider,
};
const install = (app: App): void => {
const install = (app: App, options?: InstallOptions): void => {
for (const key in components) {
const item = components[key];
app.component(item.name || key, item);