| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import _ from 'lodash-es';
- export const ModuleSizeMap = {
- 'width:450px;height:280px;': '标准尺寸(450*280)',
- 'width:450px;height:570px;': '纵向拉伸(450*570)',
- 'width:450px;height:860px;': '纵向填充(450*860)',
- 'width:1000px;height:280px;': '横向拉伸(1000*280)',
- 'width:1920px;height:280px;': '横向填充(1920*280)',
- };
- export const ModuleSizeOptions = _.map(ModuleSizeMap, (v, k) => ({
- value: k,
- label: v,
- }));
- export const ModuleVersionMap = {
- original: '原版',
- enhanced: '新版',
- };
- export const ModuleVersionOptions = _.map(ModuleVersionMap, (v, k) => ({
- value: k,
- label: v,
- }));
- export const ModulePositionMap = {
- 'display:none;': '不展示',
- 'top:60px;left:0;': '左上',
- 'top:350px;left:0;': '左中',
- 'top:640px;left:0;': '左下',
- 'top:60px;right:0;': '右上',
- 'top:350px;right:0;': '右中',
- 'top:640px;right:0;': '右下',
- 'top:640px;left:460px;': '中下',
- };
- export const ModulePositionOptions = _.map(ModulePositionMap, (v, k) => ({
- value: k,
- label: v,
- }));
- export const ModuleChartTypeMap = {
- pie: '饼状图',
- bar: '柱状图',
- line: '折线图',
- };
- export const ModuleChartTypeOptions = _.map(ModuleChartTypeMap, (v, k) => ({
- value: k,
- label: v,
- }));
|