<td v-if = 'item.edit && onlyShowInROBOTTYPE '>
<input type="text" class='form-control' v-model= 'item.content.prefix'>
</td>
<td v-else-if='onlyShowInROBOTTYPE' >
{{item.prefix}}
</td>
onlyShowInROBOTTYPE是一个计算属性 返回bool值
提示 vendor.js:32459 [Vue warn]: Failed to resolve directive: else-if.
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
请检查你的 node_modules 目录中,Vue 版本是否大于
2.1.0。这个特性在2.0.x中是不存在的。