dedup functions

This commit is contained in:
pikax 2021-04-07 19:11:31 +01:00
parent f036db5dd4
commit b5f39bf02c
6 changed files with 6569 additions and 6386 deletions

12938
dist/vue.runtime.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@
// nodes will remain where they should be.
import { warn, extend } from 'core/util/index'
import { addClass, removeClass } from '../class-util'
import { addClass, removeClass } from 'web/runtime/class-util'
import { transitionProps, extractTransitionData } from './transition'
import { setActiveInstance } from 'core/instance/lifecycle'
@ -20,7 +20,7 @@ import {
transitionEndEvent,
addTransitionClass,
removeTransitionClass,
} from '../transition-util'
} from 'web/runtime/transition-util'
import VNode from 'core/vdom/vnode'
const props = extend(

View File

@ -1,7 +1,8 @@
import VNode from 'core/vdom/vnode'
import type { VNodeDirective, VNodeWithData } from 'typescript/vnode'
import { enter, leave } from '../modules/transition'
import { enter, leave } from 'web/runtime/modules/transition'
// recursively search for possible transition defined inside the component root
function locateNode(vnode: VNode | VNodeWithData): VNodeWithData {

View File

@ -5,13 +5,13 @@ import { activeInstance } from 'core/instance/lifecycle'
import { once, isDef, isUndef, isObject, toNumber } from 'shared/util'
import {
import {
nextFrame,
resolveTransition,
whenTransitionEnds,
addTransitionClass,
removeTransitionClass,
} from '../transition-util'
removeTransitionClass } from 'web/runtime/transition-util'
import type { VNodeWithData } from 'typescript/vnode'
import VNode from 'core/vdom/vnode'

View File

@ -1,5 +1,5 @@
import { inBrowser, isIE9 } from 'core/util/index'
import { addClass, removeClass } from './class-util'
import { addClass, removeClass } from 'web/runtime/class-util'
import { remove, extend, cached } from 'shared/util'
export function resolveTransition(