import "react";
import { jsx } from "../../../node_modules/.pnpm/@emotion_react@11.10.4_q4mq7tnhdumujvomvw24zx33y4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
import InputNumber from "../../../node_modules/.pnpm/@arco-design_web-react@2.40.1_biqbaboplfbrettd7655fr4n2y/node_modules/@arco-design/web-react/es/InputNumber/index.js";
const Number = ({
  register,
  control,
  name,
  required,
  type,
  ...props
}) => {
  const restProps = {
    placeholder: `\u8BF7\u8F93\u5165${props.label || props.title}`,
    ...type === "rmb" ? {
      prefix: "\xA5",
      min: 0,
      formatter: (value) => `${value}`.replace(/B(?=(d{3})+(?!d))/g, ","),
      parser: (value) => value.replace(/,/g, "")
    } : {},
    ...props
  };
  return /* @__PURE__ */ jsx(InputNumber, {
    type: "number",
    ...restProps
  });
};
export {
  Number
};
//# sourceMappingURL=Number.js.map
