index.js 288 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 import GLButton from './src/index.js' // 为组件提供 install 安装方法,供按需引入 GLButton.install = function(Vue, permissions) { Vue.prototype.$GLBUTTION_PERMISSIONS = permissions Vue.component(GLButton.name, GLButton) } // 默认导出组件 export default GLButton