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