如何以编程方式确定Buefy输入字段是否有错误?

问题描述 投票:2回答:1

我正在研究Buefy输入字段并寻找一种方法,可以告诉我任何表单字段是否有任何错误。 Buefy Input Documentation

                          <b-field horizontal label="Title">
                          <b-input
                              v-model="model.title"
                              name="title"
                              type="text"
                              minlength="10"
                              required>
                          </b-input>
                      </b-field>

                      <b-field horizontal label="Description">
                          <b-input
                              v-model="model.description"
                              name="description"
                              type="textarea">
                          </b-input>
                      </b-field>

如果没有可用的方法,那么我们如何编写自定义方法来确定它。它将有助于在其他用例中禁用提交方法等。

vuejs2
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.