"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const constant = require("../utils/constant.js");
const index_esm = require("../../../@vant/use/dist/index.esm.js");
const props = require("../utils/props.js");
const create = require("../utils/create.js");
const format = require("../utils/format.js");
const [name, bem] = create.createNamespace("grid");
const gridProps = {
  square: Boolean,
  center: props.truthProp,
  border: props.truthProp,
  gutter: props.numericProp,
  reverse: Boolean,
  iconSize: props.numericProp,
  direction: String,
  clickable: Boolean,
  columnNum: props.makeNumericProp(4)
};
const GRID_KEY = Symbol(name);
var stdin_default = Vue.defineComponent({
  name,
  props: gridProps,
  setup(props2, {
    slots
  }) {
    const {
      linkChildren
    } = index_esm.useChildren(GRID_KEY);
    linkChildren({
      props: props2
    });
    return () => {
      var _a;
      return Vue.createVNode("div", {
        "style": {
          paddingLeft: format.addUnit(props2.gutter)
        },
        "class": [bem(), {
          [constant.BORDER_TOP]: props2.border && !props2.gutter
        }]
      }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
    };
  }
});
exports.GRID_KEY = GRID_KEY;
exports.default = stdin_default;
exports.gridProps = gridProps;
