Commit f5fed590 authored by 何虹's avatar 何虹 💬

升级调试

parent 524212b7
import Vue from 'vue'
window.Vue=Vue
import App from './App.vue'
import './packages/index'
import ElementUI from 'element-ui'
......
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
import index from './index.vue'
index.install = Vue => Vue.component(index.name, index);
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(index);
index.install = function (Vue) {
Vue.component(index.name, index)
}
export default index
\ No newline at end of file
......@@ -59,19 +59,16 @@ const components = [
hsAction
]
const install = function (Vue, opts = {}) {
components.map(component => {
const install = function(Vue) {
components.forEach(component => {
Vue.component(component.name, component);
})
});
}
/* 支持使用标签的方式引入 */
if (typeof window !== 'undefined') {
debugger
if (typeof window !== 'undefined' && window.Vue||Vue) {
install(window.Vue||Vue);
}
export default {
install,
hsTree,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment