src/utils/transporter.js
// Update the content of the target
Update the content of the target
Update the content of the target
updateTarget() {
      if (isBrowser && this._bv_target) {
        const defaultFn = this.$scopedSlots.default
        if (!this.disabled) {
          if (defaultFn && this._bv_defaultFn !== defaultFn) {
            this._bv_target.updatedNodes = defaultFn
          } else if (!defaultFn) {
            this._bv_target.updatedNodes = this.$slots.default
          }
        }
        this._bv_defaultFn = defaultFn
      }
    }
updateTarget ( ) { if ( isBrowser && this . _bv_target ) { const defaultFn = this . $scopedSlots . default if ( ! this . disabled ) { if ( defaultFn && this . _bv_defaultFn !== defaultFn ) { this . _bv_target . updatedNodes = defaultFn } else if ( ! defaultFn ) { this . _bv_target . updatedNodes = this . $slots . default } } this . _bv_defaultFn = defaultFn } }
Update the content of the target
Update the content of the target
/* istanbul ignore else: only applicable in Vue 2.5.x */ // We only update the target component if the scoped slot // function is a fresh one. The new slot syntax (since Vue 2.6) // can cache unchanged slot functions and we want to respect that here // We also need to be back compatible with non-scoped default slot (i.e. 2.5.x) // Update the scoped slot function cache