正确写法:使用template标签进行包裹(template为html5的新标签,无特殊含义)
<templatev-for="Oitem in Object.keys(cItem)"><el-inputtype="textarea":autosize="{ minRows: 2, maxRows: 8}":key="Oitem"v-if="Oitem !== 'title'"v-model="cItem[Oitem]"></el-input></template>
正确写法:使用template标签进行包裹(template为html5的新标签,无特殊含义)
<templatev-for="Oitem in Object.keys(cItem)"><el-inputtype="textarea":autosize="{ minRows: 2, maxRows: 8}":key="Oitem"v-if="Oitem !== 'title'"v-model="cItem[Oitem]"></el-input></template>
本文标题:vue中v-for 和v-if嵌套使用
本文链接:https://www.haomeiwen.com/subject/jydgzltx.html
网友评论