youzan / vant

A lightweight, customizable Vue UI library for mobile web apps.

Home Page:https://vant-ui.github.io/vant/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VueCompilerError: v-model cannot be used on a prop, because local prop bindings are not writable.

long20150122 opened this issue · comments

commented

vant 3.6.11

<van-number-keyboard
v-model="value"
:show="show"
:maxlength="6"
@blur="show = false"
/>

VueCompilerError: v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.

Please follow the issue template and provide a reproduce link.