update
This commit is contained in:
parent
fccd2ab9cc
commit
55947ceb16
@ -33,10 +33,12 @@ watch(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const rate = computed(() => {
|
const rate = computed(() => {
|
||||||
const _rate = ((props.rawData.nowYield / props.rawData.targetYield) * 100)
|
if (!props.rawData.nowYield || props.rawData.nowYield == 0) return [0, 0];
|
||||||
.toFixed(2)
|
// const _rate = ((props.rawData.nowYield / props.rawData.targetYield) * 100)
|
||||||
.toString();
|
// .toFixed(2)
|
||||||
return [parseInt(_rate), _rate.split(".")[1]];
|
// .toString();
|
||||||
|
// return [parseInt(_rate), _rate.split(".")[1]];
|
||||||
|
return [parseInt(props.rawData.nowYield), props.rawData.nowYield.split(".")[1]];
|
||||||
});
|
});
|
||||||
|
|
||||||
const chart = ref(null);
|
const chart = ref(null);
|
||||||
|
@ -36,7 +36,7 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.data-list {
|
.data-list {
|
||||||
height: 100%;
|
/* height: 100%; */
|
||||||
width: 480px;
|
width: 480px;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
Loading…
Reference in New Issue
Block a user