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

@@ -687,9 +687,9 @@ export function finishComponentSetup(
if (
__COMPAT__ &&
Component.render &&
isCompatEnabled(DeprecationTypes.RENDER_FUNCTION)
isCompatEnabled(DeprecationTypes.RENDER_FUNCTION, instance)
) {
warnDeprecation(DeprecationTypes.RENDER_FUNCTION)
warnDeprecation(DeprecationTypes.RENDER_FUNCTION, instance)
const originalRender = Component.render
Component.render = function compatRender() {
return originalRender.call(this, compatH)