✨(layer): 发布 layer-vue 1.4.3
This commit is contained in:
parent
351165603e
commit
0f8487a071
@ -34,7 +34,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@layui/icons-vue": "^1.0.9",
|
"@layui/icons-vue": "^1.0.9",
|
||||||
"@layui/layer-vue": "^1.4.2",
|
"@layui/layer-vue": "^1.4.3",
|
||||||
"@vueuse/core": "^9.2.0",
|
"@vueuse/core": "^9.2.0",
|
||||||
"async-validator": "^4.1.1",
|
"async-validator": "^4.1.1",
|
||||||
"cropperjs": "^1.5.12",
|
"cropperjs": "^1.5.12",
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
import { layer } from "../../../../layer/src/index"
|
import { layer } from "../../../../layer/src/index"
|
||||||
|
|
||||||
const msg = function() {
|
const msg = function() {
|
||||||
layer.msg("普通消息", { time: 199999000 })
|
layer.msg("普通消息", { time: 1000 })
|
||||||
}
|
}
|
||||||
|
|
||||||
const success = function() {
|
const success = function() {
|
||||||
layer.msg("成功消息", { time: 199999000, icon: 1})
|
layer.msg("成功消息", { time: 1000, icon: 1})
|
||||||
}
|
}
|
||||||
|
|
||||||
const failure = function() {
|
const failure = function() {
|
||||||
|
@ -5,6 +5,7 @@ import { Router } from "vue-router";
|
|||||||
import LayCode from "./components/LayCode.vue";
|
import LayCode from "./components/LayCode.vue";
|
||||||
import Children1 from "./components/Children1.vue";
|
import Children1 from "./components/Children1.vue";
|
||||||
import Children2 from "./components/Children2.vue";
|
import Children2 from "./components/Children2.vue";
|
||||||
|
import layui from "../../component/src/index";
|
||||||
import layer from "../../layer/src/index";
|
import layer from "../../layer/src/index";
|
||||||
import "./assets/css/index.css";
|
import "./assets/css/index.css";
|
||||||
|
|
||||||
@ -16,6 +17,7 @@ export function createApp(): {
|
|||||||
const router = createRouter();
|
const router = createRouter();
|
||||||
|
|
||||||
app
|
app
|
||||||
|
.use(layui)
|
||||||
.use(layer)
|
.use(layer)
|
||||||
.use(router)
|
.use(router)
|
||||||
.component("LayCode", LayCode)
|
.component("LayCode", LayCode)
|
||||||
|
@ -7,11 +7,26 @@ const zhCN = [
|
|||||||
component: BaseLayout,
|
component: BaseLayout,
|
||||||
meta: { title: "首页" },
|
meta: { title: "首页" },
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: "/zh-CN/index",
|
||||||
|
component: () => import("../document/zh-CN/index.md"),
|
||||||
|
meta: { title: "示例" },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/zh-CN/demo",
|
path: "/zh-CN/demo",
|
||||||
component: () => import("../document/zh-CN/demo.md"),
|
component: () => import("../document/zh-CN/demo.md"),
|
||||||
meta: { title: "示例" },
|
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: "示例" },
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@layui/layer-vue",
|
"name": "@layui/layer-vue",
|
||||||
"version": "1.4.2",
|
"version": "1.4.3",
|
||||||
"description": "a component library for Vue 3 base on layui-vue",
|
"description": "a component library for Vue 3 base on layui-vue",
|
||||||
"homepage": "http://www.layui-vue.com",
|
"homepage": "http://www.layui-vue.com",
|
||||||
"module": "lib/layer-vue.es.js",
|
"module": "lib/layer-vue.es.js",
|
||||||
|
@ -167,9 +167,9 @@ export function calculateContent(
|
|||||||
} else {
|
} else {
|
||||||
if (type == 0) {
|
if (type == 0) {
|
||||||
if (title) {
|
if (title) {
|
||||||
return isMessage ? '' : "calc(" + height + " - 137px)";
|
return isMessage ? "" : "calc(" + height + " - 137px)";
|
||||||
} else {
|
} else {
|
||||||
return isMessage ? '' : "calc(" + height + " - 86px)";
|
return isMessage ? "" : "calc(" + height + " - 86px)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type == 1 || type == 4) {
|
if (type == 1 || type == 4) {
|
||||||
|
@ -77,7 +77,7 @@ importers:
|
|||||||
specifiers:
|
specifiers:
|
||||||
'@ctrl/tinycolor': ^3.4.1
|
'@ctrl/tinycolor': ^3.4.1
|
||||||
'@layui/icons-vue': ^1.0.9
|
'@layui/icons-vue': ^1.0.9
|
||||||
'@layui/layer-vue': ^1.4.2
|
'@layui/layer-vue': ^1.4.3
|
||||||
'@umijs/ssr-darkreader': ^4.9.45
|
'@umijs/ssr-darkreader': ^4.9.45
|
||||||
'@vueuse/core': ^9.2.0
|
'@vueuse/core': ^9.2.0
|
||||||
async-validator: ^4.1.1
|
async-validator: ^4.1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user