Notice.d.ts 1.1 KB

1234567891011121314151617181920212223242526
  1. import type { Key } from '../_util/type';
  2. import type { HTMLAttributes } from 'vue';
  3. import type { MouseEventHandler } from '../_util/EventInterface';
  4. interface DivProps extends HTMLAttributes {
  5. 'data-testid'?: string;
  6. }
  7. export interface NoticeProps {
  8. prefixCls: string;
  9. duration?: number | null;
  10. updateMark?: string;
  11. /** Mark as final key since set maxCount may keep the key but user pass key is different */
  12. noticeKey: Key;
  13. closeIcon?: any;
  14. closable?: boolean;
  15. props?: DivProps;
  16. onClick?: MouseEventHandler;
  17. onClose?: (key: Key) => void;
  18. /** @private Only for internal usage. We don't promise that we will refactor this */
  19. holder?: HTMLDivElement;
  20. /** @private Provided by CSSMotionList */
  21. visible?: boolean;
  22. }
  23. declare const _default: import("vue").DefineComponent<NoticeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<NoticeProps>, {
  24. closeIcon?: any;
  25. }>;
  26. export default _default;