hae
Version:
Mobile web UI based on Vux
28 lines (25 loc) • 476 B
JavaScript
export default {
install (Vue, config = {}) {
if (!Vue.vux) {
Vue.vux = {
config
}
} else {
Vue.vux.config = config
}
if (typeof window !== 'undefined') {
window.VUX_CONFIG = config
}
Vue.mixin({
created: function () {
if (this.$vux) {
this.$vux.config = config
} else {
this.$vux = {
config
}
}
}
})
}
}