UNPKG

@opensig/opendesign

Version:

32 lines (31 loc) 928 B
import { defineComponent, createElementBlock, renderSlot, openBlock, normalizeClass, createVNode } from "vue"; import { skeletonProps } from "./types.mjs"; import _sfc_main$1 from "./OSkeletonText.vue.mjs"; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "OSkeleton", props: skeletonProps, setup(__props) { const props = __props; return (_ctx, _cache) => { return props.loading ? (openBlock(), createElementBlock( "div", { key: 0, class: normalizeClass(["o-skeleton", { "o-skeleton-animation": props.animation }]) }, [ renderSlot(_ctx.$slots, "template", {}, () => [ createVNode(_sfc_main$1, { rows: props.rows }, null, 8, ["rows"]) ]) ], 2 /* CLASS */ )) : renderSlot(_ctx.$slots, "default", { key: 1 }); }; } }); export { _sfc_main as default };