index.js 989 Bytes
/**
 * 用本地打包后的组件 文件测试 umd
 * 启动项目工程即可
 */

//创建的组件
import Vue from 'vue'
import {
  // 基础
  GLExternal,
  GLButton,
  GLDialog,
  GLTable,
  GLFooter,
  GLSearch,
  GLSearchItem,
  GLCombiForm,
  GLTableButton,
  GLTabs,
  GLTableOption,
  GLImage,
  GLDrawer,
  GLVideo,
  // 业务
  GLProvince,
  GLBcTest,
  GLEditor,
  GLFull
} from '../../dist/glsx-components.umd.min.js'
import '../../dist/glsx-components.css'

const permissions = {
  routes: [
    { path: '/', meta: { permissions: ['1-1-1-1', '2-1-1-1', '3-1-1-1'] } },
    { path: '/a', meta: {} }
  ],
  routerBase: ''
}
Vue.use(GLButton, permissions)
Vue.use(GLExternal)
Vue.use(GLDialog)
Vue.use(GLTable)
Vue.use(GLFooter)
Vue.use(GLSearch)
Vue.use(GLSearchItem)
Vue.use(GLCombiForm)
Vue.use(GLTableButton)
Vue.use(GLProvince)
Vue.use(GLBcTest)
Vue.use(GLEditor)
Vue.use(GLFull)
Vue.use(GLTabs)
Vue.use(GLTableOption)
Vue.use(GLImage)
Vue.use(GLDrawer)
Vue.use(GLVideo)