This commit is contained in:
Vanessa 2022-06-02 11:52:42 +08:00
parent acf40dc695
commit 4f68ca55a0
3 changed files with 61 additions and 35 deletions

View file

@ -14,7 +14,8 @@ export const chartRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
return;
}
if (echartsElements.length > 0) {
addScript(`${cdn}/js/echarts/echarts.min.js?v=0.0.0`, "protyleEchartsScript").then(() => {
addScript(`${cdn}/js/echarts/echarts.min.js?v=5.3.2`, "protyleEchartsScript").then(() => {
addScript(`${cdn}/js/echarts/echarts-gl.min.js?v=2.0.9`, "protyleEchartsGLScript").then(() => {
let width: number = undefined;
if (echartsElements[0].firstElementChild.clientWidth === 0) {
const tabElement = hasClosestByClassName(echartsElements[0], "layout-tab-container", true);
@ -52,5 +53,6 @@ export const chartRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {
}
});
});
});
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long