0.5.3 • Published 4 years ago

vue-dialog-loading v0.5.3

Weekly downloads
174
License
MIT
Repository
github
Last release
4 years ago

vue-dialog-loading

A light vue dialog plugin with loading animation and image preview

View the Demo and its source for more.

npm.io

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:

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

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.7

4 years ago

0.4.5

4 years ago

0.4.6

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.1

4 years ago

0.4.2

4 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago