The tabs component in the element, the click event clicks to get all the data of the current item

Not much to say, directly on the code:

 Add a :value, and then use JSON.stringify(item) to convert it, so that it will be stored in $attrs.value.

Then use el.$attrs.value in the click event. Note that when you get this value, use JSON.parse(el.$attrs.value) to convert it into an object and use it normally.

Guess you like

Origin blog.csdn.net/weixin_43703816/article/details/132025462