From d366416d5db839e5756cf9a7d7f5f90247cb7f51 Mon Sep 17 00:00:00 2001 From: zsmj Date: Tue, 6 Jun 2023 10:45:30 +0800 Subject: [PATCH] update --- packages/fineui/package.json | 2 +- packages/fineui/typescript/base/base.ts | 3 +++ .../typescript/core/controller/controller.popovers.ts | 11 +++++++++++ packages/fineui/typescript/core/inject.ts | 2 ++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 packages/fineui/typescript/core/controller/controller.popovers.ts diff --git a/packages/fineui/package.json b/packages/fineui/package.json index 2cb16732c..ee8350421 100644 --- a/packages/fineui/package.json +++ b/packages/fineui/package.json @@ -1,6 +1,6 @@ { "name": "@fui/core", - "version": "3.0.20230518150312", + "version": "3.0.20230606104509", "description": "fineui", "main": "dist/fineui.min.js", "module": "dist/lib/index.js", diff --git a/packages/fineui/typescript/base/base.ts b/packages/fineui/typescript/base/base.ts index a15f037c5..98fa0e790 100644 --- a/packages/fineui/typescript/base/base.ts +++ b/packages/fineui/typescript/base/base.ts @@ -2,6 +2,7 @@ import { LayerController } from "../core/controller/controller.layer"; import { BroadcastController } from "../core/controller/controller.broadcast"; import { StyleLoaderManager } from "../core/loader/loader.style"; import { BubblesController } from "../core/controller/controller.bubbles"; +import { PopoverController } from "../core/controller/controller.popovers"; export const Layers = new LayerController(); @@ -10,3 +11,5 @@ export const Bubbles = new BubblesController(); export const Broadcasts = new BroadcastController(); export const StyleLoaders = new StyleLoaderManager(); + +export const Popovers = new PopoverController(); diff --git a/packages/fineui/typescript/core/controller/controller.popovers.ts b/packages/fineui/typescript/core/controller/controller.popovers.ts new file mode 100644 index 000000000..d13372b26 --- /dev/null +++ b/packages/fineui/typescript/core/controller/controller.popovers.ts @@ -0,0 +1,11 @@ +import { Controller } from "./controller"; + +export declare class PopoverController extends Controller { + create(name: string, from?: any, op?: any, context?: any): T; + + open(name: string): PopoverController; + + close(name: string): PopoverController; + + removeAll(): void; +} diff --git a/packages/fineui/typescript/core/inject.ts b/packages/fineui/typescript/core/inject.ts index b54d60cf4..405c474fe 100644 --- a/packages/fineui/typescript/core/inject.ts +++ b/packages/fineui/typescript/core/inject.ts @@ -39,3 +39,5 @@ export declare namespace Services { } export declare function createWidget(item: any, options?: any, context?: Widget, lazy?: boolean): Widget + +export declare function point(type: string, action: string, pointFn: Function, after: any): void