@@ -13,7 +13,7 @@ import {
|
||||
compatUtils
|
||||
} from '@vue/runtime-core'
|
||||
import { nodeOps } from './nodeOps'
|
||||
import { patchProp, forcePatchProp } from './patchProp'
|
||||
import { patchProp } from './patchProp'
|
||||
// Importing from the compiler, will be tree-shaken in prod
|
||||
import { isFunction, isString, isHTMLTag, isSVGTag, extend } from '@vue/shared'
|
||||
|
||||
@@ -24,7 +24,7 @@ declare module '@vue/reactivity' {
|
||||
}
|
||||
}
|
||||
|
||||
const rendererOptions = extend({ patchProp, forcePatchProp }, nodeOps)
|
||||
const rendererOptions = extend({ patchProp }, nodeOps)
|
||||
|
||||
// lazy create the renderer - this makes core renderer logic tree-shakable
|
||||
// in case the user only imports reactivity utilities from Vue.
|
||||
|
||||
@@ -10,9 +10,6 @@ const nativeOnRE = /^on[a-z]/
|
||||
|
||||
type DOMRendererOptions = RendererOptions<Node, Element>
|
||||
|
||||
export const forcePatchProp: DOMRendererOptions['forcePatchProp'] = (_, key) =>
|
||||
key === 'value'
|
||||
|
||||
export const patchProp: DOMRendererOptions['patchProp'] = (
|
||||
el,
|
||||
key,
|
||||
|
||||
Reference in New Issue
Block a user