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>
51 lines (50 loc) • 1.53 kB
JavaScript
import { defineComponent as d, useAttrs as I, createVNode as P, mergeProps as S } from "vue";
import { ElInput as v } from "element-plus";
import "../../../node_modules/.pnpm/lodash-unified@1.0.3_@types_lodash-es@4.17.12_lodash-es@4.17.21_lodash@4.17.21/node_modules/lodash-unified/import.mjs";
import "./hooks/index.mjs";
import { zInputProps as z, inputEmits as T, INPUT_SLOTS as V, FILTER_INPUT_PROPS as E } from "./input.mjs";
import { useVModel as F } from "../../../hooks/useVModel.mjs";
import { useFormComponentSlots as M } from "../../../hooks/useFormComponentSlots.mjs";
import { useFormSize as N } from "../../../hooks/useFormSize.mjs";
import { useInputMethods as R } from "./hooks/useInputMethods.mjs";
import U from "../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
const j = /* @__PURE__ */ d({
name: "ZInput",
inheritAttrs: !1,
props: z,
emits: T,
setup: (e, {
emit: o,
slots: r,
expose: m
}) => {
const {
vModelVal: t
} = F(e, o), {
scopedSlots: s
} = M(e, r, V), {
focus: u,
blur: n,
select: p,
clear: i,
resizeTextarea: l
} = R(), a = N(), f = I();
return m({
focus: u,
blur: n,
select: p,
clear: i,
resizeTextarea: l
}), () => P(v, S({
ref: "inputRef"
}, U(e, E), f, {
size: a.value,
modelValue: t.value,
"onUpdate:modelValue": (c) => t.value = c
}), s.value);
}
});
export {
j as default
};
//# sourceMappingURL=index.mjs.map