1、实现效果
文章来源地址https://www.toymoban.com/news/detail-696503.html
2、代码
<el-row :gutter="20">
<el-col :span="5">
<info-card
label="装机容量"
:num="stationInfo.capacity ? stationInfo.capacity : '--'"
numColor="#15BC83"
numUnit="kWh"
:icon="require('@/assets/card/icon_card_cnzgl.png')"
/>
</el-col>
<el-col :span="5">
<info-card
label="投运时间"
:num="
stationInfo.operationTime ? stationInfo.operationTime : '--'
"
numColor="#FF811A"
numUnit="天"
:icon="require('@/assets/card/icon_card_year.png')"
/>
</el-col>
<el-col :span="5">
<info-card
label="电池堆数"
:num="
stationInfo.batteryNumber ? stationInfo.batteryNumber : '--'
"
numColor="#FF811A"
numUnit="个"
:icon="require('@/assets/card/icon_card_bnzzs.png')"
/>
</el-col>
<el-col :span="5">
<info-card
label="电池簇数"
:num="
stationInfo.clusterNumber ? stationInfo.clusterNumber : '--'
"
numColor="#FF811A"
numUnit="个"
:icon="require('@/assets/card/icon_card_bnzzs.png')"
/>
</el-col>
<el-col :span="5">
<info-card
label="电池节数"
:num="
stationInfo.batterySectionNumber
? stationInfo.batterySectionNumber
: '--'
"
numColor="#FF811A"
numUnit="个"
:icon="require('@/assets/card/icon_card_bnzzs.png')"
/>
</el-col>
</el-row>
<style lang='less' scoped>
.el-col-5 {
width: 20%;
}
</style>
文章来源:https://www.toymoban.com/news/detail-696503.html
到了这里,关于Element UI el-row el-col实现一行5列的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!