Aucune description

index.d.ts 1.1KB

123456789101112131415161718192021222324
  1. /// <reference types="react" />
  2. import React from 'react';
  3. interface WantedPublishPopoverProp {
  4. popoverConfig?: {
  5. placement?: "left" | "top" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
  6. trigger?: "hover" | "focus" | "click" | "contextMenu" | undefined;
  7. getPopupContainer?: any;
  8. };
  9. handleConfirm?: Function;
  10. }
  11. interface WantedPublishPopoverState {
  12. visible: boolean;
  13. current_wanted: number | string | null;
  14. }
  15. declare class WantedPublishPopover extends React.Component<WantedPublishPopoverProp, WantedPublishPopoverState> {
  16. constructor(props: WantedPublishPopoverProp);
  17. handleClose: () => void;
  18. clearCurrentWanted: (cb: Function) => void;
  19. handleUpdateCurrentWanted: (value: string | number | null, afterUpdate?: Function | undefined) => void;
  20. renderInitView(): JSX.Element;
  21. render(): JSX.Element;
  22. }
  23. export { WantedPublishPopover as default, WantedPublishPopover, WantedPublishPopoverProp, WantedPublishPopoverState };