@webx-ui/core 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,16 @@ export declare function flattenNodes(nodes: VNode[]): VNode[];
14
14
  * It exists because a template can render a slot but not a slice of one, and the
15
15
  * children must be rendered *once*: an entry that appeared in both halves would
16
16
  * register itself twice and report the wrong branch to the menu above it.
17
+ *
18
+ * The vnodes are cloned on the way out, and that is not a nicety. A vnode belongs to
19
+ * the place it was mounted, and a slice that moves between two of them — the bar and
20
+ * the overflow branch — would be asking Vue to mount the same one twice. Vue does this
21
+ * cloning itself for a slot rendered in a template; vnodes handed along as a prop skip
22
+ * that path. In a development build the compiler hands back a fresh vnode per render
23
+ * and the reuse never shows; in a production build an entry with nothing dynamic about
24
+ * it is cached and handed back as the very same object, and the second place it is
25
+ * rendered comes out empty. That was an open, empty "More" on a phone, and nothing at
26
+ * all in dev.
17
27
  */
18
28
  export declare const WxNodes: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
19
29
  nodes: {