Fork me on GitHub

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;
      }

 

posted @ 2018-11-07 09:07  欢欢11  阅读(2694)  评论(0编辑  收藏  举报