In element-ui, the dynamically generated form verification method

In element-ui, the dynamically generated form verification method

insert image description here

  1. Corresponding to yellow and blue: prop needs to contain array name. subscript. object name
  2. You need to write the corresponding verification method in it (you can’t use the rules verification in data(){}, because it is dynamic)

Effect:
insert image description here

Guess you like

Origin blog.csdn.net/weixin_42947972/article/details/124310364