12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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 {};
|