【fix ESLint】src/components/chart

This commit is contained in:
danshihao
2023-03-03 14:44:38 +08:00
parent 6a087fff48
commit 90b48301da
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
(transfer, value) => {
return {
name: transfer,
value,
value
};
},
]"
+2 -2
View File
@@ -1,6 +1,6 @@
<template>
<div :style="{'width':width==null?'auto':width+'px'}">
<v-chart :forceFit="width==null" :height="height" :data="data" padding="0">
<div :style="{'width':width===null?'auto':width+'px'}">
<v-chart :forceFit="typeof width !== 'number'" :height="height" :data="data" padding="0">
<v-tooltip/>
<v-bar position="x*y"/>
</v-chart>
+1 -1
View File
@@ -40,7 +40,7 @@ export default {
},
data () {
return {
trend: this.type && 'up' || 'down',
trend: (this.type && 'up') || 'down',
rate: this.percentage
}
},