riku
2024-11-07 5036880fc037e5d112206b93a729f60be12bf8ab
miniprogram_npm/tdesign-miniprogram/common/common.d.ts
@@ -2,18 +2,25 @@
export interface Styles {
    [css: string]: string | number;
}
export declare type ImageEvent = any;
export declare type PlainObject = {
    [key: string]: any;
};
export declare type OptionData = {
    label?: string;
    value?: string | number;
} & {
    [key: string]: any;
};
export declare type TreeOptionData = {
    children?: Array<TreeOptionData>;
} & OptionData;
} & PlainObject;
export declare type TreeOptionData<T = string | number> = {
    children?: Array<TreeOptionData<T>> | boolean;
    label?: string;
    text?: string;
    value?: T;
    content?: string;
} & PlainObject;
export declare type SizeEnum = 'small' | 'medium' | 'large';
export declare type HorizontalAlignEnum = 'left' | 'center' | 'right';
export declare type VerticalAlignEnum = 'top' | 'middle' | 'bottom';
export declare type LayoutEnum = 'vertical' | 'horizontal';
export declare type ClassName = {
    [className: string]: any;
} | ClassName[] | string;
@@ -21,15 +28,28 @@
export interface KeysType {
    value?: string;
    label?: string;
    disabled?: string;
}
export interface TreeKeysType extends KeysType {
    children?: string;
}
export interface HTMLElementAttributes {
    [css: string]: string;
    [attribute: string]: string;
}
export interface InfinityScroll {
export interface TScroll {
    bufferSize?: number;
    isFixedRowHeight?: boolean;
    rowHeight?: number;
    threshold?: number;
    type: 'lazy' | 'virtual';
}
export declare type TScroll = InfinityScroll;
export declare type InfinityScroll = TScroll;
export interface ScrollToElementParams {
    index?: number;
    top?: number;
    time?: number;
    behavior?: 'auto' | 'smooth';
}
export interface ComponentScrollToElementParams extends ScrollToElementParams {
    key?: string | number;
}