wip: component v-model compat

This commit is contained in:
Evan You
2021-04-09 23:10:29 -04:00
parent f05d6dfd98
commit 183f9b0013
6 changed files with 120 additions and 6 deletions

View File

@@ -42,6 +42,7 @@ import { NULL_DYNAMIC_COMPONENT } from './helpers/resolveAssets'
import { hmrDirtyComponents } from './hmr'
import { setCompiledSlotRendering } from './helpers/renderSlot'
import { convertLegacyComponent } from './compat/component'
import { convertLegacyVModelProps } from './compat/vModel'
export const Fragment = (Symbol(__DEV__ ? 'Fragment' : undefined) as any) as {
__isFragment: true
@@ -469,6 +470,10 @@ function _createVNode(
currentBlock.push(vnode)
}
if (__COMPAT__) {
convertLegacyVModelProps(vnode)
}
return vnode
}