mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
TradeDetail to class component
This commit is contained in:
parent
3c3a474d9f
commit
e8aa806901
|
@ -51,24 +51,23 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { Component, Vue, Prop } from 'vue-property-decorator';
|
||||||
import { formatPercent, formatPrice, timestampms } from '@/shared/formatters';
|
import { formatPercent, formatPrice, timestampms } from '@/shared/formatters';
|
||||||
import ValuePair from '@/components/ftbot/ValuePair.vue';
|
import ValuePair from '@/components/ftbot/ValuePair.vue';
|
||||||
|
import { Trade } from '@/types';
|
||||||
|
|
||||||
export default {
|
@Component({
|
||||||
name: 'TradeDetail',
|
|
||||||
props: {
|
|
||||||
trade: {
|
|
||||||
type: Object,
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
components: { ValuePair },
|
components: { ValuePair },
|
||||||
methods: {
|
})
|
||||||
formatPercent,
|
export default class TradeDetail extends Vue {
|
||||||
formatPrice,
|
@Prop({ type: Object, required: true }) trade!: Trade;
|
||||||
timestampms,
|
|
||||||
},
|
timestampms = timestampms;
|
||||||
};
|
|
||||||
|
formatPercent = formatPercent;
|
||||||
|
|
||||||
|
formatPrice = formatPrice;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.detail-header {
|
.detail-header {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user