first commit
This commit is contained in:
46
node_modules/vant/es/date-picker/utils.d.ts
generated
vendored
Normal file
46
node_modules/vant/es/date-picker/utils.d.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import { pickerSharedProps } from '../picker/Picker';
|
||||
import type { PropType } from 'vue';
|
||||
import type { PickerOption } from '../picker';
|
||||
type Filter = (columnType: string, options: PickerOption[], values: string[]) => PickerOption[];
|
||||
type Formatter = (type: string, option: PickerOption) => PickerOption;
|
||||
export declare const sharedProps: {
|
||||
loading: BooleanConstructor;
|
||||
readonly: BooleanConstructor;
|
||||
allowHtml: BooleanConstructor;
|
||||
optionHeight: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
showToolbar: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
swipeDuration: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
visibleOptionNum: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: number;
|
||||
};
|
||||
} & {
|
||||
title: StringConstructor;
|
||||
cancelButtonText: StringConstructor;
|
||||
confirmButtonText: StringConstructor;
|
||||
} & {
|
||||
modelValue: {
|
||||
type: PropType<string[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
filter: PropType<Filter>;
|
||||
formatter: {
|
||||
type: PropType<Formatter>;
|
||||
default: (type: string, option: PickerOption) => PickerOption;
|
||||
};
|
||||
};
|
||||
export declare const pickerInheritKeys: Array<keyof typeof pickerSharedProps>;
|
||||
export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
||||
export declare const getMonthEndDay: (year: number, month: number) => number;
|
||||
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter: Filter | undefined, values: string[]) => PickerOption[];
|
||||
export declare const formatValueRange: (values: string[], columns: PickerOption[][]) => string[];
|
||||
export {};
|
||||
Reference in New Issue
Block a user