options.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import _ from 'lodash-es';
  2. export const ModuleSizeMap = {
  3. 'width:450px;height:280px;': '标准尺寸(450*280)',
  4. 'width:450px;height:570px;': '纵向拉伸(450*570)',
  5. 'width:450px;height:860px;': '纵向填充(450*860)',
  6. 'width:1000px;height:280px;': '横向拉伸(1000*280)',
  7. 'width:1920px;height:280px;': '横向填充(1920*280)',
  8. };
  9. export const ModuleSizeOptions = _.map(ModuleSizeMap, (v, k) => ({
  10. value: k,
  11. label: v,
  12. }));
  13. export const ModuleVersionMap = {
  14. original: '原版',
  15. enhanced: '新版',
  16. };
  17. export const ModuleVersionOptions = _.map(ModuleVersionMap, (v, k) => ({
  18. value: k,
  19. label: v,
  20. }));
  21. export const ModulePositionMap = {
  22. 'display:none;': '不展示',
  23. 'top:60px;left:0;': '左上',
  24. 'top:350px;left:0;': '左中',
  25. 'top:640px;left:0;': '左下',
  26. 'top:60px;right:0;': '右上',
  27. 'top:350px;right:0;': '右中',
  28. 'top:640px;right:0;': '右下',
  29. 'top:640px;left:460px;': '中下',
  30. };
  31. export const ModulePositionOptions = _.map(ModulePositionMap, (v, k) => ({
  32. value: k,
  33. label: v,
  34. }));
  35. export const ModuleChartTypeMap = {
  36. pie: '饼状图',
  37. bar: '柱状图',
  38. line: '折线图',
  39. };
  40. export const ModuleChartTypeOptions = _.map(ModuleChartTypeMap, (v, k) => ({
  41. value: k,
  42. label: v,
  43. }));