use-placeholder.mjs 404 B

1234567891011121314
  1. import { createVNode as _createVNode } from "vue";
  2. import { useHeight } from "./use-height.mjs";
  3. function usePlaceholder(contentRef, bem) {
  4. const height = useHeight(contentRef, true);
  5. return (renderContent) => _createVNode("div", {
  6. "class": bem("placeholder"),
  7. "style": {
  8. height: height.value ? `${height.value}px` : void 0
  9. }
  10. }, [renderContent()]);
  11. }
  12. export {
  13. usePlaceholder
  14. };