完全跑通1.0版本

This commit is contained in:
2026-05-26 12:56:03 +08:00
parent 2ece5174a7
commit 93c714a93b
11557 changed files with 1648225 additions and 36 deletions

View File

@@ -0,0 +1,18 @@
import { NotificationPosition, Notify } from "./notification.js";
import { VNode } from "vue";
//#region ../../packages/components/notification/src/notify.d.ts
/**
* This function gets called when user click `x` button or press `esc` or the time reached its limitation.
* Emitted by transition@before-leave event so that we can fetch the current notification.offsetHeight, if this was called
* by @after-leave the DOM element will be removed from the page thus we can no longer fetch the offsetHeight.
* @param {String} id notification id to be closed
* @param {Position} position the positioning strategy
* @param {Function} userOnClose the callback called when close passed by user
*/
declare function close(id: string, position: NotificationPosition, userOnClose?: (vm: VNode) => void): void;
declare function closeAll(): void;
declare function updateOffsets(position?: NotificationPosition): void;
declare const _default: Notify;
//#endregion
export { close, closeAll, _default as default, updateOffsets };