mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-12 19:23:51 +00:00
chore: convert profitPill to typed props
This commit is contained in:
parent
0c47a554cc
commit
f810ec8588
|
@ -1,10 +1,10 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const props = defineProps({
|
const props = defineProps<{
|
||||||
profitRatio: { required: false, default: undefined, type: Number },
|
profitRatio?: number;
|
||||||
profitAbs: { required: false, default: undefined, type: Number },
|
profitAbs?: number;
|
||||||
stakeCurrency: { required: true, type: String },
|
stakeCurrency: string;
|
||||||
profitDesc: { required: false, default: '', type: String },
|
profitDesc?: string;
|
||||||
});
|
}>();
|
||||||
const isProfitable = computed(() => {
|
const isProfitable = computed(() => {
|
||||||
return (
|
return (
|
||||||
(props.profitRatio !== undefined && props.profitRatio > 0) ||
|
(props.profitRatio !== undefined && props.profitRatio > 0) ||
|
||||||
|
|
Loading…
Reference in New Issue
Block a user