fix: the install method is missing parameters
This commit is contained in:
parent
ff0f7fcbf0
commit
5d6cf7ed55
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layui-vue",
|
"name": "@layui/layui-vue",
|
||||||
"version": "0.3.8",
|
"version": "0.3.9-alpha.1",
|
||||||
"author": "就眠儀式",
|
"author": "就眠儀式",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "a component library for Vue 3 base on layui-vue",
|
"description": "a component library for Vue 3 base on layui-vue",
|
||||||
|
@ -78,6 +78,7 @@ import LayException from "./component/exception/index";
|
|||||||
import LayResult from "./component/result/index";
|
import LayResult from "./component/result/index";
|
||||||
import LayFullscreen from "./component/fullscreen/index";
|
import LayFullscreen from "./component/fullscreen/index";
|
||||||
import LayConfigProvider from "./provider";
|
import LayConfigProvider from "./provider";
|
||||||
|
import { InstallOptions } from "./types";
|
||||||
|
|
||||||
const components: Record<string, Component> = {
|
const components: Record<string, Component> = {
|
||||||
LaySplitPanel,
|
LaySplitPanel,
|
||||||
@ -154,7 +155,7 @@ const components: Record<string, Component> = {
|
|||||||
LayConfigProvider,
|
LayConfigProvider,
|
||||||
};
|
};
|
||||||
|
|
||||||
const install = (app: App): void => {
|
const install = (app: App, options?: InstallOptions): void => {
|
||||||
for (const key in components) {
|
for (const key in components) {
|
||||||
const item = components[key];
|
const item = components[key];
|
||||||
app.component(item.name || key, item);
|
app.component(item.name || key, item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user