Number of keywords entered by vue form check

check the keywords of the paper in the input box. You can only enter five keywords at most, each of which must be separated by a comma. How can this be realized, boss? thank you

.
Jan.19,2022

you can use regularization

rules: {
    name: [
        { pattern: /^[^;]+(;[^;]+){0,4};?$/, message: '....', trigger: 'blur' }
    ]
}     

from the point of view of problem requirements, regular prompting is the best solution.
based on the analysis of the target function, it is not recommended to use the input box to allow users to segment keywords manually. Tag tag, can be used to facilitate control and reduce user misoperation. For example,

clipboard.png

Menu