提交 e5a5c24a 编写于 作者: O Ovilia

fix(wxa): disable tooltip for weixin

上级 d372555a
......@@ -107,6 +107,10 @@ function assembleCssText(tooltipModel) {
* @constructor
*/
function TooltipContent(container, api) {
if (env.wxa) {
return null;
}
var el = document.createElement('div');
var zr = this._zr = api.getZr();
......
......@@ -33,7 +33,7 @@ export default echarts.extendComponentView({
},
render: function (tooltipModel, ecModel, api) {
if (env.node) {
if (env.node || env.wxa) {
return;
}
......
......@@ -791,13 +791,13 @@ function rollbackInsideStyle(style) {
export function getFont(opt, ecModel) {
// ecModel or default text style model.
var gTextStyleModel = ecModel || ecModel.getModel('textStyle');
return [
return zrUtil.trim([
// FIXME in node-canvas fontWeight is before fontStyle
opt.fontStyle || gTextStyleModel && gTextStyleModel.getShallow('fontStyle') || '',
opt.fontWeight || gTextStyleModel && gTextStyleModel.getShallow('fontWeight') || '',
(opt.fontSize || gTextStyleModel && gTextStyleModel.getShallow('fontSize') || 12) + 'px',
opt.fontFamily || gTextStyleModel && gTextStyleModel.getShallow('fontFamily') || 'sans-serif'
].join(' ');
].join(' '));
}
function animateOrSetProps(isUpdate, el, props, animatableModel, dataIndex, cb) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册