element之msgox

 const h = this.$createElement;
      this.$msgbox({
        title: '消息',
        message: h(
          "div",
          {
            attrs: {
              class: "el-form"
            }
          },
          [
            h("el-input", {
              attrs: {
                placeholder: "请输入回复内容",
                id: "commentContent"
              },
              // value: this.commentContent,
              // on: { input: this.onCommentInputChange }
            }),
             h("el-divider", {

              // value: this.commentContent,
              // on: { input: this.onCommentInputChange }
            }),

             h("el-input", {
              attrs: {
                placeholder: "请输入回复内容",
                id: "commentContent"
              },
              // value: this.commentContent,
              // on: { input: this.onCommentInputChange }
            })
          ]
        ),
        showCancelButton: true,
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        beforeClose: (action, instance, done) => {
          console.log(instance)
          if (action === 'confirm') {
            instance.confirmButtonLoading = true;
            instance.confirmButtonText = '执行中...';
            setTimeout(() => {
              done();
              setTimeout(() => {
                instance.confirmButtonLoading = false;
              }, 300);
            }, 3000);
          } else {
            done();
          }
        }
      }).then(action => {
        this.$message({
          type: 'info',
          message: 'action: ' + action
        });
      });

两个输入框

上一篇:jdk下载配置方法


下一篇:Java随堂笔记01-Java入门