mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 06:03:30 +00:00
!10175 添加WrappedNodeContent类支持overlay上添加节点
Merge pull request !10175 from niulihua/master
This commit is contained in:
commit
becf6ea2c3
9
api/@ohos.arkui.node.d.ts
vendored
9
api/@ohos.arkui.node.d.ts
vendored
@ -72,3 +72,12 @@ export { RenderNode } from './arkui/RenderNode';
|
||||
* @since 11
|
||||
*/
|
||||
export { XComponentNode } from './arkui/XComponentNode';
|
||||
|
||||
/**
|
||||
* Export ComponentContent.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
export { ComponentContent } from './arkui/ComponentContent';
|
||||
|
64
api/arkui/ComponentContent.d.ts
vendored
Normal file
64
api/arkui/ComponentContent.d.ts
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @kit ArkUI
|
||||
*/
|
||||
|
||||
import { UIContext } from '../@ohos.arkui.UIContext';
|
||||
import { WrappedBuilder } from 'wrappedBuilderObject';
|
||||
|
||||
/**
|
||||
* Defines ComponentContent.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
export class ComponentContent<T extends Object> {
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param { UIContext } uiContext - uiContext used to create the ComponentContent
|
||||
* @param { WrappedBuilder<[]> } builder - Defined the builder will be called to build ComponentContent.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
constructor(uiContext: UIContext, builder: WrappedBuilder<[]>);
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param { UIContext } uiContext - uiContext used to create the ComponentContent
|
||||
* @param { WrappedBuilder<[T]> } builder - Defined the builder will be called to build ComponentContent.
|
||||
* @param { T } args - Parameters used to update the ComponentContent.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
constructor(uiContext: UIContext, builder: WrappedBuilder<[T]>, args: T);
|
||||
|
||||
/**
|
||||
* Update the ComponentContent based on the provided parameters.
|
||||
*
|
||||
* @param { T } args - Parameters used to update the ComponentContent, which must match the types required by the builder bound to the ComponentContent.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
update(args: T): void;
|
||||
}
|
4
kits/@kit.ArkUI.d.ts
vendored
4
kits/@kit.ArkUI.d.ts
vendored
@ -64,7 +64,7 @@ import componentUtils from '@ohos.arkui.componentUtils';
|
||||
import dragController from '@ohos.arkui.dragController';
|
||||
import { DrawableDescriptor, LayeredDrawableDescriptor } from '@ohos.arkui.drawableDescriptor';
|
||||
import inspector from '@ohos.arkui.inspector';
|
||||
import { NodeRenderType, RenderOptions, BuilderNode, NodeController, FrameNode, DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RenderNode, XComponentNode } from '@ohos.arkui.node';
|
||||
import { NodeRenderType, RenderOptions, BuilderNode, NodeController, FrameNode, DrawContext, Size, Offset, Position, Pivot, Scale, Translation, Matrix4, Rotation, Frame, RenderNode, XComponentNode, ComponentContent } from '@ohos.arkui.node';
|
||||
import uiObserver from '@ohos.arkui.observer';
|
||||
import performanceMonitor from '@ohos.arkui.performanceMonitor';
|
||||
import {
|
||||
@ -121,7 +121,7 @@ export {
|
||||
TabSegmentButtonConstructionOptions, TabSegmentButtonOptions, TabTitleBar, TabTitleBarMenuItem, TabTitleBarTabItem,
|
||||
TipsDialog, ToolBar, ToolBarOption, ToolBarOptions, Translation, TreeController, TreeListenType, TreeListener,
|
||||
TreeListenerManager, TreeView, UIContext, UIInspector, UIObserver, WindowExtensionAbility,
|
||||
WindowExtensionContext, XComponentNode, componentSnapshot, componentUtils, curves, display, dragController, dragInteraction,
|
||||
WindowExtensionContext, XComponentNode, ComponentContent, componentSnapshot, componentUtils, curves, display, dragController, dragInteraction,
|
||||
font, inspector, matrix4, mediaquery, performanceMonitor, pluginComponentManager, prompt, promptAction, router,
|
||||
screen, screenshot, uiAppearance, uiExtensionHost, uiObserver, window, windowAnimationManager, CustomContentDialog
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user