UNPKG

vue-co-dialog

Version:

这是一个简洁,智能,个性化的JAVASCRIPT弹出框

34 lines (27 loc) 593 B
(function () { function plugin(Vue, coog) { if (plugin.installed) { return } plugin.installed = true if (!coog) { console.error('You have to install coog') return } Vue.coog = coog Object.defineProperties(Vue.prototype, { $coog: { get() { return coog } }, }) } if (typeof exports == "object") { module.exports = plugin } else if (typeof define == "function" && define.amd) { define([], function(){ return plugin }) } else if (window.Vue && window.coog) { Vue.use(plugin, window.coog) } })();