mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 19:15:15 +00:00
ProfitSymbol -> script setup
This commit is contained in:
parent
ca93a019c3
commit
b2ef4343ec
|
@ -4,22 +4,14 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, computed } from 'vue';
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ProfitSymbol',
|
||||
props: {
|
||||
profit: { type: Number, required: true },
|
||||
},
|
||||
setup(props) {
|
||||
const isProfitable = computed(() => {
|
||||
return props.profit > 0;
|
||||
});
|
||||
return {
|
||||
isProfitable,
|
||||
};
|
||||
},
|
||||
const props = defineProps({
|
||||
profit: { type: Number, required: true },
|
||||
});
|
||||
const isProfitable = computed(() => {
|
||||
return props.profit > 0;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user