May 18, 2021 WeChat Mini Program Development Document
Some of the components in the small program are native components created by the client, and these components are:
Because native components are out of the WebView rendering process, there are the following limitations when using them:
In order to solve the highest limitations of the native component levels.The applet provides the Cover-View and Cover-Image components, which can be overwritten on the part of the native component.These two components are also native components, but the use restrictions are different from other native components.
Same-layer rendering is designed to solve the hierarchical problem of native components, and when the same-layer rendering is supported, native components and other components can be superimposed at will, and hierarchical restrictions no longer exist. H owever, it is important to note that the inside of the component is still rendered natively, and the style is generally not valid inside the native component. The current video, map, live-player, live-pusher, canvas(2d) components already support same-layer rendering.
In order to adjust the relative hierarchy between native components, the small program in v2.7.0 and above versions supports declaring z-index in styles to specify the hierarchy of native components. The z-index adjusts only the order of the hierarchies between native components, which are still higher than other non-native components.