Commit 3db59efa by limin

修改theme 目录

1 parent 57ed9761
......@@ -3,24 +3,23 @@ import GLExternal from './External'
import GLButton from './Button'
import GLDialog from './Dialog'
import GLTable from './Table'
import '@/theme/index.css'
import './theme.scss'
import '@/theme/theme.scss'
import '@/plugins/element.js'
// 存储组件列表
const components = [GLExternal, GLButton, GLDialog, GLTable]
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
const install = function(Vue) {
// 判断是否安装
if (install.installed) return
// 遍历注册全局组件
components.map(component => Vue.component(component.name, component))
}
// 判断是否是直接引入文件
// 判断是否安装
if (install.installed) return
// 遍历注册全局组件
components.map(component => Vue.component(component.name, component))
}
// 判断是否是直接引入文件
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue)
install(window.Vue)
}
export { GLExternal, GLButton, GLDialog, GLTable }
export default {
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
install
}
\ No newline at end of file
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
install
}
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!