Home > front end > Please recommend, a component of vue form dynamic add form item
Please recommend, a component of vue form dynamic add form item
Time:11-30
Expectations are based on elementUI + vue, have this kind of components, to dynamically add form items on a form, click on the button pop-up Windows can choose to add form item types, such as radio buttons, check boxes, drop-down selection box, box... These basic input, and then according to the type you choose set the name, the default value of what, I select the check box, for example, can set a few options, what is the value of each option in this way, you have this kind of components for recommended ~ ~ ~
CodePudding user response:
ElementUI separate component has the oneself write dynamically add logic code, through the option to modify the form's properties can be achieved
CodePudding user response:
Can do a new box, put some in the drop-down, larry respectively under the component types (radio buttons, check boxes, drop-down selection box, box... Put (), the other is what name, the default value), then the page write the these components respectively, and then use v - for control, when data rendering him as written,