Browse Source

coverage

dev
Evan You 9 years ago
parent
commit
2091c8525f
  1. 1
      src/core/instance/render.js
  2. 3
      src/platforms/web/runtime/components/transition-control.js

1
src/core/instance/render.js

@ -41,6 +41,7 @@ export function initRender (vm: Component) {
// this is used by internal abstract components like <keep-alive>.
if (vm.$options._abstract) {
let parent = vm.$parent
/* istanbul ignore next */
while (parent && parent.$options._abstract) {
parent = parent.$parent
}

3
src/platforms/web/runtime/components/transition-control.js

@ -9,6 +9,7 @@ export default {
child: Object,
mode: {
validator (val) {
/* istanbul ignore if */
if (val && val !== 'out-in' && val !== 'in-out') {
warn('transition-mode must be either "out-in" or "in-out".')
return false
@ -51,10 +52,12 @@ export default {
}
function addHook (vnode: VNode, hooks: Object) {
/* istanbul ignore if */
if (!vnode.data || !vnode.data.transition) {
return
}
let trans = vnode.data.transition
/* istanbul ignore else */
if (typeof trans === 'string') {
trans = vnode.data.transition = { name: trans }
} else if (typeof trans !== 'object') {

Loading…
Cancel
Save