unika-components 1.0.319 → 1.0.320
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.
- package/dist/src/components/LongPage/LongPage.vue.d.ts +3 -3
- package/dist/src/components/UniText/UniText.vue.d.ts +278 -4
- package/dist/src/components/UniTextBk/index.d.ts +2 -0
- package/dist/src/components/WorkRender/DynamicElement.vue.d.ts +59 -0
- package/dist/src/components/WorkRender/PageIndicator.vue.d.ts +110 -0
- package/dist/src/components/WorkRender/SwiperAnimate.d.ts +3 -0
- package/dist/src/components/WorkRender/WorkRenderer.vue.d.ts +58 -0
- package/dist/src/components/WorkRender/index.d.ts +2 -0
- package/dist/src/composables/useElementProps.d.ts +8 -0
- package/dist/src/composables/useElementStyle.d.ts +18 -0
- package/dist/src/composables/useIndicatorStyle.d.ts +31 -0
- package/dist/src/composables/usePageTransition.d.ts +6 -0
- package/dist/src/composables/useTouchHandler.d.ts +10 -0
- package/dist/src/defaultProps.d.ts +205 -63
- package/dist/src/index.d.ts +2 -3
- package/dist/unika-components.css +328 -677
- package/dist/unika-components.esm.js +1065 -8345
- package/dist/unika-components.umd.js +1051 -8332
- package/package.json +4 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementData, WorkData } from '../../defaultProps';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
work: {
|
|
5
5
|
type: PropType<WorkData>;
|
|
6
6
|
};
|
|
7
7
|
components: {
|
|
8
|
-
type: PropType<
|
|
8
|
+
type: PropType<ElementData[]>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: PropType<WorkData>;
|
|
14
14
|
};
|
|
15
15
|
components: {
|
|
16
|
-
type: PropType<
|
|
16
|
+
type: PropType<ElementData[]>;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
19
|
}>>, {}, {}>;
|
|
@@ -1,11 +1,285 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
|
|
2
|
+
pid: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
type: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
textContent: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
layerName: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
sign: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
signSort: {
|
|
23
|
+
type: NumberConstructor;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
signType: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
nameSign: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
css: {
|
|
35
|
+
type: () => CSSProperties;
|
|
36
|
+
default: () => {
|
|
37
|
+
fontFamily: string;
|
|
38
|
+
fontSize: number;
|
|
39
|
+
lineHeight: number;
|
|
40
|
+
letterSpacing: number;
|
|
41
|
+
fontWeight: string;
|
|
42
|
+
textDecoration: string;
|
|
43
|
+
textAlign: string;
|
|
44
|
+
writingMode: string;
|
|
45
|
+
webkitWritingMode: string;
|
|
46
|
+
fontStyle: string;
|
|
47
|
+
borderWidth: number;
|
|
48
|
+
borderStyle: string;
|
|
49
|
+
borderColor: string;
|
|
50
|
+
color: string;
|
|
51
|
+
opacity: number;
|
|
52
|
+
width: number;
|
|
53
|
+
height: string;
|
|
54
|
+
left: number;
|
|
55
|
+
top: number;
|
|
56
|
+
transform: number;
|
|
57
|
+
padding: number;
|
|
58
|
+
backgroundColor: string;
|
|
59
|
+
textIndent: number;
|
|
60
|
+
borderRadius: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
triggers: {
|
|
64
|
+
type: () => Triggers;
|
|
65
|
+
default: () => {
|
|
66
|
+
event: string;
|
|
67
|
+
link: string;
|
|
68
|
+
go: string;
|
|
69
|
+
phone: string;
|
|
70
|
+
musicName: string;
|
|
71
|
+
musicLink: string;
|
|
72
|
+
musicHash: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
properties: {
|
|
76
|
+
type: () => Properties;
|
|
77
|
+
default: () => {
|
|
78
|
+
visible: boolean;
|
|
79
|
+
isLock: boolean;
|
|
80
|
+
required: boolean;
|
|
81
|
+
musicName: string;
|
|
82
|
+
musicLink: string;
|
|
83
|
+
musicHash: string;
|
|
84
|
+
shadowSize: number;
|
|
85
|
+
shadowColor: string;
|
|
86
|
+
shadowX: number;
|
|
87
|
+
shadowY: number;
|
|
88
|
+
shadowBlur: number;
|
|
89
|
+
shadowPoint: number;
|
|
90
|
+
aniOrigin: string;
|
|
91
|
+
animations: never[];
|
|
92
|
+
textAni: never[];
|
|
93
|
+
};
|
|
94
|
+
};
|
|
3
95
|
}, {
|
|
4
|
-
|
|
96
|
+
audioPlayer: import("vue").Ref<HTMLAudioElement | null>;
|
|
97
|
+
textStyle: import("vue").ComputedRef<{
|
|
98
|
+
fontFamily: string;
|
|
99
|
+
fontSize: string;
|
|
100
|
+
lineHeight: number;
|
|
101
|
+
letterSpacing: string;
|
|
102
|
+
fontWeight: string;
|
|
103
|
+
textDecoration: string;
|
|
104
|
+
textAlign: string;
|
|
105
|
+
writingMode: string;
|
|
106
|
+
WebkitWritingMode: string;
|
|
107
|
+
fontStyle: string;
|
|
108
|
+
borderWidth: string;
|
|
109
|
+
borderStyle: string;
|
|
110
|
+
borderColor: string;
|
|
111
|
+
color: string;
|
|
112
|
+
opacity: number;
|
|
113
|
+
width: string;
|
|
114
|
+
height: string;
|
|
115
|
+
left: string;
|
|
116
|
+
top: string;
|
|
117
|
+
transform: string;
|
|
118
|
+
padding: string;
|
|
119
|
+
backgroundColor: string;
|
|
120
|
+
textIndent: string;
|
|
121
|
+
borderRadius: string;
|
|
122
|
+
boxShadow: string;
|
|
123
|
+
position: string;
|
|
124
|
+
}>;
|
|
5
125
|
handleClick: () => void;
|
|
6
126
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
-
|
|
127
|
+
pid: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
type: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
textContent: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
layerName: {
|
|
140
|
+
type: StringConstructor;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
sign: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
signSort: {
|
|
148
|
+
type: NumberConstructor;
|
|
149
|
+
default: number;
|
|
150
|
+
};
|
|
151
|
+
signType: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
nameSign: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
css: {
|
|
160
|
+
type: () => CSSProperties;
|
|
161
|
+
default: () => {
|
|
162
|
+
fontFamily: string;
|
|
163
|
+
fontSize: number;
|
|
164
|
+
lineHeight: number;
|
|
165
|
+
letterSpacing: number;
|
|
166
|
+
fontWeight: string;
|
|
167
|
+
textDecoration: string;
|
|
168
|
+
textAlign: string;
|
|
169
|
+
writingMode: string;
|
|
170
|
+
webkitWritingMode: string;
|
|
171
|
+
fontStyle: string;
|
|
172
|
+
borderWidth: number;
|
|
173
|
+
borderStyle: string;
|
|
174
|
+
borderColor: string;
|
|
175
|
+
color: string;
|
|
176
|
+
opacity: number;
|
|
177
|
+
width: number;
|
|
178
|
+
height: string;
|
|
179
|
+
left: number;
|
|
180
|
+
top: number;
|
|
181
|
+
transform: number;
|
|
182
|
+
padding: number;
|
|
183
|
+
backgroundColor: string;
|
|
184
|
+
textIndent: number;
|
|
185
|
+
borderRadius: number;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
triggers: {
|
|
189
|
+
type: () => Triggers;
|
|
190
|
+
default: () => {
|
|
191
|
+
event: string;
|
|
192
|
+
link: string;
|
|
193
|
+
go: string;
|
|
194
|
+
phone: string;
|
|
195
|
+
musicName: string;
|
|
196
|
+
musicLink: string;
|
|
197
|
+
musicHash: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
properties: {
|
|
201
|
+
type: () => Properties;
|
|
202
|
+
default: () => {
|
|
203
|
+
visible: boolean;
|
|
204
|
+
isLock: boolean;
|
|
205
|
+
required: boolean;
|
|
206
|
+
musicName: string;
|
|
207
|
+
musicLink: string;
|
|
208
|
+
musicHash: string;
|
|
209
|
+
shadowSize: number;
|
|
210
|
+
shadowColor: string;
|
|
211
|
+
shadowX: number;
|
|
212
|
+
shadowY: number;
|
|
213
|
+
shadowBlur: number;
|
|
214
|
+
shadowPoint: number;
|
|
215
|
+
aniOrigin: string;
|
|
216
|
+
animations: never[];
|
|
217
|
+
textAni: never[];
|
|
218
|
+
};
|
|
219
|
+
};
|
|
8
220
|
}>>, {
|
|
9
|
-
|
|
221
|
+
pid: string;
|
|
222
|
+
type: string;
|
|
223
|
+
textContent: string;
|
|
224
|
+
layerName: string;
|
|
225
|
+
sign: boolean;
|
|
226
|
+
signSort: number;
|
|
227
|
+
signType: string;
|
|
228
|
+
nameSign: string;
|
|
229
|
+
css: CSSProperties;
|
|
230
|
+
triggers: Triggers;
|
|
231
|
+
properties: Properties;
|
|
10
232
|
}, {}>;
|
|
11
233
|
export default _default;
|
|
234
|
+
interface CSSProperties {
|
|
235
|
+
fontFamily: string;
|
|
236
|
+
fontSize: number;
|
|
237
|
+
lineHeight: number;
|
|
238
|
+
letterSpacing: number;
|
|
239
|
+
fontWeight: string;
|
|
240
|
+
textDecoration: string;
|
|
241
|
+
textAlign: string;
|
|
242
|
+
writingMode: string;
|
|
243
|
+
webkitWritingMode: string;
|
|
244
|
+
fontStyle: string;
|
|
245
|
+
borderWidth: number;
|
|
246
|
+
borderStyle: string;
|
|
247
|
+
borderColor: string;
|
|
248
|
+
color: string;
|
|
249
|
+
opacity: number;
|
|
250
|
+
width: number | string;
|
|
251
|
+
height: number | string;
|
|
252
|
+
left: number;
|
|
253
|
+
top: number;
|
|
254
|
+
transform: number;
|
|
255
|
+
padding: number;
|
|
256
|
+
backgroundColor: string;
|
|
257
|
+
textIndent: number;
|
|
258
|
+
borderRadius: number;
|
|
259
|
+
}
|
|
260
|
+
interface Triggers {
|
|
261
|
+
event: string;
|
|
262
|
+
link: string;
|
|
263
|
+
go: string;
|
|
264
|
+
phone: string;
|
|
265
|
+
musicName: string;
|
|
266
|
+
musicLink: string;
|
|
267
|
+
musicHash: string;
|
|
268
|
+
}
|
|
269
|
+
interface Properties {
|
|
270
|
+
visible: boolean;
|
|
271
|
+
isLock: boolean;
|
|
272
|
+
required: boolean;
|
|
273
|
+
musicName: string;
|
|
274
|
+
musicLink: string;
|
|
275
|
+
musicHash: string;
|
|
276
|
+
shadowSize: number;
|
|
277
|
+
shadowColor: string;
|
|
278
|
+
shadowX: number;
|
|
279
|
+
shadowY: number;
|
|
280
|
+
shadowBlur: number;
|
|
281
|
+
shadowPoint: number;
|
|
282
|
+
aniOrigin: string;
|
|
283
|
+
animations: any[];
|
|
284
|
+
textAni: any[];
|
|
285
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ElementData, GlobalData, PersonalData } from '../../defaultProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
element: {
|
|
4
|
+
type: () => ElementData;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
global: {
|
|
8
|
+
type: () => GlobalData;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
personalData: {
|
|
12
|
+
type: () => PersonalData;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
elementComponent: import("vue").ComputedRef<"UniText" | "UniImage" | "UniButton" | "div">;
|
|
17
|
+
elementStyle: import("vue").ComputedRef<{
|
|
18
|
+
position: string;
|
|
19
|
+
fontFamily: string;
|
|
20
|
+
fontSize: string;
|
|
21
|
+
width: string;
|
|
22
|
+
height: string;
|
|
23
|
+
left: string;
|
|
24
|
+
top: string;
|
|
25
|
+
transform: string;
|
|
26
|
+
opacity: number;
|
|
27
|
+
border: string;
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
animation: string;
|
|
30
|
+
boxShadow: string;
|
|
31
|
+
}>;
|
|
32
|
+
elementClasses: import("vue").ComputedRef<(string | {
|
|
33
|
+
'is-sign': boolean;
|
|
34
|
+
'is-locked': boolean;
|
|
35
|
+
})[]>;
|
|
36
|
+
elementProps: import("vue").ComputedRef<{
|
|
37
|
+
id: string;
|
|
38
|
+
'data-element-id': string;
|
|
39
|
+
'data-layer-name': string;
|
|
40
|
+
}>;
|
|
41
|
+
handleClick: () => void;
|
|
42
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
element: {
|
|
44
|
+
type: () => ElementData;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
global: {
|
|
48
|
+
type: () => GlobalData;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
51
|
+
personalData: {
|
|
52
|
+
type: () => PersonalData;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
|
+
}>>, {
|
|
56
|
+
global: GlobalData;
|
|
57
|
+
personalData: PersonalData;
|
|
58
|
+
}, {}>;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PageData } from '../../defaultProps';
|
|
3
|
+
declare const __default__: import("vue").DefineComponent<{
|
|
4
|
+
pages: {
|
|
5
|
+
type: PropType<PageData[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
currentPageId: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
position: {
|
|
13
|
+
type: () => 'top' | 'bottom' | 'left' | 'right';
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
style: {
|
|
17
|
+
type: () => 'dot' | 'number';
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
activeColor: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
size: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
activeSize: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
spacing: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
currentPageIndex: import("vue").ComputedRef<number>;
|
|
42
|
+
indicatorStyle: import("vue").ComputedRef<{
|
|
43
|
+
right?: string | undefined;
|
|
44
|
+
top?: string | undefined;
|
|
45
|
+
transform?: string | undefined;
|
|
46
|
+
flexDirection?: string | undefined;
|
|
47
|
+
left?: string | undefined;
|
|
48
|
+
bottom?: string | undefined;
|
|
49
|
+
position: string;
|
|
50
|
+
display: string;
|
|
51
|
+
alignItems: string;
|
|
52
|
+
justifyContent: string;
|
|
53
|
+
zIndex: number;
|
|
54
|
+
transition: string;
|
|
55
|
+
}>;
|
|
56
|
+
activeDotStyle: import("vue").ComputedRef<{
|
|
57
|
+
width: string;
|
|
58
|
+
height: string;
|
|
59
|
+
backgroundColor: string;
|
|
60
|
+
}>;
|
|
61
|
+
handleDotClick: (pageId: string, index: number) => void;
|
|
62
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
+
pages: {
|
|
64
|
+
type: PropType<PageData[]>;
|
|
65
|
+
required: true;
|
|
66
|
+
};
|
|
67
|
+
currentPageId: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
required: true;
|
|
70
|
+
};
|
|
71
|
+
position: {
|
|
72
|
+
type: () => 'top' | 'bottom' | 'left' | 'right';
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
style: {
|
|
76
|
+
type: () => 'dot' | 'number';
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
color: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
activeColor: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
size: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
activeSize: {
|
|
92
|
+
type: NumberConstructor;
|
|
93
|
+
default: number;
|
|
94
|
+
};
|
|
95
|
+
spacing: {
|
|
96
|
+
type: NumberConstructor;
|
|
97
|
+
default: number;
|
|
98
|
+
};
|
|
99
|
+
}>> & {
|
|
100
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
position: "top" | "bottom" | "left" | "right";
|
|
103
|
+
style: "number" | "dot";
|
|
104
|
+
color: string;
|
|
105
|
+
activeColor: string;
|
|
106
|
+
size: number;
|
|
107
|
+
activeSize: number;
|
|
108
|
+
spacing: number;
|
|
109
|
+
}, {}>;
|
|
110
|
+
export default __default__;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkData, GlobalData, PageData, PersonalData } from '../../defaultProps';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
workData: {
|
|
5
|
+
type: () => WorkData;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
autoPlay: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
bgMusic: Ref<HTMLAudioElement | null>;
|
|
14
|
+
personalData: Ref<PersonalData>;
|
|
15
|
+
global: Ref<GlobalData>;
|
|
16
|
+
pages: import("vue").ComputedRef<PageData[]>;
|
|
17
|
+
displayPages: import("vue").ComputedRef<PageData[]>;
|
|
18
|
+
currentPageId: Ref<string>;
|
|
19
|
+
containerStyle: import("vue").ComputedRef<{
|
|
20
|
+
width: string;
|
|
21
|
+
height: string;
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
}>;
|
|
24
|
+
showPageIndicator: import("vue").ComputedRef<boolean>;
|
|
25
|
+
pageTransition: import("vue").ComputedRef<string>;
|
|
26
|
+
getPageStyle: (page: PageData) => {
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
backgroundImage: string;
|
|
29
|
+
opacity: string;
|
|
30
|
+
animation: string;
|
|
31
|
+
};
|
|
32
|
+
switchPage: (pageId: string) => void;
|
|
33
|
+
handleElementTrigger: (payload: {
|
|
34
|
+
elementId: string;
|
|
35
|
+
eventType: string;
|
|
36
|
+
data: any;
|
|
37
|
+
}) => void;
|
|
38
|
+
isScrollMode: import("vue").ComputedRef<boolean>;
|
|
39
|
+
handleTouchStart: (e: TouchEvent) => void;
|
|
40
|
+
handleTouchMove: (e: TouchEvent) => void;
|
|
41
|
+
handleTouchEnd: (e: TouchEvent) => void;
|
|
42
|
+
handleMouseDown: (e: MouseEvent) => void;
|
|
43
|
+
handleMouseMove: (e: MouseEvent) => void;
|
|
44
|
+
handleMouseUp: (e: MouseEvent) => void;
|
|
45
|
+
getPageClasses: (page: PageData) => string[];
|
|
46
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
workData: {
|
|
48
|
+
type: () => WorkData;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
autoPlay: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
}>>, {
|
|
56
|
+
autoPlay: boolean;
|
|
57
|
+
}, {}>;
|
|
58
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementData } from '../defaultProps';
|
|
2
|
+
export declare function useElementStyle(element: ElementData): {
|
|
3
|
+
elementStyle: import("vue").ComputedRef<{
|
|
4
|
+
position: string;
|
|
5
|
+
fontFamily: string;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
left: string;
|
|
10
|
+
top: string;
|
|
11
|
+
transform: string;
|
|
12
|
+
opacity: number;
|
|
13
|
+
border: string;
|
|
14
|
+
borderRadius: string;
|
|
15
|
+
animation: string;
|
|
16
|
+
boxShadow: string;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface IndicatorProps {
|
|
2
|
+
position: 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
style: 'dot' | 'number';
|
|
4
|
+
color: string;
|
|
5
|
+
activeColor: string;
|
|
6
|
+
size: number;
|
|
7
|
+
activeSize: number;
|
|
8
|
+
spacing: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function useIndicatorStyle(props: IndicatorProps): {
|
|
11
|
+
indicatorStyle: import("vue").ComputedRef<{
|
|
12
|
+
right?: string | undefined;
|
|
13
|
+
top?: string | undefined;
|
|
14
|
+
transform?: string | undefined;
|
|
15
|
+
flexDirection?: string | undefined;
|
|
16
|
+
left?: string | undefined;
|
|
17
|
+
bottom?: string | undefined;
|
|
18
|
+
position: string;
|
|
19
|
+
display: string;
|
|
20
|
+
alignItems: string;
|
|
21
|
+
justifyContent: string;
|
|
22
|
+
zIndex: number;
|
|
23
|
+
transition: string;
|
|
24
|
+
}>;
|
|
25
|
+
activeDotStyle: import("vue").ComputedRef<{
|
|
26
|
+
width: string;
|
|
27
|
+
height: string;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
}>;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { PageData } from '../defaultProps';
|
|
3
|
+
export declare function useTouchHandler(pages: Ref<PageData[]>, currentPageId: Ref<string>, deltaY: Ref<number>): {
|
|
4
|
+
handleTouchStart: (e: TouchEvent) => void;
|
|
5
|
+
handleTouchMove: (e: TouchEvent) => void;
|
|
6
|
+
handleTouchEnd: (e: TouchEvent) => void;
|
|
7
|
+
handleMouseDown: (e: MouseEvent) => void;
|
|
8
|
+
handleMouseMove: (e: MouseEvent) => void;
|
|
9
|
+
handleMouseUp: (e: MouseEvent) => void;
|
|
10
|
+
};
|