@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>
25 lines (24 loc) • 713 B
JavaScript
import { formGridItemProps } from "./props.js";
import { createVNode, defineComponent } from "vue";
import { Col, FormItem } from "@arco-design/web-vue";
const FormGridItem = /* @__PURE__ */ defineComponent({
name: "vrx-arco-form-grid-item",
props: formGridItemProps(),
setup: (props, { slots }) => {
const getFormItemProps = () => {
const o = { ...props };
delete o.gridProps;
return o;
};
return () => {
const { gridProps } = props;
return createVNode(Col, gridProps, { default: () => [createVNode(FormItem, getFormItemProps(), {
default: () => [slots.default?.()],
label: slots.label,
help: slots.help,
extra: slots.extra
})] });
};
}
});
export { FormGridItem };