options.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import _ from 'lodash-es';
  2. export const ModuleSizeMap = {
  3. '标准尺寸(450*280)': 'width:450px;height:280px;',
  4. '纵向拉伸(450*570)': 'width:450px;height:570px;',
  5. '纵向填充(450*860)': 'width:450px;height:860px;',
  6. '横向拉伸(1000*280)': 'width:1000px;height:280px;',
  7. '横向填充(1920*280)': 'width:1920px;height:280px;',
  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. // }));