change label show

This commit is contained in:
Fayyazi
2019-11-16 14:01:55 +03:30
parent ac9eae8b5c
commit b81ec9326f
37 changed files with 3602 additions and 239 deletions
+16
View File
@@ -0,0 +1,16 @@
import Vue from 'vue'
import upperFirst from 'lodash/upperFirst'
import camelCase from 'lodash/camelCase'
const requireComponent = require.context(
'@show/components', true, /\.vue$/
)
requireComponent.keys().forEach(fileName => {
const componentConfig = requireComponent(fileName)
const componentName = upperFirst(
camelCase(fileName.replace(/^\.\//, '').replace(/\.\w+$/, ''))
)
Vue.component(componentName, componentConfig.default || componentConfig)
})