@opensig/opendesign
Version:
27 lines (26 loc) • 844 B
JavaScript
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref } from "vue";
import { skeletonAvatarProps } from "./types.mjs";
import { getRoundClass } from "../_utils/style-class.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "OSkeletonAvatar",
props: skeletonAvatarProps,
setup(__props) {
const props = __props;
const round = getRoundClass(props, "skeleton");
return (_ctx, _cache) => {
return openBlock(), createElementBlock(
"div",
{
class: normalizeClass(["o-skeleton-item o-skeleton-avatar", [`o-skeleton-avatar-${props.size}`, unref(round).class.value]]),
style: normalizeStyle(unref(round).style.value)
},
null,
6
/* CLASS, STYLE */
);
};
}
});
export {
_sfc_main as default
};