code
stringlengths
24
2.07M
docstring
stringlengths
25
85.3k
func_name
stringlengths
1
92
language
stringclasses
1 value
repo
stringlengths
5
64
path
stringlengths
4
172
url
stringlengths
44
218
license
stringclasses
7 values
function resolveScopedSlots( fns: Array<[string, Function]>, ): { [key: string]: Function }
Runtime helper for resolving raw children VNodes into a slot object.
resolveScopedSlots
javascript
GeekyAnts/vue-native-core
src/core/instance/render-helpers/resolve-slots.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/instance/render-helpers/resolve-slots.js
MIT
constructor() { this.id = uid++ this.subs = [] }
A dep is an observable that can have multiple directives subscribing to it.
constructor
javascript
GeekyAnts/vue-native-core
src/core/observer/dep.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/dep.js
MIT
removeSub(sub: Watcher) { remove(this.subs, sub) }
A dep is an observable that can have multiple directives subscribing to it.
removeSub
javascript
GeekyAnts/vue-native-core
src/core/observer/dep.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/dep.js
MIT
depend() { if (Dep.target) { Dep.target.addDep(this) } }
A dep is an observable that can have multiple directives subscribing to it.
depend
javascript
GeekyAnts/vue-native-core
src/core/observer/dep.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/dep.js
MIT
notify() { // stabilize the subscriber list first const subs = this.subs.slice() for (let i = 0, l = subs.length; i < l; i++) { subs[i].update() } }
A dep is an observable that can have multiple directives subscribing to it.
notify
javascript
GeekyAnts/vue-native-core
src/core/observer/dep.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/dep.js
MIT
function pushTarget(_target: Watcher) { if (Dep.target) targetStack.push(Dep.target) Dep.target = _target }
A dep is an observable that can have multiple directives subscribing to it.
pushTarget
javascript
GeekyAnts/vue-native-core
src/core/observer/dep.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/dep.js
MIT
function popTarget() { Dep.target = targetStack.pop() }
A dep is an observable that can have multiple directives subscribing to it.
popTarget
javascript
GeekyAnts/vue-native-core
src/core/observer/dep.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/dep.js
MIT
for (let i = 0, l = keys.length; i < l; i++) { const key = keys[i] def(target, key, src[key]) }
Augment an target Object or Array by defining hidden properties.
for
javascript
GeekyAnts/vue-native-core
src/core/observer/index.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/index.js
MIT
function dependArray(value: Array<any>) { for (let e, i = 0, l = value.length; i < l; i++) { e = value[i] e && e.__ob__ && e.__ob__.dep.depend() if (Array.isArray(e)) { dependArray(e) } } }
Collect dependencies on array elements when the array is touched, since we cannot intercept array element access like property getters.
dependArray
javascript
GeekyAnts/vue-native-core
src/core/observer/index.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/observer/index.js
MIT
function nextTickHandler() { pending = false const copies = callbacks.slice(0) callbacks.length = 0 for (let i = 0; i < copies.length; i++) { copies[i]() } }
Defer a task to execute it asynchronously.
nextTickHandler
javascript
GeekyAnts/vue-native-core
src/core/util/env.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/env.js
MIT
constructor() { this.set = Object.create(null) }
Defer a task to execute it asynchronously.
constructor
javascript
GeekyAnts/vue-native-core
src/core/util/env.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/env.js
MIT
has(key: string | number) { return this.set[key] === true }
Defer a task to execute it asynchronously.
has
javascript
GeekyAnts/vue-native-core
src/core/util/env.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/env.js
MIT
add(key: string | number) { this.set[key] = true }
Defer a task to execute it asynchronously.
add
javascript
GeekyAnts/vue-native-core
src/core/util/env.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/env.js
MIT
clear() { this.set = Object.create(null) }
Defer a task to execute it asynchronously.
clear
javascript
GeekyAnts/vue-native-core
src/core/util/env.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/env.js
MIT
function isReserved(str: string): boolean { const c = (str + '').charCodeAt(0) return c === 0x24 || c === 0x5f }
Check if a string starts with $ or _
isReserved
javascript
GeekyAnts/vue-native-core
src/core/util/lang.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/lang.js
MIT
function mergeData(to: Object, from: ?Object): Object { if (!from) return to let key, toVal, fromVal const keys = Object.keys(from) for (let i = 0; i < keys.length; i++) { key = keys[i] toVal = to[key] fromVal = from[key] if (!hasOwn(to, key)) { set(to, key, fromVal) } else if (isPlain...
Helper that recursively merges two data objects together.
mergeData
javascript
GeekyAnts/vue-native-core
src/core/util/options.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/options.js
MIT
function mergeHook( parentVal: ?Array<Function>, childVal: ?Function | ?Array<Function>, ): ?Array<Function> { return childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal } LIFECYCLE_HOOKS.forEach(hook => { strats[hook] ...
Hooks and props are merged as arrays.
mergeHook
javascript
GeekyAnts/vue-native-core
src/core/util/options.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/options.js
MIT
function mergeField(key) { const strat = strats[key] || defaultStrat options[key] = strat(parent[key], child[key], vm, key) }
Merge two option objects into a new one. Core utility used in both instantiation and inheritance.
mergeField
javascript
GeekyAnts/vue-native-core
src/core/util/options.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/options.js
MIT
function getPropDefaultValue( vm: ?Component, prop: PropOptions, key: string, ): any { // no default, return undefined if (!hasOwn(prop, 'default')) { return undefined } const def = prop.default // warn against non-factory defaults for Object & Array if (process.env.NODE_ENV !== 'production' && is...
Get the default value of a prop.
getPropDefaultValue
javascript
GeekyAnts/vue-native-core
src/core/util/props.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/props.js
MIT
function isType(type, fn) { if (!Array.isArray(fn)) { return getType(fn) === getType(type) } for (let i = 0, len = fn.length; i < len; i++) { if (getType(fn[i]) === getType(type)) { return true } } /* istanbul ignore next */ return false }
Use function string name to check built-in types, because a simple equality check will fail when running across different vms / iframes.
isType
javascript
GeekyAnts/vue-native-core
src/core/util/props.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/core/util/props.js
MIT
function observer(componentClass) { if ( typeof componentClass === 'function' && (!componentClass.prototype || !componentClass.prototype.render) && !componentClass.isReactClass && // eslint-disable-next-line no-prototype-builtins !React.Component.isPrototypeOf(componentClass) ) { class Obser...
Reference to mobx https://github.com/mobxjs/mobx-react-vue/blob/master/src/observer.js
observer
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/observer.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/observer.js
MIT
render() { return componentClass.call(this, this.props, this.context) }
Reference to mobx https://github.com/mobxjs/mobx-react-vue/blob/master/src/observer.js
render
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/observer.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/observer.js
MIT
function mixinLifecycleEvents(target) { for (const key in lifecycleMixin) { if ( key === 'shouldComponentUpdate' && typeof target.shouldComponentUpdate === 'function' ) { continue } patch(target, key) } }
Reference to mobx https://github.com/mobxjs/mobx-react-vue/blob/master/src/observer.js
mixinLifecycleEvents
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/observer.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/observer.js
MIT
UNSAFE_componentWillMount() { const cb = this.forceUpdate.bind(this) const render = this.render.bind(this) const watcher = new Watcher({ _watchers: [] }, render, cb, { lazy: true }) this.render = watcher.get.bind(watcher) watcher.lazy = false watcher.run = cb this.$vuewatcher = watcher }
Reference to mobx https://github.com/mobxjs/mobx-react-vue/blob/master/src/observer.js
UNSAFE_componentWillMount
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/observer.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/observer.js
MIT
shouldComponentUpdate(nextProps, nextState) { if (this.state !== nextState) { return true } return isObjectShallowModified(this.props, nextProps) }
Reference to mobx https://github.com/mobxjs/mobx-react-vue/blob/master/src/observer.js
shouldComponentUpdate
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/observer.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/observer.js
MIT
function patch(target, funcName) { const base = target[funcName] const mixinFunc = lifecycleMixin[funcName] target[funcName] = !base ? function() { return mixinFunc.apply(this, arguments) } : function() { mixinFunc.apply(this, arguments) return base.apply(this, arguments) ...
Reference to mobx https://github.com/mobxjs/mobx-react-vue/blob/master/src/observer.js
patch
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/observer.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/observer.js
MIT
function isObjectShallowModified(prev, next) { if ( prev == null || next == null || typeof prev !== 'object' || typeof next !== 'object' ) { return prev !== next } const keys = Object.keys(prev) if (keys.length !== Object.keys(next).length) { return true } let key for (let i = ke...
Reference to mobx https://github.com/mobxjs/mobx-react-vue/blob/master/src/observer.js
isObjectShallowModified
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/observer.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/observer.js
MIT
genTextExpression(ast) { let code = super.genTextExpression(ast) code = code.replace(/^"\\n\s*/, '"').replace(/\\n\s*"$/, '"') return code }
override gen text expression @param {Object} ast
genTextExpression
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
MIT
genText(ast) { let code = super.genText(ast) code = code.replace(/^"\\n\s*/, '"').replace(/\\n\s*"$/, '"') return code }
override gen text @param {Object} ast
genText
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
MIT
genStyleProps(ast) { const styleAttrsValue = ast.attrs .filter(v => v.name === 'style') .map(v => v.value) const show = ast.directives && ast.directives.filter(v => v.name === 'show')[0] const topParent = this.isAstTopParent(ast) if (styleAttrsValue.length === 0 && !show && !topParent)...
gen style props @param {Object} ast
genStyleProps
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
MIT
genClassProps(ast) { const topParent = this.isAstTopParent(ast) const classAttrsValue = ast.attrs .filter(v => v.name === 'class') .map(v => v.value) if (classAttrsValue.length === 0 && !topParent) { return } let staticClass, dynamicClass classAttrsValue.forEach(v => { if...
gen class props @param {Object} ast
genClassProps
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
MIT
isAstTopParent(ast) { if (ast.parent === undefined) { return true } if ( ast.parent.tag === 'template' || ast.parent.tag === 'transition' || ast.parent.originTag === 'transition' ) { if (ast.parent.parent === undefined) { return true } } return false ...
gen class props @param {Object} ast
isAstTopParent
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/NativeRenderGenerator.js
MIT
genChildren(ast) { let children = [] if (ast.children && ast.children.length) { children = children.concat( ast.children.map(v => { return this.genElement(v) }), ) } if (ast.scopedSlots) { children = children.concat( Object.keys(ast.scopedSlots) ...
gen children, include slot template generate @param {Object} ast
genChildren
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genTextExpression(ast) { return parseText(ast.text) }
gen text expression @param {Object} ast
genTextExpression
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genIf(ast) { ast.ifProcessed = true return this.genIfConditions(ast.ifConditions.slice()) }
gen if condition @param {Object} ast
genIf
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genIfConditions(conditions) { if (!conditions.length) { return 'null' } const condition = conditions.shift() let code if (condition.exp) { code = `(${condition.exp}) ?${this.genElement( condition.block, )} : ${this.genIfConditions(conditions)}` } else { code = `${...
gen if condition @param {Object} ast
genIfConditions
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genTemplate(ast) { return this.genElement(ast.children[0]) }
gen a empty component @param {Object} ast
genTemplate
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genChildrenKey(ast) { ast.children.forEach((v, i) => { v.attrs = v.attrs || [] v.attrs.push({ name: 'key', value: String(i), }) }) }
gen children key @param {Object} ast
genChildrenKey
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genTransition(ast) { return this.genChildren(ast) }
gen transition helper, this function would be override by sub class @param {Object} ast
genTransition
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genTransitionGroup(ast) { return this.genChildren(ast) }
gen transition group helper, this function would be override by sub class @param {Object} ast
genTransitionGroup
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genProps(ast) { let code = [] if (filterDirective(ast).length) { const directives = this.genDirectives(ast) if (directives) { code.push(directives) } const directiveTag = this.genDirectiveTag(ast) if (directiveTag) { code.push(directiveTag) } const direc...
gen props, this funciton would be override by sub class @param {Object} ast
genProps
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genDirectives(ast) { let code = [] ast.directives.forEach(v => { code.push( `{name:"${v.name}",directiveName:"${changeCase.lowerCase( changeCase.camelCase(v.name), )}",rawName:"${v.rawName}"${ v.value ? `,value:(${v.value}),expression:${JSON.stringify(v.valu...
gen common directive, this function would be override by SubClass
genDirectives
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genDirectiveTag(ast) { let code = '' code += `${COMMON.directive.tag}: ${this.genTag(ast)}` return code }
gen common directive, this function would be override by SubClass
genDirectiveTag
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genDirectiveContext(ast) { let code = '' code += `${COMMON.directive.context}: this` return code }
gen common directive, this function would be override by SubClass
genDirectiveContext
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genSlotTarget(ast) { ast.attrs = ast.attrs || [] ast.attrs.push({ name: 'dataSlot', value: ast.slotTarget, }) }
gen slot props @param {Object} ast
genSlotTarget
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genKey(ast) { return `key: ${ast.key}` }
gen slot props @param {Object} ast
genKey
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genKeyFor(ast) { if (!ast.key) { const obj = {} obj.name = 'key' obj.value = 'arguments[1]' ast.attrs = ast.attrs || [] ast.attrs.push(obj) } return ast }
gen key in for iterator @param {Object} ast
genKeyFor
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genIMEResolve(ast) { ast.inputProcessed = true return this.genElement(ast) }
wrapped node in a buildin component to prevent IME problem @param {Object} ast
genIMEResolve
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genTag(ast) { return ast.tag }
generate react tag, this funciton would be override by sub class @param {String} tag
genTag
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
isWebInput(ast) { if (!ast.inputProcessed) { if (ast.tag === 'textarea') { return true } else if (ast.tag === 'input') { const type = ast.attrs.filter(v => v.name === 'type')[0] if (type === undefined) { return true } else if (type.value === 'text' || type.value...
for web platform, we wrapped node in a buildin component to prevent IME problem @param {Object} ast
isWebInput
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/RenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/RenderGenerator.js
MIT
genClassProps(ast) { let code = '' const topParent = this.isAstTopParent(ast) const classAttrsValue = ast.attrs .filter(v => v.name === 'class') .map(v => v.value) if (classAttrsValue.length === 0 && !topParent) { return code } let staticClass, dynamicClass classAttrsValue....
gen class props @param {Object} ast
genClassProps
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/WebRenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/WebRenderGenerator.js
MIT
genStyleProps(ast) { const styleAttrsValue = ast.attrs .filter(v => v.name === 'style') .map(v => v.value) const show = ast.directives && ast.directives.filter(v => v.name === 'show')[0] const topParent = this.isAstTopParent(ast) if (styleAttrsValue.length === 0 && !show && !topParent)...
gen style props @param {Object} ast
genStyleProps
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/compiler/codegen/WebRenderGenerator.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/compiler/codegen/WebRenderGenerator.js
MIT
getChildContext() { return { owner: this, } }
children can access parent instance by 'this.context.owner'
getChildContext
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildComponent.js
MIT
setEventOnce(fn) { const name = fn.name return event => { if (this.eventOnceUid.indexOf(name) === -1) { this.eventOnceUid.push(name) fn(event) } } }
for event modifiers v-on:xxx.once
setEventOnce
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildComponent.js
MIT
setRootRef(ref) { if (ref) { ref = ref._ref || ref this._ref = ref this.vm.$el = this._ref } }
for event modifiers v-on:xxx.once
setRootRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildComponent.js
MIT
setRef(ref, text, inFor) { if (ref) { // for buildin component, we set ref to his hold node directly // it means the buildin componet would be the end of $refs chain ref = ref.vm || ref._ref || ref if (inFor === true) { if (!this.vm.$refs[text]) { this.vm.$ref...
for event modifiers v-on:xxx.once
setRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildComponent.js
MIT
buildVM(options) { // set this property to prevent runtime error in vue render._withStripped = true const vueOptions = { render: render, propsData: this.props, parent: this.context.owner ? this.context.owner.vm : undefined, } const reactVueOptions = { reac...
for event modifiers v-on:xxx.once
buildVM
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildComponent.js
MIT
setRef(ref) { if (ref) { if (ref._reactInternalInstance && ref.vm === undefined) { this._ref = ref._ref || ref } else { this._ref = ref.vm || ref } } }
for vue, every component should have a ref to represent node element
setRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildMixin.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildMixin.js
MIT
buildStateProps(props) { const stateProps = Object.assign({}, props) const originRef = stateProps.ref stateProps.ref = ref => { this.setRef(ref) if (typeof originRef === 'function') { return originRef(ref) } else { return ref } } return ...
for vue, every component should have a ref to represent node element
buildStateProps
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildMixin.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildMixin.js
MIT
getChildContext() { return { owner: this, } }
children can access parent instance by 'this.context.owner'
getChildContext
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildNativeComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildNativeComponent.js
MIT
setEventOnce(fn) { const name = fn.name return event => { if (this.eventOnceUid.indexOf(name) === -1) { this.eventOnceUid.push(name) fn(event) } } }
for event modifiers v-on:xxx.once
setEventOnce
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildNativeComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildNativeComponent.js
MIT
setRootRef(ref) { if (ref) { ref = ref._ref || ref this._ref = ref this.vm.$el = this._ref } }
for event modifiers v-on:xxx.once
setRootRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildNativeComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildNativeComponent.js
MIT
setRef(ref, text, inFor) { if (ref) { // for buildin component, we set ref to his hold node directly // it means the buildin componet would be the end of $refs chain ref = ref.vm || ref._ref || ref if (inFor === true) { if (!this.vm.$refs[text]) { this.vm.$ref...
for event modifiers v-on:xxx.once
setRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildNativeComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildNativeComponent.js
MIT
buildVM(options) { // set this property to prevent runtime error in vue render._withStripped = true const vueOptions = { render: render, propsData: this.props, parent: this.context.owner ? this.context.owner.vm : undefined, } const reactVueOptions = { reac...
for event modifiers v-on:xxx.once
buildVM
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildNativeComponent.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildNativeComponent.js
MIT
function getHookArgumentsLength(fn) { if (isUndef(fn)) { return false } const invokerFns = fn.fns if (isDef(invokerFns)) { // invoker return getHookArgumentsLength( Array.isArray(invokerFns) ? invokerFns[0] : invokerFns, ) } else { return (fn._length || fn.length) > 1 } }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
getHookArgumentsLength
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function checkDuration(val, name) { if (typeof val !== 'number') { warn( `<transition> explicit ${name} duration is not a valid number - ` + `got ${JSON.stringify(val)}.`, ) } else if (isNaN(val)) { warn( `<transition> explicit ${name} duration is NaN - ` + 'the duration expr...
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
checkDuration
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function isValidDuration(val) { return typeof val === 'number' && !isNaN(val) }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
isValidDuration
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function addTransitionClass(ref, className) { addClass(ref, className) }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
addTransitionClass
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function removeTransitionClass(ref, className) { removeClass(ref, className) }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
removeTransitionClass
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function enter({ el, cb }) { const { css, type, enterClass, enterToClass, enterActiveClass, appearClass, appearToClass, appearActiveClass, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeAppear, appear, onAppear, onAfterAppear, onAppe...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
enter
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function leave({ el, cb }) { const { css, type, leaveClass, leaveToClass, leaveActiveClass, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, duration, } = this.transitionResolved if (isUndef(el)) { return } if (isDef(el._leaveCb) || el.nodeType !== 1) { ...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
leave
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function buildWebTransition(Component, createElement) { const EmptyComponent = buildWebEmptyComponent(Component, createElement) class Transition extends Component { constructor(props) { super(props) this._ref = null this._refs = {} this.transitionResolved = {} this._shouldComponent...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
buildWebTransition
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
constructor(props) { super(props) this._ref = null this._refs = {} this.transitionResolved = {} this._shouldComponentUpdateTransitionResult = false this.isAppear = false this.state = { transObj: {}, animated: true, tagKey: null, } }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
constructor
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
setRef(ref, key) { if (!ref) { return } this._ref = ref._ref || ref this._refs[key] = this._ref }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
setRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
resolveData(props, type) { const target = filterCollection(props[WEB.transition.collection])[0] if (target) { const element = target.element const _props = {} for (const key in element.props) { _props[key] = element.props[key] } let key = target.index ...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
resolveData
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
setRef = ref => { this.setRef(ref, _props.key) element.ref && element.ref(ref) }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
setRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
setRef = ref => { this.setRef(ref, _props.key) element.ref && element.ref(ref) }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
setRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
UNSAFE_componentWillMount() { this.transitionResolved = resolveTransition(this.props) this.isAppear = true const state = this.resolveData(this.props) state && this.setState(state) }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
UNSAFE_componentWillMount
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
componentDidMount() { this.resolveEnterTransition({ el: this._refs[this.state.tagKey], }) }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
componentDidMount
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
UNSAFE_componentWillReceiveProps(nextProps) { this.transitionResolved = resolveTransition(nextProps) this.isAppear = false const nextState = this.resolveData(nextProps, 'update') if (nextState) { this._shouldComponentUpdateTransitionResult = this._shouldComponentUpdateTransition( ...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
UNSAFE_componentWillReceiveProps
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
_shouldComponentUpdateTransition(nextProps, nextState) { if ( Object.keys(nextState.transObj).length !== Object.keys(this.state.transObj).length ) { return true } if (nextState.tagKey === this.state.tagKey) { const nextTransition = nextState.transObj[nextState.tag...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
_shouldComponentUpdateTransition
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
resolveEnterTransition(option) { enter.call(this, option) }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
resolveEnterTransition
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
resolveLeaveTransition(option) { leave.call(this, option) }
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
resolveLeaveTransition
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
componentDidUpdate(prevProps, prevState) { if ( this.state.animated === false || this._shouldComponentUpdateTransitionResult === false ) { return } if (this.state.tagKey === prevState.tagKey) { // same element const ref = this._refs[this.state.tagKey] ...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
componentDidUpdate
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
render() { const transObj = this.state.transObj const tag = this.props.tag || EmptyComponent return createElement( tag, null, Object.keys(transObj).map(k => { const type = transObj[k].element.type const props = transObj[k].props const children = pr...
check whether animation should be updated for performance it does not used for under component but in the future we would be used @param {Object} prev props @param {Object} next props
render
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/buildWebTransition.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/buildWebTransition.js
MIT
function handleComponents(components) { for (const k in components) { if (hasOwn(components, k)) { components[pascalCaseTag(k)] = components[k] const c = components[k] if (c.name) { components[pascalCaseTag(c.name)] = components[k] } } } return components }
for options {components} @param {Object} components
handleComponents
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/util.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/util.js
MIT
function handleDirectives(directives) { const obj = {} for (const k in directives) { obj[k.toLowerCase().replace(/[^a-z]/g, '')] = directives[k] } return obj }
for options {components} @param {Object} components
handleDirectives
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/util.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/util.js
MIT
function getSlots(children) { const slots = {} if (children == null) { return slots } if (!Array.isArray(children)) { children = [children] } children = children.filter(v => v != null) children.forEach(v => { if (typeof v === 'string' || typeof v === 'number' || v === null) { slots.defau...
for 'this.$solts' @param {this.props.children} children
getSlots
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/util.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/util.js
MIT
function filterCustomEvent(props) { return Object.keys(props) .filter(v => { return v.indexOf(COMMON.customEvent.name) === 0 }) .map(v => { return { name: v.replace(COMMON.customEvent.name, ''), handle: props[v], } }) }
for 'this.$solts' @param {this.props.children} children
filterCustomEvent
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/components/util.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/components/util.js
MIT
function getHookArgumentsLength(fn) { if (isUndef(fn)) { return false } const invokerFns = fn.fns if (isDef(invokerFns)) { // invoker return getHookArgumentsLength( Array.isArray(invokerFns) ? invokerFns[0] : invokerFns, ) } else { return (fn._length || fn.length) > 1 } }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
getHookArgumentsLength
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
function checkDuration(val, name) { if (typeof val !== 'number') { warn( `<transition> explicit ${name} duration is not a valid number - ` + `got ${JSON.stringify(val)}.`, ) } else if (isNaN(val)) { warn( `<transition> explicit ${name} duration is NaN - ` + 'the duration expr...
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
checkDuration
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
function isValidDuration(val) { return typeof val === 'number' && !isNaN(val) }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
isValidDuration
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
function addTransitionClass(ref, className) { addClass(ref, className) }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
addTransitionClass
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
function removeTransitionClass(ref, className) { removeClass(ref, className) }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
removeTransitionClass
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
function enter({ el, cb }) { const { css, type, enterClass, enterToClass, enterActiveClass, appearClass, appearToClass, appearActiveClass, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeAppear, appear, onAppear, onAfterAppear, onAppe...
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
enter
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
function leave({ el, cb }) { const { css, type, leaveClass, leaveToClass, leaveActiveClass, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, duration, } = this.transitionResolved if (isUndef(el)) { return } if (isDef(el._leaveCb) || el.nodeType !== 1) { ...
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
leave
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
function transitionWeb(Component, createElement) { class Transition extends Component { constructor(props) { super(props) this._refs = {} this.transitionResolved = {} this._shouldComponentUpdateTransitionResult = false this.isAppear = false this.state = { transObj: {}, ...
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
transitionWeb
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
constructor(props) { super(props) this._refs = {} this.transitionResolved = {} this._shouldComponentUpdateTransitionResult = false this.isAppear = false this.state = { transObj: {}, animated: true, tagKey: null, } }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
constructor
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
setRef(ref, key) { if (!ref) { return } this._refs[key] = ref.ref || ref }
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
setRef
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT
resolveData(props, type) { const target = filterCollection(props[WEB.transition.collection])[0] if (target) { const element = target.element const _props = {} for (const key in element.props) { _props[key] = element.props[key] } let key = target.index ...
Normalize a transition hook's argument length. The hook may be: - a merged hook (invoker) with the original in .fns - a wrapped component method (check ._length) - a plain function (.length)
resolveData
javascript
GeekyAnts/vue-native-core
src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
https://github.com/GeekyAnts/vue-native-core/blob/master/src/platforms/vue-native/runtime/render-helpers/transitionWeb.js
MIT