<template>
  <view :class="skeletonParagraphClass" :style="skeletonParagraphStyle">
    <sar-skeleton-block
      v-for="i in rows"
      :key="i"
      :animated="animated"
      :round="round"
      :width="width"
      :height="height"
      :root-class="bem.e('row')"
    />
  </view>
</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 { skeletonParagraphProps } from "../skeleton/common";
const __default__ = {
  options: {
    virtualHost: true,
    styleIsolation: "shared"
  }
};
export default /* @__PURE__ */ _defineComponent({
  ...__default__,
  __name: "skeleton-paragraph",
  props: skeletonParagraphProps,
  setup(__props, { expose: __expose }) {
    __expose();
    const props = __props;
    const bem = createBem("skeleton");
    const skeletonParagraphClass = computed(() => {
      return classNames(bem.e("paragraph"), props.rootClass);
    });
    const skeletonParagraphStyle = computed(() => {
      return stringifyStyle(props.rootStyle);
    });
    const __returned__ = { props, bem, skeletonParagraphClass, skeletonParagraphStyle, SarSkeletonBlock };
    return __returned__;
  }
});
</script>

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