When using el-input input, no text is displayed in the input box

When using EL-INPUT, the generated text, the TextArea text box does not display the input text, ah, you have to take the keyboard to the keyboard. . .

After repeatedly reviewing the official documentation of Element UI and finding solutions of various predecessors, it is found that the following steps need to be used to solve:

1. Use v-model for event binding ( practice on the official website )
2. Return the value bound in v-model in data()

For specific practices, refer to the example:

(1) When using el-input, the input box does not display text code: . . .

insert image description here
(2) Code for data binding using v-model:

insert image description here

(3) Return the bound value in data():

insert image description here

You can enter content in the text box la la la:

insert image description here

Guess you like

Origin blog.csdn.net/Matcha_ice_cream/article/details/123365211