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

@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "0.3.8",
"version": "0.3.9-alpha.1",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

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);