@a2simcode/ui 0.0.9 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,12 +31,13 @@ import { default as JInputButton } from './input-button';
31
31
  import { default as JInputCode } from './input-code';
32
32
  import { default as JTitle } from './title';
33
33
  import { default as JCodeMirror } from './code-mirror';
34
+ import { default as JSliderCaptcha } from './slider-captcha';
34
35
  import { default as JComp } from './comp';
35
36
  import { default as JForm } from './form';
36
37
  import { default as JFormItem } from './form-item';
37
38
  import { default as JPage } from './page';
38
39
  import { default as JGuid } from './guid';
39
- export { JButton, JButtons, JInput, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JCountUp, JDataPanel, JDivider, JHpanel, JGuid, JInputButton, JInputCode, JTitle, JComp, JForm, JFormItem, JPage };
40
+ export { JButton, JButtons, JInput, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JCountUp, JDataPanel, JDivider, JHpanel, JGuid, JInputButton, JInputCode, JTitle, JComp, JForm, JFormItem, JPage, JSliderCaptcha };
40
41
  export * from '../core';
41
42
  export type { InputProps } from './input/src/input.vue';
42
43
  export type { SelectOption, SelectProps } from './select/src/select.vue';
@@ -0,0 +1,190 @@
1
+ export declare const JSliderCaptcha: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
3
+ modelValue?: boolean;
4
+ } & import('./src/types').SliderCaptchaProps> & Readonly<{
5
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
6
+ onMove?: ((args_0: import('./src/types').SliderRotateVerifyPassingData) => any) | undefined;
7
+ onSuccess?: ((args_0: import('./src/types').CaptchaVerifyPassingData) => any) | undefined;
8
+ onStart?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
9
+ onEnd?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:modelValue": (value: boolean) => any;
12
+ move: (args_0: import('./src/types').SliderRotateVerifyPassingData) => any;
13
+ success: (args_0: import('./src/types').CaptchaVerifyPassingData) => any;
14
+ start: (args_0: MouseEvent | TouchEvent) => any;
15
+ end: (args_0: MouseEvent | TouchEvent) => any;
16
+ }, import('vue').PublicProps, {
17
+ text: string;
18
+ actionStyle: import('vue').CSSProperties;
19
+ barStyle: import('vue').CSSProperties;
20
+ contentStyle: import('vue').CSSProperties;
21
+ wrapperStyle: import('vue').CSSProperties;
22
+ successText: string;
23
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
24
+ wrapperRef: HTMLDivElement;
25
+ barRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
26
+ barStyle: import('vue').CSSProperties;
27
+ toLeft: boolean;
28
+ }> & Readonly<{}>, {
29
+ getEl: () => HTMLDivElement | null;
30
+ setWidth: (val: string) => void;
31
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
32
+ barRef: HTMLDivElement;
33
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
34
+ P: {};
35
+ B: {};
36
+ D: {};
37
+ C: {};
38
+ M: {};
39
+ Defaults: {};
40
+ }, Readonly<{
41
+ barStyle: import('vue').CSSProperties;
42
+ toLeft: boolean;
43
+ }> & Readonly<{}>, {
44
+ getEl: () => HTMLDivElement | null;
45
+ setWidth: (val: string) => void;
46
+ }, {}, {}, {}, {}> | null;
47
+ contentRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
48
+ contentStyle: {
49
+ type: ObjectConstructor;
50
+ default: () => {};
51
+ };
52
+ isPassing: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ animationDuration: {
57
+ type: (StringConstructor | NumberConstructor)[];
58
+ default: number;
59
+ };
60
+ animationIterationCount: {
61
+ type: (StringConstructor | NumberConstructor)[];
62
+ default: string;
63
+ };
64
+ }>> & Readonly<{}>, {
65
+ getEl: () => HTMLDivElement | null;
66
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
67
+ isPassing: boolean;
68
+ animationDuration: string | number;
69
+ animationIterationCount: string | number;
70
+ contentStyle: Record<string, any>;
71
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
72
+ contentRef: HTMLDivElement;
73
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
74
+ P: {};
75
+ B: {};
76
+ D: {};
77
+ C: {};
78
+ M: {};
79
+ Defaults: {};
80
+ }, Readonly<import('vue').ExtractPropTypes<{
81
+ contentStyle: {
82
+ type: ObjectConstructor;
83
+ default: () => {};
84
+ };
85
+ isPassing: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ animationDuration: {
90
+ type: (StringConstructor | NumberConstructor)[];
91
+ default: number;
92
+ };
93
+ animationIterationCount: {
94
+ type: (StringConstructor | NumberConstructor)[];
95
+ default: string;
96
+ };
97
+ }>> & Readonly<{}>, {
98
+ getEl: () => HTMLDivElement | null;
99
+ }, {}, {}, {}, {
100
+ isPassing: boolean;
101
+ animationDuration: string | number;
102
+ animationIterationCount: string | number;
103
+ contentStyle: Record<string, any>;
104
+ }> | null;
105
+ actionRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
106
+ actionStyle: import('vue').CSSProperties;
107
+ isPassing: boolean;
108
+ toLeft: boolean;
109
+ }> & Readonly<{}>, {
110
+ getEl: () => HTMLDivElement | null;
111
+ getStyle: () => CSSStyleDeclaration | undefined;
112
+ setLeft: (val: string) => void;
113
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
114
+ actionRef: HTMLDivElement;
115
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
116
+ P: {};
117
+ B: {};
118
+ D: {};
119
+ C: {};
120
+ M: {};
121
+ Defaults: {};
122
+ }, Readonly<{
123
+ actionStyle: import('vue').CSSProperties;
124
+ isPassing: boolean;
125
+ toLeft: boolean;
126
+ }> & Readonly<{}>, {
127
+ getEl: () => HTMLDivElement | null;
128
+ getStyle: () => CSSStyleDeclaration | undefined;
129
+ setLeft: (val: string) => void;
130
+ }, {}, {}, {}, {}> | null;
131
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
132
+ P: {};
133
+ B: {};
134
+ D: {};
135
+ C: {};
136
+ M: {};
137
+ Defaults: {};
138
+ }, Readonly<{
139
+ modelValue?: boolean;
140
+ } & import('./src/types').SliderCaptchaProps> & Readonly<{
141
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
142
+ onMove?: ((args_0: import('./src/types').SliderRotateVerifyPassingData) => any) | undefined;
143
+ onSuccess?: ((args_0: import('./src/types').CaptchaVerifyPassingData) => any) | undefined;
144
+ onStart?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
145
+ onEnd?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
146
+ }>, {}, {}, {}, {}, {
147
+ text: string;
148
+ actionStyle: import('vue').CSSProperties;
149
+ barStyle: import('vue').CSSProperties;
150
+ contentStyle: import('vue').CSSProperties;
151
+ wrapperStyle: import('vue').CSSProperties;
152
+ successText: string;
153
+ }>;
154
+ __isFragment?: never;
155
+ __isTeleport?: never;
156
+ __isSuspense?: never;
157
+ } & import('vue').ComponentOptionsBase<Readonly<{
158
+ modelValue?: boolean;
159
+ } & import('./src/types').SliderCaptchaProps> & Readonly<{
160
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
161
+ onMove?: ((args_0: import('./src/types').SliderRotateVerifyPassingData) => any) | undefined;
162
+ onSuccess?: ((args_0: import('./src/types').CaptchaVerifyPassingData) => any) | undefined;
163
+ onStart?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
164
+ onEnd?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
165
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
166
+ "update:modelValue": (value: boolean) => any;
167
+ move: (args_0: import('./src/types').SliderRotateVerifyPassingData) => any;
168
+ success: (args_0: import('./src/types').CaptchaVerifyPassingData) => any;
169
+ start: (args_0: MouseEvent | TouchEvent) => any;
170
+ end: (args_0: MouseEvent | TouchEvent) => any;
171
+ }, string, {
172
+ text: string;
173
+ actionStyle: import('vue').CSSProperties;
174
+ barStyle: import('vue').CSSProperties;
175
+ contentStyle: import('vue').CSSProperties;
176
+ wrapperStyle: import('vue').CSSProperties;
177
+ successText: string;
178
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
179
+ $slots: {
180
+ text?(_: {
181
+ isPassing: boolean;
182
+ }): any;
183
+ actionIcon?(_: {
184
+ isPassing: boolean;
185
+ }): any;
186
+ };
187
+ }) & {
188
+ install: (app: import('vue').App) => void;
189
+ };
190
+ export default JSliderCaptcha;
@@ -0,0 +1,14 @@
1
+ import { CSSProperties } from 'vue';
2
+ type __VLS_Props = {
3
+ actionStyle: CSSProperties;
4
+ isPassing: boolean;
5
+ toLeft: boolean;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
8
+ getEl: () => HTMLDivElement | null;
9
+ getStyle: () => CSSStyleDeclaration | undefined;
10
+ setLeft: (val: string) => void;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
+ actionRef: HTMLDivElement;
13
+ }, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from 'vue';
2
+ type __VLS_Props = {
3
+ barStyle: CSSProperties;
4
+ toLeft: boolean;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
7
+ getEl: () => HTMLDivElement | null;
8
+ setWidth: (val: string) => void;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
10
+ barRef: HTMLDivElement;
11
+ }, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,45 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ contentStyle: {
3
+ type: ObjectConstructor;
4
+ default: () => {};
5
+ };
6
+ isPassing: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ animationDuration: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: number;
13
+ };
14
+ animationIterationCount: {
15
+ type: (StringConstructor | NumberConstructor)[];
16
+ default: string;
17
+ };
18
+ }>, {
19
+ getEl: () => HTMLDivElement | null;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
+ contentStyle: {
22
+ type: ObjectConstructor;
23
+ default: () => {};
24
+ };
25
+ isPassing: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ animationDuration: {
30
+ type: (StringConstructor | NumberConstructor)[];
31
+ default: number;
32
+ };
33
+ animationIterationCount: {
34
+ type: (StringConstructor | NumberConstructor)[];
35
+ default: string;
36
+ };
37
+ }>> & Readonly<{}>, {
38
+ isPassing: boolean;
39
+ animationDuration: string | number;
40
+ animationIterationCount: string | number;
41
+ contentStyle: Record<string, any>;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
43
+ contentRef: HTMLDivElement;
44
+ }, HTMLDivElement>;
45
+ export default _default;
@@ -0,0 +1,262 @@
1
+ import { CaptchaVerifyPassingData, SliderCaptchaProps, SliderRotateVerifyPassingData } from './types';
2
+ type __VLS_Props = SliderCaptchaProps;
3
+ type __VLS_PublicProps = {
4
+ modelValue?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ text?(_: {
10
+ isPassing: boolean;
11
+ }): any;
12
+ actionIcon?(_: {
13
+ isPassing: boolean;
14
+ }): any;
15
+ };
16
+ refs: {
17
+ wrapperRef: HTMLDivElement;
18
+ barRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
19
+ barStyle: import('vue').CSSProperties;
20
+ toLeft: boolean;
21
+ }> & Readonly<{}>, {
22
+ getEl: () => HTMLDivElement | null;
23
+ setWidth: (val: string) => void;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
25
+ barRef: HTMLDivElement;
26
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<{
34
+ barStyle: import('vue').CSSProperties;
35
+ toLeft: boolean;
36
+ }> & Readonly<{}>, {
37
+ getEl: () => HTMLDivElement | null;
38
+ setWidth: (val: string) => void;
39
+ }, {}, {}, {}, {}> | null;
40
+ contentRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
41
+ contentStyle: {
42
+ type: ObjectConstructor;
43
+ default: () => {};
44
+ };
45
+ isPassing: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ animationDuration: {
50
+ type: (StringConstructor | NumberConstructor)[];
51
+ default: number;
52
+ };
53
+ animationIterationCount: {
54
+ type: (StringConstructor | NumberConstructor)[];
55
+ default: string;
56
+ };
57
+ }>> & Readonly<{}>, {
58
+ getEl: () => HTMLDivElement | null;
59
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
60
+ isPassing: boolean;
61
+ animationDuration: string | number;
62
+ animationIterationCount: string | number;
63
+ contentStyle: Record<string, any>;
64
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
65
+ contentRef: HTMLDivElement;
66
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
67
+ P: {};
68
+ B: {};
69
+ D: {};
70
+ C: {};
71
+ M: {};
72
+ Defaults: {};
73
+ }, Readonly<import('vue').ExtractPropTypes<{
74
+ contentStyle: {
75
+ type: ObjectConstructor;
76
+ default: () => {};
77
+ };
78
+ isPassing: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ animationDuration: {
83
+ type: (StringConstructor | NumberConstructor)[];
84
+ default: number;
85
+ };
86
+ animationIterationCount: {
87
+ type: (StringConstructor | NumberConstructor)[];
88
+ default: string;
89
+ };
90
+ }>> & Readonly<{}>, {
91
+ getEl: () => HTMLDivElement | null;
92
+ }, {}, {}, {}, {
93
+ isPassing: boolean;
94
+ animationDuration: string | number;
95
+ animationIterationCount: string | number;
96
+ contentStyle: Record<string, any>;
97
+ }> | null;
98
+ actionRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
99
+ actionStyle: import('vue').CSSProperties;
100
+ isPassing: boolean;
101
+ toLeft: boolean;
102
+ }> & Readonly<{}>, {
103
+ getEl: () => HTMLDivElement | null;
104
+ getStyle: () => CSSStyleDeclaration | undefined;
105
+ setLeft: (val: string) => void;
106
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
107
+ actionRef: HTMLDivElement;
108
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
109
+ P: {};
110
+ B: {};
111
+ D: {};
112
+ C: {};
113
+ M: {};
114
+ Defaults: {};
115
+ }, Readonly<{
116
+ actionStyle: import('vue').CSSProperties;
117
+ isPassing: boolean;
118
+ toLeft: boolean;
119
+ }> & Readonly<{}>, {
120
+ getEl: () => HTMLDivElement | null;
121
+ getStyle: () => CSSStyleDeclaration | undefined;
122
+ setLeft: (val: string) => void;
123
+ }, {}, {}, {}, {}> | null;
124
+ };
125
+ rootEl: HTMLDivElement;
126
+ };
127
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
128
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
129
+ "update:modelValue": (value: boolean) => any;
130
+ move: (args_0: SliderRotateVerifyPassingData) => any;
131
+ success: (args_0: CaptchaVerifyPassingData) => any;
132
+ start: (args_0: MouseEvent | TouchEvent) => any;
133
+ end: (args_0: MouseEvent | TouchEvent) => any;
134
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
135
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
136
+ onMove?: ((args_0: SliderRotateVerifyPassingData) => any) | undefined;
137
+ onSuccess?: ((args_0: CaptchaVerifyPassingData) => any) | undefined;
138
+ onStart?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
139
+ onEnd?: ((args_0: MouseEvent | TouchEvent) => any) | undefined;
140
+ }>, {
141
+ text: string;
142
+ actionStyle: import('vue').CSSProperties;
143
+ barStyle: import('vue').CSSProperties;
144
+ contentStyle: import('vue').CSSProperties;
145
+ wrapperStyle: import('vue').CSSProperties;
146
+ successText: string;
147
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
148
+ wrapperRef: HTMLDivElement;
149
+ barRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
150
+ barStyle: import('vue').CSSProperties;
151
+ toLeft: boolean;
152
+ }> & Readonly<{}>, {
153
+ getEl: () => HTMLDivElement | null;
154
+ setWidth: (val: string) => void;
155
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
156
+ barRef: HTMLDivElement;
157
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
158
+ P: {};
159
+ B: {};
160
+ D: {};
161
+ C: {};
162
+ M: {};
163
+ Defaults: {};
164
+ }, Readonly<{
165
+ barStyle: import('vue').CSSProperties;
166
+ toLeft: boolean;
167
+ }> & Readonly<{}>, {
168
+ getEl: () => HTMLDivElement | null;
169
+ setWidth: (val: string) => void;
170
+ }, {}, {}, {}, {}> | null;
171
+ contentRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
172
+ contentStyle: {
173
+ type: ObjectConstructor;
174
+ default: () => {};
175
+ };
176
+ isPassing: {
177
+ type: BooleanConstructor;
178
+ default: boolean;
179
+ };
180
+ animationDuration: {
181
+ type: (StringConstructor | NumberConstructor)[];
182
+ default: number;
183
+ };
184
+ animationIterationCount: {
185
+ type: (StringConstructor | NumberConstructor)[];
186
+ default: string;
187
+ };
188
+ }>> & Readonly<{}>, {
189
+ getEl: () => HTMLDivElement | null;
190
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
191
+ isPassing: boolean;
192
+ animationDuration: string | number;
193
+ animationIterationCount: string | number;
194
+ contentStyle: Record<string, any>;
195
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
196
+ contentRef: HTMLDivElement;
197
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
198
+ P: {};
199
+ B: {};
200
+ D: {};
201
+ C: {};
202
+ M: {};
203
+ Defaults: {};
204
+ }, Readonly<import('vue').ExtractPropTypes<{
205
+ contentStyle: {
206
+ type: ObjectConstructor;
207
+ default: () => {};
208
+ };
209
+ isPassing: {
210
+ type: BooleanConstructor;
211
+ default: boolean;
212
+ };
213
+ animationDuration: {
214
+ type: (StringConstructor | NumberConstructor)[];
215
+ default: number;
216
+ };
217
+ animationIterationCount: {
218
+ type: (StringConstructor | NumberConstructor)[];
219
+ default: string;
220
+ };
221
+ }>> & Readonly<{}>, {
222
+ getEl: () => HTMLDivElement | null;
223
+ }, {}, {}, {}, {
224
+ isPassing: boolean;
225
+ animationDuration: string | number;
226
+ animationIterationCount: string | number;
227
+ contentStyle: Record<string, any>;
228
+ }> | null;
229
+ actionRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
230
+ actionStyle: import('vue').CSSProperties;
231
+ isPassing: boolean;
232
+ toLeft: boolean;
233
+ }> & Readonly<{}>, {
234
+ getEl: () => HTMLDivElement | null;
235
+ getStyle: () => CSSStyleDeclaration | undefined;
236
+ setLeft: (val: string) => void;
237
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
238
+ actionRef: HTMLDivElement;
239
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
240
+ P: {};
241
+ B: {};
242
+ D: {};
243
+ C: {};
244
+ M: {};
245
+ Defaults: {};
246
+ }, Readonly<{
247
+ actionStyle: import('vue').CSSProperties;
248
+ isPassing: boolean;
249
+ toLeft: boolean;
250
+ }> & Readonly<{}>, {
251
+ getEl: () => HTMLDivElement | null;
252
+ getStyle: () => CSSStyleDeclaration | undefined;
253
+ setLeft: (val: string) => void;
254
+ }, {}, {}, {}, {}> | null;
255
+ }, HTMLDivElement>;
256
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
257
+ export default _default;
258
+ type __VLS_WithTemplateSlots<T, S> = T & {
259
+ new (): {
260
+ $slots: S;
261
+ };
262
+ };
@@ -0,0 +1,149 @@
1
+ import { CSSProperties } from 'vue';
2
+ export interface CaptchaData {
3
+ /**
4
+ * x
5
+ */
6
+ x: number;
7
+ /**
8
+ * y
9
+ */
10
+ y: number;
11
+ /**
12
+ * 时间戳
13
+ */
14
+ t: number;
15
+ }
16
+ export interface CaptchaPoint extends CaptchaData {
17
+ /**
18
+ * 数据索引
19
+ */
20
+ i: number;
21
+ }
22
+ export interface PointSelectionCaptchaCardProps {
23
+ /**
24
+ * 验证码图片
25
+ */
26
+ captchaImage: string;
27
+ /**
28
+ * 验证码图片高度
29
+ * @default '220px'
30
+ */
31
+ height?: number | string;
32
+ /**
33
+ * 水平内边距
34
+ * @default '12px'
35
+ */
36
+ paddingX?: number | string;
37
+ /**
38
+ * 垂直内边距
39
+ * @default '16px'
40
+ */
41
+ paddingY?: number | string;
42
+ /**
43
+ * 标题
44
+ * @default '请按图依次点击'
45
+ */
46
+ title?: string;
47
+ /**
48
+ * 验证码图片宽度
49
+ * @default '300px'
50
+ */
51
+ width?: number | string;
52
+ }
53
+ export interface PointSelectionCaptchaProps extends PointSelectionCaptchaCardProps {
54
+ /**
55
+ * 是否展示确定按钮
56
+ * @default false
57
+ */
58
+ showConfirm?: boolean;
59
+ /**
60
+ * 提示图片
61
+ * @default ''
62
+ */
63
+ hintImage?: string;
64
+ /**
65
+ * 提示文本
66
+ * @default ''
67
+ */
68
+ hintText?: string;
69
+ }
70
+ export interface SliderCaptchaProps {
71
+ class?: any;
72
+ /**
73
+ * @description 滑块的样式
74
+ * @default {}
75
+ */
76
+ actionStyle?: CSSProperties;
77
+ /**
78
+ * @description 滑块条的样式
79
+ * @default {}
80
+ */
81
+ barStyle?: CSSProperties;
82
+ /**
83
+ * @description 内容的样式
84
+ * @default {}
85
+ */
86
+ contentStyle?: CSSProperties;
87
+ /**
88
+ * @description 组件的样式
89
+ * @default {}
90
+ */
91
+ wrapperStyle?: CSSProperties;
92
+ /**
93
+ * @description 验证成功的提示
94
+ * @default '验证通过'
95
+ */
96
+ successText?: string;
97
+ /**
98
+ * @description 提示文字
99
+ * @default '请按住滑块拖动'
100
+ */
101
+ text?: string;
102
+ }
103
+ export interface SliderRotateCaptchaProps {
104
+ /**
105
+ * @description 旋转的角度
106
+ * @default 20
107
+ */
108
+ diffDegree?: number;
109
+ /**
110
+ * @description 图片的宽度
111
+ * @default 260
112
+ */
113
+ imageSize?: number;
114
+ /**
115
+ * @description 图片的样式
116
+ * @default {}
117
+ */
118
+ imageWrapperStyle?: CSSProperties;
119
+ /**
120
+ * @description 最大旋转角度
121
+ * @default 270
122
+ */
123
+ maxDegree?: number;
124
+ /**
125
+ * @description 最小旋转角度
126
+ * @default 90
127
+ */
128
+ minDegree?: number;
129
+ /**
130
+ * @description 图片的地址
131
+ */
132
+ src?: string;
133
+ /**
134
+ * @description 默认提示文本
135
+ */
136
+ defaultTip?: string;
137
+ }
138
+ export interface CaptchaVerifyPassingData {
139
+ isPassing: boolean;
140
+ time: number | string;
141
+ }
142
+ export interface SliderCaptchaActionType {
143
+ resume: () => void;
144
+ }
145
+ export interface SliderRotateVerifyPassingData {
146
+ event: MouseEvent | TouchEvent;
147
+ moveDistance: number;
148
+ moveX: number;
149
+ }