@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
32 lines (31 loc) • 928 B
JavaScript
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
};