px-vue-alert
v0.1.7
Published
## vue-alert module
Downloads
104
Maintainers
Readme
vue-alert
vuex required
install
npm i px-vue-alert
add in main.js
import PxVueAlert from 'px-vue-alert'
Vue.use(PxVueAlert, { store })
add in app.vue
template
<template>
<div id="app">
<router-view/>
<px-block-page spinnerImageSrc="./icone_transparente.png"/>
<px-toast-notify/>
</div>
</template>
style
<style src="../node_modules/px-vue-alert/dist/px-vue-alert.css"></style>
block ui actions:
- toggleLoading({ message })
- blockMessage({ message, icon, type, delay })
notifications actions:
- success (message)
- error (message)
clear all action:
- clear ()