Evan You 11 лет назад
Родитель
Сommit
7d3b87f9ff
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/directives/component.js

+ 5 - 0
src/directives/component.js

@@ -78,6 +78,8 @@ module.exports = {
    * Instantiate/insert a new child vm.
    * If keep alive and has cached instance, insert that
    * instance; otherwise build a new one and cache it.
+   *
+   * @return {Vue} - the created instance
    */
 
   build: function () {
@@ -110,6 +112,7 @@ module.exports = {
    * If keep alive, simply remove it; otherwise destroy it.
    *
    * @param {Boolean} remove
+   * @param {Function} cb
    */
 
   unbuild: function (remove, cb) {
@@ -156,6 +159,8 @@ module.exports = {
   /**
    * Actually swap the components, depending on the
    * transition mode. Defaults to simultaneous.
+   *
+   * @param {Vue} child - target to swap to
    */
 
   swapTo: function (child) {