'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
require('../hooks/index.js');
var useConfigInject = require('../config-provider/hooks/useConfigInject.js');

const cardGridProps = () => ({
  prefixCls: String,
  hoverable: {
    type: Boolean,
    default: true
  }
});
var Grid = /* @__PURE__ */ vue.defineComponent({
  compatConfig: {
    MODE: 3
  },
  name: "ACardGrid",
  __ANT_CARD_GRID: true,
  props: cardGridProps(),
  setup(props, {
    slots
  }) {
    const {
      prefixCls
    } = useConfigInject.default("card", props);
    const classNames = vue.computed(() => {
      return {
        [`${prefixCls.value}-grid`]: true,
        [`${prefixCls.value}-grid-hoverable`]: props.hoverable
      };
    });
    return () => {
      var _a;
      return vue.createVNode("div", {
        "class": classNames.value
      }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
    };
  }
});

exports.cardGridProps = cardGridProps;
exports.default = Grid;
//# sourceMappingURL=Grid.js.map
