iview中的Form表单校验

iview Form表单检验


      
Hz Hz

在校验中

ok () {
      this.$refs.formValidate.validate((valid) => {
        this.loading = true
        if (valid) {
          this.$Message.success('Success!')
          this.isShowModel = false
        } else {
          this.loading = false
          this.$nextTick(() => {
            this.loading = true
          })
          this.$Message.error('Fail!')
        }
      })
    },

你可能感兴趣的:(vue,iview)