You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-modal-core

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-modal-core - npm Package Compare versions

Comparing version

to
1.0.4

2

dist/index.d.ts

@@ -70,3 +70,3 @@ import * as vue from 'vue';

makeModal: <C extends Component<{
visible?: boolean | undefined;
visible?: boolean;
}>>(comp: C, id?: symbol) => {

@@ -73,0 +73,0 @@ id: symbol;

@@ -61,4 +61,4 @@ // src/core.ts

const modal = modalsMap.get(id);
if (!modal || modal.meta.isClosing)
return false;
if (!modal || modal.meta.isClosing) return false;
modal.props.visible = false;
modal.meta.isClosing = true;

@@ -106,3 +106,2 @@ log("Closing modal", id);

if (lastModal) {
lastModal.props.visible = false;
closeModal(lastModalId);

@@ -144,3 +143,2 @@ }

if (modal) {
modal.props.visible = false;
return closeModal(id);

@@ -168,10 +166,10 @@ }

"onUpdate:visible": async (value) => {
if (!value) {
if (value) {
props.visible = true;
} else {
const closed = await closeModal(id);
if (!closed) {
props.visible = true;
return;
}
}
props.visible = value;
}

@@ -178,0 +176,0 @@ })

{
"name": "vue-modal-core",
"version": "1.0.3",
"version": "1.0.4",
"license": "MIT",

@@ -48,2 +48,2 @@ "description": "一个轻量级的 Vue 3 模态框管理库,提供灵活的模态框控制和生命周期管理",

]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet