Is vue's v-model bidirectional data binding suitable for business scenarios where input values need to be checked and formatted at the same time?

in our business, the input content of the input box needs to be formatted and displayed, such as 1000-bit character, zero padding, and so on. At the same time, we also need to verify the validity of the input content and replace it if it is illegal.

Feb.10,2022

certainly fits.
refer to react's ant-design form, which is designed to make the view and model bi-directional.
form submission is just a modification to the model. As for thousands, zeros, etc., you only need to deal with the model twice.

Menu