mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -5,7 +5,8 @@ import { GridLayout } from "../../layouts/grid-layout";
|
||||
|
||||
// Requires
|
||||
import { TabContentItemBase, traceCategory } from "./tab-content-item-common";
|
||||
import { View, traceWrite, traceMessageType } from "../../core/view";
|
||||
import { View } from "../../core/view";
|
||||
import { Trace } from "../../../trace";
|
||||
|
||||
export * from "./tab-content-item-common";
|
||||
|
||||
@@ -49,7 +50,7 @@ export class TabContentItem extends TabContentItemBase {
|
||||
const fragmentManager = tabView._getFragmentManager();
|
||||
|
||||
if (typeof this.index === "undefined") {
|
||||
traceWrite(`Current TabContentItem index is not set`, traceCategory, traceMessageType.error);
|
||||
Trace.write(`Current TabContentItem index is not set`, traceCategory, Trace.messageType.error);
|
||||
}
|
||||
|
||||
for (let fragment of (<Array<any>>fragmentManager.getFragments().toArray())) {
|
||||
@@ -61,8 +62,8 @@ export class TabContentItem extends TabContentItemBase {
|
||||
|
||||
// TODO: can happen in a modal tabview scenario when the modal dialog fragment is already removed
|
||||
if (!tabFragment) {
|
||||
// if (traceEnabled()) {
|
||||
// traceWrite(`Could not get child fragment manager for tab item with index ${this.index}`, traceCategory);
|
||||
// if (Trace.isEnabled()) {
|
||||
// Trace.write(`Could not get child fragment manager for tab item with index ${this.index}`, traceCategory);
|
||||
// }
|
||||
|
||||
// TODO: fix d.ts in view module
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
/**
|
||||
* Contains the TabContentItem class, which represents a content entry for tab navigation.
|
||||
* @module "ui/tab-navigation/tab-content-item"
|
||||
*/ /** */
|
||||
|
||||
import { View, ViewBase } from "../../core/view";
|
||||
import { ContentView } from "../../content-view";
|
||||
import { ContentView } from "../../content-view";
|
||||
|
||||
/**
|
||||
* Represents a tab navigation content entry.
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
/**
|
||||
* Contains the TabNavigationBase class, which serves as the base class for tab navigation.
|
||||
* @module "ui/tab-navigation/tab-navigation-base"
|
||||
*/ /** */
|
||||
|
||||
import {
|
||||
View, ViewBase, Property, CoercibleProperty, isIOS, AddArrayFromBuilder, AddChildFromBuilder, EventData, Color
|
||||
import {
|
||||
View, AddArrayFromBuilder, AddChildFromBuilder
|
||||
} from "../../core/view";
|
||||
import { isIOS } from "../../../platform";
|
||||
import { TabStrip } from "../tab-strip";
|
||||
import { TabStripItem } from "../tab-strip-item";
|
||||
import { TabContentItem } from "../tab-content-item";
|
||||
|
||||
import { Property, CoercibleProperty } from "../../core/properties";
|
||||
import { EventData } from "../../../data/observable";
|
||||
import { Color } from "../../../color";
|
||||
/**
|
||||
* Defines the data for the tab navigation selectedIndexChanged event.
|
||||
*/
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
/**
|
||||
* Contains the TabStripItem class, which represents a tab strip entry for tab navigation.
|
||||
* @module "ui/tab-navigation/tab-strip-item"
|
||||
*/ /** */
|
||||
|
||||
import { View, EventData } from "../../core/view";
|
||||
import { View } from "../../core/view";
|
||||
import { Image } from "../../image/image";
|
||||
import { Label } from "../../label/label";
|
||||
import { EventData } from "../../../data/observable"
|
||||
|
||||
/**
|
||||
* Represents a tab strip entry.
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
/**
|
||||
* Contains the TabStrip class, which represents a tab strip for tab navigation.
|
||||
* @module "ui/tab-navigation/tab-strip"
|
||||
*/ /** */
|
||||
|
||||
import { Color } from "../../../color";
|
||||
import { EventData, Property, View } from "../../core/view";
|
||||
import { Color } from "../../../color";
|
||||
import { View } from "../../core/view";
|
||||
import { EventData } from "../../../data/observable";
|
||||
import { Property } from "../../core/properties"
|
||||
import { TabStripItem } from "../tab-strip-item";
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user