ideaz-element
Version:
<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>
67 lines (66 loc) • 1.56 kB
JavaScript
import "../../../shared/index.mjs";
import "../../../utils/index.mjs";
import { defineComponent as r, h as u, resolveComponent as i } from "vue";
import { useFormComponentAttrs as p } from "../../../hooks/useFormComponentAttrs.mjs";
import { useFormSize as s } from "../../../hooks/useFormSize.mjs";
import { getDynamicAttributes as c } from "../../../shared/getDynamicAttributes.mjs";
import { isObject as d } from "../../../utils/is.mjs";
const V = /* @__PURE__ */ r({
name: "ZTableCustomColumnContainer",
props: {
modelValue: {
type: [String, Number, Array, Boolean]
},
prop: {
type: String
},
componentName: {
type: [String, Object],
default: "unknown"
},
options: {
type: Object
},
evts: {
type: Object
},
scope: {
type: Object
},
size: {
type: String
},
fieldProps: {
type: Object,
default: () => ({})
},
column: {
type: Object,
default: () => ({})
}
},
emits: ["update:modelValue"],
setup(e, {
emit: t
}) {
const {
attrsAll: o,
onAll: n
} = p(e), m = s(), l = c(e.fieldProps, e.scope);
return () => u(d(e.componentName) ? e.componentName : i(e.componentName), {
...o.value,
...n.value,
...e.fieldProps,
...l,
size: m.value,
modelValue: e.modelValue,
"onUpdate:modelValue": (a) => {
t("update:modelValue", a);
}
});
}
});
export {
V as default
};
//# sourceMappingURL=TableCustomColumnContainer.mjs.map