code: function() {
          var result = true;
          if (typeof this.options.onBeforeClose == 'function') {
              result = this.options.onBeforeClose();
              if (result === false) {
                  return;
              }
          }
          this.$container.hide();
          this.$mask.hide();
  
          if (typeof this.options.zIndex == 'undefined') {
              currentIndex--;
          }
  
          if (this.options.destroyOnClose) {
              this.destroy();
          }
      }
docs: 关闭对话框