Slot-scope named slot to get the object parameters of the table

Slot-scope named slot to get the object parameters of the table

In the .vue component, if you want to get the data corresponding to a certain column of this row in the table in a certain row of the table, you need to use slot-scope to name the slot. When you first write slot-scope, the following error will occur:

Insert picture description here

This is because the using eslint-plugin-vue is checked by default in our Vetur spread, we need to check it and uncheck it as shown below:

Insert picture description here

After canceling, the red wavy line under the slot-scope will disappear.

Insert picture description here

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_45950109/article/details/111742487