@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.69 kB
JavaScript
;
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;
};
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const vue = require("vue");
const webVue = require("@arco-design/web-vue");
const props = require("./props.js");
const FormGridItem = /* @__PURE__ */ vue.defineComponent({
name: "vrx-arco-form-grid-item",
props: props.formGridItemProps(),
setup: (props2, {
slots
}) => {
const getFormItemProps = () => {
const o = __spreadValues({}, props2);
delete o.gridProps;
return o;
};
return () => {
const {
gridProps
} = props2;
return vue.createVNode(webVue.Col, gridProps, {
default: () => [vue.createVNode(webVue.FormItem, getFormItemProps(), {
default: () => {
var _a;
return [(_a = slots.default) == null ? void 0 : _a.call(slots)];
},
label: slots.label,
help: slots.help,
extra: slots.extra
})]
});
};
}
});
exports.FormGridItem = FormGridItem;