未验证 提交 a4c104d5 编写于 作者: J Jeff Wang 提交者: GitHub

If any label in the tooltip overflows, hide it. (#445)

上级 ec3ca348
......@@ -662,7 +662,7 @@ export default {
Relative: 4,
};
let widthPropMap = {
Run: 40,
Run: 60,
Time: 120,
Step: 40,
Value: 50,
......@@ -694,13 +694,13 @@ export default {
let content = transformedData.map((item) => {
let str = '<tr style="font-size:12px;">';
str += Object.keys(item).map((val) => {
return '<td style="padding: 0 4px">' + item[val] + '</td>';
return '<td style="padding: 0 4px; overflow: hidden;">' + item[val] + '</td>';
}).join('');
str += '</tr>';
return str;
}).join('');
return '<table style="text-align: left;table-layout: fixed;width: 480px;"><thead>' + headerHtml + '</thead>'
return '<table style="text-align: left;table-layout: fixed;width: 500px;"><thead>' + headerHtml + '</thead>'
+ '<tbody>' + content + '</tbody><table>';
},
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册