(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

@ -34,7 +34,7 @@
},
"dependencies": {
"@layui/icons-vue": "^1.0.9",
"@layui/layer-vue": "^1.4.2",
"@layui/layer-vue": "^1.4.3",
"@vueuse/core": "^9.2.0",
"async-validator": "^4.1.1",
"cropperjs": "^1.5.12",

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: "示例" },
},
],
},
];

View File

@ -1,6 +1,6 @@
{
"name": "@layui/layer-vue",
"version": "1.4.2",
"version": "1.4.3",
"description": "a component library for Vue 3 base on layui-vue",
"homepage": "http://www.layui-vue.com",
"module": "lib/layer-vue.es.js",

View File

@ -167,9 +167,9 @@ export function calculateContent(
} else {
if (type == 0) {
if (title) {
return isMessage ? '' : "calc(" + height + " - 137px)";
return isMessage ? "" : "calc(" + height + " - 137px)";
} else {
return isMessage ? '' : "calc(" + height + " - 86px)";
return isMessage ? "" : "calc(" + height + " - 86px)";
}
}
if (type == 1 || type == 4) {

View File

@ -77,7 +77,7 @@ importers:
specifiers:
'@ctrl/tinycolor': ^3.4.1
'@layui/icons-vue': ^1.0.9
'@layui/layer-vue': ^1.4.2
'@layui/layer-vue': ^1.4.3
'@umijs/ssr-darkreader': ^4.9.45
'@vueuse/core': ^9.2.0
async-validator: ^4.1.1