|
@@ -1,5 +1,5 @@
|
|
-import Icon from 'data-room-ui/assets/images/bigScreenIcon/export'
|
|
|
|
-// import _ from 'lodash'
|
|
|
|
|
|
+import * as iconData from 'data-room-ui/assets/symbols/bigScreenIcon/iconfont.json'
|
|
|
|
+const iconNames = iconData.glyphs.map(item => item.name).sort((a, b) => a.localeCompare(b))
|
|
export default function getComponentConfig (type) {
|
|
export default function getComponentConfig (type) {
|
|
// const _type = _.upperFirst(type)
|
|
// const _type = _.upperFirst(type)
|
|
// const className = `com.gccloud.starter.lowcode.page.bigscreen.components.${_type}Chart`
|
|
// const className = `com.gccloud.starter.lowcode.page.bigscreen.components.${_type}Chart`
|
|
@@ -8,7 +8,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '文本',
|
|
name: '文本',
|
|
title: '文本',
|
|
title: '文本',
|
|
- icon: Icon.getNameList()[0],
|
|
|
|
|
|
+ icon: iconNames[0],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTextChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTextChart',
|
|
w: 150,
|
|
w: 150,
|
|
@@ -21,7 +21,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '超链接',
|
|
name: '超链接',
|
|
title: '超链接',
|
|
title: '超链接',
|
|
- icon: Icon.getNameList()[15],
|
|
|
|
|
|
+ icon: iconNames[15],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenLinkChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenLinkChart',
|
|
w: 150,
|
|
w: 150,
|
|
@@ -34,7 +34,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '水平线',
|
|
name: '水平线',
|
|
title: '水平线',
|
|
title: '水平线',
|
|
- icon: Icon.getNameList()[10],
|
|
|
|
|
|
+ icon: iconNames[10],
|
|
component: null,
|
|
component: null,
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
|
|
@@ -48,7 +48,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '垂直线',
|
|
name: '垂直线',
|
|
title: '垂直线',
|
|
title: '垂直线',
|
|
- icon: Icon.getNameList()[11],
|
|
|
|
|
|
+ icon: iconNames[11],
|
|
component: null,
|
|
component: null,
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
|
|
@@ -63,7 +63,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '图片',
|
|
name: '图片',
|
|
title: '图片',
|
|
title: '图片',
|
|
- icon: Icon.getNameList()[1],
|
|
|
|
|
|
+ icon: iconNames[1],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenPictureChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenPictureChart',
|
|
w: 280,
|
|
w: 280,
|
|
@@ -76,7 +76,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '轮播表',
|
|
name: '轮播表',
|
|
title: '轮播表',
|
|
title: '轮播表',
|
|
- icon: Icon.getNameList()[2],
|
|
|
|
|
|
+ icon: iconNames[2],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenScrollBoardChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenScrollBoardChart',
|
|
w: 600,
|
|
w: 600,
|
|
@@ -89,7 +89,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '排名表',
|
|
name: '排名表',
|
|
title: '排名表',
|
|
title: '排名表',
|
|
- icon: Icon.getNameList()[3],
|
|
|
|
|
|
+ icon: iconNames[3],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenScrollRankingChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenScrollRankingChart',
|
|
w: 600,
|
|
w: 600,
|
|
@@ -102,7 +102,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '表格',
|
|
name: '表格',
|
|
title: '表格',
|
|
title: '表格',
|
|
- icon: Icon.getNameList()[4],
|
|
|
|
|
|
+ icon: iconNames[4],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTablesChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTablesChart',
|
|
w: 600,
|
|
w: 600,
|
|
@@ -115,7 +115,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '当前时间',
|
|
name: '当前时间',
|
|
title: '当前时间',
|
|
title: '当前时间',
|
|
- icon: Icon.getNameList()[6],
|
|
|
|
|
|
+ icon: iconNames[6],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenCurrentTimeChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenCurrentTimeChart',
|
|
w: 380,
|
|
w: 380,
|
|
@@ -128,7 +128,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '倒计时',
|
|
name: '倒计时',
|
|
title: '倒计时',
|
|
title: '倒计时',
|
|
- icon: Icon.getNameList()[7],
|
|
|
|
|
|
+ icon: iconNames[7],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTimeCountDownChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTimeCountDownChart',
|
|
w: 500,
|
|
w: 500,
|
|
@@ -141,7 +141,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '外链',
|
|
name: '外链',
|
|
title: '外链',
|
|
title: '外链',
|
|
- icon: Icon.getNameList()[8],
|
|
|
|
|
|
+ icon: iconNames[8],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenIframeChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenIframeChart',
|
|
w: 600,
|
|
w: 600,
|
|
@@ -168,7 +168,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '播放器',
|
|
name: '播放器',
|
|
title: '播放器',
|
|
title: '播放器',
|
|
- icon: Icon.getNameList()[12],
|
|
|
|
|
|
+ icon: iconNames[12],
|
|
className:
|
|
className:
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenVideoChart',
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenVideoChart',
|
|
w: 600,
|
|
w: 600,
|
|
@@ -182,7 +182,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '输入框',
|
|
name: '输入框',
|
|
title: '输入框',
|
|
title: '输入框',
|
|
- icon: Icon.getNameList()[13],
|
|
|
|
|
|
+ icon: iconNames[13],
|
|
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenInputChart',
|
|
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenInputChart',
|
|
w: 180,
|
|
w: 180,
|
|
h: 40,
|
|
h: 40,
|
|
@@ -194,7 +194,7 @@ export default function getComponentConfig (type) {
|
|
return {
|
|
return {
|
|
name: '按钮',
|
|
name: '按钮',
|
|
title: '按钮',
|
|
title: '按钮',
|
|
- icon: Icon.getNameList()[14],
|
|
|
|
|
|
+ icon: iconNames[14],
|
|
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenButtonChart',
|
|
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenButtonChart',
|
|
w: 80,
|
|
w: 80,
|
|
h: 40,
|
|
h: 40,
|