UNPKG

@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>

27 lines (26 loc) 844 B
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 };