You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
471 B
JavaScript
19 lines
471 B
JavaScript
const files = require.context('../BorderComponents/', true, /setting.js$/)
|
|
const plotList = []
|
|
// 获取plot配置
|
|
files.keys().forEach((key) => {
|
|
// ./折线图/基础折线图.js
|
|
// 取到 "基础折线图"
|
|
const config = files(key).default
|
|
plotList.push({
|
|
type: config.type,
|
|
setting: config.setting,
|
|
name: config.name,
|
|
isTitle: config.isTitle,
|
|
padding: config.padding
|
|
})
|
|
})
|
|
export default plotList
|
|
|
|
|