mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
fix: 调整echarts-stat使用方式,兼容vite打包异步非esm模块 (#5672)
This commit is contained in:
parent
2bdb5c6a97
commit
c1b1228f16
@ -308,7 +308,7 @@ export class Chart extends React.Component<ChartProps> {
|
|||||||
import('echarts/extension/bmap/bmap')
|
import('echarts/extension/bmap/bmap')
|
||||||
]).then(async ([echarts, ecStat]) => {
|
]).then(async ([echarts, ecStat]) => {
|
||||||
(window as any).echarts = echarts;
|
(window as any).echarts = echarts;
|
||||||
(window as any).ecStat = ecStat;
|
(window as any).ecStat = ecStat?.default || ecStat;
|
||||||
let theme = 'default';
|
let theme = 'default';
|
||||||
|
|
||||||
if (chartTheme) {
|
if (chartTheme) {
|
||||||
|
Loading…
Reference in New Issue
Block a user