vendor: amis 6.13.0 base (fork root)
This commit is contained in:
42
examples/components/EChartsEditor/Title.tsx
Normal file
42
examples/components/EChartsEditor/Title.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* @file Echarts title 的配置
|
||||
*/
|
||||
|
||||
import {
|
||||
textStyleControls,
|
||||
buildOptions,
|
||||
commonStyle,
|
||||
viewport,
|
||||
createHierarchy
|
||||
} from './Common';
|
||||
|
||||
//@ts-ignore
|
||||
const titleOptions = __inline('./option-parts/option.title.json');
|
||||
|
||||
export default {
|
||||
type: 'tabs',
|
||||
tabs: [
|
||||
{
|
||||
title: '内容',
|
||||
className: 'echarts-tab',
|
||||
body: [createHierarchy('title', buildOptions('', titleOptions))]
|
||||
},
|
||||
{
|
||||
title: '位置',
|
||||
body: [createHierarchy('legend', [viewport('', '标题')])]
|
||||
},
|
||||
{
|
||||
title: '样式',
|
||||
body: [createHierarchy('title', commonStyle('', '标题'))]
|
||||
},
|
||||
{
|
||||
title: '文字样式',
|
||||
body: [
|
||||
createHierarchy('title', [
|
||||
textStyleControls('textStyle', '主标题'),
|
||||
textStyleControls('subtextStyle', '副标题')
|
||||
])
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user