3328350766
6 天以前 761eb03d6b3bebd0b197179564c84d89d3d12a0d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 得到边框组件的远程列表
// import _ from 'lodash'
 
const files = require.context('../BorderComponents/', true, /index.vue$/)
const borderComponents = []
 
files.keys().forEach(key => {
  const title = key.split('/')[1].replace('.vue', '')
  const img = require(`../BorderComponents/${title}/component.png`)
  borderComponents.push({
    title:title,
    img,
  })
})
// 抛出边框组件
export default borderComponents