vue custom v-model
感谢
https://scotch.io/tutorials/add-v-model-support-to-custom-vuejs-component
To let our component support v-model two-way binding, I stated earlier that the component needs to accept a value
prop and emit an input
event.
1 | <template> |