Skip to content

Commit

Permalink
fix: operator priority
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhangyu committed Jul 10, 2019
1 parent cf89967 commit ab0f933
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
5 changes: 2 additions & 3 deletions lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "highcharts-tree",
"version": "0.1.5-alpha.2",
"version": "0.1.5-alpha.3",
"description": "Create tree type in Highcharts",
"author": "paulhan <zhangyu.han@outlook.com>",
"repository": {
Expand Down
7 changes: 4 additions & 3 deletions src/index.ts
Expand Up @@ -55,9 +55,10 @@ export default (Highcharts: any) => {
textColor: "#fff",
width: 0, // set 0 to use node width
tooltipFormatter(item: TreeNodeData) {
return `${item.content.title}` + item.content.data
? `<br>${item.content.data.join("<br>")}`
: "";
return (
`${item.content.title}` +
(item.content.data ? `<br>${item.content.data.join("<br>")}` : "")
);
}
},
connector: {
Expand Down

0 comments on commit ab0f933

Please sign in to comment.