修改ui
This commit is contained in:
@@ -152,10 +152,14 @@ export default {
|
||||
年: `${year}良率`,
|
||||
}[this.period];
|
||||
console.log(vt[0]);
|
||||
let titleSize = this.fontSize(0.35)
|
||||
let subtitleSize = this.fontSize(0.14)
|
||||
const t = getOptions({
|
||||
// single,
|
||||
color: this.color == 1 ? "#4CF0E8" : "#1065ff",
|
||||
titleValue,
|
||||
titleSize,
|
||||
subtitleSize,
|
||||
subtitle,
|
||||
yesterday,
|
||||
currentName: items[0].label,
|
||||
@@ -261,6 +265,12 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
fontSize(res){
|
||||
let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
||||
if (!clientWidth) return;
|
||||
let fontSize = 100 * (clientWidth / 1920);
|
||||
return res * fontSize;
|
||||
},
|
||||
formatNumber(num) {
|
||||
console.log(num);
|
||||
// 判断是否为整数
|
||||
@@ -290,9 +300,9 @@ export default {
|
||||
// justify-content: center;
|
||||
gap: 3px;
|
||||
backdrop-filter: blur(24px);
|
||||
.cities {
|
||||
height: 40px;
|
||||
}
|
||||
// .cities {
|
||||
// // height: 40px;
|
||||
// }
|
||||
|
||||
.chart {
|
||||
// margin-left: 5%;
|
||||
@@ -300,12 +310,12 @@ export default {
|
||||
flex: 1 1 auto;
|
||||
padding: 0 20%;
|
||||
/* margin: 10%; */
|
||||
height: 16vh;
|
||||
height: 0;
|
||||
/* min-width: 300px; */
|
||||
align-self: stretch;
|
||||
}
|
||||
.legend {
|
||||
height: 80px;
|
||||
// height: 80px;
|
||||
display: flex;
|
||||
color: #fff;
|
||||
justify-content: flex-end;
|
||||
|
||||
Reference in New Issue
Block a user