【fix ESLint】src/components/chart
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
(transfer, value) => {
|
(transfer, value) => {
|
||||||
return {
|
return {
|
||||||
name: transfer,
|
name: transfer,
|
||||||
value,
|
value
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
]"
|
]"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :style="{'width':width==null?'auto':width+'px'}">
|
<div :style="{'width':width===null?'auto':width+'px'}">
|
||||||
<v-chart :forceFit="width==null" :height="height" :data="data" padding="0">
|
<v-chart :forceFit="typeof width !== 'number'" :height="height" :data="data" padding="0">
|
||||||
<v-tooltip/>
|
<v-tooltip/>
|
||||||
<v-bar position="x*y"/>
|
<v-bar position="x*y"/>
|
||||||
</v-chart>
|
</v-chart>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
trend: this.type && 'up' || 'down',
|
trend: (this.type && 'up') || 'down',
|
||||||
rate: this.percentage
|
rate: this.percentage
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user