(component): 发布 layer-vue 1.4.6 版本

This commit is contained in:
就眠儀式
2022-10-17 09:21:28 +08:00
parent afbfeb0c18
commit 6f096134b7
3 changed files with 6 additions and 7 deletions

View File

@@ -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";