Why use attribute to do what event is supposed to do? For example, like the on-success property of the component upload, why not use events?

when looking at the upload component upload, I am very confused about why uploads like on-success successfully trigger events. Instead, I use attribute,. I understand that attribute should pass parameters instead of doing what events should do. Is there any consideration here?

clipboard.png

Dec.05,2021

on-success is just an event that is encapsulated as a hook function.

Menu