src/components/index-component.vue
@@ -1,9 +1,5 @@ <template> <div class="index_component" :class="dataObj.chg > 0 ? 'bg-green' : 'bg-red'" @click="toLine" > <div class="index_component" :class="dataObj.chg > 0 ? 'bg-green' : 'bg-red'" @click="toLine"> <div class="item_title"> <span class="line-one">{{ dataObj.name }}</span> </div> @@ -29,7 +25,7 @@ }, dataObj: { type: Object, default: () => {} default: () => { } } }, computed: { @@ -91,11 +87,11 @@ padding: 0 0.5em; font-size: 0.35em; color: #333; font-weight: 500; span { width: 100%; display: inline-block; font-weight: 800; } }