diff --git a/src/index.ts b/src/index.ts index 68907494..ce462595 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,6 @@ import type { IDefineComponent, InstallOptions } from "./module/type/index"; import "./css/layui.css"; import "@layui/layer-vue/lib/index.css"; import "@layui/icons-vue/lib/index.css"; - import { layer } from "@layui/layer-vue"; import LayModal from "./module/layer/modal/index"; @@ -198,9 +197,9 @@ export { LayCarousel, LayCarouselItem, LayColorPicker, - LayModal, - install, - layer, + LayModal }; +export { layer }; + export default { install }; diff --git a/src/module/type/public.ts b/src/module/type/public.ts index ee4c1f90..1d4e70cc 100644 --- a/src/module/type/public.ts +++ b/src/module/type/public.ts @@ -10,10 +10,7 @@ export type IDefineComponent = DefineComponent & { install: (app: App, options?: InstallOptions) => void; }; -export interface InstallOptions extends StringObject { - pagination?: null; - menu?: null; -} +export interface InstallOptions extends StringObject {} export type Nullable = T | null;