提交 6176bd22 编写于 作者: P plainheart

fix(tree): tweak access way to the type of symbolEl.

上级 df815b33
......@@ -379,9 +379,8 @@ function updateNode(data, dataIndex, symbolEl, group, seriesModel, seriesScope)
// Fix #12279.
// if the type of symbol is image,
// update symbol's data immediately but not wait until the next update rendering.
var symbolType = symbolEl._symbolType;
symbolType.indexOf('image://') === 0
&& symbolEl.updateData(data, dataIndex, seriesScope);
var symbolType = symbolEl.getSymbolPath().type;
symbolType === 'image' && symbolEl.updateData(data, dataIndex, seriesScope);
}
else {
symbolEl.updateData(data, dataIndex, seriesScope);
......@@ -644,4 +643,4 @@ function getEdgeShape(seriesScope, sourceLayout, targetLayout) {
cpy2: cpy2
};
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册