@aplus-frontend/ui
Version:
76 lines (75 loc) • 1.87 kB
JavaScript
import { defineComponent as m, useSlots as c, createBlock as B, openBlock as y, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as v, withCtx as t, createVNode as x, renderSlot as s, renderList as _ } from "vue";
import { omit as b } from "lodash-unified";
import { ApForm as d } from "../index.mjs";
const S = /* @__PURE__ */ m({
name: "ApFormItemRender",
__name: "item",
props: {
htmlFor: {},
prefixCls: {},
label: {},
help: {},
extra: {},
labelCol: {},
wrapperCol: {},
hasFeedback: { type: Boolean, default: !1 },
colon: { type: Boolean, default: void 0 },
labelAlign: {},
prop: {},
name: {},
rules: {},
autoLink: { type: Boolean, default: !0 },
required: { type: Boolean, default: void 0 },
validateFirst: { type: Boolean, default: void 0 },
validateStatus: {},
validateTrigger: {},
messageVariables: {},
hidden: { type: Boolean },
noStyle: { type: Boolean },
tooltip: {},
span: {},
order: {},
offset: {},
push: {},
pull: {},
xs: {},
sm: {},
md: {},
lg: {},
xl: {},
xxl: {},
flex: {},
bordered: { type: Boolean, default: !1 },
valuePropName: { default: "value" },
initialValue: {},
_signal: {},
transform: {},
description: {},
customFilled: {},
disabled: { type: Boolean }
},
setup(p) {
const i = p, u = c();
return (a, g) => (y(), B(e(d).FormItem, o(l(i)), v({
default: t(() => [
x(e(d).ControlRender, null, {
default: t((r) => [
s(a.$slots, "default", o(l(r)))
]),
_: 3
})
]),
_: 2
}, [
_(e(b)(u, "default"), (r, n) => ({
name: n,
fn: t((f) => [
s(a.$slots, n, o(l(f || {})))
])
}))
]), 1040));
}
});
export {
S as default
};