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

feat: add render function to popper

parent 0a30ea6e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
import { h } from "vue";

export const props = {
  content: {
    type: String,
@@ -16,3 +18,10 @@ export const setup = (props, leafletRef) => {
  };
  return { options, methods };
};

export const render = (root, context) => () => {
  if (context.slots.default) {
    return h("div", { ref: root }, context.slots.default());
  }
  return null;
};