This commit is contained in:
lchen committed 2026-11-23 10:41:08 +08:00
1 parent a0fe4cb7b1
commit 5cb14ffd44
11 files changed
+157 -96

No files matched your search

+6 -3
View File
@@ -9,11 +9,14 @@ export interface OptionParamBase {
getText?: GetTextCallback;
}
export type MarkRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
export interface NotifyOption {
message: string | HTMLElement;
message: string | Node;
parent?: HTMLElement;
title?: string;
type?: "success" | "warning" | "error";
icon?: string;
persistent?: boolean;
timeout?: number;
onDismissed?: (auto?: boolean) => void;
@@ -147,9 +150,9 @@ export interface CheckboxOptions {
/** 图片高度 */
imageHeight?: number;
/** 选中时显示的元素 */
checkedNode?: HTMLElement;
checkedNode?: Element;
/** 未选中时显示的元素 */
uncheckedNode?: HTMLElement;
uncheckedNode?: Element;
/** 自定义 html 属性 */
customAttributes?: { [key: string]: string };
/**