File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33
33
" src/directives/if.js" ,
34
34
" src/directives/index.js" ,
35
35
" src/directives/model/checkbox.js" ,
36
+ " src/directives/model/default.js" ,
36
37
" src/directives/model/index.js" ,
37
38
" src/directives/model/radio.js" ,
38
39
" src/directives/model/select.js" ,
39
- " src/directives/model/text.js" ,
40
40
" src/directives/on.js" ,
41
41
" src/directives/partial.js" ,
42
42
" src/directives/ref.js" ,
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
var _ = require ( '../../util' )
2
2
3
3
var handlers = {
4
- text : require ( './text ' ) ,
4
+ _default : require ( './default ' ) ,
5
5
radio : require ( './radio' ) ,
6
6
select : require ( './select' ) ,
7
7
checkbox : require ( './checkbox' )
@@ -30,11 +30,11 @@ module.exports = {
30
30
var tag = el . tagName
31
31
var handler
32
32
if ( tag === 'INPUT' ) {
33
- handler = handlers [ el . type ] || handlers . text
33
+ handler = handlers [ el . type ] || handlers . _default
34
34
} else if ( tag === 'SELECT' ) {
35
35
handler = handlers . select
36
36
} else if ( tag === 'TEXTAREA' ) {
37
- handler = handlers . text
37
+ handler = handlers . _default
38
38
} else {
39
39
_ . warn ( "v-model doesn't support element type: " + tag )
40
40
return
You can’t perform that action at this time.
0 commit comments