Unverified Commit c13f9810 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera
Browse files

feat: add render function to layer

parent dd5b8ce4
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
import { onUnmounted, provide, inject } from "vue";
import { onUnmounted, provide, inject, h } from "vue";

export const props = {
  pane: {
@@ -101,3 +101,10 @@ export const setup = (props, leafletRef, context) => {

  return { options, methods };
};

export const render = (ready, context) => () => {
  if (ready.value && context.slots.default) {
    return h("div", { style: { display: "none" } }, context.slots.default());
  }
  return null;
};