/** * @file Echarts legend 的配置 */ import { textStyleControls, buildOptions, createHierarchy, commonStyle, viewport } from './Common'; //@ts-ignore const legendOptions = __inline('./option-parts/option.legend.json'); export default { type: 'tabs', tabs: [ { title: '基础', className: 'echarts-tab', controls: [createHierarchy('legend', buildOptions('', legendOptions))] }, { title: '位置', controls: [createHierarchy('legend', [viewport('', '图例')])] }, { title: '样式', controls: [createHierarchy('legend', commonStyle('', '图例'))] }, { title: '文字样式', controls: [ createHierarchy('legend', [ textStyleControls('textStyle', '图例'), textStyleControls('pageTextStyle', '图例页信息') ]) ] }, { title: '数据', controls: [createHierarchy('legend', [])] } ] };