useVisibleStatus.d.ts 751 B

123456789101112131415
  1. import type { Ref } from 'vue';
  2. /**
  3. * Popup should follow the steps for each component work correctly:
  4. * measure - check for the value stretch size
  5. * align - let component align the position
  6. * aligned - re-align again in case additional className changed the size
  7. * afterAlign - choice next step is trigger motion or finished
  8. * beforeMotion - should reset motion to invisible so that CSSMotion can do normal motion
  9. * motion - play the motion
  10. * stable - everything is done
  11. */
  12. declare type PopupStatus = null | 'measure' | 'align' | 'aligned' | 'motion' | 'stable';
  13. declare type Func = () => void;
  14. declare const _default: (visible: Ref<boolean>, doMeasure: Func) => [Ref<PopupStatus>, (callback?: () => void) => void];
  15. export default _default;