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.5

2

dist/index.d.ts

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

interface ModalOptions {
baseZIndex?: number;
allowMultiple?: boolean;

@@ -94,3 +93,2 @@ debug?: boolean;

options: {
baseZIndex: number;
allowMultiple: boolean;

@@ -97,0 +95,0 @@ debug: boolean;

10

dist/index.js

@@ -6,3 +6,2 @@ // src/core.ts

var DEFAULT_OPTIONS = {
baseZIndex: 1e3,
allowMultiple: true,

@@ -116,5 +115,5 @@ debug: false

modal.meta.isClosing = false;
modalsMap.delete(id);
modal.props.visible = true;
return;
}
const zIndex = mergedOptions.baseZIndex + modalQueue.length;
modalQueue.push(id);

@@ -131,4 +130,3 @@ modalsMap.set(id, {

...props,
visible: true,
style: { zIndex }
visible: true
}),

@@ -139,3 +137,3 @@ meta: {

});
log("Modal opened", { id, zIndex });
log("Modal opened", { id });
},

@@ -142,0 +140,0 @@ close: async () => {

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

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

@@ -36,3 +36,2 @@ # vue-modal-core

export { makeModal, ModalRenderer } = createModalContext({
baseZIndex: 1000,
allowMultiple: true

@@ -118,3 +117,2 @@ });

interface ModalOptions {
baseZIndex?: number; // 基础 z-index 值
allowMultiple?: boolean; // 是否允许多个模态框同时存在

@@ -121,0 +119,0 @@ debug?: boolean; // 是否启用调试模式

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet