【发布时间】:2018-12-16 19:25:21
【问题描述】:
我有这个脚本:
<v-tab :title="siteObject.xip_infos[index].lineid" >
<div class="description text-left" :class="{ 'text-danger': item.status === 'DEACTIVE' }">
<small v-for="(field, key) in item" :key="key">
<strong>{{ key }}</strong> {{ field }}<br>
</small>
</div>
</v-tab>
此脚本的结果显示所有项目的状态为 DEACTIVE。 我想添加条件断开连接。我该怎么做?
【问题讨论】:
-
我不知道为什么会有大量的投票。也许您需要显示预期的输出?
-
@mplungjan wen 已停用,输出将变为红色
标签: javascript vue.js