@qy_better_lib/core 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils/echarts.js +1 -1
- package/package.json +1 -1
package/lib/utils/echarts.js
CHANGED
|
@@ -30,7 +30,7 @@ function init_chart(container, options, renderer = "canvas", theme) {
|
|
|
30
30
|
const imported = await import("echarts");
|
|
31
31
|
echarts = imported.default || imported;
|
|
32
32
|
}
|
|
33
|
-
const chart_dom = typeof container === "string" ? document.
|
|
33
|
+
const chart_dom = typeof container === "string" ? document.querySelector(container) : container;
|
|
34
34
|
if (!chart_dom) {
|
|
35
35
|
console.error("ECharts DOM容器未找到");
|
|
36
36
|
return null;
|