123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import cloneDeep from 'lodash/cloneDeep'
- import getComponentConfig from 'data-room-ui/js/utils/getComponentConfig'
- import { setModules, dataModules } from 'data-room-ui/js/utils/configImport'
- const typeList = [
- 'texts',
- 'linkChart',
- 'horizontalLine',
- 'verticalLine',
- 'picture',
- 'timeCountDown',
- 'currentTime',
- 'iframeChart',
- 'digitalFlop',
- 'tables',
- 'screenScrollRanking',
- 'screenScrollBoard',
- 'video',
- 'input',
- 'button',
- 'marquee',
- 'themeSwitcher'
- ]
- let basicConfigList = []
- basicConfigList = typeList.map((type) => {
- return getComponentConfig(type)
- })
- basicConfigList = basicConfigList.map((item) => {
- return basicComponentsConfig(item)
- })
- export function basicComponentsConfig (item) {
- return {
- ...item,
- option: cloneDeep(setModules[item.type]),
- ...cloneDeep(dataModules[item.type])
- }
- }
- export default basicConfigList
|