<template>
  <sar-skeleton-block
    :root-class="skeletonAvatarClass"
    :root-style="skeletonAvatarStyle"
    :animated="animated"
    :round="round"
    :width="width"
    :height="height"
  />
</template>

<script lang="ts">
import { defineComponent as _defineComponent } from "vue";
import { computed } from "vue";
import { classNames, stringifyStyle, createBem } from "../utils";
import SarSkeletonBlock from "../skeleton-block/skeleton-block.vue";
import { SkeletonAvatarProps } from "../skeleton/common";
const __default__ = {
  options: {
    virtualHost: true,
    styleIsolation: "shared"
  }
};
export default /* @__PURE__ */ _defineComponent({
  ...__default__,
  __name: "skeleton-avatar",
  props: SkeletonAvatarProps,
  setup(__props, { expose: __expose }) {
    __expose();
    const props = __props;
    const bem = createBem("skeleton");
    const skeletonAvatarClass = computed(() => {
      return classNames(bem.e("avatar"), props.rootClass);
    });
    const skeletonAvatarStyle = computed(() => {
      return stringifyStyle(
        {
          width: props.size,
          height: props.size
        },
        props.rootStyle
      );
    });
    const __returned__ = { props, bem, skeletonAvatarClass, skeletonAvatarStyle, SarSkeletonBlock };
    return __returned__;
  }
});
</script>

<style lang="scss">
@use './index.scss';
</style>