import { defineComponent as i, computed as e, openBlock as s, createBlock as u, unref as t, normalizeProps as p, guardReactiveProps as m, withCtx as f, createVNode as d } from "vue";
import "../../confirm-button/index.mjs";
import "../../count-down-button/index.mjs";
import "../../ellipsis/index.mjs";
import "../../rich-text-editor/index.mjs";
import "../index.mjs";
import { WetProFormItem as P } from "../../pro-form/index.mjs";
import "../../pro-table/index.mjs";
import "../../pro-descriptions/index.mjs";
import "../../layout/index.mjs";
import "../../page/index.mjs";
import "../../guide/index.mjs";
import { ElInput as h } from "element-plus";
import { wetProFormItemProps as I } from "../../pro-form/src/types.mjs";
const N = /* @__PURE__ */ i({
  name: "WetFormText",
  __name: "text",
  props: {
    ...I,
    placeholder: String,
    formInputProps: {
      type: Object
    }
  },
  setup(n) {
    const r = n, l = e(() => {
      const o = { ...r };
      return delete o.formInputProps, o;
    }), c = e(() => r.placeholder ? r.placeholder : `请输入${r.label}`);
    return (o, _) => (s(), u(t(P), p(m(l.value)), {
      default: f(({ modelValue: a }) => [
        d(t(h), p(m({
          ...a,
          placeholder: c.value,
          ...r.formInputProps
        })), null, 16)
      ]),
      _: 1
    }, 16));
  }
});
export {
  N as default
};
