amis/examples/components/EChartsEditor/Tooltip.tsx
2020-11-03 12:43:33 +08:00

30 lines
522 B
TypeScript

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