VUE3 + Ant Design Vue4 开发笔记

异常记录

[Vue warn]: Extraneous non-props attributes (options) were passed to component but could not be automatically inherited because component renders fragment or text root nodes

定位原因+解决方法

错误的中文释义:[Vue 警告]:传递给组件的额外非 prop 属性(options)无法自动继承,因为组件渲染的是片段或文本根节点。

触发位置

向上检查

修改代码

复制代码
const options = defineModel<any[]>('options')

因为table-work-list.vue中v-model绑定的属性值的key为value,而被使用的时候用的是options,因此触发错误警告。

相关推荐
林恒smileZAZ17 小时前
Vue<前端页面版本检测>
前端·javascript·vue.js
码事漫谈20 小时前
当AI开始“思考”:我们是否真的准备好了?
前端·后端
许杰小刀20 小时前
ctfshow-web文件包含(web78-web86)
android·前端·android studio
我是Superman丶21 小时前
Element UI 表格某行突出悬浮效果
前端·javascript·vue.js
恋猫de小郭21 小时前
你的代理归我了:AI 大模型恶意中间人攻击,钱包都被转走了
前端·人工智能·ai编程
xiaokuangren_21 小时前
前端css颜色
前端·css
hoiii1871 天前
C# 基于 LumiSoft 实现 SIP 客户端方案
前端·c#
anOnion1 天前
构建无障碍组件之Meter Pattern
前端·html·交互设计
小码哥_常1 天前
Spring Boot配置diff:解锁配置管理新姿势
前端
小码哥_常1 天前
告别onActivityResult!Android数据回传的3大痛点与终极解决方案
前端