|
@@ -1,27 +1,12 @@
|
|
|
-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))
|
|
|
+import Icon from 'data-room-ui/assets/images/bigScreenIcon/export'
|
|
|
+console.log(Icon)
|
|
|
export default function getComponentConfig (type) {
|
|
|
- // const _type = _.upperFirst(type)
|
|
|
- // const className = `com.gccloud.starter.lowcode.page.bigscreen.components.${_type}Chart`
|
|
|
switch (type) {
|
|
|
- case 'marquee':
|
|
|
- return {
|
|
|
- name: '跑马灯',
|
|
|
- title: '跑马灯',
|
|
|
- icon: iconNames[16],
|
|
|
- className:
|
|
|
- 'com.gccloud.dataroom.core.module.chart.components.ScreenTextChart',
|
|
|
- w: 150,
|
|
|
- h: 100,
|
|
|
- x: 0,
|
|
|
- y: 0,
|
|
|
- type
|
|
|
- }
|
|
|
case 'texts':
|
|
|
return {
|
|
|
name: '文本',
|
|
|
title: '文本',
|
|
|
- icon: iconNames[0],
|
|
|
+ icon: Icon.getNameList()[0],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTextChart',
|
|
|
w: 150,
|
|
@@ -34,7 +19,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '超链接',
|
|
|
title: '超链接',
|
|
|
- icon: iconNames[15],
|
|
|
+ icon: Icon.getNameList()[15],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenLinkChart',
|
|
|
w: 150,
|
|
@@ -47,7 +32,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '水平线',
|
|
|
title: '水平线',
|
|
|
- icon: iconNames[10],
|
|
|
+ icon: Icon.getNameList()[10],
|
|
|
component: null,
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
|
|
@@ -61,7 +46,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '垂直线',
|
|
|
title: '垂直线',
|
|
|
- icon: iconNames[11],
|
|
|
+ icon: Icon.getNameList()[11],
|
|
|
component: null,
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
|
|
@@ -76,7 +61,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '图片',
|
|
|
title: '图片',
|
|
|
- icon: iconNames[1],
|
|
|
+ icon: Icon.getNameList()[1],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenPictureChart',
|
|
|
w: 280,
|
|
@@ -89,7 +74,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '轮播表',
|
|
|
title: '轮播表',
|
|
|
- icon: iconNames[2],
|
|
|
+ icon: Icon.getNameList()[2],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenScrollBoardChart',
|
|
|
w: 600,
|
|
@@ -102,7 +87,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '排名表',
|
|
|
title: '排名表',
|
|
|
- icon: iconNames[3],
|
|
|
+ icon: Icon.getNameList()[3],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenScrollRankingChart',
|
|
|
w: 600,
|
|
@@ -115,7 +100,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '表格',
|
|
|
title: '表格',
|
|
|
- icon: iconNames[4],
|
|
|
+ icon: Icon.getNameList()[4],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTablesChart',
|
|
|
w: 600,
|
|
@@ -128,7 +113,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '当前时间',
|
|
|
title: '当前时间',
|
|
|
- icon: iconNames[6],
|
|
|
+ icon: Icon.getNameList()[6],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenCurrentTimeChart',
|
|
|
w: 380,
|
|
@@ -141,7 +126,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '倒计时',
|
|
|
title: '倒计时',
|
|
|
- icon: iconNames[7],
|
|
|
+ icon: Icon.getNameList()[7],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenTimeCountDownChart',
|
|
|
w: 500,
|
|
@@ -154,7 +139,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '外链',
|
|
|
title: '外链',
|
|
|
- icon: iconNames[8],
|
|
|
+ icon: Icon.getNameList()[8],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenIframeChart',
|
|
|
w: 600,
|
|
@@ -181,7 +166,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '播放器',
|
|
|
title: '播放器',
|
|
|
- icon: iconNames[12],
|
|
|
+ icon: Icon.getNameList()[12],
|
|
|
className:
|
|
|
'com.gccloud.dataroom.core.module.chart.components.ScreenVideoChart',
|
|
|
w: 600,
|
|
@@ -195,7 +180,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '输入框',
|
|
|
title: '输入框',
|
|
|
- icon: iconNames[13],
|
|
|
+ icon: Icon.getNameList()[13],
|
|
|
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenInputChart',
|
|
|
w: 180,
|
|
|
h: 40,
|
|
@@ -207,7 +192,7 @@ export default function getComponentConfig (type) {
|
|
|
return {
|
|
|
name: '按钮',
|
|
|
title: '按钮',
|
|
|
- icon: iconNames[14],
|
|
|
+ icon: Icon.getNameList()[14],
|
|
|
className: 'com.gccloud.dataroom.core.module.chart.components.ScreenButtonChart',
|
|
|
w: 80,
|
|
|
h: 40,
|
|
@@ -215,6 +200,19 @@ export default function getComponentConfig (type) {
|
|
|
y: 0,
|
|
|
type
|
|
|
}
|
|
|
+ case 'marquee':
|
|
|
+ return {
|
|
|
+ name: '跑马灯',
|
|
|
+ title: '跑马灯',
|
|
|
+ icon: Icon.getNameList()[16],
|
|
|
+ className:
|
|
|
+ 'com.gccloud.dataroom.core.module.chart.components.ScreenTextChart',
|
|
|
+ w: 150,
|
|
|
+ h: 30,
|
|
|
+ x: 0,
|
|
|
+ y: 0,
|
|
|
+ type
|
|
|
+ }
|
|
|
default:
|
|
|
return {}
|
|
|
}
|