vue-at
vue-at copied to clipboard
component updates: handles when list is empty and handles async loading of list
This PR adds a couple of updates to the component;
** Changes/Updates:**
- list of members are loaded from local state instead of props; this makes async loading and updating the list easier and automatically
New:
- adds a prop to display when the list is empty instead of displaying nothing
- adds a slot
emptyListto display any custom component when list is empty
Breaking changes:
membersprop got changed tolist-membersthis is because the code is so couple to 'members' prop that its easier to change a prop instead of the whole codebase
can solve #106 and #100
Thanks, just wait for my test case being ready and once the test passed in all cases I can merge it.
@fritx ok thanks for taking the time to review it!
Any update regarding the merge of this pull request? Thank you
@mirkos93 @csantiago132 sorry I can not merge the PR directly as it breaks the interface to users (for example, the prop is renamed)