refactor(runtime-core): adjust patchProp value arguments order

BREAKING CHANGE: `RendererOptions.patchProp` arguments order has changed

  The `prevValue` and `nextValue` position has been swapped to keep it
  consistent with other functions in the renderer implementation. This
  only affects custom renderers using the `createRenderer` API.
This commit is contained in:
Evan You
2020-03-09 16:15:49 -04:00
parent cd34603864
commit ca5f39ee35
4 changed files with 13 additions and 13 deletions

View File

@@ -9,8 +9,8 @@ import { RendererOptions } from '@vue/runtime-core'
export const patchProp: RendererOptions<Node, Element>['patchProp'] = (
el,
key,
nextValue,
prevValue,
nextValue,
isSVG = false,
prevChildren,
parentComponent,