Home > front end >  Vue dynamically add text box how
Vue dynamically add text box how

Time:12-06

Unable to add the input box, after adding the vue show nothing

CodePudding user response:

Can describe the detailed point again

CodePudding user response:

The
reference Coder - 1/F response:
problem can describe the detailed point

Is that a div element to turn him into text input box, can't change, and lead to other elements can't display properly

CodePudding user response:

With v - HTML add elements

 & lt; - HTML div v="inputHtml" & gt; 


Data () {
Return {
InputHtml: '& lt; Input type="text" & gt; '
};
}

CodePudding user response:

Why don't you use the v - if v - show to control, dynamic uncontrollable

CodePudding user response:

Define a number, then v - for the number, the inside write input, number is how many how many input box is created,

CodePudding user response:



 


<script>
Export the default {
Data () {
Return {
InputNumber: "'
}
},
}
</script>

Take not at all

CodePudding user response:

This is ok
  • Related