vendor: amis 6.13.0 base (fork root)
This commit is contained in:
45
examples/components/EChartsEditor/Legend.tsx
Normal file
45
examples/components/EChartsEditor/Legend.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* @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',
|
||||
body: [createHierarchy('legend', buildOptions('', legendOptions))]
|
||||
},
|
||||
{
|
||||
title: '位置',
|
||||
body: [createHierarchy('legend', [viewport('', '图例')])]
|
||||
},
|
||||
{
|
||||
title: '样式',
|
||||
body: [createHierarchy('legend', commonStyle('', '图例'))]
|
||||
},
|
||||
{
|
||||
title: '文字样式',
|
||||
body: [
|
||||
createHierarchy('legend', [
|
||||
textStyleControls('textStyle', '图例'),
|
||||
textStyleControls('pageTextStyle', '图例页信息')
|
||||
])
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '数据',
|
||||
body: [createHierarchy('legend', [])]
|
||||
}
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user