# plugin

Some Vue plugins, such as notice plugin.

# notice

# Init

Vue.use(bekit.plugin.vueNotice[, options]);

  • Arguments:
    • {Object} options
# options
Property Detail Default Required
toast a default option for toast {} no
alert a default option for alert {} no
confirm a default option for confirm {} no
prompt a default option for prompt {} no
messageBox a default option for messageBox {} no

# Usage

import Vue from 'vue';
import * as bekit from 'bekit';
Vue.use(bekit.plugin.vueNotice, {
    toast: {
        iconClass: 'xxicon'
    }
});

# Methods

# this.$toast
# this.$messageBox
# this.$alert
# this.$confirm
# this.$prompt

# Usage

this.$toast('message');
this.$alert('message', 'title').then(function() {
    // do something here
});
this.$confirm('message', 'title').then(function() {
    // confirm here
}).catch(function() {
    // cancel here
});
Last Updated: 8/3/2020, 3:52:20 AM