(layer): 发布 layer-vue 1.4.3

This commit is contained in:
就眠儀式
2022-10-06 02:41:02 +08:00
parent 351165603e
commit 0f8487a071
7 changed files with 24 additions and 7 deletions

View File

@@ -16,11 +16,11 @@
import { layer } from "../../../../layer/src/index"
const msg = function() {
layer.msg("普通消息", { time: 199999000 })
layer.msg("普通消息", { time: 1000 })
}
const success = function() {
layer.msg("成功消息", { time: 199999000, icon: 1})
layer.msg("成功消息", { time: 1000, icon: 1})
}
const failure = function() {

View File

@@ -5,6 +5,7 @@ import { Router } from "vue-router";
import LayCode from "./components/LayCode.vue";
import Children1 from "./components/Children1.vue";
import Children2 from "./components/Children2.vue";
import layui from "../../component/src/index";
import layer from "../../layer/src/index";
import "./assets/css/index.css";
@@ -16,6 +17,7 @@ export function createApp(): {
const router = createRouter();
app
.use(layui)
.use(layer)
.use(router)
.component("LayCode", LayCode)

View File

@@ -7,11 +7,26 @@ const zhCN = [
component: BaseLayout,
meta: { title: "首页" },
children: [
{
path: "/zh-CN/index",
component: () => import("../document/zh-CN/index.md"),
meta: { title: "示例" },
},
{
path: "/zh-CN/demo",
component: () => import("../document/zh-CN/demo.md"),
meta: { title: "示例" },
},
{
path: "/zh-CN/help",
component: () => import("../document/zh-CN/help.md"),
meta: { title: "示例" },
},
{
path: "/zh-CN/question",
component: () => import("../document/zh-CN/question.md"),
meta: { title: "示例" },
},
],
},
];