How to realize the background switch of WeChat Mini Programs's bottom TarBar

how to achieve the TarBar switch at the bottom of WeChat Mini Programs, the background is also switched along with it. WeChat Mini Programs"s document only has all the background settings, but I want to achieve the effect as shown in
clipboard.png

.

as a whole, there is a background for clicking. Is there any way or idea to achieve this effect without rewriting the custom TarBar style?

Mar.20,2021

the function you want should not be implemented with the official TabBar for the time being. At present, Mini Program supports dynamically setting the overall text color, text selection color and background color. Individually, only text and icon are supported.
can be implemented by writing tabbar by yourself

Menu