UNPKG

2.81 kBTypeScriptView Raw
1export declare const Slider: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2 min: {
3 type: (NumberConstructor | StringConstructor)[];
4 default: number;
5 };
6 max: {
7 type: (NumberConstructor | StringConstructor)[];
8 default: number;
9 };
10 step: {
11 type: (NumberConstructor | StringConstructor)[];
12 default: number;
13 };
14 range: BooleanConstructor;
15 reverse: BooleanConstructor;
16 disabled: BooleanConstructor;
17 readonly: BooleanConstructor;
18 vertical: BooleanConstructor;
19 barHeight: (NumberConstructor | StringConstructor)[];
20 buttonSize: (NumberConstructor | StringConstructor)[];
21 activeColor: StringConstructor;
22 inactiveColor: StringConstructor;
23 modelValue: {
24 type: import("vue").PropType<number | [number, number]>;
25 default: number;
26 };
27}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "dragStart" | "dragEnd")[], "update:modelValue" | "change" | "dragStart" | "dragEnd", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28 min: {
29 type: (NumberConstructor | StringConstructor)[];
30 default: number;
31 };
32 max: {
33 type: (NumberConstructor | StringConstructor)[];
34 default: number;
35 };
36 step: {
37 type: (NumberConstructor | StringConstructor)[];
38 default: number;
39 };
40 range: BooleanConstructor;
41 reverse: BooleanConstructor;
42 disabled: BooleanConstructor;
43 readonly: BooleanConstructor;
44 vertical: BooleanConstructor;
45 barHeight: (NumberConstructor | StringConstructor)[];
46 buttonSize: (NumberConstructor | StringConstructor)[];
47 activeColor: StringConstructor;
48 inactiveColor: StringConstructor;
49 modelValue: {
50 type: import("vue").PropType<number | [number, number]>;
51 default: number;
52 };
53}>> & Readonly<{
54 onChange?: ((...args: any[]) => any) | undefined;
55 "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
56 onDragStart?: ((...args: any[]) => any) | undefined;
57 onDragEnd?: ((...args: any[]) => any) | undefined;
58}>, {
59 reverse: boolean;
60 range: boolean;
61 max: string | number;
62 disabled: boolean;
63 vertical: boolean;
64 min: string | number;
65 modelValue: number | [number, number];
66 readonly: boolean;
67 step: string | number;
68}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
69export default Slider;
70export { sliderProps } from './Slider';
71export type { SliderProps } from './Slider';
72export type { SliderThemeVars } from './types';
73declare module 'vue' {
74 interface GlobalComponents {
75 VanSlider: typeof Slider;
76 }
77}
78
\No newline at end of file