Line field folding effect of table

problem description

I want to realize that after clicking on the trial calculation, the product name will be displayed after it is not shown before, which is similar to the effect of folding. How to achieve it? Do you use the ternary operator?

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

<div class="" style="margin-left:10px;margin-top:10px;margin-bottom:10px;">
    <i-button type="success" icon="md-add" @click="addnew"></i-button>&nbsp&nbsp&nbsp
    <i-button type="primary" @click="spreadsheet"></i-button>
</div>

<tr ref="item" v-for="(item,index) in items" :id="index">
        <td><i-input v-model="item.STOCKCODE" size="small" placeholder=""/></td>
        <td><i-input v-model="item.QUANTITY" size="small" placeholder=""/></td>
        <td><i-input v-model="item.PRICE" size="small" placeholder=""/></td>
        <td><i-input v-model="item.BUSINESS" size="small" placeholder=""/></td>
        <td class="green_bg4">A</td>
        <td class="green_bg4">1</td>
        <td class="green_bg4">1</td>
        <td class="green_bg4">9</td>
        <td class="green_bg4">5</td>
        <td class="green_bg4">5555</td>
    </tr>

what result do you expect? What is the error message actually seen?

Sep.07,2021

if you simply show and hide the one on the right, use a Boolean value to control the display and hide


bind a parameter to the table using v-if, such as isShow, default to Boolean false, click on trial calculation, and replace isShow with true; such as this.isShow = true

in the method of trial calculation.
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-1e65d79-45b66.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-1e65d79-45b66.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?