feat: 更换背景图片
This commit is contained in:
parent
34fa7a1c1a
commit
5ac8aca6df
BIN
apps/web-antd/src/assets/222.jpg
Normal file
BIN
apps/web-antd/src/assets/222.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 207 KiB |
BIN
apps/web-antd/src/assets/222.png
Normal file
BIN
apps/web-antd/src/assets/222.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 608 KiB |
@ -168,14 +168,19 @@ const updateTime = () => {
|
|||||||
const initBarChart = () => {
|
const initBarChart = () => {
|
||||||
if (!barChart.value) return
|
if (!barChart.value) return
|
||||||
|
|
||||||
const chart = echarts.init(barChart.value)
|
const myChart = echarts.init(barChart.value);
|
||||||
const option = getThreeDBarOption({
|
myChart.setOption({
|
||||||
xData: ['A区', 'B区', 'C区', 'D区'],
|
tooltip: {},
|
||||||
yData: [320, 452, 688, 400]
|
xAxis: { data: ['A', 'B', 'C', 'D'] },
|
||||||
})
|
yAxis: {},
|
||||||
chart.setOption(option)
|
series: [
|
||||||
barChartInstance = chart
|
{
|
||||||
addChartToResizeManager(chart)
|
name: '销量',
|
||||||
|
type: 'bar',
|
||||||
|
data: [5, 20, 36, 10, 10, 20],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化电力图表
|
// 初始化电力图表
|
||||||
@ -601,6 +606,9 @@ onBeforeUnmount(() => {
|
|||||||
min-height: unset;
|
min-height: unset;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
.bar-chart{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.second{
|
.second{
|
||||||
height: 12rem;
|
height: 12rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user