cube-ui中弹窗

      if (!this.surname) {
        this.$createDialog({
          type: "alert",
          icon: "cubeic-close",
          showClose: true,
          content: this.$t("message.errInputSurname"),
          onClose: () => {
            this.$createToast({
              type: "warn",
              time: 2000,
              txt: this.$t("message.Close")
            }).show();
          }
        }).show();
        return;
      }
原文地址:https://www.cnblogs.com/huanhuan55/p/9920547.html