0%

userform

如何创建自己的form表单组件?

所需知识:

  1. 实现自己的v-model
  2. 利用slot插槽,写出el-form-item
  3. 使用prop传参定义校验字段,emit抛出数据