|
@ -114,8 +114,7 @@ function genDefaultModel ( |
|
|
type === 'file') { |
|
|
type === 'file') { |
|
|
warn( |
|
|
warn( |
|
|
`<${el.tag} v-model="${value}" type="file">:\n` + |
|
|
`<${el.tag} v-model="${value}" type="file">:\n` + |
|
|
'File inputs are read only. You should use @change instead:\n' + |
|
|
`File inputs are read only. Use a v-on:change listener instead.` |
|
|
`<${el.tag} @change="${value} = $event.target.files" type="file">` |
|
|
|
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
addProp(el, 'value', isNative ? `_s(${value})` : `(${value})`) |
|
|
addProp(el, 'value', isNative ? `_s(${value})` : `(${value})`) |
|
|