Vue——解决[Vue warn]: Invalid prop: custom validator check failed for prop "index". found in错误
<el-menu class="el-menu-vertical-demo" style="height:517px;overflow-y: scroll" @select="select"><template v-for="(setting) in settings"><el-menu-item :key="setting.id" :inde...
·
<el-menu class="el-menu-vertical-demo" style="height:517px;overflow-y: scroll" @select="select">
<template v-for="(setting) in settings">
<el-menu-item :key="setting.id" :index="setting.id.toString()">
<span slot="title">{{ setting.name }}</span>
</el-menu-item>
</template>
</el-menu>
index属性不能为Number,必须为String
更多推荐
已为社区贡献1条内容
所有评论(0)