mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
46 lines
958 B
TypeScript
46 lines
958 B
TypeScript
/**
|
|
* @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', [])]
|
|
}
|
|
]
|
|
};
|