uni-shared.d.ts 1.2 KB
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5

export declare const BUILT_IN_TAGS: string[];

export declare const COMPONENT_NAME_PREFIX = "VUni";

fxy060608's avatar
fxy060608 已提交
6 7 8
export declare const COMPONENT_PREFIX: string;

export declare const COMPONENT_SELECTOR_PREFIX = "uni-";
fxy060608's avatar
fxy060608 已提交
9 10 11 12 13 14

export declare function debounce(fn: Function, delay: number): {
    (this: any): void;
    cancel(): void;
};

fxy060608's avatar
fxy060608 已提交
15 16
export declare function getLen(str?: string): number;

fxy060608's avatar
fxy060608 已提交
17 18 19 20 21 22 23 24
export declare function isBuiltInComponent(tag: string): boolean;

export declare function isCustomElement(tag: string): boolean;

export declare function isNativeTag(tag: string): boolean;

export declare const NAVBAR_HEIGHT = 44;

fxy060608's avatar
fxy060608 已提交
25 26 27 28 29 30
export declare function normalizeDataset(el: Element): any;

export declare function passive(passive: boolean): {
    passive: boolean;
};

fxy060608's avatar
fxy060608 已提交
31 32
export declare function plusReady(callback: () => void): void;

fxy060608's avatar
fxy060608 已提交
33 34
export declare const PRIMARY_COLOR = "#007aff";

fxy060608's avatar
fxy060608 已提交
35 36
export declare function removeLeadingSlash(str: string): string;

fxy060608's avatar
fxy060608 已提交
37 38
export declare const RESPONSIVE_MIN_WIDTH = 768;

fxy060608's avatar
fxy060608 已提交
39 40 41 42 43 44 45
export declare function stringifyQuery(obj?: Record<string, any>, encodeStr?: typeof encodeURIComponent): string;

export declare const TABBAR_HEIGHT = 50;

export declare const TAGS: string[];

export { }