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

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

阅读 2k
1 个回答
推荐问题