When we componentize development,v-model must be used by everyone, have input, select components, or write their own components, take v-Model apart,
It is equivalent to binding value and input events to achieve bidirectional binding. When the parent component binds the V-model property, the child component must throw up the input event and receive the value of prop as value. For value changes, it usually watches value.
However, in many scenarios, the parent component is bound to the V-model attribute, so we need to distinguish whether the current value is changed by the parent component through the change of value or by the event thrown by the child component input. Otherwise, the watch event that listens to value will be triggered at the same time. In the watch event, if the complex data structure is not easy to control, it is time to define a state called behaviorStatus.
When the parent component is thrown, because the parent component is bound to the V-Model, the execution context goes to the Watch event that listens to value. In this case, we need to check the behaviorStatus of the yacht status in the listening event. When the context in which the event was thrown ends, the change in value triggers the listening callback. Perform a delayed callback that assigns the state to the initial false.