2020-10-29 19:52:25 +08:00
|
|
|
/**
|
|
|
|
* @file Echarts title 的配置
|
|
|
|
*/
|
|
|
|
|
2020-10-30 17:58:23 +08:00
|
|
|
import {
|
|
|
|
textStyleControls,
|
2020-11-01 00:26:47 +08:00
|
|
|
buildOptions,
|
|
|
|
commonStyle,
|
2020-10-30 17:58:23 +08:00
|
|
|
viewport,
|
|
|
|
createHierarchy
|
|
|
|
} from './Common';
|
2020-10-30 15:11:26 +08:00
|
|
|
|
2020-11-01 00:26:47 +08:00
|
|
|
//@ts-ignore
|
|
|
|
const titleOptions = __inline('./option-parts/option.title.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('title', buildOptions('', titleOptions))]
|
2020-10-30 17:58:23 +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('title', 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('title', [
|
|
|
|
textStyleControls('textStyle', '主标题'),
|
|
|
|
textStyleControls('subtextStyle', '副标题')
|
|
|
|
])
|
2020-10-30 17:58:23 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|