dist/main.js
/**
   * Runtime helper for resolving raw children VNodes into a slot object.
   */
Runtime helper for resolving raw children VNodes into a slot object.
Runtime helper for resolving raw children VNodes into a slot object .
function resolveSlots(children, context) {
    if (!children || !children.length) {
      return {};
    }
    var slots = {};
    for (var i = 0, l = children.length; i < l; i++) {
      var child = children[i];
      var data = child.data;
      if (data && data.attrs && data.attrs.slot) {
        delete data.attrs.slot;
      }
      if ((child.context === context || child.fnContext === context) && data && data.slot != null) {
        var name = data.slot;
        var slot = slots[name] || (slots[name] = []);
        if (child.tag === 'template') {
          slot.push.apply(slot, child.children || []);
        } else {
          slot.push(child);
        }
      } else {
        (slots.default || (slots.default = [])).push(child);
      }
    }
    for (var name$1 in slots) {
      if (slots[name$1].every(isWhitespace)) {
        delete slots[name$1];
      }
    }
    return slots;
  }
function resolveSlots ( children , context ) { if ( ! children || ! children . length ) { return { } ; } var slots = { } ; for ( var i = 0 , l = children . length ; i < l ; i ++ ) { var child = children [ i ] ; var data = child . data ; if ( data && data . attrs && data . attrs . slot ) { delete data . attrs . slot ; } if ( ( child . context === context || child . fnContext === context ) && data && data . slot != null ) { var name = data . slot ; var slot = slots [ name ] || ( slots [ name ] = [ ] ) ; if ( child . tag === 'template' ) { slot . push . apply ( slot , child . children || [ ] ) ; } else { slot . push ( child ) ; } } else { ( slots . default || ( slots . default = [ ] ) ) . push ( child ) ; } } for ( var name$1 in slots ) { if ( slots [ name$1 ] . every ( isWhitespace ) ) { delete slots [ name$1 ] ; } } return slots ; }
Runtime helper for resolving raw children VNodes into a slot object.
Runtime helper for resolving raw children VNodes into a slot object .
// remove slot attribute if the node is resolved as a Vue slot node // named slots should only be respected if the vnode was rendered in the // same context. // ignore slots that contains only whitespace