提交 63d8bdba 编写于 作者: L lang

hideTip action

上级 50b73b8e
......@@ -5,6 +5,15 @@ define(function (require) {
require('./tooltip/TooltipView');
// Show tip action
/**
* @action
* @property {string} type
* @property {number} seriesIndex
* @property {number} dataIndex
* @property {number} [x]
* @property {number} [y]
*/
require('../echarts').registerAction(
{
type: 'showTip',
......@@ -14,4 +23,14 @@ define(function (require) {
// noop
function () {}
);
// Hide tip action
require('../echarts').registerAction(
{
type: 'hideTip',
event: 'hideTip',
update: 'none'
},
// noop
function () {}
);
});
\ No newline at end of file
......@@ -170,6 +170,7 @@ define(function (require) {
this._tooltipContent = tooltipContent;
api.on('showTip', this._manuallyShowTip, this);
api.on('hideTip', this._hide, this);
},
render: function (tooltipModel, ecModel, api) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册