Vue warn]: Invalid prop: type check failed for prop "min". Expected Number with value 0, got String
element-ui组件报错:Vue warn]:Invalid prop: type check failed for prop "min".Expected Number with value 0, got String with value "0".出错位置:<el-form-item label="排序" prop="sort"><el-input-number v-mo
·
element-ui 组件报错:
Vue warn]:
Invalid prop: type check failed for prop "min".
Expected Number with value 0, got String with value "0".
出错位置:
<el-form-item label="排序" prop="sort">
<el-input-number v-model="person.sort" controls-position="right" min="0" />
</el-form-item>
应改为:
<el-form-item label="讲师排序" prop="sort">
<el-input-number v-model="teacher.sort" controls-position="right" :min="0" />
</el-form-item>
错误原因:min max 之类,使用组件的话应为 :min :max
更多推荐
已为社区贡献13条内容
所有评论(0)