mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
dcc473a471
Signed-off-by: 田雨 <tianyu55@huawei.com>
391 lines
9.7 KiB
Plaintext
391 lines
9.7 KiB
Plaintext
/*
|
|
* Copyright (C) 2023 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
|
|
*/
|
|
|
|
/**
|
|
* Controls the style types of GridObjectSortComponent.
|
|
* @enum { string }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Controls the style types of GridObjectSortComponent.
|
|
* @enum { string }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
export declare enum GridObjectSortComponentType {
|
|
/**
|
|
* The GridObjectSortComponent image text type.
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* The GridObjectSortComponent image text type.
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
IMAGE_TEXT = "image_text",
|
|
|
|
/**
|
|
* The GridObjectSortComponent text type.
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* The GridObjectSortComponent text type.
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
TEXT = "text"
|
|
}
|
|
|
|
/**
|
|
* Declaration of the GridObjectSortComponent item.
|
|
* @interface GridObjectSortComponentIteml
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Declaration of the GridObjectSortComponent item.
|
|
* @interface GridObjectSortComponentIteml
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
export interface GridObjectSortComponentItem {
|
|
/**
|
|
* id of GridObjectSortComponent item.
|
|
* @type { number | string }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* id of GridObjectSortComponent item.
|
|
* @type { number | string }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
id: number | string;
|
|
|
|
/**
|
|
* GridObjectSortComponent item text.
|
|
* @type { ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* GridObjectSortComponent item text.
|
|
* @type { ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
text: ResourceStr;
|
|
|
|
/**
|
|
* selected of GridObjectSortComponent item, true is show area, false is add area.
|
|
* @type { boolean }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* selected of GridObjectSortComponent item, true is show area, false is add area.
|
|
* @type { boolean }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
selected: boolean;
|
|
|
|
/**
|
|
* order of GridObjectSortComponentItem, Used for sorting dataList.
|
|
* @type { number }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* order of GridObjectSortComponentItem, Used for sorting dataList.
|
|
* @type { number }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
order: number;
|
|
|
|
/**
|
|
* image resource path of the GridObjectSortComponent item.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* image resource path of the GridObjectSortComponent item.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
url?: ResourceStr;
|
|
}
|
|
|
|
/**
|
|
* GridObjectSortComponentOptions of GridObjectSortComponent.
|
|
* @interface GridEditOptions
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* GridObjectSortComponentOptions of GridObjectSortComponent.
|
|
* @interface GridEditOptions
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
export interface GridObjectSortComponentOptions {
|
|
/**
|
|
* Configuration GridObjectSortComponent type.
|
|
* @type { GridObjectSortComponentType }
|
|
* @default GridObjectSortComponentType.TEXT
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Configuration GridObjectSortComponent type.
|
|
* @type { GridObjectSortComponentType }
|
|
* @default GridObjectSortComponentType.TEXT
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
type?: GridObjectSortComponentType;
|
|
|
|
/**
|
|
* The size of the GridObjectSortComponent image.
|
|
* @type { ?number | ?Resource }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* The size of the GridObjectSortComponent image.
|
|
* @type { ?number | ?Resource }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
imageSize?: number | Resource;
|
|
|
|
/**
|
|
* The title displayed in the unedited state of the GridObjectSortComponent.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* The title displayed in the unedited state of the GridObjectSortComponent.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
normalTitle?: ResourceStr;
|
|
|
|
/**
|
|
* The title displayed in the GridObjectSortComponent edit state.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* The title displayed in the GridObjectSortComponent edit state.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
editTitle?: ResourceStr;
|
|
|
|
/**
|
|
* Display Area Title, First subtitle of the GridObjectSortComponent.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Display Area Title, First subtitle of the GridObjectSortComponent.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
showAreaTitle?: ResourceStr;
|
|
|
|
/**
|
|
* Add Zone Title, second subtitle of the GridObjectSortComponent.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Add Zone Title, second subtitle of the GridObjectSortComponent.
|
|
* @type { ?ResourceStr }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
addAreaTitle?: ResourceStr;
|
|
}
|
|
|
|
/**
|
|
* Declare struct GridObjectSortComponent.
|
|
* @struct { GridObjectSortComponent }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Declare struct GridObjectSortComponent.
|
|
* @struct { GridObjectSortComponent }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
@Component
|
|
export declare struct GridObjectSortComponent {
|
|
/**
|
|
* Component types and parameters of the GridObjectSortComponent.
|
|
* @type { GridObjectSortComponentOptions }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Component types and parameters of the GridObjectSortComponent.
|
|
* @type { GridObjectSortComponentOptions }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
@Prop
|
|
options: GridObjectSortComponentOptions;
|
|
|
|
/**
|
|
* Data list of GridObjectSortComponent.
|
|
* @type { Array<GridObjectSortComponentItem> }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Data list of GridObjectSortComponent.
|
|
* @type { Array<GridObjectSortComponentItem> }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
dataList: Array<GridObjectSortComponentItem>;
|
|
|
|
/**
|
|
* Callback when Obtain edited data.
|
|
* @type { (select: Array<GridObjectSortComponentItem>, unselect: Array<GridObjectSortComponentItem>) => void }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Callback when Obtain edited data.
|
|
* @type { (select: Array<GridObjectSortComponentItem>, unselect: Array<GridObjectSortComponentItem>) => void }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
onSave: (select: Array<GridObjectSortComponentItem>, unselect: Array<GridObjectSortComponentItem>) => void;
|
|
|
|
/**
|
|
* Cancel callback for saving data.
|
|
* @type { () => void }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Cancel callback for saving data.
|
|
* @type { () => void }
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
onCancel: () => void;
|
|
|
|
/**
|
|
* Build function of GridObjectSortComponent.
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @since 11
|
|
*/
|
|
/**
|
|
* Build function of GridObjectSortComponent.
|
|
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
|
* @crossplatform
|
|
* @atomicservice
|
|
* @since 12
|
|
*/
|
|
build(): void;
|
|
} |