zx-修改了v-label-ctx的字体大小

prod
张雄 3 years ago
parent dccfc995a5
commit d2c7630d71

@ -67,42 +67,44 @@ export default {
border-bottom: 1px solid #0F2A4D;
.d1 {
display: block;
width: 34%;
.s1 {
display: block;
width: 100%;
height: 4px;
width: 66%;
height: 8px;
background: red;
}
.s2 {
display: block;
font-size: 14px;
font-size: 18px;
color: #fff;
margin-top: 10px;
}
}
.d2 {
width: 20%;
.s1 {
display: block;
font-size: 12px;
font-size: 16px;
color: #7a8289;
}
.s2 {
display: block;
font-family: Bebas;
font-size: 14px;
font-size: 18px;
color: #fff;
}
}
.d3 {
.s1 {
display: block;
font-size: 12px;
font-size: 16px;
color: #7a8289;
}
.s2 {
display: block;
font-family: Bebas;
font-size: 14px;
font-size: 18px;
color: #fff;
}
}

@ -22,7 +22,7 @@
><span class="s2">负面</span>
</div>
</div>
<div class="bd-inner">
<div class="bd-inner" style="margin-left: 18px">
<roundata
v-for="(item,index) in list"
:key="index"

@ -11,9 +11,9 @@ import { bigNumberTransform } from "@/utils/gol/dataTool"
export default function createOpt(dx,ds) {
return {
grid: {
top: "16px",
top: "10%",
left: "16px",
right: "28px",
right: "5%",
bottom: "16px",
containLabel: true,
},

@ -19,10 +19,10 @@
<span style="color: #3373cc">{{eventList[0]}}</span>
</v-label-div>
<div class="d1x">
<div class="dd1">
<div class="dd1" style="width:53%">
<v-echarts :opt="opt1"></v-echarts>
</div>
<div class="dd2">
<div class="dd2" style="width:47%">
<v-label-ctx
v-for="(item, index) in showData1"
:key="index"
@ -45,10 +45,10 @@
<span style="color: #54bf93">{{eventList[1]}}</span>
</v-label-div>
<div class="d1x">
<div class="dd1">
<div class="dd1" style="width:53%">
<v-echarts :opt="opt2"> </v-echarts>
</div>
<div class="dd2" style="margin-right: 16px">
<div class="dd2" style="width:47%;margin-right: 16px">
<v-label-ctx
v-for="(item, index) in showData2"
:key="index"

@ -43,7 +43,7 @@ export default function createOpt1(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 28,
lineHeight: 32,
color: "#ffff",
},
emphasis: {

@ -43,7 +43,7 @@ export default function createOpt2(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 28,
lineHeight: 32,
color: "#ffff",
},
emphasis: {

@ -9,7 +9,7 @@
*/
import * as echarts from "echarts";
import {bigNumberTransform} from "@/utils/gol/dataTool"
let colors = ['#3172ca', '#459c97', '#ab8921']
let colors = ['#3373CC', '#54BF93', '#CC9D12']
function createData(ds = []) {
let arr = [];
for (let i = 0; i < ds.length; i++) {

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 48
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '24',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 48
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '24',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '20',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '20',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -51,13 +51,14 @@ export default function createOpt(ds = []) {
show: false,
position: 'center',
color: "#ffff",
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '20',
color: "#ffff",
fontWeight: "bold",
formatter: function (p) {
return `${p.data.name}\n${p.percent}%\n${p.data.value}`
}

@ -41,13 +41,14 @@ export default function createOpt(ds=[], colors=[]) {
show: false,
position: 'center',
color: "#ffff",
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '20',
color: "#ffff",
fontWeight: "bold",
formatter: function (p) {
return `${p.data.name}\n${p.percent}%\n${p.data.value}`
}

@ -40,7 +40,7 @@ export default function createOpt(ds = [], colors= []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {

@ -41,13 +41,14 @@ export default function createOpt(ds=[], colors=[]) {
show: false,
position: 'center',
color: "#ffff",
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '20',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {
return `${p.data.name}\n${p.percent}%\n${p.data.value}`
}

@ -40,7 +40,7 @@
:cont="item.value"
:percentage="((item.value / total) * 100).toFixed(2) + '%'"
:color="colors[index]"
:eStyle="{ height: '4.27rem' }"
:eStyle="{ height: '5.14rem' }"
></v-label-ctx>
</vue-scroll>
</div>

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '20',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '20',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -40,7 +40,7 @@
:cont="item.value"
:percentage="((item.value / total) * 100).toFixed(2) + '%'"
:color="colors[index]"
:eStyle="{ height: '4.27rem' }"
:eStyle="{ height: '5.14rem' }"
></v-label-ctx>
</vue-scroll>
</div>

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '20',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

@ -42,12 +42,12 @@ export default function createOpt(ds = [], color = []) {
label: {
show: false,
position: 'center',
lineHeight: 30
lineHeight: 36
},
emphasis: {
label: {
show: true,
fontSize: '16',
fontSize: '20',
color: "#ffff",
fontWeight: 'bold',
formatter: function (p) {

Loading…
Cancel
Save