getDecorationComponentsConfig.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /*
  2. * @description: 得到装饰组件配置
  3. */
  4. export default function getComponentConfig (type, classNameType) {
  5. const className =
  6. 'com.gccloud.dataroom.core.module.chart.components.ScreenDecorationChart'
  7. switch (type) {
  8. case 'decoration1':
  9. return {
  10. name: '装饰一',
  11. title: '装饰一',
  12. img: require('data-room-ui/Decorations/images/01.png'),
  13. component: null,
  14. className,
  15. w: 350,
  16. h: 30,
  17. x: 0,
  18. y: 0,
  19. type
  20. }
  21. case 'decoration2':
  22. return {
  23. name: '装饰三',
  24. title: '装饰三',
  25. img: require('data-room-ui/Decorations/images/03.png'),
  26. component: null,
  27. className,
  28. w: 350,
  29. h: 20,
  30. x: 0,
  31. y: 0,
  32. type
  33. }
  34. case 'decoration2Reverse':
  35. return {
  36. name: '装饰三(旋转)',
  37. title: '装饰三(旋转)',
  38. img: require('data-room-ui/Decorations/images/03_reverse.png'),
  39. component: null,
  40. className,
  41. w: 20,
  42. h: 350,
  43. x: 0,
  44. y: 0,
  45. type
  46. }
  47. case 'decoration3':
  48. return {
  49. name: '装饰二',
  50. title: '装饰二',
  51. img: require('data-room-ui/Decorations/images/02.png'),
  52. component: null,
  53. className,
  54. w: 350,
  55. h: 30,
  56. x: 0,
  57. y: 0,
  58. type
  59. }
  60. case 'decoration4':
  61. return {
  62. name: '装饰四',
  63. title: '装饰四',
  64. img: require('data-room-ui/Decorations/images/04.png'),
  65. component: null,
  66. className,
  67. w: 30,
  68. h: 320,
  69. x: 0,
  70. y: 0,
  71. type
  72. }
  73. case 'decoration4Reverse':
  74. return {
  75. name: '装饰四(旋转)',
  76. title: '装饰四(旋转)',
  77. img: require('data-room-ui/Decorations/images/04_reverse.png'),
  78. component: null,
  79. className,
  80. w: 320,
  81. h: 30,
  82. x: 0,
  83. y: 0,
  84. type
  85. }
  86. case 'decoration5':
  87. return {
  88. name: '装饰五',
  89. title: '装饰五',
  90. img: require('data-room-ui/Decorations/images/05.png'),
  91. component: null,
  92. className,
  93. w: 350,
  94. h: 50,
  95. x: 0,
  96. y: 0,
  97. type
  98. }
  99. case 'decoration6':
  100. return {
  101. name: '装饰六',
  102. title: '装饰六',
  103. img: require('data-room-ui/Decorations/images/06.png'),
  104. component: null,
  105. className,
  106. w: 350,
  107. h: 30,
  108. x: 0,
  109. y: 0,
  110. type
  111. }
  112. case 'decoration8':
  113. return {
  114. name: '装饰七',
  115. title: '装饰七',
  116. img: require('data-room-ui/Decorations/images/07.png'),
  117. component: null,
  118. className,
  119. w: 350,
  120. h: 50,
  121. x: 0,
  122. y: 0,
  123. type
  124. }
  125. case 'decoration8Reverse':
  126. return {
  127. name: '装饰七(旋转)',
  128. title: '装饰七(旋转)',
  129. img: require('data-room-ui/Decorations/images/07_reverse.png'),
  130. component: null,
  131. className,
  132. w: 350,
  133. h: 50,
  134. x: 0,
  135. y: 0,
  136. type
  137. }
  138. case 'decoration9':
  139. return {
  140. name: '装饰八',
  141. title: '装饰八',
  142. img: require('data-room-ui/Decorations/images/08.png'),
  143. component: null,
  144. className,
  145. w: 150,
  146. h: 150,
  147. x: 0,
  148. y: 0,
  149. type
  150. }
  151. case 'decoration10':
  152. return {
  153. name: '装饰九',
  154. title: '装饰九',
  155. img: require('data-room-ui/Decorations/images/09.png'),
  156. component: null,
  157. className,
  158. w: 350,
  159. h: 50,
  160. x: 0,
  161. y: 0,
  162. type
  163. }
  164. case 'decoration11':
  165. return {
  166. name: '装饰十',
  167. title: '装饰十',
  168. img: require('data-room-ui/Decorations/images/10.png'),
  169. component: null,
  170. className,
  171. w: 350,
  172. h: 50,
  173. x: 0,
  174. y: 0,
  175. type
  176. }
  177. default:
  178. return {}
  179. }
  180. }