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