<template>
  <view :class="skeletonBlockClass" :style="skeletonBlockStyle"></view>
</template>

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

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