import { defineComponent as o, openBlock as t, createBlock as n, unref as a, withCtx as l, createVNode as c, createCommentVNode as d, createElementBlock as s, Fragment as u, renderList as m } from "vue";
import { Card as r, Skeleton as f } from "@aplus-frontend/antdv";
import "./item.vue.mjs";
import p from "./item.vue2.mjs";
const b = /* @__PURE__ */ o({
  name: "ApSkeletonList",
  __name: "index",
  props: {
    size: {},
    active: { type: Boolean, default: !0 },
    actionButton: { type: Boolean }
  },
  setup(e) {
    return (y, v) => (t(), n(a(r), {
      variant: "borderless",
      "body-style": { padding: 0 }
    }, {
      default: l(() => [
        e.actionButton !== !1 ? (t(), n(a(r), {
          key: 0,
          variant: "borderless",
          "body-style": {
            display: "flex",
            alignItems: "center",
            justifyContent: "end",
            padding: "18px 24px"
          }
        }, {
          default: l(() => [
            c(a(f).Button, {
              style: { width: "80px" },
              active: e.active,
              size: "small"
            }, null, 8, ["active"])
          ]),
          _: 1
        })) : d("", !0),
        (t(!0), s(u, null, m(new Array(e.size).fill(null), (x, i) => (t(), n(p, {
          key: i,
          active: !!e.active
        }, null, 8, ["active"]))), 128))
      ]),
      _: 1
    }));
  }
});
export {
  b as default
};
