refactor: applyDirectives -> withDirectives

This commit is contained in:
Evan You
2019-10-18 16:35:01 -04:00
parent cba34453db
commit e98a85f3cb
20 changed files with 63 additions and 64 deletions

View File

@@ -4,7 +4,7 @@ import {
nextTick,
createComponent,
vModelDynamic,
applyDirectives,
withDirectives,
VNode
} from '@vue/runtime-dom'
@@ -14,7 +14,7 @@ const triggerEvent = (type: string, el: Element) => {
}
const withVModel = (node: VNode, arg: any, mods?: any) =>
applyDirectives(node, [[vModelDynamic, arg, '', mods]])
withDirectives(node, [[vModelDynamic, arg, '', mods]])
const setValue = function(this: any, value: any) {
this.value = value