4 Commits

Author SHA1 Message Date
Yanzhen Yu
bae3f5d5b7 feat(runtime): use render set to check all the slot elements hidden or not
only attach fallback element to the last hidden slot
2022-07-13 22:22:55 +08:00
Yanzhen Yu
01404a2d20 feat(runtime): pass slot fallback into slot elements
Previously, we introduce if condition to the slot trait, which helps
render slot element conditionally. But it is not easy for a component
developer to implement fallback UI of a slot, because neither the
if condition is true or false, the slot elements function will return
the ImplWrapperMain component.
This patch bring a new way to implement fallback UI, by passing the
fallback UI as the second parameter of the slot elements function.
2022-07-13 16:51:47 +08:00
Yanzhen Yu
9b4cf9be0c impl #388, support slot props and apply to tabs component 2022-05-12 11:51:26 +08:00
Bowen Tan
28623964d9 update all components' spec and example 2021-11-24 15:02:02 +08:00