Skip to content

Commit

Permalink
refactor(文件重命名): core/instance/lifecycle->生命周期
Browse files Browse the repository at this point in the history
  • Loading branch information
testacount1 committed Nov 21, 2018
1 parent 43fa26e commit 25db61e
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/core/instance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { initMixin } from './初始化'
import { stateMixin } from './状态'
import { renderMixin } from './渲染'
import { eventsMixin } from './事件'
import { lifecycleMixin } from './lifecycle'
import { lifecycleMixin } from './生命周期'
import { warn } from '../util/index'

function Vue (options) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/instance/初始化.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { initState } from './状态'
import { initRender } from './渲染'
import { initEvents } from './事件'
import { mark, measure } from '../util/perf'
import { initLifecycle, callHook } from './lifecycle'
import { initLifecycle, callHook } from './生命周期'
import { initProvide, initInjections } from './inject'
import { extend, mergeOptions, formatComponentName } from '../util/index'

Expand Down
2 changes: 1 addition & 1 deletion src/core/instance/渲染.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { installRenderHelpers } from './render-helpers/index'
import { resolveSlots } from './render-helpers/resolve-slots'
import VNode, { createEmptyVNode } from '../vdom/vnode'

import { isUpdatingChildComponent } from './lifecycle'
import { isUpdatingChildComponent } from './生命周期'

export function initRender (vm: Component) {
vm._vnode = null // the root of the child tree
Expand Down
2 changes: 1 addition & 1 deletion src/core/instance/状态.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import config from '../config'
import Watcher from '../observer/watcher'
import Dep, { pushTarget, popTarget } from '../observer/dep'
import { isUpdatingChildComponent } from './lifecycle'
import { isUpdatingChildComponent } from './生命周期'

import {
set,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/core/observer/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import type Watcher from './watcher'
import config from '../config'
import { callHook, activateChildComponent } from '../instance/lifecycle'
import { callHook, activateChildComponent } from '../instance/生命周期'

import {
warn,
Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/create-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
updateChildComponent,
activateChildComponent,
deactivateChildComponent
} from '../instance/lifecycle'
} from '../instance/生命周期'

import {
isRecyclableComponent,
Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import config from '../config'
import { SSR_ATTR } from 'shared/constants'
import { registerRef } from './modules/ref'
import { traverse } from '../observer/traverse'
import { activeInstance } from '../instance/lifecycle'
import { activeInstance } from '../instance/生命周期'
import { isTextInputType } from 'web/util/element'

import {
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/web/runtime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Vue from 'core/index'
import config from 'core/config'
import { extend, noop } from 'shared/util'
import { mountComponent } from 'core/instance/lifecycle'
import { mountComponent } from 'core/instance/生命周期'
import { devtools, inBrowser, isChrome } from 'core/util/index'

import {
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/web/runtime/modules/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { inBrowser, isIE9, warn } from 'core/util/index'
import { mergeVNodeHook } from 'core/vdom/helpers/index'
import { activeInstance } from 'core/instance/lifecycle'
import { activeInstance } from 'core/instance/生命周期'

import {
once,
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/weex/runtime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Vue from 'core/index'
import { patch } from 'weex/runtime/patch'
import { mountComponent } from 'core/instance/lifecycle'
import { mountComponent } from 'core/instance/生命周期'
import platformDirectives from 'weex/runtime/directives/index'
import platformComponents from 'weex/runtime/components/index'

Expand Down
2 changes: 1 addition & 1 deletion src/platforms/weex/runtime/modules/transition.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { warn } from 'core/util/debug'
import { extend, once, noop } from 'shared/util'
import { activeInstance } from 'core/instance/lifecycle'
import { activeInstance } from 'core/instance/生命周期'
import { resolveTransition } from 'web/runtime/transition-util'

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { initState, getData } from 'core/instance/状态'
import { initRender } from 'core/instance/渲染'
import { initEvents } from 'core/instance/事件'
import { initProvide, initInjections } from 'core/instance/inject'
import { initLifecycle, callHook } from 'core/instance/lifecycle'
import { initLifecycle, callHook } from 'core/instance/生命周期'
import { initInternalComponent, resolveConstructorOptions } from 'core/instance/初始化'
import { registerComponentHook, updateComponentData } from '../../util/index'

Expand Down

0 comments on commit 25db61e

Please sign in to comment.