Skip to content

joe20182/vue-confirm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vue-confirm

confirm popup global component

usage:
clone this repo to your vue-cli project
and then in your main.js

import Confirm from './xxx/confirm'
Vue.use(Confirm)

in your vue components

/**
 * this.$confirm(obj[, callback1, callback2])
 * if you don't pass obj.cancelBtn, then there will be only submit button
 */
this.$confirm({
    title: 'this is title',
    content: 'contents here',
    confirmBtn: 'submit text',
    cancelBtn: 'cancel text'
}, callbackSubmit, callbackCancel)

img-1 img-2

Releases

No releases published

Packages

No packages published