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,

CodePudding user response:

refer to the second floor wzh970514 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 the data rendering written can be him,
I was thinking, is the thought of more troublesome see if someone is ready, for direct use can

CodePudding user response:

Abundant yourself, don't always think about picking up ready-made,
Another developed later, remember to share for everyone to see,

CodePudding user response:

reference 4 floor lp19890601 response:
abundant yourself, don't always think about picking up ready-made,
Also developed later, remember to share for everyone to see,
make backend do this headache, temporarily made a dynamically add input box make do with the
  • Related