tdesign-mobile-vue
Version:
tdesign-mobile-vue
351 lines (350 loc) • 16.1 kB
TypeScript
import './style';
import { TdPickerProps } from './type';
export * from './type';
export type PickerProps = TdPickerProps;
export declare const Picker: {
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
cancelBtn: {
type: import("vue").PropType<string | boolean>;
default: string | boolean;
};
columns: {
type: import("vue").PropType<import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[])>;
default: () => import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[]);
required: boolean;
};
confirmBtn: {
type: import("vue").PropType<string | boolean>;
default: string | boolean;
};
footer: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
header: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
keys: {
type: import("vue").PropType<import("@/common").KeysType>;
};
option: {
type: import("vue").PropType<(option: import("@/components").PickerColumnItem, index: number) => string | Record<string, string | boolean>>;
};
renderLabel: {
type: import("vue").PropType<(item: import("@/components").PickerColumnItem, index: number) => string>;
};
swipeDuration: {
type: import("vue").PropType<string | number>;
default: string | number;
};
title: {
type: StringConstructor;
default: string;
};
value: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
default: import("@/components").PickerValue[];
};
modelValue: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
default: import("@/components").PickerValue[];
};
defaultValue: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
};
wheelConfig: {
type: import("vue").PropType<import("@/components").PickerWheelConfig>;
};
onCancel: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onChange: import("vue").PropType<(value: import("@/components").PickerValue[], context: {
columns: import("@/components").PickerContext[];
e: MouseEvent;
}) => void>;
onConfirm: import("vue").PropType<(value: import("@/components").PickerValue[], context: {
index: number[];
e: MouseEvent;
label: string[];
}) => void>;
onPick: import("vue").PropType<(value: import("@/components").PickerValue[], context: import("@/components").PickerContext) => void>;
}>> & Readonly<{
onCancel?: (...args: any[]) => any;
onChange?: (...args: any[]) => any;
onPick?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
"onUpdate:value"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "pick" | "update:modelValue" | "update:value")[], import("vue").PublicProps, {
cancelBtn: string | boolean;
columns: import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[]);
confirmBtn: string | boolean;
swipeDuration: string | number;
title: string;
value: import("@/components").PickerValue[];
modelValue: import("@/components").PickerValue[];
}, true, {}, {}, {
PickerItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
options: {
type: import("vue").PropType<import("@/components").PickerColumnItem[]>;
};
value: {
type: import("vue").PropType<import("@/components").PickerValue>;
default: any;
};
renderLabel: {
type: FunctionConstructor;
default: any;
};
onPick: {
type: FunctionConstructor;
default: any;
};
wheelConfig: {
type: import("vue").PropType<Required<import("@/components").PickerWheelConfig>>;
default: () => Required<import("@/components").PickerWheelConfig>;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "pick"[], "pick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
options: {
type: import("vue").PropType<import("@/components").PickerColumnItem[]>;
};
value: {
type: import("vue").PropType<import("@/components").PickerValue>;
default: any;
};
renderLabel: {
type: FunctionConstructor;
default: any;
};
onPick: {
type: FunctionConstructor;
default: any;
};
wheelConfig: {
type: import("vue").PropType<Required<import("@/components").PickerWheelConfig>>;
default: () => Required<import("@/components").PickerWheelConfig>;
};
}>> & Readonly<{
onPick?: (...args: any[]) => any;
}>, {
value: import("@/components").PickerValue;
renderLabel: Function;
onPick: Function;
wheelConfig: Required<import("@/components").PickerWheelConfig>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly<import("vue").ExtractPropTypes<{
cancelBtn: {
type: import("vue").PropType<string | boolean>;
default: string | boolean;
};
columns: {
type: import("vue").PropType<import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[])>;
default: () => import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[]);
required: boolean;
};
confirmBtn: {
type: import("vue").PropType<string | boolean>;
default: string | boolean;
};
footer: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
header: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
keys: {
type: import("vue").PropType<import("@/common").KeysType>;
};
option: {
type: import("vue").PropType<(option: import("@/components").PickerColumnItem, index: number) => string | Record<string, string | boolean>>;
};
renderLabel: {
type: import("vue").PropType<(item: import("@/components").PickerColumnItem, index: number) => string>;
};
swipeDuration: {
type: import("vue").PropType<string | number>;
default: string | number;
};
title: {
type: StringConstructor;
default: string;
};
value: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
default: import("@/components").PickerValue[];
};
modelValue: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
default: import("@/components").PickerValue[];
};
defaultValue: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
};
wheelConfig: {
type: import("vue").PropType<import("@/components").PickerWheelConfig>;
};
onCancel: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onChange: import("vue").PropType<(value: import("@/components").PickerValue[], context: {
columns: import("@/components").PickerContext[];
e: MouseEvent;
}) => void>;
onConfirm: import("vue").PropType<(value: import("@/components").PickerValue[], context: {
index: number[];
e: MouseEvent;
label: string[];
}) => void>;
onPick: import("vue").PropType<(value: import("@/components").PickerValue[], context: import("@/components").PickerContext) => void>;
}>> & Readonly<{
onCancel?: (...args: any[]) => any;
onChange?: (...args: any[]) => any;
onPick?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
"onUpdate:value"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
cancelBtn: string | boolean;
columns: import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[]);
confirmBtn: string | boolean;
swipeDuration: string | number;
title: string;
value: import("@/components").PickerValue[];
modelValue: import("@/components").PickerValue[];
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
cancelBtn: {
type: import("vue").PropType<string | boolean>;
default: string | boolean;
};
columns: {
type: import("vue").PropType<import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[])>;
default: () => import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[]);
required: boolean;
};
confirmBtn: {
type: import("vue").PropType<string | boolean>;
default: string | boolean;
};
footer: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
header: {
type: import("vue").PropType<(h: typeof import("vue").h) => import("@/common").SlotReturnValue>;
};
keys: {
type: import("vue").PropType<import("@/common").KeysType>;
};
option: {
type: import("vue").PropType<(option: import("@/components").PickerColumnItem, index: number) => string | Record<string, string | boolean>>;
};
renderLabel: {
type: import("vue").PropType<(item: import("@/components").PickerColumnItem, index: number) => string>;
};
swipeDuration: {
type: import("vue").PropType<string | number>;
default: string | number;
};
title: {
type: StringConstructor;
default: string;
};
value: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
default: import("@/components").PickerValue[];
};
modelValue: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
default: import("@/components").PickerValue[];
};
defaultValue: {
type: import("vue").PropType<import("@/components").PickerValue[]>;
};
wheelConfig: {
type: import("vue").PropType<import("@/components").PickerWheelConfig>;
};
onCancel: import("vue").PropType<(context: {
e: MouseEvent;
}) => void>;
onChange: import("vue").PropType<(value: import("@/components").PickerValue[], context: {
columns: import("@/components").PickerContext[];
e: MouseEvent;
}) => void>;
onConfirm: import("vue").PropType<(value: import("@/components").PickerValue[], context: {
index: number[];
e: MouseEvent;
label: string[];
}) => void>;
onPick: import("vue").PropType<(value: import("@/components").PickerValue[], context: import("@/components").PickerContext) => void>;
}>> & Readonly<{
onCancel?: (...args: any[]) => any;
onChange?: (...args: any[]) => any;
onPick?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
"onUpdate:value"?: (...args: any[]) => any;
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "change" | "pick" | "update:modelValue" | "update:value")[], "cancel" | "change" | "pick" | "update:modelValue" | "update:value", {
cancelBtn: string | boolean;
columns: import("@/components").PickerColumn[] | import("@/components").PickerColumn | ((item: import("@/components").PickerValue[]) => import("@/components").PickerColumn[]);
confirmBtn: string | boolean;
swipeDuration: string | number;
title: string;
value: import("@/components").PickerValue[];
modelValue: import("@/components").PickerValue[];
}, {}, string, {}, {
PickerItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
options: {
type: import("vue").PropType<import("@/components").PickerColumnItem[]>;
};
value: {
type: import("vue").PropType<import("@/components").PickerValue>;
default: any;
};
renderLabel: {
type: FunctionConstructor;
default: any;
};
onPick: {
type: FunctionConstructor;
default: any;
};
wheelConfig: {
type: import("vue").PropType<Required<import("@/components").PickerWheelConfig>>;
default: () => Required<import("@/components").PickerWheelConfig>;
};
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "pick"[], "pick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
options: {
type: import("vue").PropType<import("@/components").PickerColumnItem[]>;
};
value: {
type: import("vue").PropType<import("@/components").PickerValue>;
default: any;
};
renderLabel: {
type: FunctionConstructor;
default: any;
};
onPick: {
type: FunctionConstructor;
default: any;
};
wheelConfig: {
type: import("vue").PropType<Required<import("@/components").PickerWheelConfig>>;
default: () => Required<import("@/components").PickerWheelConfig>;
};
}>> & Readonly<{
onPick?: (...args: any[]) => any;
}>, {
value: import("@/components").PickerValue;
renderLabel: Function;
onPick: Function;
wheelConfig: Required<import("@/components").PickerWheelConfig>;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
} & import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
export default Picker;