diff --git a/packages/lego/example/BarLineDemo/demo8.tsx b/packages/lego/example/BarLineDemo/demo8.tsx index f0879483da..844d7d97c2 100644 --- a/packages/lego/example/BarLineDemo/demo8.tsx +++ b/packages/lego/example/BarLineDemo/demo8.tsx @@ -13,6 +13,7 @@ export default () => { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { yAxis={[{ name: '万元' }, { name: '%' }]} lineData={{ name: '同比增长率', data: [12, 11] }} barData={{ name: '运费', data: [500, 584] }} - style={{ height: 500 }} + style={{ height: 500, width: '100%' }} /> diff --git a/packages/lego/example/CircularSolidPieDemo/demo3.tsx b/packages/lego/example/CircularSolidPieDemo/demo3.tsx index 34ee023a63..213a75a147 100644 --- a/packages/lego/example/CircularSolidPieDemo/demo3.tsx +++ b/packages/lego/example/CircularSolidPieDemo/demo3.tsx @@ -21,6 +21,7 @@ export default () => { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { return ( <> - setVisible(false)} > + setVisible(false)} > ); diff --git a/packages/lego/example/MultiHorizontalBarDemo/demo3.tsx b/packages/lego/example/MultiHorizontalBarDemo/demo3.tsx index 67f023bb2c..0137b3839b 100644 --- a/packages/lego/example/MultiHorizontalBarDemo/demo3.tsx +++ b/packages/lego/example/MultiHorizontalBarDemo/demo3.tsx @@ -13,6 +13,7 @@ export default () => { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { ]; const indicatorData = [ - { name: '占地面积', max: 100, unit: '亩' }, - { name: '高标库面积', max: 100, unit: '万平方米' }, - { name: '充电桩数量', max: 100, unit: '个' }, - { name: '车辆进出数量', max: 500, unit: '辆' }, - { name: '平均停留时长', max: 100, unit: '分钟' }, + { name: '占地面积', max: '100', unit: '亩' }, + { name: '高标库面积', max: '100', unit: '万平方米' }, + { name: '充电桩数量', max: '100', unit: '个' }, + { name: '车辆进出数量', max: '500', unit: '辆' }, + { name: '平均停留时长', max: '100', unit: '分钟' }, ]; return ( @@ -33,6 +33,7 @@ export default () => { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={650} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 > { footer={null} width={750} bodyStyle={{ backgroundColor: '#040727' }} + getContainer={false} // <- 这个属性如果不加,那第一次打开的时候,里面的echarts图表不能正常渲染 >