From 233a467167e2b363098cc7fa63e7f26d1d15507b Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期日, 27 四月 2025 16:23:28 +0800 Subject: [PATCH] 线索任务 --- miniprogram_npm/tdesign-miniprogram/common/utils.d.ts | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts b/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts index ebab160..770973c 100644 --- a/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts +++ b/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts @@ -1,21 +1,26 @@ /// <reference types="miniprogram-api-typings" /> /// <reference types="miniprogram-api-typings" /> +/// <reference types="miniprogram-api-typings" /> +export declare const systemInfo: WechatMiniprogram.SystemInfo; declare type Context = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance; export declare const debounce: (func: any, wait?: number) => (...rest: any[]) => void; export declare const throttle: (func: any, wait?: number, options?: any) => (...args: any[]) => void; export declare const classNames: (...args: any[]) => string; export declare const styles: (styleObj: any) => string; -export declare const getAnimationFrame: (context: any, cb: Function) => WechatMiniprogram.NodesRef; +export declare const getAnimationFrame: (context: any, cb: Function) => any; export declare const getRect: (context: any, selector: string, needAll?: boolean) => Promise<any>; export declare const isNumber: (value: any) => boolean; +export declare const isNull: (value: any) => boolean; +export declare const isUndefined: (value: any) => boolean; +export declare const isDef: (value: any) => boolean; export declare const addUnit: (value?: string | number) => string | undefined; -export declare const getCharacterLength: (type: string, str: string, max?: number) => { +export declare const getCharacterLength: (type: string, char: string | number, max?: number) => { length: number; characters: string; }; export declare const chunk: (arr: any[], size: number) => any[][]; export declare const getInstance: (context?: Context, selector?: string) => WechatMiniprogram.Component.TrivialInstance; -export declare const unitConvert: (value: number | string) => number; +export declare const unitConvert: (value: number | string | null | undefined) => number; export declare const setIcon: (iconName: any, icon: any, defaultIcon: any) => { [x: string]: any; }; @@ -27,4 +32,6 @@ export declare const uniqueFactory: (compName: any) => () => string; export declare const calcIcon: (icon: string | Record<string, any>, defaultIcon?: string) => string | Record<string, any>; export declare const isOverSize: (size: any, sizeLimit: any) => boolean; +export declare const rpx2px: (rpx: any) => number; +export declare const nextTick: () => Promise<void>; export {}; -- Gitblit v1.9.3