Less: last-child does not work in vue

as shown in the picture, I want the last line to disappear. Last-child doesn"t work
I checked because line is not in the same parent element. Is there a better solution
clipboard.png

?
.line {
    height: 30px;
    border-left: 1px dashed -sharpccc;
    margin-left: 3px;
    :last-child {
      display: none;
    }
}
<template>
  <div class="panel">
    <div class="title">
      <span></span>
    </div>
    <div class="timeline">
      <div v-for="item in info" :key="item.processCn">
        <div class="stage">
          <div class="row">
            <span class="dot"></span>
            <span>{{item.processCn}}</span>
          </div>
          <div class="time">{{item.time}}</div>
        </div>
        <div class="line"></div>
      </div>
    </div>
  </div>
</template>
Jun.06,2022

<div class='line' v-if="index!=info.length"></div>

use v-if to determine whether it is the last element or not.


line {
    height: 30px;
    border-left: 1px dashed -sharpccc;
    margin-left: 3px;
    &:last-child {
      display: none;
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e89e0f-f8d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e89e0f-f8d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?