import { defineComponent as f, computed as u, openBlock as e, createBlock as t, unref as p, normalizeProps as m, guardReactiveProps as P, withCtx as d, mergeProps as i } from "vue";
import "../../confirm-button/index.mjs";
import "../../count-down-button/index.mjs";
import "../../ellipsis/index.mjs";
import "../../rich-text-editor/index.mjs";
import { WetDigitRange as I } from "../index.mjs";
import { WetProFormItem as h } 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 { ElInputNumber as _ } from "element-plus";
import { wetProFormItemProps as b } from "../../pro-form/src/types.mjs";
const E = /* @__PURE__ */ f({
  name: "WetFormNumber",
  __name: "number",
  props: {
    ...b,
    placeholder: String,
    formInputProps: {
      type: Object
    }
  },
  setup(s) {
    const r = s, a = u(() => {
      const o = { ...r };
      return delete o.formInputProps, o;
    }), c = u(() => r.placeholder ? r.placeholder : `请输入${r.label}`);
    return (o, g) => (e(), t(p(h), m(P(a.value)), {
      default: d(({ modelValue: n }) => {
        var l;
        return [
          ((l = r.formInputProps) == null ? void 0 : l.type) === "numberrange" ? (e(), t(p(I), m(i({ key: 0 }, {
            ...n,
            placeholder: c.value,
            ...r.formInputProps
          })), null, 16)) : (e(), t(p(_), m(i({ key: 1 }, {
            ...n,
            ...r.formInputProps
          })), null, 16))
        ];
      }),
      _: 1
    }, 16));
  }
});
export {
  E as default
};
