First, there is only one change event. changelevel() //Select value If you want to change the select and change the value in the row Multiple events are separated by At this time, it is found that changelevel() is not executed, so what about adding () changelevel(val){ console.log(val) => //undefined} Indicates that no parameters are passed and output is undefined So who should we pass the value to? Pass in $event and output it again to get the selected value Added: element-ui @change adds custom parameters The default parameter of the change event of element-ui is a value. For example, the default parameter of the change event of the drop-down box is the selected value. However, in actual projects, we usually need to pass more than one parameter. If we directly append two parameters, we may not get them. In this case, we need to replace the default parameter name in the parameter with $event. //The first parameter is the default value parameter, and the second is the parameter we want to pass in @change='selectChange($event,scope.row)' Or use the second method: @change='(val)=>selectChange(value,scope.row)' The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: Mysql5.7 service cannot be started. Graphical solution tutorial
>>: MySQL SQL statement method to hide the middle four digits of the mobile phone number
Suppose a user management system where each perso...
When we design a page, we often need to center th...
background: In MySQL, if there is a limited level...
1. Font properties color, specifies the color of ...
Docker takes up a lot of space. Whenever we run c...
Table of contents Preface 1. Common bug fixes in ...
No more nonsense, post code HTML part <div cla...
The page length in the project is about 2000px or...
There was an article about the execution process ...
Recorded the download and installation tutorial o...
Table of contents 1. parse 1.1 Rules for intercep...
Performance of union all in MySQL 5.6 Part 1:MySQ...
This article shares the specific code of js canva...
1. Leading fuzzy query cannot use index (like ...
Use CSS3 to animate the input box similar to the ...