提交 4cf7f164 编写于 作者: O Ovilia

fix: set default position to be bottom

上级 756a5b9a
......@@ -170,7 +170,8 @@ export default echarts.extendComponentView({
name: iconName,
title: titles[iconName],
$vars: ['name', 'title']
}
},
position: tooltipModel.get('position', true) || 'bottom'
}, tooltipModel.option));
}
......
......@@ -82,7 +82,7 @@ under the License.
tooltip: {
show: true,
formatter: function (param) {
return param.title;
return '<div>' + param.title + '</div><div class="triangle"></div>';
},
backgroundColor: '#222',
textStyle: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册