UNPKG

@vrx-arco/pro-components

Version:

<p align="center"> <img src="https://vrx-arco.github.io/arco-design-pro/favicon.svg" width="200" height="250"> </p>

52 lines (51 loc) 1.6 kB
var __defProp = Object.defineProperty; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b) => { for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) { if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]); } return a; }; import { defineComponent, createVNode } from "vue"; import { Col, FormItem } from "@arco-design/web-vue"; import { formGridItemProps } from "./props.mjs"; const FormGridItem = /* @__PURE__ */ defineComponent({ name: "vrx-arco-form-grid-item", props: formGridItemProps(), setup: (props, { slots }) => { const getFormItemProps = () => { const o = __spreadValues({}, props); delete o.gridProps; return o; }; return () => { const { gridProps } = props; return createVNode(Col, gridProps, { default: () => [createVNode(FormItem, getFormItemProps(), { default: () => { var _a; return [(_a = slots.default) == null ? void 0 : _a.call(slots)]; }, label: slots.label, help: slots.help, extra: slots.extra })] }); }; } }); export { FormGridItem };