暂无描述

index.d.ts 908B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /// <reference types="react" />
  2. import React from "react";
  3. interface Props {
  4. rowMode: "single" | "multi";
  5. price: number;
  6. onPriceChange: (v: number) => void;
  7. size: "small" | "normal" | "large";
  8. focusScroll: boolean;
  9. withTitle: boolean;
  10. titleText?: string | JSX.Element[] | JSX.Element;
  11. inputPlaceholderText?: string;
  12. priceOptions?: Array<any>;
  13. priceRender?: Function;
  14. inputPriceRender?: Function;
  15. inputSuffix?: string | JSX.Element[] | JSX.Element;
  16. injectOptions?: {
  17. priceBtnClass: (isActive: boolean) => any;
  18. priceInputClass: Function;
  19. };
  20. inputRef: React.RefObject<any>;
  21. }
  22. declare const PriceOptions: ({
  23. price,
  24. onPriceChange,
  25. rowMode,
  26. size,
  27. focusScroll,
  28. withTitle,
  29. titleText,
  30. inputPlaceholderText,
  31. priceOptions,
  32. priceRender,
  33. inputPriceRender,
  34. inputSuffix,
  35. injectOptions,
  36. inputRef
  37. }: Props) => JSX.Element;
  38. export { PriceOptions as default };