getComponentConfig.js 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. import Icon from 'data-room-ui/assets/images/bigScreenIcon/export'
  2. export default function getComponentConfig (type) {
  3. switch (type) {
  4. case 'texts':
  5. return {
  6. name: '文本',
  7. title: '文本',
  8. icon: Icon.getNameList()[0],
  9. className:
  10. 'com.gccloud.dataroom.core.module.chart.components.ScreenTextChart',
  11. w: 200,
  12. h: 60,
  13. x: 0,
  14. y: 0,
  15. type
  16. }
  17. case 'numbers':
  18. return {
  19. name: '数字',
  20. title: '数字',
  21. icon: Icon.getNameList()[28],
  22. className:
  23. 'com.gccloud.dataroom.core.module.chart.components.ScreenNumbersChart',
  24. w: 200,
  25. h: 60,
  26. x: 0,
  27. y: 0,
  28. type
  29. }
  30. case 'linkChart':
  31. return {
  32. name: '超链接',
  33. title: '超链接',
  34. icon: Icon.getNameList()[15],
  35. className:
  36. 'com.gccloud.dataroom.core.module.chart.components.ScreenLinkChart',
  37. w: 200,
  38. h: 60,
  39. x: 0,
  40. y: 0,
  41. type
  42. }
  43. case 'horizontalLine':
  44. return {
  45. name: '水平线',
  46. title: '水平线',
  47. icon: Icon.getNameList()[24],
  48. component: null,
  49. className:
  50. 'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
  51. w: 300,
  52. h: 40,
  53. x: 0,
  54. y: 0,
  55. type
  56. }
  57. case 'verticalLine':
  58. return {
  59. name: '垂直线',
  60. title: '垂直线',
  61. icon: Icon.getNameList()[25],
  62. component: null,
  63. className:
  64. 'com.gccloud.dataroom.core.module.chart.components.ScreenBorderChart',
  65. w: 40,
  66. h: 300,
  67. x: 0,
  68. y: 0,
  69. type
  70. }
  71. case 'picture':
  72. return {
  73. name: '图片',
  74. title: '图片',
  75. icon: Icon.getNameList()[1],
  76. className:
  77. 'com.gccloud.dataroom.core.module.chart.components.ScreenPictureChart',
  78. w: 280,
  79. h: 200,
  80. x: 0,
  81. y: 0,
  82. type
  83. }
  84. case 'screenScrollBoard':
  85. return {
  86. name: '轮播表',
  87. title: '轮播表',
  88. icon: Icon.getNameList()[2],
  89. className:
  90. 'com.gccloud.dataroom.core.module.chart.components.ScreenScrollBoardChart',
  91. w: 600,
  92. h: 400,
  93. x: 0,
  94. y: 0,
  95. type
  96. }
  97. case 'screenScrollRanking':
  98. return {
  99. name: '排名表',
  100. title: '排名表',
  101. icon: Icon.getNameList()[3],
  102. className:
  103. 'com.gccloud.dataroom.core.module.chart.components.ScreenScrollRankingChart',
  104. w: 600,
  105. h: 400,
  106. x: 0,
  107. y: 0,
  108. type
  109. }
  110. case 'tables':
  111. return {
  112. name: '表格',
  113. title: '表格',
  114. icon: Icon.getNameList()[4],
  115. className:
  116. 'com.gccloud.dataroom.core.module.chart.components.ScreenTablesChart',
  117. w: 600,
  118. h: 400,
  119. x: 0,
  120. y: 0,
  121. type
  122. }
  123. case 'currentTime':
  124. return {
  125. name: '当前时间',
  126. title: '当前时间',
  127. icon: Icon.getNameList()[6],
  128. className:
  129. 'com.gccloud.dataroom.core.module.chart.components.ScreenCurrentTimeChart',
  130. w: 300,
  131. h: 60,
  132. x: 0,
  133. y: 0,
  134. type
  135. }
  136. case 'timeCountDown':
  137. return {
  138. name: '倒计时',
  139. title: '倒计时',
  140. icon: Icon.getNameList()[7],
  141. className:
  142. 'com.gccloud.dataroom.core.module.chart.components.ScreenTimeCountDownChart',
  143. w: 300,
  144. h: 60,
  145. x: 0,
  146. y: 0,
  147. type
  148. }
  149. case 'iframeChart':
  150. return {
  151. name: '外链',
  152. title: '外链',
  153. icon: Icon.getNameList()[8],
  154. className:
  155. 'com.gccloud.dataroom.core.module.chart.components.ScreenIframeChart',
  156. w: 600,
  157. h: 400,
  158. x: 0,
  159. y: 0,
  160. type
  161. }
  162. case 'digitalFlop':
  163. return {
  164. name: '翻牌器',
  165. title: '翻牌器',
  166. icon: null,
  167. img: require('data-room-ui/BasicComponents/DigitalFlop/images/fanpaiqi.png'),
  168. className:
  169. 'com.gccloud.dataroom.core.module.chart.components.ScreenDigitalFlopChart',
  170. w: 800,
  171. h: 150,
  172. x: 0,
  173. y: 0,
  174. type
  175. }
  176. case 'customHtml':
  177. return {
  178. name: '自定义HTML',
  179. title: '自定义HTML',
  180. icon: Icon.getNameList()[29],
  181. className:
  182. 'com.gccloud.dataroom.core.module.chart.components.ScreenCustomHtmlChart',
  183. w: 600,
  184. h: 150,
  185. x: 0,
  186. y: 0,
  187. type
  188. }
  189. case 'video':
  190. return {
  191. name: '播放器',
  192. title: '播放器',
  193. icon: Icon.getNameList()[12],
  194. className:
  195. 'com.gccloud.dataroom.core.module.chart.components.ScreenVideoChart',
  196. w: 600,
  197. h: 400,
  198. x: 0,
  199. y: 0,
  200. type
  201. }
  202. case 'input':
  203. return {
  204. name: '输入框',
  205. title: '输入框',
  206. icon: Icon.getNameList()[13],
  207. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenInputChart',
  208. w: 450,
  209. h: 60,
  210. x: 0,
  211. y: 0,
  212. type
  213. }
  214. // case 'button':
  215. // return {
  216. // name: '按钮',
  217. // title: '按钮',
  218. // icon: Icon.getNameList()[14],
  219. // className: 'com.gccloud.dataroom.core.module.chart.components.ScreenButtonChart',
  220. // w: 80,
  221. // h: 40,
  222. // x: 0,
  223. // y: 0,
  224. // type
  225. // }
  226. case 'marquee':
  227. return {
  228. name: '跑马灯',
  229. title: '跑马灯',
  230. icon: Icon.getNameList()[16],
  231. className:
  232. 'com.gccloud.dataroom.core.module.chart.components.ScreenMarqueeChart',
  233. w: 250,
  234. h: 150,
  235. x: 0,
  236. y: 0,
  237. type
  238. }
  239. case 'chartTab':
  240. return {
  241. name: '图表Tab页',
  242. title: '图表Tab页',
  243. icon: Icon.getNameList()[19],
  244. className: 'com.gccloud.dataroom.core.module.chart.components.ChartTabChart',
  245. w: 600,
  246. h: 400,
  247. x: 0,
  248. y: 0,
  249. type
  250. }
  251. case 'themeSelect':
  252. return {
  253. name: '主题切换',
  254. title: '主题切换',
  255. icon: Icon.getNameList()[20],
  256. className: 'com.gccloud.dataroom.core.module.chart.components.ThemeSelectChart',
  257. w: 200,
  258. h: 100,
  259. x: 0,
  260. y: 0,
  261. type
  262. }
  263. case 'select':
  264. return {
  265. name: '选择器',
  266. title: '选择器',
  267. icon: Icon.getNameList()[21],
  268. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenSelectChart',
  269. w: 450,
  270. h: 60,
  271. x: 0,
  272. y: 0,
  273. type
  274. }
  275. case 'timePicker':
  276. return {
  277. name: '时间选择器',
  278. title: '时间选择器',
  279. icon: Icon.getNameList()[22],
  280. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenTimePickerChart',
  281. w: 200,
  282. h: 60,
  283. x: 0,
  284. y: 0,
  285. type
  286. }
  287. case 'dateTimePicker':
  288. return {
  289. name: '日期时间选择器',
  290. title: '日期时间选择器',
  291. icon: Icon.getNameList()[23],
  292. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenDateTimePickerChart',
  293. w: 500,
  294. h: 60,
  295. x: 0,
  296. y: 0,
  297. type
  298. }
  299. case 'indicatorCard':
  300. return {
  301. name: '指标卡一',
  302. title: '指标卡一',
  303. icon: null,
  304. img: require('data-room-ui/assets/images/cardImg/card.png'),
  305. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndicatorCardChart',
  306. w: 300,
  307. h: 114,
  308. x: 0,
  309. y: 0,
  310. type
  311. }
  312. case 'indicatorCard2':
  313. return {
  314. name: '指标卡二',
  315. title: '指标卡二',
  316. icon: null,
  317. img: require('data-room-ui/assets/images/cardImg/card2.png'),
  318. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndicatorCardChart',
  319. w: 300,
  320. h: 114,
  321. x: 0,
  322. y: 0,
  323. type
  324. }
  325. case 'indexCard':
  326. return {
  327. name: '指标卡三',
  328. title: '指标卡三',
  329. icon: null,
  330. img: require('data-room-ui/assets/images/cardImg/indicard.png'),
  331. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart',
  332. w: 300,
  333. h: 114,
  334. x: 0,
  335. y: 0,
  336. type
  337. }
  338. case 'indexCard2':
  339. return {
  340. name: '指标卡四',
  341. title: '指标卡四',
  342. icon: null,
  343. img: require('data-room-ui/assets/images/cardImg/indcard2.png'),
  344. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart',
  345. w: 300,
  346. h: 114,
  347. x: 0,
  348. y: 0,
  349. type
  350. }
  351. default:
  352. return {}
  353. }
  354. }