|
|
|
@ -18,27 +18,67 @@ const getOption = (e) => {
|
|
|
|
|
gridBottom: 10,
|
|
|
|
|
gridRight: 10,
|
|
|
|
|
xName: '',
|
|
|
|
|
xNameLocation: 'end',
|
|
|
|
|
xAxisLineShow: true,
|
|
|
|
|
boundaryGap: true,
|
|
|
|
|
xAxisLineColor: '#DCE2E8',
|
|
|
|
|
xAxisTickShow: true,
|
|
|
|
|
xAxisTickColor: '#DCE2E8',
|
|
|
|
|
xAxisLabelShow: true,
|
|
|
|
|
xAxisLabelInterval: false,
|
|
|
|
|
xAxisLabelInside: false,
|
|
|
|
|
xAxisLabelRotate: 0,
|
|
|
|
|
xAxisLabelFormatter: '',
|
|
|
|
|
xAxisLabelColor: '#fff',
|
|
|
|
|
xAxisLabelFontSize: 12,
|
|
|
|
|
xAxisLabelMargin: 3,
|
|
|
|
|
boundaryGap: true,
|
|
|
|
|
xAxisSplitLineShow: false,
|
|
|
|
|
xAxisSplitLineColor: '#DCE2E8',
|
|
|
|
|
xAxisSplitLineType: 'solid',
|
|
|
|
|
yName: '',
|
|
|
|
|
tooltip: true,
|
|
|
|
|
legend: true
|
|
|
|
|
};
|
|
|
|
|
} else if (e === 'bar' || e === 'multiBars') {
|
|
|
|
|
return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true };
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
|
yNames: [],
|
|
|
|
|
gridTop: 30,
|
|
|
|
|
gridLeft: 5,
|
|
|
|
|
gridBottom: 10,
|
|
|
|
|
gridRight: 10,
|
|
|
|
|
xName: '',
|
|
|
|
|
yName: '',
|
|
|
|
|
tooltip: true,
|
|
|
|
|
legend: true
|
|
|
|
|
};
|
|
|
|
|
} else if (e === 'backgroundBar') {
|
|
|
|
|
return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true,backgroundColor:'rgba(180, 180, 180, 0.2)' };
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
|
yNames: [],
|
|
|
|
|
gridTop: 30,
|
|
|
|
|
gridLeft: 5,
|
|
|
|
|
gridBottom: 10,
|
|
|
|
|
gridRight: 10,
|
|
|
|
|
xName: '',
|
|
|
|
|
yName: '',
|
|
|
|
|
tooltip: true,
|
|
|
|
|
legend: true,
|
|
|
|
|
backgroundColor: 'rgba(180, 180, 180, 0.2)'
|
|
|
|
|
};
|
|
|
|
|
} else if (e === 'curve' || e === 'multiCurves') {
|
|
|
|
|
return { title: '', yNames: [], gridTop: 30, gridLeft: 5, gridBottom: 10, gridRight: 10, xName: '', yName: '', tooltip:true, legend:true };
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
|
yNames: [],
|
|
|
|
|
gridTop: 30,
|
|
|
|
|
gridLeft: 5,
|
|
|
|
|
gridBottom: 10,
|
|
|
|
|
gridRight: 10,
|
|
|
|
|
xName: '',
|
|
|
|
|
yName: '',
|
|
|
|
|
tooltip: true,
|
|
|
|
|
legend: true
|
|
|
|
|
};
|
|
|
|
|
} else if (e === 'lineBar') {
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
@ -83,7 +123,7 @@ const getOption = (e) => {
|
|
|
|
|
} else if (e === 'video') {
|
|
|
|
|
return { videoSrc: '' };
|
|
|
|
|
} else if (e === 'timeline') {
|
|
|
|
|
return { color: '#fff',timestampColor: '#fff', field: 'content', timestampField: 'timestamp', isTimestamp: true };
|
|
|
|
|
return { color: '#fff', timestampColor: '#fff', field: 'content', timestampField: 'timestamp', isTimestamp: true };
|
|
|
|
|
} else if (e === 'scrollTable' || e === 'table') {
|
|
|
|
|
return {
|
|
|
|
|
tableOptions: [],
|
|
|
|
@ -94,7 +134,7 @@ const getOption = (e) => {
|
|
|
|
|
tdColor: ['#fff'],
|
|
|
|
|
thBgColor: '#fff',
|
|
|
|
|
tdBgColor: ['#000']
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
} else if (e === 'carousel') {
|
|
|
|
|
return { swiperOptions: {}, imageFit: 'contain', carouselImages: [] };
|
|
|
|
|
} else if (e === 'background') {
|
|
|
|
@ -204,5 +244,5 @@ export const options = {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},getId
|
|
|
|
|
}, getId
|
|
|
|
|
};
|
|
|
|
|