From 6f096134b71bbde3024d2748116ff20483620af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Mon, 17 Oct 2022 09:21:28 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20=E5=8F=91=E5=B8=83=20la?= =?UTF-8?q?yer-vue=201.4.6=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/package.json | 2 +- package/layer/package.json | 2 +- package/layer/src/index.ts | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package/component/package.json b/package/component/package.json index 5016171b..1e8c13bd 100644 --- a/package/component/package.json +++ b/package/component/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "@layui/icons-vue": "^1.0.9", - "@layui/layer-vue": "^1.4.5", + "@layui/layer-vue": "^1.4.6", "@vueuse/core": "^9.2.0", "async-validator": "^4.1.1", "cropperjs": "^1.5.12", diff --git a/package/layer/package.json b/package/layer/package.json index 3be9354e..f182ca6d 100644 --- a/package/layer/package.json +++ b/package/layer/package.json @@ -1,6 +1,6 @@ { "name": "@layui/layer-vue", - "version": "1.4.5", + "version": "1.4.6", "description": "a component library for Vue 3 base on layui-vue", "homepage": "http://www.layui-vue.com", "module": "lib/layer-vue.es.js", diff --git a/package/layer/src/index.ts b/package/layer/src/index.ts index f75cf46c..46b52118 100644 --- a/package/layer/src/index.ts +++ b/package/layer/src/index.ts @@ -71,8 +71,7 @@ const modalChildrenVNode = (content: any) => { }; const layer = { - - _context: null, + _context: null, // 页面 open: (option: any, callback?: Function) => { @@ -156,7 +155,7 @@ const layer = { // 聚合配置 Opt const options = mergeOption(option, defaultOption); // 生成唯一标识 - if(options.hasOwnProperty("id")) { + if (options.hasOwnProperty("id")) { // 判断 id 存在, 并销毁窗体 layer.close(options.id); } else { @@ -267,5 +266,5 @@ export { layer, LayLayer }; export default { install }; -import "./theme/index.css";import { getSystemErrorMap } from "util"; - +import "./theme/index.css"; +import { getSystemErrorMap } from "util";