Ingen beskrivning

index.d.ts 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /// <reference types="react" />
  2. import React from "react";
  3. interface WantedPublishViewProps {
  4. type?: "pop" | "modal";
  5. wrapperClass?: string;
  6. current_wanted: number | string | null;
  7. showInputWantedClear?: boolean;
  8. viewTextOptions?: {
  9. viewTitle: string;
  10. imgLabelBottom: string;
  11. inputTipTop: string;
  12. numberSuffix: string;
  13. inputTipBottom: string;
  14. };
  15. InputWantedValueChange: Function;
  16. InputWantedPressEnter: Function;
  17. InputWantedOnBlur: Function;
  18. InputWantedClear: Function;
  19. InputWantedConfirm: Function;
  20. }
  21. interface WantedPublishViewState {
  22. payment?: number;
  23. }
  24. declare class WantedPublishView extends React.Component<WantedPublishViewProps, WantedPublishViewState> {
  25. private containerRef;
  26. constructor(props: WantedPublishViewProps);
  27. componentWillUnmount(): void;
  28. render(): JSX.Element;
  29. }
  30. declare function WantedViewWranModel({ refMount, actionConfirm, actionCancel, viewTextOptions }: {
  31. refMount: any;
  32. actionConfirm: any;
  33. actionCancel: any;
  34. viewTextOptions?: {
  35. warnModalTitle?: string;
  36. warnModalTip?: string;
  37. };
  38. }): void;
  39. export { WantedPublishView as default, WantedViewWranModel };