✨(component): 发布 layer-vue 1.4.6 版本
This commit is contained in:
parent
afbfeb0c18
commit
6f096134b7
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -71,8 +71,7 @@ const modalChildrenVNode = (content: any) => {
|
||||
};
|
||||
|
||||
const layer = {
|
||||
|
||||
_context: <AppContext | null> null,
|
||||
_context: <AppContext | null>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";
|
||||
|
Loading…
Reference in New Issue
Block a user