mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as observable from "@nativescript/core/data/observable";
|
||||
import { EventData } from "@nativescript/core";
|
||||
import * as stackLayoutModule from "@nativescript/core/ui/layouts/stack-layout";
|
||||
import * as label from "@nativescript/core/ui/label";
|
||||
import * as button from "@nativescript/core/ui/button";
|
||||
@@ -13,7 +13,7 @@ export class MyControl extends stackLayoutModule.StackLayout {
|
||||
lbl.id = "my-test-label";
|
||||
var btn = new button.Button();
|
||||
btn.text = "Tap me!";
|
||||
btn.on(button.Button.tapEvent, (args: observable.EventData) => {
|
||||
btn.on(button.Button.tapEvent, (args: EventData) => {
|
||||
lbl.text = "Tap " + counter++;
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as TKUnit from "../../tk-unit";
|
||||
import { Page, View } from "@nativescript/core/ui/page";
|
||||
import { Page, View } from "@nativescript/core";
|
||||
import { Frame, NavigationEntry, _stack } from "@nativescript/core/ui/frame";
|
||||
import { _resetRootView, getRootView } from "@nativescript/core/application";
|
||||
import { TabView } from "@nativescript/core/ui/tab-view";
|
||||
|
||||
Reference in New Issue
Block a user