Gathering detailed insights and metrics for v-dialogs
Gathering detailed insights and metrics for v-dialogs
Gathering detailed insights and metrics for v-dialogs
Gathering detailed insights and metrics for v-dialogs
@yidusoft/v-dialogs
A simple and powful dialog, dialog type including Modal, Alert, Mask and Toast, based on Vue2.x
v-dialogs-forked
A simple and powerful dialog, dialog type including Modal, Alert, Mask and Toast, based on Vue2.x
v-modal
vModal - Simple, flexible and beautiful modal dialogs in AngularJS
vuetify-extended-dialogs
[](https://github.com/Irfan Vigma Taufik/vuetify-extended-dialogs/issues) [
Sass (10.96%)
Vue (5.66%)
HTML (0.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
133 Stars
243 Commits
30 Forks
8 Watchers
4 Branches
5 Contributors
Updated on Jul 08, 2025
Latest Version
3.0.3
Package Id
v-dialogs@3.0.3
Unpacked Size
114.54 kB
Size
28.56 kB
File Count
13
NPM Version
8.18.0
Node Version
18.20.2
Published on
Aug 12, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
21
A simple style useful dialog component collection for Vue3
If you are using vue 2.x version, please use v-dialogs 2.x version instead
Documentation and examples please visit below sites
DialogModalBox
and DialogDrawerBox
component formChinese
, English
, Japanese
and Portuguese
1# npm 2npm i v-dialogs 3# yarn 4yarn add v-dialogs 5# pnpm 6pnpm add v-dialogs
1type MessageContent = string | VNode
2type ComponentResult = VNode | Component
3type ComponentContent = ComponentResult | (() => ComponentResult)
4
5function DialogAlert(message?: MessageContent, callback?: Function, options?: AlertOptions): Function
6function DialogMessage(message?: MessageContent, callback?: Function, options?: MessageOptions): Function
7function DialogToast(message?: MessageContent, callback?: Function, options?: ToastOptions): Function
8function DialogMask(message?: MessageContent, callback?: Function, options?: MaskOptions): Function
9function DialogModal(component: ComponentContent, options?: ModalOptions): Function
10function DialogDrawer(component: ComponentContent, options?: DrawerOptions): Function
1import { DialogAlert, DialogMessage } from 'v-dialogs' 2 3function deleteUser (userId) { 4 DialogAlert('Deleted data cannot be recovered, are you sure?', () => { 5 executeDeleteUser(userId).then(() => { 6 DialogMessage('Delete complete.', { messageType: 'success' }) 7 }) 8 }, { messageType: 'confirm' }) 9}
1import { DialogModal, DialogAlert } from 'v-dialogs' 2import UserProfile from './UserProfile.vue' 3 4DialogModal(UserProfile, { 5 width: 900, 6 height: 600, 7 title: 'User Profile', 8 params: { 9 userId: 1, 10 userName: 'Terry Zeng' 11 }, 12 callback: data => { 13 DialogAlert(`Received message: ${data}`) 14 } 15})
1<template> 2 <div> 3 <DialogDrawerBox v-model:visible="visible" > 4 <UserProfile /> 5 </DialogDrawerBox> 6 7 <button 8 type="button" 9 @click="openDialog" 10 >Open Drawer</button> 11 </div> 12</template> 13 14<script setup> 15import { ref } from 'vue' 16import { DialogDrawerBox } from 'v-dialogs' 17 18import UserProfile from './UserProfile.vue' 19 20const visible = ref(false) 21 22function openDialog () { 23 visible.value = true 24} 25</script>
1import { DialogMask, DialogMessage, DialogAlert } from 'v-dialogs' 2 3function loadDataList () { 4 const destroy = DialogMask() 5 6 fetchData() 7 .then(data => { 8 list.value = data.list 9 // Dismiss mask overlay 10 destroy() 11 DialogMessage('Data loaded successfully', { messageType: 'success' }) 12 }) 13 .catch(() => { 14 DialogAlert('Data Load Failure', { messageType: 'error' }) 15 }) 16}
Alert, Message and Toast types provides message type quick access function
1import { 2 DialogMessage 3 DialogMessageSuccess 4} from 'v-dialogs' 5 6DialogMessageSuccess('Saved successfully!') 7// Equivalent to 8DialogMessage('Saved successfully!', { messageType: 'success' })
v-dialogs
also provides a globally instance to open dialogs, you can use it in any component
The default instance name is $dlg
1import { createApp } from 'vue' 2import dialogs from 'v-dialogs' 3import App from 'App.vue' 4 5createApp(App).use(dialogs).mount('#app')
The global instance are only supported as a feature and are not recommended for use
1export default { 2 mounted () { 3 this.$dlg.message('Saved successfully!') 4 } 5}
1import { getCurrentInstance } from 'vue' 2 3// const $dlg = getCurrentInstance().appContext.config.globalProperties.$dlg 4const $dlg = getCurrentInstance().proxy.$dlg 5 6$dlg.message('Saved successfully!')
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/28 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More