import { defineComponent as m, openBlock as i, createBlock as n, unref as t, withCtx as c, createElementVNode as r, createVNode as a, createCommentVNode as u, createElementBlock as s, Fragment as v, renderList as f } from "vue";
import { Card as x, Flex as p, Skeleton as l } from "@aplus-frontend/antdv";
import "./item.vue.mjs";
import o from "./item.vue2.mjs";
const y = { style: {
  display: "flex",
  justifyContent: "flex-end",
  paddingBlockStart: "16px",
  marginInlineEnd: "8px"
} }, C = /* @__PURE__ */ m({
  name: "ApSkeletonTable",
  __name: "index",
  props: {
    active: { type: Boolean },
    size: { default: 4 },
    actions: { type: Boolean, default: void 0 }
  },
  setup(e) {
    return (h, B) => (i(), n(t(x), { variant: "borderless" }, {
      default: c(() => [
        e.actions !== !1 ? (i(), n(t(p), {
          key: 0,
          justify: "space-between"
        }, {
          default: c(() => [
            r("div", null, [
              a(t(l).Button, {
                active: e.active,
                size: "small",
                style: {
                  width: "100px",
                  marginBlockEnd: "16px",
                  marginInlineEnd: "16px"
                }
              }, null, 8, ["active"]),
              a(t(l).Button, {
                active: e.active,
                size: "small",
                style: { width: "100px", marginBlockEnd: "16px" }
              }, null, 8, ["active"])
            ]),
            a(t(l).Button, {
              active: e.active,
              size: "small",
              style: { width: "22px", marginBlockEnd: "16px" }
            }, null, 8, ["active"])
          ]),
          _: 1
        })) : u("", !0),
        a(o, {
          header: "",
          active: e.active
        }, null, 8, ["active"]),
        (i(!0), s(v, null, f(new Array(e.size).fill(null), (g, d) => (i(), n(o, {
          key: d,
          active: e.active
        }, null, 8, ["active"]))), 128)),
        r("div", y, [
          a(t(l), {
            active: e.active,
            paragraph: !1,
            title: {
              style: {
                margin: 0,
                height: "24px",
                float: "right",
                maxWidth: "630px"
              }
            }
          }, null, 8, ["active"])
        ])
      ]),
      _: 1
    }));
  }
});
export {
  C as default
};
