58 lines
1.0 KiB
Vue
58 lines
1.0 KiB
Vue
<!--
|
|
* @Author: zhp
|
|
* @Date: 2024-05-10 11:10:54
|
|
* @LastEditTime: 2024-06-06 10:04:49
|
|
* @LastEditors: zhp
|
|
* @Description:
|
|
-->
|
|
|
|
<template>
|
|
<div class="chip-rate">
|
|
<ChipRateItem :period="period" :than="than" :cities="['邯郸',]" :color="1" />
|
|
<ChipRateItem :period="period" :than="than" :cities="['瑞昌']" :color="2" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ChipRateItemVue from "./sub/chip/ChipRateItem.vue";
|
|
export default {
|
|
name: "ChipRate",
|
|
components: { ChipRateItem: ChipRateItemVue },
|
|
props: {
|
|
period: {
|
|
type: String,
|
|
default: "日",
|
|
},
|
|
than: {
|
|
type: String,
|
|
default: '同比',
|
|
}
|
|
},
|
|
data() {
|
|
return {};
|
|
},
|
|
computed: {},
|
|
methods: {},
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.chip-rate {
|
|
flex: 1;
|
|
display: flex;
|
|
gap: 5px;
|
|
position: relative;
|
|
|
|
&:after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 0;
|
|
width: 3px;
|
|
height: 100%;
|
|
transform: translateX(-50%);
|
|
background: linear-gradient(to bottom, transparent, #00f2ff, transparent);
|
|
}
|
|
}
|
|
</style>
|