vue-dialog-loading

A light vue dialog plugin with loading animation and image preview
2,469 9
Install
npm install vue-dialog-loading
Latest Version:0.5.3
Vue:2
License:MIT
Last Updated:Jan 4, 2023
Links: GitHub  ·  npm
Maintainer: lisper

vue-dialog-loading

A light vue dialog plugin with loading animation and image preview

View the Demo and its source for more.

Install

npm install --save vue-dialog-loading

Quick Start

main.js

import Dialog from 'vue-dialog-loading'

//global config
Vue.use(Dialog, {
    dialogBtnColor: '#0f0',
    background:'rgba(0, 0, 0, 0.5)'
})

your vue file

this.$dialog({
     title: 'title',
     content: 'some information',
     // background:'rgba(0,0,0, 0.5)',
     delay: 3000,   //options, close after 3s
     btns: [{
                    label: 'OK',
                    color: '#09f',
             },
             {
                    label: 'Cancel',
                    color: '#444',
                    ghost: true,
                    callback: () => {
                        window.alert('onOk callback')
                    },
             }],
})

this.$loading.show({delay:0, background: '#444'})   //delay 0ms, default is 300ms
this.$loading.hide()

## Components:
<LoadingCom/>

//preview image, support double touch to scale 2.0 and touch drag
this.$ImagePreview.show(imgUrl)

Related Packages

@benjaminor-dev/quasar-app-extension-dialog-loader

Dialog loader for Quasar — global loading dialog via useDialogLoader()

2,633
vue3-use-modal

vue3-use-modal is vue3(vue-next) plugin that provide easy use of modal. It is no...

1,659 7
vue-fun-loading

all kinds of loading components of vue

1,536 1
ajax-loading

a ajax-loading plugin for vue.js project

1,494
costumejs

Create web component style and variants

1,107

Version History

Version Released Vue License
0.5.3 ^2.6.10 MIT
0.5.2 ^2.6.10 MIT
0.5.1 ^2.6.10 MIT
0.5.0 ^2.6.10 MIT
0.4.7 ^2.6.10 MIT