更新 layer 文档, 整理更新日志

This commit is contained in:
就眠儀式
2022-01-02 21:12:47 +08:00
parent 9f0bec1339
commit aec3db3503
6 changed files with 44 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ 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";
import LayLayer from "./module/layer/index";
import LayBacktop from "./module/backTop/index";
import LayAvatar from "./module/avatar/index";
import LayRadio from "./module/radio/index";
@@ -128,7 +128,7 @@ const components: Record<string, IDefineComponent> = {
LayCarousel,
LayCarouselItem,
LayColorPicker,
LayModal,
LayLayer,
LayTooltip,
LayInputNumber,
LaySkeleton,
@@ -205,7 +205,7 @@ export {
LayCarousel,
LayCarouselItem,
LayColorPicker,
LayModal
LayLayer
};
export { layer };

View File

@@ -0,0 +1,9 @@
import type { App } from "vue";
import { LayLayer } from "@layui/layer-vue";
import type { IDefineComponent } from "../type/index";
LayLayer.install = (app: App) => {
app.component(LayLayer.name || "LayLayer", LayLayer);
};
export default LayLayer as IDefineComponent;

View File

@@ -1,9 +0,0 @@
import type { App } from "vue";
import { LayModal } from "@layui/layer-vue";
import type { IDefineComponent } from "../../type/index";
LayModal.install = (app: App) => {
app.component(LayModal.name || "LayModal", LayModal);
};
export default LayModal as IDefineComponent;