Skip to content

Commit

Permalink
refactor(文件重命名): core/vdom/vnode->虚拟节点
Browse files Browse the repository at this point in the history
  • Loading branch information
testacount1 committed Nov 21, 2018
1 parent b84bf99 commit bba5db6
Show file tree
Hide file tree
Showing 29 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion flow/component.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Config } from '../src/core/config'
import type VNode from '../src/core/vdom/vnode'
import type VNode from '../src/core/vdom/虚拟节点'
import type Watcher from '../src/core/observer/watcher'

declare interface Component {
Expand Down
2 changes: 1 addition & 1 deletion src/core/instance/render-helpers/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import { toNumber, toString, looseEqual, looseIndexOf } from 'shared/util'
import { createTextVNode, createEmptyVNode } from 'core/vdom/vnode'
import { createTextVNode, createEmptyVNode } from 'core/vdom/虚拟节点'
import { renderList } from './render-list'
import { renderSlot } from './render-slot'
import { resolveFilter } from './resolve-filter'
Expand Down
2 changes: 1 addition & 1 deletion src/core/instance/render-helpers/resolve-slots.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import type VNode from 'core/vdom/vnode'
import type VNode from 'core/vdom/虚拟节点'

/**
* Runtime helper for resolving raw children VNodes into a slot object.
Expand Down
2 changes: 1 addition & 1 deletion src/core/instance/渲染.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { createElement } from '../vdom/create-element'
import { installRenderHelpers } from './render-helpers/index'
import { resolveSlots } from './render-helpers/resolve-slots'
import VNode, { createEmptyVNode } from '../vdom/vnode'
import VNode, { createEmptyVNode } from '../vdom/虚拟节点'

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

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 { mark, measure } from '../util/perf'
import { createEmptyVNode } from '../vdom/vnode'
import { createEmptyVNode } from '../vdom/虚拟节点'
import { updateComponentListeners } from './事件'
import { resolveSlots } from './render-helpers/resolve-slots'
import { toggleObserving } from '../observer/index'
Expand Down
2 changes: 1 addition & 1 deletion src/core/observer/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import Dep from './dep'
import VNode from '../vdom/vnode'
import VNode from '../vdom/虚拟节点'
import { arrayMethods } from './array'
import {
def,
Expand Down
2 changes: 1 addition & 1 deletion src/core/observer/traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { _Set as Set, isObject } from '../util/index'
import type { SimpleSet } from '../util/index'
import VNode from '../vdom/vnode'
import VNode from '../vdom/虚拟节点'

const seenObjects = new Set()

Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/create-component.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import VNode from './vnode'
import VNode from './虚拟节点'
import { resolveConstructorOptions } from 'core/instance/初始化'
import { queueActivatedComponent } from 'core/observer/scheduler'
import { createFunctionalComponent } from './create-functional-component'
Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/create-element.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* @flow */

import config from '../config'
import VNode, { createEmptyVNode } from './vnode'
import VNode, { createEmptyVNode } from './虚拟节点'
import { createComponent } from './create-component'
import { traverse } from '../observer/traverse'

Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/create-functional-component.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import VNode, { cloneVNode } from './vnode'
import VNode, { cloneVNode } from './虚拟节点'
import { createElement } from './create-element'
import { resolveInject } from '../instance/注入'
import { normalizeChildren } from '../vdom/helpers/normalize-children'
Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/helpers/merge-hook.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import VNode from '../vnode'
import VNode from '../虚拟节点'
import { createFnInvoker } from './update-listeners'
import { remove, isDef, isUndef, isTrue } from 'shared/util'

Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/helpers/normalize-children.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import VNode, { createTextVNode } from 'core/vdom/vnode'
import VNode, { createTextVNode } from 'core/vdom/虚拟节点'
import { isFalse, isTrue, isDef, isUndef, isPrimitive } from 'shared/util'

// The template compiler attempts to minimize the need for normalization by
Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/helpers/resolve-async-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
hasSymbol
} from 'core/util/index'

import { createEmptyVNode } from 'core/vdom/vnode'
import { createEmptyVNode } from 'core/vdom/虚拟节点'

function ensureCtor (comp: any, base) {
if (
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 @@ -10,7 +10,7 @@
* of making flow understand it is not worth it.
*/

import VNode, { cloneVNode } from './vnode'
import VNode, { cloneVNode } from './虚拟节点'
import config from '../config'
import { SSR_ATTR } from 'shared/constants'
import { registerRef } from './modules/ref'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/platforms/web/server/modules/dom-props.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'
import { renderAttr } from './attrs'
import { isDef, isUndef, extend } from 'shared/util'
import { propsToAttrMap, isRenderableAttr } from '../util'
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/vdom.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

window.createTextVNode = function (text) {
return new VNode(undefined, undefined, undefined, text)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/options/functional.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue from 'vue'
import { createEmptyVNode } from 'core/vdom/vnode'
import { createEmptyVNode } from 'core/vdom/虚拟节点'

describe('Options functional', () => {
it('should work', done => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/create-element.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue from 'vue'
import { createEmptyVNode } from 'core/vdom/vnode'
import { createEmptyVNode } from 'core/vdom/虚拟节点'

describe('create-element', () => {
it('render vnode with basic reserved tag using createElement', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/modules/attrs.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue'
import { patch } from 'web/runtime/patch'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'
import { xlinkNS } from 'web/util/index'

describe('vdom attrs module', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/modules/class.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { patch } from 'web/runtime/patch'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

describe('vdom class module', () => {
it('should create an element with staticClass', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/modules/directive.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue'
import { patch } from 'web/runtime/patch'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

describe('vdom directive module', () => {
it('should work', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/modules/dom-props.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue'
import { patch } from 'web/runtime/patch'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

describe('vdom domProps module', () => {
it('should create an element with domProps', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/modules/events.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { patch } from 'web/runtime/patch'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

describe('vdom events module', () => {
it('should attach event handler to element', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/modules/style.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { patch } from 'web/runtime/patch'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

describe('vdom style module', () => {
it('should create an element with style', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/patch/children.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { patch } from 'web/runtime/patch'
import VNode, { createEmptyVNode } from 'core/vdom/vnode'
import VNode, { createEmptyVNode } from 'core/vdom/虚拟节点'

function prop (name) {
return obj => { return obj[name] }
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/patch/element.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue'
import { patch } from 'web/runtime/patch'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

describe('vdom patch: element', () => {
it('should create an element', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/patch/hooks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createPatchFunction } from 'core/vdom/patch'
import baseModules from 'core/vdom/modules/index'
import * as nodeOps from 'web/runtime/node-ops'
import platformModules from 'web/runtime/modules/index'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'

const modules = baseModules.concat(platformModules)

Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/patch/hydration.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue from 'vue'
import VNode from 'core/vdom/vnode'
import VNode from 'core/vdom/虚拟节点'
import { patch } from 'web/runtime/patch'
import { SSR_ATTR } from 'shared/constants'

Expand Down

0 comments on commit bba5db6

Please sign in to comment.