colorfulIcon.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. const data = [
  2. 'alphabetical_sorting',
  3. 'alphabetical_sorting',
  4. 'alarm_clock',
  5. 'area_chart',
  6. 'approval',
  7. 'answers',
  8. 'approve',
  9. 'assistant',
  10. 'automotive',
  11. 'automatic',
  12. 'bad_decision',
  13. 'bar_chart',
  14. 'bearish',
  15. 'biomass',
  16. 'biohazard',
  17. 'binoculars',
  18. 'bookmark',
  19. 'briefcase',
  20. 'biotech',
  21. 'broken_link',
  22. 'business',
  23. 'bullish',
  24. 'business_contact',
  25. 'businesswoman',
  26. 'cable_release',
  27. 'calculator',
  28. 'businessman',
  29. 'calendar',
  30. 'butting_in',
  31. 'call_transfer',
  32. 'callback',
  33. 'camcorder',
  34. 'camera',
  35. 'camcorder_pro',
  36. 'cancel',
  37. 'camera_addon',
  38. 'camera_identificatio',
  39. 'capacitor',
  40. 'candle_sticks',
  41. 'checkmark',
  42. 'circuit',
  43. 'charge_battery',
  44. 'clear_filters',
  45. 'clapperboard',
  46. 'clock',
  47. 'close_up_mode',
  48. 'collaboration',
  49. 'cell_phone',
  50. 'collapse',
  51. 'collect',
  52. 'cloth',
  53. 'combo_chart',
  54. 'comments',
  55. 'conference_call',
  56. 'compact_camera',
  57. 'contacts',
  58. 'copyleft',
  59. 'copyright',
  60. 'crystal_oscillator',
  61. 'cursor',
  62. 'currency_exchange',
  63. 'customer_support',
  64. 'dam',
  65. 'data_backup',
  66. 'data_configuration',
  67. 'data_encryption',
  68. 'data_protection',
  69. 'data_recovery',
  70. 'database',
  71. 'data_sheet',
  72. 'debt',
  73. 'decision',
  74. 'delete_column',
  75. 'delete_database',
  76. 'department',
  77. 'delete_row',
  78. 'deployment',
  79. 'dislike',
  80. 'disapprove',
  81. 'disclaimer',
  82. 'display',
  83. 'document',
  84. 'do_not_insert',
  85. 'do_not_mix',
  86. 'do_not_inhale',
  87. 'donate',
  88. 'down',
  89. 'doughnut_chart',
  90. 'down_left',
  91. 'down_right',
  92. 'download',
  93. 'edit_image',
  94. 'electrical_sensor',
  95. 'electrical_threshold',
  96. 'electricity',
  97. 'electro_devices',
  98. 'electronics',
  99. 'empty_battery',
  100. 'empty_filter',
  101. 'empty_trash',
  102. 'end_call',
  103. 'engineering',
  104. 'entering_heaven_aliv',
  105. 'expand',
  106. 'export',
  107. 'expired',
  108. 'factory',
  109. 'factory_breakdown',
  110. 'external',
  111. 'faq',
  112. 'feed_in',
  113. 'file',
  114. 'feedback',
  115. 'film',
  116. 'filled_filter',
  117. 'filing_cabinet',
  118. 'film_reel',
  119. 'flash_auto',
  120. 'fine_print',
  121. 'flash_off',
  122. 'flash_on',
  123. 'flow_chart',
  124. 'folder',
  125. 'frame',
  126. 'full_battery',
  127. 'full_trash',
  128. 'gallery',
  129. 'generic_sorting_asc',
  130. 'generic_sorting_desc',
  131. 'genealogy',
  132. 'globe',
  133. 'good_decision',
  134. 'headset',
  135. 'grid',
  136. 'graduation_cap',
  137. 'heat_map',
  138. 'high_priority',
  139. 'high_battery',
  140. 'image_file',
  141. 'home',
  142. 'idea',
  143. 'import',
  144. 'in_transit',
  145. 'integrated_webcam',
  146. 'inspection',
  147. 'invite',
  148. 'internal',
  149. 'ipad',
  150. 'info',
  151. 'iphone',
  152. 'kindle',
  153. 'key',
  154. 'landscape',
  155. 'left',
  156. 'left_down',
  157. 'left_up',
  158. 'leave',
  159. 'like_placeholder',
  160. 'light_at_the_end_of_',
  161. 'library',
  162. 'line_chart',
  163. 'link',
  164. 'like',
  165. 'lock',
  166. 'list',
  167. 'lock_landscape',
  168. 'low_battery',
  169. 'lock_portrait',
  170. 'low_priority',
  171. 'make_decision',
  172. 'medium_priority',
  173. 'manager',
  174. 'menu',
  175. 'middle_battery',
  176. 'minus',
  177. 'missed_call',
  178. 'mind_map',
  179. 'mms',
  180. 'multiple_cameras',
  181. 'money_transfer',
  182. 'music',
  183. 'multiple_devices',
  184. 'multiple_smartphones',
  185. 'multiple_inputs',
  186. 'negative_dynamic',
  187. 'neutral_decision',
  188. 'night_landscape',
  189. 'news',
  190. 'neutral_trading',
  191. 'night_portrait',
  192. 'no_idea',
  193. 'next',
  194. 'no_video',
  195. 'nook',
  196. 'ok',
  197. 'org_unit',
  198. 'opened_folder',
  199. 'old_time_camera',
  200. 'online_support',
  201. 'organization',
  202. 'package',
  203. 'paid',
  204. 'parallel_tasks',
  205. 'overtime',
  206. 'panorama',
  207. 'phone',
  208. 'phone_android',
  209. 'photo_reel',
  210. 'pie_chart',
  211. 'picture',
  212. 'planner',
  213. 'plus',
  214. 'podium_with_audience',
  215. 'podium_without_speak',
  216. 'podium_with_speaker',
  217. 'previous',
  218. 'portrait_mode',
  219. 'positive_dynamic',
  220. 'privacy',
  221. 'process',
  222. 'puzzle',
  223. 'questions',
  224. 'print',
  225. 'radar_plot',
  226. 'rating',
  227. 'ratings',
  228. 'reading',
  229. 'redo',
  230. 'reading_ebook',
  231. 'refresh',
  232. 'registered_trademark',
  233. 'right',
  234. 'reuse',
  235. 'remove_image',
  236. 'right_down',
  237. 'right_up',
  238. 'rotate_to_portrait',
  239. 'rules',
  240. 'rotate_camera',
  241. 'rotate_to_landscape',
  242. 'ruler',
  243. 'scatter_plot',
  244. 'search',
  245. 'safe',
  246. 'self_service_kiosk',
  247. 'selfie',
  248. 'serial_tasks',
  249. 'sales_performance',
  250. 'settings',
  251. 'services',
  252. 'share',
  253. 'shipped',
  254. 'sim_card',
  255. 'shop',
  256. 'service_mark',
  257. 'sim_card_chip',
  258. 'signature',
  259. 'smartphone_tablet',
  260. 'sound_recording_copy',
  261. 'sms',
  262. 'speaker',
  263. 'slr_back_side',
  264. 'start',
  265. 'stack_of_photos',
  266. 'statistics',
  267. 'sports_mode',
  268. 'support',
  269. 'synchronize',
  270. 'switch_camera',
  271. 'survey',
  272. 'tablet_android',
  273. 'template',
  274. 'trademark',
  275. 'todo_list',
  276. 'touchscreen_smartpho',
  277. 'timeline',
  278. 'tree_structure',
  279. 'undo',
  280. 'up_left',
  281. 'two_smartphones',
  282. 'unlock',
  283. 'up',
  284. 'up_right',
  285. 'upload',
  286. 'video_call',
  287. 'video_file',
  288. 'view_details',
  289. 'video_projector',
  290. 'vip',
  291. 'voice_presentation',
  292. 'webcam',
  293. 'voicemail',
  294. 'workflow',
  295. 'about',
  296. 'accept_database',
  297. 'add_image',
  298. 'add_column',
  299. 'add_database',
  300. 'add_row',
  301. ]
  302. module.exports = [
  303. {
  304. url: '/colorfulIcon/getList',
  305. type: 'post',
  306. response(config) {
  307. const { title, pageNo = 1, pageSize = 72 } = config.body
  308. let mockList = data.filter((item) => {
  309. if (title && item.indexOf(title) < 0) return false
  310. return true
  311. })
  312. const pageList = mockList.filter(
  313. (item, index) =>
  314. index < pageSize * pageNo && index >= pageSize * (pageNo - 1)
  315. )
  316. return {
  317. code: 200,
  318. msg: 'success',
  319. totalCount: mockList.length,
  320. data: pageList,
  321. }
  322. },
  323. },
  324. ]