amis/examples/components/EChartsEditor/Tooltip.tsx

30 lines
518 B
TypeScript
Raw Normal View History

/**
2020-11-02 19:39:21 +08:00
* @file Echarts title
*/
import {
textStyleControls,
2020-11-02 19:39:21 +08:00
buildOptions,
commonStyle,
viewport,
createHierarchy
} from './Common';
2020-11-02 19:39:21 +08:00
//@ts-ignore
const tooltipOptions = __inline('./option-parts/option.tooltip.json');
// 给其他组件里的 tooltip 使用的
export const buildTooltip = (scope: string) => {
return buildOptions(scope, tooltipOptions);
};
export default {
type: 'tabs',
2020-11-02 19:39:21 +08:00
tabs: [
{
title: '基础',
body: buildOptions('tooltip.', tooltipOptions)
2020-11-02 19:39:21 +08:00
}
]
};