提交 2bfb5347 编写于 作者: fxy060608's avatar fxy060608

fix(app): vModel

上级 aa65363c
......@@ -9686,7 +9686,8 @@ const getModelAssigner = (vnode) => {
// We are exporting the v-model runtime directly as vnode hooks so that it can
// be tree-shaken in case v-model is never used.
const vModelText = {
created(el, { modifiers: { trim, number } }, vnode) {
created(el, { value, modifiers: { trim, number } }, vnode) {
el.value = value == null ? '' : value;
el._assign = getModelAssigner(vnode);
addEventListener(el, 'input', e => {
let domValue = e.detail.value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册