From 1fef4864b56b6a04773c35138a86ca37757179cd Mon Sep 17 00:00:00 2001 From: zsmj Date: Mon, 15 May 2023 19:29:33 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=B1=BB=E5=9E=8B=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/typescript/core/base.ts | 12 ++++++++++++ packages/fineui/typescript/core/foundation.ts | 3 +++ packages/fineui/typescript/core/var.ts | 1 + packages/fineui/typescript/index.ts | 1 + 4 files changed, 17 insertions(+) create mode 100644 packages/fineui/typescript/core/foundation.ts diff --git a/packages/fineui/typescript/core/base.ts b/packages/fineui/typescript/core/base.ts index 225b79d5c..8b8b48732 100644 --- a/packages/fineui/typescript/core/base.ts +++ b/packages/fineui/typescript/core/base.ts @@ -403,3 +403,15 @@ export declare function getTime(...args: any[]): number; * @param obj 对象 */ export declare function isPromise(obj: any): obj is Promise; + +export declare function set( + object: TObject, + path: string | string[], + value: any +): TObject; + +export declare function get( + object: TObject, + path: TKey | [TKey] | string | null | undefined, + defaultValue?: any +): TObject[TKey] | any; diff --git a/packages/fineui/typescript/core/foundation.ts b/packages/fineui/typescript/core/foundation.ts new file mode 100644 index 000000000..74899e9fc --- /dev/null +++ b/packages/fineui/typescript/core/foundation.ts @@ -0,0 +1,3 @@ +export declare const _global: any; + +export declare const prepares: Function[]; diff --git a/packages/fineui/typescript/core/var.ts b/packages/fineui/typescript/core/var.ts index d3e956ccc..8afeb6850 100644 --- a/packages/fineui/typescript/core/var.ts +++ b/packages/fineui/typescript/core/var.ts @@ -129,3 +129,4 @@ export declare const VerticalAlign: { }; export declare const StartOfWeek: number; export declare const BlankSplitChar: string; +export declare const Events: Record; diff --git a/packages/fineui/typescript/index.ts b/packages/fineui/typescript/index.ts index 55de61cd9..25081eece 100644 --- a/packages/fineui/typescript/index.ts +++ b/packages/fineui/typescript/index.ts @@ -1,3 +1,4 @@ +export * from "./core/foundation"; export * from "./core/action/action.show"; export * from "./core/action/action"; export * from "./core/behavior/behavior";