From 8e3f3890e93d097df4be744648b9ac404d20a558 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 23 四月 2026 17:58:50 +0800
Subject: [PATCH] 2026.4.23

---
 miniprogram_npm/tdesign-miniprogram/common/utils.d.ts |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts b/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts
index 770973c..24e7a7d 100644
--- a/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts
+++ b/miniprogram_npm/tdesign-miniprogram/common/utils.d.ts
@@ -1,7 +1,14 @@
 /// <reference types="miniprogram-api-typings" />
 /// <reference types="miniprogram-api-typings" />
 /// <reference types="miniprogram-api-typings" />
-export declare const systemInfo: WechatMiniprogram.SystemInfo;
+interface WxWorkSystemInfo extends WechatMiniprogram.SystemInfo {
+    environment?: 'wxwork';
+}
+interface SystemInfo extends WxWorkSystemInfo {
+}
+export declare const systemInfo: WechatMiniprogram.WindowInfo | SystemInfo;
+export declare const appBaseInfo: WechatMiniprogram.AppBaseInfo | SystemInfo;
+export declare const deviceInfo: WechatMiniprogram.DeviceInfo | 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;
@@ -9,10 +16,14 @@
 export declare const styles: (styleObj: any) => string;
 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;
+interface TreeNode {
+    children?: TreeNode[];
+    [key: string]: any;
+}
+export declare const getTreeDepth: (tree: TreeNode[], key?: string) => any;
+export declare const isIOS: () => boolean;
+export declare const isWxWork: boolean;
+export declare const isPC: boolean;
 export declare const addUnit: (value?: string | number) => string | undefined;
 export declare const getCharacterLength: (type: string, char: string | number, max?: number) => {
     length: number;
@@ -24,13 +35,11 @@
 export declare const setIcon: (iconName: any, icon: any, defaultIcon: any) => {
     [x: string]: any;
 };
-export declare const isBool: (val: any) => boolean;
-export declare const isObject: (val: any) => boolean;
-export declare const isString: (val: any) => boolean;
 export declare const toCamel: (str: any) => any;
+export declare function toKebabCase(str: string): string;
 export declare const getCurrentPage: <T>() => T & WechatMiniprogram.OptionalInterface<WechatMiniprogram.Page.ILifetime> & WechatMiniprogram.Page.InstanceProperties & WechatMiniprogram.Page.InstanceMethods<WechatMiniprogram.IAnyObject> & WechatMiniprogram.Page.Data<WechatMiniprogram.IAnyObject> & WechatMiniprogram.IAnyObject;
 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 calcIcon: (icon: string | Record<string, any>, defaultIcon?: 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>;

--
Gitblit v1.9.3