mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 03:38:20 +08:00
fix: remove xml html node after compile
This commit is contained in:
parent
dd63aeacfa
commit
e77876b977
@ -276,8 +276,11 @@ export function createNodeFromXML(gen: string | ((node: any) => string)) {
|
||||
const xmlParser = document.createElement('div');
|
||||
xmlParser.innerHTML = target;
|
||||
const xml = xmlParser.children[0] as HTMLElement;
|
||||
const result = generateTarget(parseXML(xml));
|
||||
|
||||
return generateTarget(parseXML(xml));
|
||||
xmlParser.remove();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user