简体   繁体   中英

quasar select use-input validation rule

I am using a QSelect component from Quasar framework v1.9.2

it uses use-input and a filter function. I want to use some kind of validation for the input to indicate that the user has to type at least two characters.

But when using rules attribute the validation works on the current selection, not on the use-input field. How can i apply validation rules on the input field?

我希望这会帮助您可以使用这样的绑定错误:

:error="attribute.length>2"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM