<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.
Please check whether the Vue version in your node_modules directory is greater than
2.1.0
. This feature does not exist in2.0.x
.