Ingen beskrivning

index.d.ts 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. /// <reference types="react" />
  2. import React from "react";
  3. import { RefObject } from "react";
  4. import { Input } from "antd";
  5. interface AllocWantedModalProps {
  6. allocValue: string | number | null;
  7. sendValueRange: Array<string | number>;
  8. sendRequest: Function;
  9. sendGiftData: {
  10. answerId: string | number;
  11. questionId: string | number;
  12. toUserId: string | number;
  13. };
  14. handleVisibleChange: (visible: boolean) => void;
  15. }
  16. interface AllocWantedModalState {
  17. visible: boolean;
  18. outRangeTip: boolean;
  19. sendValue: string | number;
  20. }
  21. declare class AllocWantedModal extends React.Component<AllocWantedModalProps, AllocWantedModalState> {
  22. ModalInputRef: RefObject<Input>;
  23. ModalContentRef: RefObject<any>;
  24. constructor(props: AllocWantedModalProps);
  25. handleSendValueChange: (v: React.ReactText) => void;
  26. checkSendValue: () => boolean;
  27. handleCloseAction: () => void;
  28. handleShowAction: () => void;
  29. handleConfirm: () => null | undefined;
  30. renderCloseButton: () => JSX.Element;
  31. renderModalContent: () => JSX.Element;
  32. render(): JSX.Element;
  33. }
  34. export { AllocWantedModal as default };