code: function (inst) {
      if (inst.$dialog.hasClass('mdui-dialog-open')) {
        inst.state = 'opened';
        componentEvent('opened', 'dialog', inst, inst.$dialog);
      } else {
        inst.state = 'closed';
        componentEvent('closed', 'dialog', inst, inst.$dialog);
  
        inst.$dialog.hide();
  
        // 所有对话框都关闭，且当前没有打开的对话框时，解锁屏幕
        if (queue.queue(queueName).length === 0 && !currentInst && isLockScreen) {
          $.unlockScreen();
          isLockScreen = false;
        }
  
        $window.off('resize', $.throttle(function () {
          readjust();
        }, 100));
  
        if (inst.options.destroyOnClosed) {
          inst.destroy();
        }
      }
    }
docs: 动画结束回调
  @param inst