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,5 +1,6 @@
|
||||
import { ListPickerBase, selectedIndexProperty, itemsProperty, colorProperty, Color } from "./list-picker-common";
|
||||
import { ItemsSource } from ".";
|
||||
import { ListPickerBase, selectedIndexProperty, itemsProperty, ItemsSource } from "./list-picker-common";
|
||||
import { colorProperty } from '../styling/style-properties';
|
||||
import { Color } from '../../color';
|
||||
import { device } from "../../platform";
|
||||
import lazy from "../../utils/lazy";
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
/**
|
||||
* Contains the ListPicker class.
|
||||
* @module "ui/list-picker"
|
||||
*/ /** */
|
||||
|
||||
import { View, Property } from "../core/view";
|
||||
import { View } from "../core/view";
|
||||
import { Property } from "../core/properties";
|
||||
import { ItemsSource } from "./list-picker-common";
|
||||
|
||||
/**
|
||||
* Represents an list picker.
|
||||
@@ -31,10 +28,5 @@ export class ListPicker extends View {
|
||||
items: any;
|
||||
}
|
||||
|
||||
export interface ItemsSource {
|
||||
length: number;
|
||||
getItem(index: number): any;
|
||||
}
|
||||
|
||||
export const selectedIndexProperty: Property<ListPicker, number>;
|
||||
export const itemsProperty: Property<ListPicker, any[] | ItemsSource>;
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ListPickerBase, Color, selectedIndexProperty, itemsProperty, backgroundColorProperty, colorProperty } from "./list-picker-common";
|
||||
import { ItemsSource } from ".";
|
||||
import { ListPickerBase, selectedIndexProperty, itemsProperty, ItemsSource } from "./list-picker-common";
|
||||
import { Color } from "../../color";
|
||||
import { backgroundColorProperty, colorProperty } from "../styling/style-properties";
|
||||
import { profile } from "../../profiling";
|
||||
|
||||
export * from "./list-picker-common";
|
||||
@@ -1,10 +1,13 @@
|
||||
import { ListPicker as ListPickerDefinition, ItemsSource } from ".";
|
||||
import { View, Property, CoercibleProperty, CSSType } from "../core/view";
|
||||
import { View, CSSType } from "../core/view";
|
||||
import { Property, CoercibleProperty } from "../core/properties";
|
||||
|
||||
export * from "../core/view";
|
||||
export interface ItemsSource {
|
||||
length: number;
|
||||
getItem(index: number): any;
|
||||
}
|
||||
|
||||
@CSSType("ListPicker")
|
||||
export class ListPickerBase extends View implements ListPickerDefinition {
|
||||
export class ListPickerBase extends View {
|
||||
|
||||
public selectedIndex: number;
|
||||
public items: any[] | ItemsSource;
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "list-picker",
|
||||
"main": "list-picker",
|
||||
"types": "list-picker.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user