TradeDetail to class component

This commit is contained in:
Matthias 2020-08-29 17:44:08 +02:00
parent 3c3a474d9f
commit e8aa806901

View File

@ -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 {