mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 02:11:57 +00:00
Move ValuePair to general directory
This commit is contained in:
parent
888c67555a
commit
fb108b6073
|
@ -60,7 +60,7 @@
|
|||
<script lang="ts">
|
||||
import { Component, Vue, Prop } from 'vue-property-decorator';
|
||||
import { formatPercent, formatPrice, timestampms } from '@/shared/formatters';
|
||||
import ValuePair from '@/components/ftbot/ValuePair.vue';
|
||||
import ValuePair from '@/components/general/ValuePair.vue';
|
||||
import { Trade } from '@/types';
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="row">
|
||||
<label class="col-4">{{ description }}</label>
|
||||
<div class="col-8">
|
||||
<label :class="classLabel">{{ description }}</label>
|
||||
<div :class="classValue">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -17,15 +17,16 @@ export default Vue.extend({
|
|||
type: String,
|
||||
required: true,
|
||||
},
|
||||
classLabel: {
|
||||
type: String,
|
||||
default: 'col-4 font-weight-bold',
|
||||
},
|
||||
classValue: {
|
||||
type: String,
|
||||
default: 'col-8',
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
label {
|
||||
font-weight: bold;
|
||||
}
|
||||
.row {
|
||||
max-width: 50em;
|
||||
}
|
||||
</style>
|
||||
<style scoped></style>
|
|
@ -1,5 +1,5 @@
|
|||
import { mount } from '@vue/test-utils';
|
||||
import ValuePair from '@/components/ftbot/ValuePair.vue';
|
||||
import ValuePair from '@/components/general/ValuePair.vue';
|
||||
|
||||
describe('ValuePair.vue', () => {
|
||||
it('renders description when passed', () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user