From 2e95574aa7c2155f96b27ce0b4f3c0794a6cd36f Mon Sep 17 00:00:00 2001 From: hekun Date: Fri, 21 Oct 2022 21:17:33 +0800 Subject: [PATCH] add header file Signed-off-by: hekun --- .../ets/MainAbility/pages/WaterFlowDataSource.ets | 15 ++++++++++++++- .../main/ets/MainAbility/pages/WaterflowDemo.ets | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterFlowDataSource.ets b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterFlowDataSource.ets index 8e94618ee..2ca9983ed 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterFlowDataSource.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterFlowDataSource.ets @@ -1,4 +1,17 @@ -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 +/** + * Copyright (c) 2022 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. + */ export class WaterFlowDataSource implements IDataSource { private dataArray: number[] = [] diff --git a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterflowDemo.ets b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterflowDemo.ets index 1ea58fc40..896fee2a9 100644 --- a/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterflowDemo.ets +++ b/arkui/ace_ets_component_two/entry/src/main/ets/MainAbility/pages/WaterflowDemo.ets @@ -1,4 +1,17 @@ -// WaterflowDemo.ets +/** + * Copyright (c) 2022 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. + */ import { WaterFlowDataSource } from './WaterFlowDataSource' @Entry -- GitLab