未验证 提交 d48a8198 编写于 作者: O openharmony_ci 提交者: Gitee

!2547 modified api

Merge pull request !2547 from jiyong/local-950306
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
*/ */
import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index" import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from "deccjsunit/index"
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import ohosDataAbility from '@ohos.data.dataability' import ohosDataAbility from '@ohos.data.dataAbility'
describe('ActsDataAbilityJsTest', function () { describe('ActsDataAbilityJsTest', function () {
let dataAbilityUri = ("dataability:///com.example.myapplication.DataAbility"); let dataAbilityUri = ("dataability:///com.example.myapplication.DataAbility");
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct PanGestureExample { struct PanGestureExample {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct AlphabetIndexerSample { struct AlphabetIndexerSample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
import prompt from '@system.prompt' import prompt from '@system.prompt'
@Entry @Entry
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct AreaExample { struct AreaExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct ScrollBarExample { struct ScrollBarExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct CircleExample { struct CircleExample {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import Configuration from '@system.configuration'; import Configuration from '@system.configuration';
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct promptExample { struct promptExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
import Curves from '@ohos.curves' import Curves from '@ohos.curves'
@Entry @Entry
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@CustomDialog @CustomDialog
struct CustomDialogExample { struct CustomDialogExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct DatePickerExample01 { struct DatePickerExample01 {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct DividerExample { struct DividerExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct fillModeExample { struct fillModeExample {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct ContentTable { struct ContentTable {
......
// @ts-nocheck // @ts-nocheck
/** /**
* Copyright (c) 2021 Huawei Device Co., Ltd. * Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at * You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct GaugeExample { struct GaugeExample {
@State gaugeValue: string = 50; @State gaugeValue: string = 50;
@State strokeWidthValue: string = 20; @State strokeWidthValue: string = 20;
@State startAngleValue: string = 210; @State startAngleValue: string = 210;
@State endAngleValue: string = 150; @State endAngleValue: string = 150;
@State colorValues: Array = [[0x317AF7, 1], [0x5BA854, 1], [0xE08C3A, 1], [0x9C554B, 1], [0xD94838, 1]]; @State colorValues: Array = [[0x317AF7, 1], [0x5BA854, 1], [0xE08C3A, 1], [0x9C554B, 1], [0xD94838, 1]];
private stateChangCallBack = (eventData) => { private stateChangCallBack = (eventData) => {
if (eventData != null) { if (eventData != null) {
console.info("gauge page state change called:" + JSON.stringify(eventData)); console.info("gauge page state change called:" + JSON.stringify(eventData));
if(eventData.data.gaugeValue != null) { if(eventData.data.gaugeValue != null) {
this.gaugeValue = eventData.data.gaugeValue; this.gaugeValue = eventData.data.gaugeValue;
} }
if(eventData.data.strokeWidthValue != null) { if(eventData.data.strokeWidthValue != null) {
this.strokeWidthValue = eventData.data.strokeWidthValue; this.strokeWidthValue = eventData.data.strokeWidthValue;
} }
if(eventData.data.startAngleValue != null) { if(eventData.data.startAngleValue != null) {
this.startAngleValue = eventData.data.startAngleValue; this.startAngleValue = eventData.data.startAngleValue;
} }
if(eventData.data.endAngleValue != null) { if(eventData.data.endAngleValue != null) {
this.endAngleValue = eventData.data.endAngleValue; this.endAngleValue = eventData.data.endAngleValue;
} }
if(eventData.data.colorValues != null) { if(eventData.data.colorValues != null) {
this.colorValues = JSON.parse(eventData.data.colorValues); this.colorValues = JSON.parse(eventData.data.colorValues);
} }
} }
} }
onPageShow() { onPageShow() {
console.info('gauge page show called'); console.info('gauge page show called');
var stateChangeEvent = { var stateChangeEvent = {
eventId: 1, eventId: 1,
priority: events_emitter.EventPriority.LOW priority: events_emitter.EventPriority.LOW
} }
events_emitter.on(stateChangeEvent, this.stateChangCallBack); events_emitter.on(stateChangeEvent, this.stateChangCallBack);
var stateChangeEventTwo = { var stateChangeEventTwo = {
eventId: 2, eventId: 2,
priority: events_emitter.EventPriority.LOW priority: events_emitter.EventPriority.LOW
} }
events_emitter.on(stateChangeEventTwo, this.stateChangCallBack); events_emitter.on(stateChangeEventTwo, this.stateChangCallBack);
} }
build() { build() {
Column() { Column() {
Gauge({ value: 0, min: 0, max: 100 }) Gauge({ value: 0, min: 0, max: 100 })
.key("gauge") .key("gauge")
.value(`${this.gaugeValue}`) .value(`${this.gaugeValue}`)
.startAngle(`${this.startAngleValue}`) .startAngle(`${this.startAngleValue}`)
.endAngle(`${this.endAngleValue}`) .endAngle(`${this.endAngleValue}`)
.colors(this.colorValues) .colors(this.colorValues)
.strokeWidth(`${this.strokeWidthValue}`) .strokeWidth(`${this.strokeWidthValue}`)
.width(200).height(200) .width(200).height(200)
}.width('100%').margin({ top: 300 }) }.width('100%').margin({ top: 300 })
} }
} }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
class ContainerInfo { class ContainerInfo {
label : string = '' label : string = ''
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct OpacityExample { struct OpacityExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct PositionSetting { struct PositionSetting {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct ClipAndMaskExample { struct ClipAndMaskExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Preview @Preview
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
import Matrix4 from '@ohos.matrix4' import Matrix4 from '@ohos.matrix4'
@Entry @Entry
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct GestureGroupExample { struct GestureGroupExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct linearGradientExample { struct linearGradientExample {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct ImageAnimatorExample { struct ImageAnimatorExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct ImageExample1 { struct ImageExample1 {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
import Matrix4 from '@ohos.matrix4' import Matrix4 from '@ohos.matrix4'
import prompt from '@system.prompt' import prompt from '@system.prompt'
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
import prompt from '@ohos.prompt' import prompt from '@ohos.prompt'
@Entry @Entry
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import router from '@system.router'; import router from '@system.router';
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
struct OhosRouterB { struct OhosRouterB {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct PageTransitionExample1 { struct PageTransitionExample1 {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct AExample { struct AExample {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
struct PanGestureExample { struct PanGestureExample {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter'; import events_emitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
import events_emitter from '@ohos.emitter' import events_emitter from '@ohos.events.emitter'
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import eventsEmitter from '@ohos.emitter'; import eventsEmitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import eventsEmitter from '@ohos.emitter'; import eventsEmitter from '@ohos.events.emitter';
@Entry @Entry
@Component @Component
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册