From 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 18:09:58 +0800
Subject: [PATCH] 上报转运调试

---
 node_modules/uview-plus/types/index.d.ts |  178 ++++++++++++++++++++++++-----------------------------------
 1 files changed, 73 insertions(+), 105 deletions(-)

diff --git a/node_modules/uview-plus/types/index.d.ts b/node_modules/uview-plus/types/index.d.ts
index 62528cd..bd643cf 100644
--- a/node_modules/uview-plus/types/index.d.ts
+++ b/node_modules/uview-plus/types/index.d.ts
@@ -1,84 +1,51 @@
 /// <reference path="./comps.d.ts" />
+type Func = import('./func').Func
 declare module 'uview-plus' {
-	export function install(): void  //蹇呰
-	interface test {
-		/** 閭鏍煎紡鏍¢獙 */
-		email(email: string): boolean
-		/** 鎵嬫満鍙锋牎楠� */
-		mobile(phone: number): boolean;
-		/** url璺緞楠岃瘉 */
-		url(value: string): boolean;
-		/** 楠岃瘉鏃ユ湡鏍煎紡 */
-		date(value: string | number): boolean;
-		/** 楠岃瘉ISO绫诲瀷鐨勬棩鏈熸牸寮� YYYY-MM-DD | YYYY/MM/DD */
-		dateISO(value: string): boolean;
-		/** 楠岃瘉鍗佽繘鍒舵暟瀛� */
-		number(value: number): boolean;
-		/** 楠岃瘉瀛楃涓� */
-		string(value: string): boolean;
-		/** 楠岃瘉鏁存暟 */
-		digits(value: number): boolean;
-		/** 楠岃瘉韬唤璇佸彿鐮� */
-		idCard(value: string | number): boolean;
-		/** 鏄惁杞︾墝鍙� */
-		carNo(value: string): boolean;
-		/** 閲戦,鍙厑璁�2浣嶅皬鏁� */
-		amount(value: string | number): boolean;
-		/** 鏍¢獙鏄惁鏄腑鏂� */
-		chinese(value: any): boolean;
-		/** 鏍¢獙鏄惁鏄瓧姣� */
-		letter(value: any): boolean;
-		/** 鏍¢獙瀛楁瘝鎴栬�呮暟瀛� */
-		enOrNum(value: any): boolean;
-		/** 楠岃瘉鏄惁鍖呭惈鏌愪釜鍊� */
-		contains(source: string, value: string): boolean;
-		/** 楠岃瘉涓�涓�艰寖鍥碵min, max] */
-		range(value: string, between: number[]): boolean;
-		/** 楠岃瘉涓�涓暱搴﹁寖鍥碵min, max] */
-		rangeLength(value: string, between: number[]): boolean;
-		/** 鏄惁鍥哄畾鐢佃瘽 */
-		landline(value: string | number): boolean;
-		/** 鍒ゆ柇鏄惁涓虹┖ */
-		empty(value: string | number | undefined | boolean | object | null): boolean;
-		/** 鏄惁json瀛楃涓� */
-		jsonString(value: string): boolean;
-		/** 鏄惁鏁扮粍 */
-		array(value: any): boolean;
-		/** 鏄惁瀵硅薄 */
-		object(value: any): boolean;
-		/** 鏄惁鐭俊楠岃瘉鐮� */
-		code(value: any, len: number): boolean;
-		/** 鏄惁鍑芥暟鏂规硶 */
-		func(value: any): boolean;
-		/** 鏄惁promise瀵硅薄 */
-		promise(value: any): boolean;
-		/** 鏄惁鍥剧墖鏍煎紡 */
-		image(value: string): boolean;
-		/** 鏄惁瑙嗛鏍煎紡 */
-		video(value: string): boolean;
-		/** 鏄惁涓烘鍒欏璞� */
-		regExp(value: any): boolean;
-	}
-	interface RouteParam {
-		type: 'navigateTo' | 'redirect' | 'switchTab' | 'reLaunch' | 'navigateBack';
-		/** 璺敱鍦板潃 */
-		url: string;
-		/** navigateBack椤甸潰鍚庨��鏃�,鍥為��鐨勫眰鏁� */
-		delta?: number;
-		/** 浼犻�掔殑鍙傛暟 */
-		params?: {};
-		/** 绐楀彛鍔ㄧ敾,鍙湪APP鏈夋晥 */
-		animationType?: string;
-		/** 绐楀彛鍔ㄧ敾鎸佺画鏃堕棿,鍗曚綅姣,鍙湪APP鏈夋晥 */
-		animationDuration?: number;
-		/** 鏄惁闇�瑕佹嫤鎴� */
-		intercept?: boolean;
-	}
+  export function install(
+    vm: import('vue').App,
+    upuiParams?: () => {
+      httpIns?: (http: HttpRequest) => void;
+      options?: Partial<GlobalConfig>;
+    }
+  ): void; //蹇呰
+	type test = import('./func').test
+	type RouteParam = import('./func').RouteParam
+	type HttpRequest = InstanceType<typeof import('../libs/luch-request')['default']>
 	interface Config {
 		v: string;
 		version: string;
 		color: Partial<Color>;
-		unit: 'px' | 'rpx'
+		/**
+		 * - 淇敼榛樿鍗曚綅锛岀浉褰撲簬鎵ц uni.$u.config.unit = 'rpx'
+		 * - 缁勪欢鐨勫緢澶氬崟浣嶄粛鐒朵负px骞堕潪閰嶇疆涓嶇敓鏁堬紝鑰屾槸rpx閰嶇疆鐩墠鏃犳硶鍋氬埌淇敼Vue鍗曟枃浠剁粍浠朵腑鐨凜ss/Sass涓啓姝荤殑px鍗曚綅銆�
+		 * - 杩欎釜閰嶇疆涓昏鐢ㄤ簬prop浼犲弬鏃剁殑鍗曚綅淇敼锛屾瘮濡�<up-image width="80"></up-image>涓殑80浼氭槸rpx鍗曚綅銆�
+		 * - 濡傛灉闇�瑕佸叏灞�缁勪欢鏍峰紡鍙樹负rpx锛屽彲浠ュ皾璇曚娇鐢╬ostcss绛夌涓夋柟鎻掍欢杞崲銆�
+		 * @default 'px'
+		 */
+		unit: 'px' | 'rpx';
+		/** 
+		 * 鍙姞杞戒竴娆″瓧浣撳浘鏍�
+		 * @default false
+		 */
+		loadFontOnce: boolean;
+		/** 
+		 * 鎵╁厖鑷畾涔夊瓧浣撳浘鏍�
+		 * @version 3.4.14
+		 */
+		customIcon: {
+			/** 瀛椾綋鏃忓悕绉� */
+			family: string;
+			/** ttf鏂囦欢杩滅▼閾炬帴 */
+			url: string;
+		};
+		/** 
+		 * unicode鏄犲皠琛紝涓轰簡鏇寸洿瑙備功鍐欙紝璇箟鏇存槑纭�
+		 * - 濡�'light-mode': '\ue66c'
+		 * - <up-icon customPrefix="xyicon" name="light-mode"></up-icon>
+		 */
+		customIcons: {
+			[key: string]: string
+		}
 	}
 	interface Color {
 		primary: string,
@@ -97,36 +64,10 @@
 		config: Partial<Config>;
 		props: {};
 	}
-	interface $u {
-		route: (url: string | RouteParam) => void;
-		/**
-		  * 姹備袱涓鑹蹭箣闂寸殑娓愬彉鍊�
-		  * @param {string} startColor 寮�濮嬬殑棰滆壊
-		  * @param {string} endColor 缁撴潫鐨勯鑹�
-		  * @param {number} step 棰滆壊绛夊垎鐨勪唤棰�
-		  */
-		colorGradient: (startColor: string, endColor: string, step: number) => any[];
-		/**
-		 * 灏唄ex琛ㄧず鏂瑰紡杞崲涓簉gb
-		 * @param color "#000000"-> "rgb(0,0,0)" | "rgb(0,0,0)" -> "#000000"
-		 * @param str 鏄惁杩斿洖棰滆壊鏁扮粍 true -> 涓嶈繑鍥�
-		 * @returns 
-		 */
-		hexToRgb: (color: string, str?: boolean) => any[];
-		/**
-		 * 灏唕gb琛ㄧず鏂瑰紡杞崲涓篽ex
-		 */
-		rgbToHex: (color: string) => string;
-		/**
-		 * 鍗佸叚杩涘埗杞崲涓簉gb鎴杛gba
-		 * @param color 
-		 * @param alpha 閫忔槑搴�
-		 * @returns  rgba锛�255锛�255锛�255锛�0.5锛夊瓧绗︿覆
-		 */
-		colorToRgba: (color: string, alpha: number) => string;
+	interface $u extends Func {
 		test: test;
 		type: {},
-		http: {},
+		http: HttpRequest,
 		config: Config;
 		zIndex: {
 			toast: number;
@@ -139,8 +80,6 @@
 			sticky: number;
 			indexListSticky: number;
 		},
-		debounce: (func, wait, immediate) => void;
-		throttle: (func, wait, immediate) => void;
 		mixin: {},
 		mpMixin: {},
 		props: {},
@@ -149,6 +88,35 @@
 	}
 
 	export function setConfig(config: Partial<GlobalConfig>): void;
+	// 鍙崟鐙鍏ヤ娇鐢�,涔熷彲浠ュ湪 uni.$u 涓娇鐢�
+	export const test: $u['test']
+	export const http: $u['http']
+	export const config: $u['config']
+	export const platform: $u['platform']
+	export const range: $u['range']
+	export const getPx: $u['getPx']
+	export const rpx2px: $u['rpx2px']
+	export const sleep: $u['sleep']
+	export const os: $u['os']
+	export const sys: $u['sys']
+	export const random: $u['random']
+	export const guid: $u['guid']
+	export const addStyle: $u['addStyle']
+	export const addUnit: $u['addUnit']
+	export const timeFormat: $u['timeFormat']
+	export const timeFrom: $u['timeFrom']
+	export const trim: $u['trim']
+	export const queryParams: $u['queryParams']
+	export const toast: $u['toast']
+	export const priceFormat: $u['priceFormat']
+	export const genLightColor: $u['genLightColor']
+	export const debounce: $u['debounce']
+	export const throttle: $u['throttle']
+	export const colorGradient: $u['colorGradient']
+	export const hexToRgb: $u['hexToRgb']
+	export const rgbToHex: $u['rgbToHex']
+	export const colorToRgba: $u['colorToRgba']
+	export const route: $u['route']
 
 	global {
 		interface Uni {

--
Gitblit v1.9.3