diff --git a/types/picker.d.ts b/types/picker.d.ts index ac54d0471..a870a06b7 100644 --- a/types/picker.d.ts +++ b/types/picker.d.ts @@ -1,25 +1,25 @@ import { VanComponent } from './component'; export class Picker extends VanComponent { - getValues(): string[]; + getValues(): T[]; - setValues(values: string[]): void; + setValues(values: T[]): void; getIndexes(): number[]; setIndexes(indexes: number[]): void; - getColumnValue(columnIndex: number): string; + getColumnValue(columnIndex: number): T; - setColumnValue(columnIndex: number, value: string): void; + setColumnValue(columnIndex: number, value: T): void; getColumnIndex(columnIndex: number): number; setColumnIndex(columnIndex: number, optionIndex: number): void; - getColumnValues(columnIndex: number): string[]; + getColumnValues(columnIndex: number): T[]; - setColumnValues(columnIndex: number, values: string[]): void; + setColumnValues(columnIndex: number, values: T[]): void; confirm(): void; }