You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my collapse I have a custom #header slot and would like to change its value based on the status of the collapse (collapsed or expanded); something like a "show more" - "show less".
Unfortunately, the parameter returning the collapse status is only available for the #arrow slot so I'm not able to determine if the collapse is expanded or collapsed from the #header slot.
This function solves the problem (这个功能解决的问题)
In my collapse I have a custom #header slot and would like to change its value based on the status of the collapse (collapsed or expanded); something like a "show more" - "show less".
Unfortunately, the parameter returning the collapse status is only available for the #arrow slot so I'm not able to determine if the collapse is expanded or collapsed from the #header slot.
Expected API (期望的 API)
Exactly like for the #arrow slot: (options: { collapsed: boolean }).
As described in https://www.naiveui.com/en-US/os-theme/components/collapse#CollapseItem-Slots
The text was updated successfully, but these errors were encountered: