getComponentConfig.js 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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: 380,
  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: 500,
  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 'video':
  177. return {
  178. name: '播放器',
  179. title: '播放器',
  180. icon: Icon.getNameList()[12],
  181. className:
  182. 'com.gccloud.dataroom.core.module.chart.components.ScreenVideoChart',
  183. w: 600,
  184. h: 400,
  185. x: 0,
  186. y: 0,
  187. type
  188. }
  189. case 'input':
  190. return {
  191. name: '输入框',
  192. title: '输入框',
  193. icon: Icon.getNameList()[13],
  194. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenInputChart',
  195. w: 450,
  196. h: 60,
  197. x: 0,
  198. y: 0,
  199. type
  200. }
  201. // case 'button':
  202. // return {
  203. // name: '按钮',
  204. // title: '按钮',
  205. // icon: Icon.getNameList()[14],
  206. // className: 'com.gccloud.dataroom.core.module.chart.components.ScreenButtonChart',
  207. // w: 80,
  208. // h: 40,
  209. // x: 0,
  210. // y: 0,
  211. // type
  212. // }
  213. case 'marquee':
  214. return {
  215. name: '跑马灯',
  216. title: '跑马灯',
  217. icon: Icon.getNameList()[16],
  218. className:
  219. 'com.gccloud.dataroom.core.module.chart.components.ScreenMarqueeChart',
  220. w: 250,
  221. h: 150,
  222. x: 0,
  223. y: 0,
  224. type
  225. }
  226. case 'chartTab':
  227. return {
  228. name: '图表Tab页',
  229. title: '图表Tab页',
  230. icon: Icon.getNameList()[19],
  231. className: 'com.gccloud.dataroom.core.module.chart.components.ChartTabChart',
  232. w: 600,
  233. h: 400,
  234. x: 0,
  235. y: 0,
  236. type
  237. }
  238. case 'themeSelect':
  239. return {
  240. name: '主题切换',
  241. title: '主题切换',
  242. icon: Icon.getNameList()[20],
  243. className: 'com.gccloud.dataroom.core.module.chart.components.ThemeSelectChart',
  244. w: 200,
  245. h: 100,
  246. x: 0,
  247. y: 0,
  248. type
  249. }
  250. case 'select':
  251. return {
  252. name: '选择器',
  253. title: '选择器',
  254. icon: Icon.getNameList()[21],
  255. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenSelectChart',
  256. w: 450,
  257. h: 60,
  258. x: 0,
  259. y: 0,
  260. type
  261. }
  262. case 'timePicker':
  263. return {
  264. name: '时间选择器',
  265. title: '时间选择器',
  266. icon: Icon.getNameList()[22],
  267. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenTimePickerChart',
  268. w: 200,
  269. h: 60,
  270. x: 0,
  271. y: 0,
  272. type
  273. }
  274. case 'dateTimePicker':
  275. return {
  276. name: '日期时间选择器',
  277. title: '日期时间选择器',
  278. icon: Icon.getNameList()[23],
  279. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenDateTimePickerChart',
  280. w: 500,
  281. h: 60,
  282. x: 0,
  283. y: 0,
  284. type
  285. }
  286. case 'indicatorCard':
  287. return {
  288. name: '指标卡一',
  289. title: '指标卡一',
  290. icon: null,
  291. img: require('data-room-ui/assets/images/cardImg/card.png'),
  292. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndicatorCardChart',
  293. w: 400,
  294. h: 170,
  295. x: 0,
  296. y: 0,
  297. type
  298. }
  299. case 'indicatorCard2':
  300. return {
  301. name: '指标卡二',
  302. title: '指标卡二',
  303. icon: null,
  304. img: require('data-room-ui/assets/images/cardImg/card2.png'),
  305. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndicatorCardChart',
  306. w: 400,
  307. h: 170,
  308. x: 0,
  309. y: 0,
  310. type
  311. }
  312. case 'indexCard':
  313. return {
  314. name: '指标卡三',
  315. title: '指标卡三',
  316. icon: null,
  317. img: require('data-room-ui/assets/images/cardImg/indicard.png'),
  318. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart',
  319. w: 400,
  320. h: 170,
  321. x: 0,
  322. y: 0,
  323. type
  324. }
  325. case 'indexCard2':
  326. return {
  327. name: '指标卡四',
  328. title: '指标卡四',
  329. icon: null,
  330. img: require('data-room-ui/assets/images/cardImg/indcard2.png'),
  331. className: 'com.gccloud.dataroom.core.module.chart.components.ScreenIndexCardChart',
  332. w: 400,
  333. h: 170,
  334. x: 0,
  335. y: 0,
  336. type
  337. }
  338. default:
  339. return {}
  340. }
  341. }