2020-10-30 17:58:23 +08:00
|
|
|
/**
|
|
|
|
* @file Echarts legend 的配置
|
|
|
|
*/
|
|
|
|
import {
|
|
|
|
textStyleControls,
|
2020-11-01 00:26:47 +08:00
|
|
|
buildOptions,
|
|
|
|
createHierarchy,
|
|
|
|
commonStyle,
|
|
|
|
viewport
|
2020-10-30 17:58:23 +08:00
|
|
|
} from './Common';
|
|
|
|
|
2020-11-01 00:26:47 +08:00
|
|
|
//@ts-ignore
|
|
|
|
const legendOptions = __inline('./option-parts/option.legend.json');
|
|
|
|
|
2020-10-30 17:58:23 +08:00
|
|
|
export default {
|
|
|
|
type: 'tabs',
|
|
|
|
tabs: [
|
|
|
|
{
|
|
|
|
title: '基础',
|
2020-11-01 00:26:47 +08:00
|
|
|
className: 'echarts-tab',
|
2021-06-24 10:18:12 +08:00
|
|
|
body: [createHierarchy('legend', buildOptions('', legendOptions))]
|
2020-11-01 00:26:47 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '位置',
|
2021-06-24 10:18:12 +08:00
|
|
|
body: [createHierarchy('legend', [viewport('', '图例')])]
|
2020-10-30 17:58:23 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '样式',
|
2021-06-24 10:18:12 +08:00
|
|
|
body: [createHierarchy('legend', commonStyle('', '图例'))]
|
2020-10-30 17:58:23 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '文字样式',
|
2021-06-24 10:18:12 +08:00
|
|
|
body: [
|
2020-11-03 12:43:33 +08:00
|
|
|
createHierarchy('legend', [
|
|
|
|
textStyleControls('textStyle', '图例'),
|
|
|
|
textStyleControls('pageTextStyle', '图例页信息')
|
|
|
|
])
|
2020-11-01 00:26:47 +08:00
|
|
|
]
|
2020-10-30 17:58:23 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '数据',
|
2021-06-24 10:18:12 +08:00
|
|
|
body: [createHierarchy('legend', [])]
|
2020-10-30 17:58:23 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|