mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
!9509 【api】【position/offset】支持top/left/bottom/right属性定位
Merge pull request !9509 from 冯纪拓/position_sdk
This commit is contained in:
commit
5cc1dc495e
27
api/@internal/component/ets/common.d.ts
vendored
27
api/@internal/component/ets/common.d.ts
vendored
@ -14534,7 +14534,18 @@ declare class CommonMethod<T> {
|
||||
* @since 11
|
||||
* @form
|
||||
*/
|
||||
position(value: Position): T;
|
||||
/**
|
||||
* position
|
||||
*
|
||||
* @param { Position | Edges } value
|
||||
* @returns { T }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @form
|
||||
*/
|
||||
position(value: Position | Edges): T;
|
||||
|
||||
/**
|
||||
* Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element.
|
||||
@ -14618,7 +14629,19 @@ declare class CommonMethod<T> {
|
||||
* @since 11
|
||||
* @form
|
||||
*/
|
||||
offset(value: Position): T;
|
||||
/**
|
||||
* Coordinate offset relative to the layout completion position.
|
||||
* Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing.
|
||||
*
|
||||
* @param { Position | Edges } value
|
||||
* @returns { T }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @form
|
||||
*/
|
||||
offset(value: Position | Edges): T;
|
||||
|
||||
/**
|
||||
* If the value is true, the component is available and can respond to operations such as clicking.
|
||||
|
61
api/@internal/component/ets/units.d.ts
vendored
61
api/@internal/component/ets/units.d.ts
vendored
@ -1789,6 +1789,67 @@ declare interface Position {
|
||||
*/
|
||||
y?: Length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the Edges.
|
||||
*
|
||||
* @interface Edges
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @form
|
||||
*/
|
||||
declare interface Edges {
|
||||
/**
|
||||
* top property.
|
||||
*
|
||||
* @type { ?Dimension }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @form
|
||||
*/
|
||||
top?: Dimension;
|
||||
|
||||
/**
|
||||
* left property.
|
||||
*
|
||||
* @type { ?Dimension }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @form
|
||||
*/
|
||||
left?: Dimension;
|
||||
|
||||
/**
|
||||
* bottom property.
|
||||
*
|
||||
* @type { ?Dimension }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @form
|
||||
*/
|
||||
bottom?: Dimension;
|
||||
|
||||
/**
|
||||
* right property.
|
||||
*
|
||||
* @type { ?Dimension }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
* @form
|
||||
*/
|
||||
right?: Dimension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the Bias.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user