提交 e6c0126a 编写于 作者: Q qiang

fix: app-v3 v-model(未监听 input 不生效)

上级 bf3e4bad
...@@ -209,11 +209,11 @@ function handleViewEvents (events) { ...@@ -209,11 +209,11 @@ function handleViewEvents (events) {
function genVModel (el, isScopedSlot) { function genVModel (el, isScopedSlot) {
if (el.model) { if (el.model) {
el.model.value = createGenVar(el.attrsMap[ID], isScopedSlot)('v-model', el.model.value) el.model.value = createGenVar(el.attrsMap[ID], isScopedSlot)('v-model', el.model.value)
// if (el.tag === 'v-uni-input' || el.tag === 'v-uni-textarea') { if (el.tag === 'v-uni-input' || el.tag === 'v-uni-textarea' && !(el.events && el.events.input)) {
// el.model.callback = `function($$v){$handleVModelEvent(${el.attrsMap[ID]},$$v)}` el.model.callback = `function($$v){$handleVModelEvent(${el.attrsMap[ID]},$$v)}`
// } else { } else {
el.model.callback = `function(){}` el.model.callback = `function(){}`
// } }
} }
} }
...@@ -235,4 +235,4 @@ module.exports = { ...@@ -235,4 +235,4 @@ module.exports = {
}, },
postTransformNode, postTransformNode,
genData genData
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册