Vue3 defineModel 警告解决?

vue3 新的 defineModel

parent:

<Input v-model:p_input="test_input" />

son:

<el-input v-model="myInput" placeholder="Please input" />

const myInput = defineModel<string>("p_input", {
  required: true
})

报警告:
Extraneous non-emits event listeners (refresh) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.

vite:2.9.16

没找到问题,求解
没得到很好的解决

阅读 1.8k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题