unika-components 1.1.2 → 1.1.3
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/UniImage/UniImage.vue.d.ts +1 -0
- package/dist/src/components/UniShape/UniShape.vue.d.ts +1 -0
- package/dist/src/components/UniText/UniText.vue.d.ts +1 -0
- package/dist/src/components/WorkRenderH5/WorkRenderH5.vue.d.ts +81 -0
- package/dist/src/components/WorkRenderH5/index.d.ts +2 -0
- package/dist/src/components/WorkRenderLong/WorkRenderLong.vue.d.ts +73 -0
- package/dist/src/components/WorkRenderLong/index.d.ts +2 -0
- package/dist/src/composables/useTouchHandler.d.ts +1 -0
- package/dist/src/constants/testLongProps.d.ts +163 -0
- package/dist/src/defaultProps.d.ts +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/unika-components.css +689 -596
- package/dist/unika-components.esm.js +713 -236
- package/dist/unika-components.umd.js +738 -260
- package/package.json +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { WorkData, GlobalData, PageData, PersonalData } from '../../defaultProps';
|
|
2
|
+
import '../../assets/css/workRender.css';
|
|
3
|
+
import { px2rem } from '@/composables/px2rem';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
workData: {
|
|
6
|
+
type: () => WorkData;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
autoPlay: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
isPlatform: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
env: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
personalData: import("vue").ComputedRef<PersonalData>;
|
|
23
|
+
global: import("vue").ComputedRef<GlobalData>;
|
|
24
|
+
pages: import("vue").ComputedRef<[] | PageData[]>;
|
|
25
|
+
displayPages: import("vue").ComputedRef<[] | PageData[]>;
|
|
26
|
+
currentPageId: import("vue").Ref<string>;
|
|
27
|
+
currentTransition: import("vue").ComputedRef<string>;
|
|
28
|
+
containerStyle: import("vue").ComputedRef<{
|
|
29
|
+
width: string;
|
|
30
|
+
height: string;
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
}>;
|
|
33
|
+
showPageIndicator: import("vue").ComputedRef<boolean>;
|
|
34
|
+
isScrollMode: import("vue").ComputedRef<boolean>;
|
|
35
|
+
showPopup: import("vue").Ref<boolean>;
|
|
36
|
+
direction: import("vue").Ref<"down" | "up">;
|
|
37
|
+
px2rem: typeof px2rem;
|
|
38
|
+
getPageStyle: (page: PageData) => {
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
backgroundImage: string;
|
|
41
|
+
opacity: string;
|
|
42
|
+
};
|
|
43
|
+
handleSubmit: (formData: Record<string, any>) => Promise<void>;
|
|
44
|
+
switchPage: (pageId: string) => void;
|
|
45
|
+
handleElementTrigger: (payload: {
|
|
46
|
+
elementId: string;
|
|
47
|
+
eventType: string;
|
|
48
|
+
data: any;
|
|
49
|
+
}) => void;
|
|
50
|
+
beforeEnter: (el: HTMLElement) => void;
|
|
51
|
+
afterEnter: (el: HTMLElement) => void;
|
|
52
|
+
handleTouchStart: (e: TouchEvent) => void;
|
|
53
|
+
handleTouchMove: (e: TouchEvent) => void;
|
|
54
|
+
handleTouchEnd: (e: TouchEvent) => void;
|
|
55
|
+
handleMouseDown: (e: MouseEvent) => void;
|
|
56
|
+
handleMouseMove: (e: MouseEvent) => void;
|
|
57
|
+
handleMouseUp: (e: MouseEvent) => void;
|
|
58
|
+
getComponentName: (type: string) => string;
|
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
workData: {
|
|
61
|
+
type: () => WorkData;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
autoPlay: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
isPlatform: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
env: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
}>>, {
|
|
77
|
+
autoPlay: boolean;
|
|
78
|
+
isPlatform: boolean;
|
|
79
|
+
env: string;
|
|
80
|
+
}, {}>;
|
|
81
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { WorkData, GlobalData, PageData, PersonalData } from '../../defaultProps';
|
|
2
|
+
import '../../assets/css/workRender.css';
|
|
3
|
+
import { px2rem } from '@/composables/px2rem';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
workData: {
|
|
6
|
+
type: () => WorkData;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
autoPlay: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
isPlatform: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
env: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
scrollContent: import("vue").Ref<HTMLElement | null>;
|
|
23
|
+
currentPosition: import("vue").Ref<number>;
|
|
24
|
+
isAutoScrolling: import("vue").Ref<number | boolean>;
|
|
25
|
+
scrollDuration: import("vue").ComputedRef<number>;
|
|
26
|
+
global: import("vue").ComputedRef<GlobalData>;
|
|
27
|
+
pages: import("vue").ComputedRef<[] | PageData[]>;
|
|
28
|
+
longStyle: import("vue").ComputedRef<{
|
|
29
|
+
height: string;
|
|
30
|
+
transform: string;
|
|
31
|
+
transition: string;
|
|
32
|
+
}>;
|
|
33
|
+
page: import("vue").ComputedRef<PageData>;
|
|
34
|
+
personalData: import("vue").ComputedRef<PersonalData>;
|
|
35
|
+
handleContainerClick: (e: MouseEvent) => void;
|
|
36
|
+
handleSubmit: (formData: Record<string, any>) => Promise<void>;
|
|
37
|
+
handleElementTrigger: (payload: {
|
|
38
|
+
elementId: string;
|
|
39
|
+
eventType: string;
|
|
40
|
+
data: any;
|
|
41
|
+
}) => void;
|
|
42
|
+
getComponentName: (type: string) => string;
|
|
43
|
+
handleTouchStart: (e: TouchEvent) => void;
|
|
44
|
+
handleTouchMove: (e: TouchEvent) => void;
|
|
45
|
+
handleTouchEnd: () => void;
|
|
46
|
+
handleMouseDown: (e: MouseEvent) => void;
|
|
47
|
+
handleMouseMove: (e: MouseEvent) => void;
|
|
48
|
+
handleMouseUp: () => void;
|
|
49
|
+
handleMouseLeave: () => void;
|
|
50
|
+
px2rem: typeof px2rem;
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
workData: {
|
|
53
|
+
type: () => WorkData;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
autoPlay: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
isPlatform: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
env: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}>>, {
|
|
69
|
+
autoPlay: boolean;
|
|
70
|
+
isPlatform: boolean;
|
|
71
|
+
env: string;
|
|
72
|
+
}, {}>;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export declare const testDefaultProps: {
|
|
2
|
+
global: {
|
|
3
|
+
f_id: number;
|
|
4
|
+
pageDot: number;
|
|
5
|
+
pageLoop: boolean;
|
|
6
|
+
uuid: string;
|
|
7
|
+
scenecode: string;
|
|
8
|
+
cat: string;
|
|
9
|
+
music: {
|
|
10
|
+
url: string;
|
|
11
|
+
name: string;
|
|
12
|
+
music_id: string;
|
|
13
|
+
bgcolor: string;
|
|
14
|
+
iconUrl: string;
|
|
15
|
+
isGlobal: boolean;
|
|
16
|
+
};
|
|
17
|
+
title: string;
|
|
18
|
+
desc: string;
|
|
19
|
+
smimg: string;
|
|
20
|
+
receipt: {
|
|
21
|
+
open: boolean;
|
|
22
|
+
which: boolean;
|
|
23
|
+
whichList: {
|
|
24
|
+
label: string;
|
|
25
|
+
}[];
|
|
26
|
+
color: string;
|
|
27
|
+
isShow: boolean;
|
|
28
|
+
userOpen: boolean;
|
|
29
|
+
};
|
|
30
|
+
video: {
|
|
31
|
+
open: boolean;
|
|
32
|
+
color: string;
|
|
33
|
+
url: string;
|
|
34
|
+
isShow: boolean;
|
|
35
|
+
userOpen: boolean;
|
|
36
|
+
};
|
|
37
|
+
map: {
|
|
38
|
+
open: boolean;
|
|
39
|
+
color: string;
|
|
40
|
+
lng: string;
|
|
41
|
+
lat: string;
|
|
42
|
+
location: string;
|
|
43
|
+
zoom: number;
|
|
44
|
+
type: string;
|
|
45
|
+
isShow: boolean;
|
|
46
|
+
url: string;
|
|
47
|
+
userOpen: boolean;
|
|
48
|
+
};
|
|
49
|
+
tel: {
|
|
50
|
+
open: boolean;
|
|
51
|
+
color: string;
|
|
52
|
+
list: {
|
|
53
|
+
label: string;
|
|
54
|
+
value: string;
|
|
55
|
+
}[];
|
|
56
|
+
end_up: number;
|
|
57
|
+
isShow: boolean;
|
|
58
|
+
userOpen: boolean;
|
|
59
|
+
};
|
|
60
|
+
toolbar: {
|
|
61
|
+
open: boolean;
|
|
62
|
+
gift: boolean;
|
|
63
|
+
cash: boolean;
|
|
64
|
+
fontColor: string;
|
|
65
|
+
bgColor: string;
|
|
66
|
+
giftRank: boolean;
|
|
67
|
+
hideFirst: boolean;
|
|
68
|
+
hideLast: boolean;
|
|
69
|
+
praise: boolean;
|
|
70
|
+
giftQRCode: string;
|
|
71
|
+
};
|
|
72
|
+
isPublish: number;
|
|
73
|
+
domain: string;
|
|
74
|
+
pay_cat: number;
|
|
75
|
+
footer_ad: number;
|
|
76
|
+
merchant_id: number;
|
|
77
|
+
is_weiye: number;
|
|
78
|
+
ver: number;
|
|
79
|
+
systemUser: number;
|
|
80
|
+
member_level: number;
|
|
81
|
+
is_member: number;
|
|
82
|
+
fontList: {
|
|
83
|
+
label: string;
|
|
84
|
+
value: string;
|
|
85
|
+
fontPath: string;
|
|
86
|
+
}[];
|
|
87
|
+
imgMattCount: number;
|
|
88
|
+
defaultEditor: number;
|
|
89
|
+
sceneId: string;
|
|
90
|
+
updatedAt: string;
|
|
91
|
+
SMImg: string;
|
|
92
|
+
latestPublishAt: string;
|
|
93
|
+
};
|
|
94
|
+
pages: {
|
|
95
|
+
pageId: string;
|
|
96
|
+
pageNum: number;
|
|
97
|
+
bgColor: string;
|
|
98
|
+
bgImage: string;
|
|
99
|
+
pageType: string;
|
|
100
|
+
ani: string;
|
|
101
|
+
banPage: number;
|
|
102
|
+
autoPage: boolean;
|
|
103
|
+
delay: string;
|
|
104
|
+
bgOpacity: string;
|
|
105
|
+
elements: {
|
|
106
|
+
id: string;
|
|
107
|
+
pid: string;
|
|
108
|
+
type: string;
|
|
109
|
+
textContent: string;
|
|
110
|
+
layerName: string;
|
|
111
|
+
btnName: string;
|
|
112
|
+
sign: boolean;
|
|
113
|
+
signSort: number;
|
|
114
|
+
mapStyle: string;
|
|
115
|
+
iframeUrl: string;
|
|
116
|
+
url: string;
|
|
117
|
+
css: {
|
|
118
|
+
borderWidth: number;
|
|
119
|
+
borderStyle: string;
|
|
120
|
+
borderColor: string;
|
|
121
|
+
opacity: number;
|
|
122
|
+
fontSize: number;
|
|
123
|
+
color: string;
|
|
124
|
+
backgroundColor: string;
|
|
125
|
+
width: number;
|
|
126
|
+
height: number;
|
|
127
|
+
top: number;
|
|
128
|
+
left: number;
|
|
129
|
+
transform: number;
|
|
130
|
+
borderRadius: number;
|
|
131
|
+
};
|
|
132
|
+
properties: {
|
|
133
|
+
visible: boolean;
|
|
134
|
+
isLock: boolean;
|
|
135
|
+
required: boolean;
|
|
136
|
+
musicName: string;
|
|
137
|
+
musicLink: string;
|
|
138
|
+
musicHash: string;
|
|
139
|
+
shadowSize: number;
|
|
140
|
+
shadowColor: string;
|
|
141
|
+
shadowX: number;
|
|
142
|
+
shadowY: number;
|
|
143
|
+
shadowBlur: number;
|
|
144
|
+
shadowPoint: number;
|
|
145
|
+
aniOrigin: string;
|
|
146
|
+
animations: never[];
|
|
147
|
+
lng: number;
|
|
148
|
+
lat: number;
|
|
149
|
+
location: string;
|
|
150
|
+
zoom: number;
|
|
151
|
+
type: string;
|
|
152
|
+
isMapEdit: number;
|
|
153
|
+
};
|
|
154
|
+
signType: string;
|
|
155
|
+
}[];
|
|
156
|
+
height: number;
|
|
157
|
+
eleIndex: number;
|
|
158
|
+
bgAni: string;
|
|
159
|
+
bgSign: number;
|
|
160
|
+
imgMattingInfo: null;
|
|
161
|
+
}[];
|
|
162
|
+
};
|
|
163
|
+
export default testDefaultProps;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ import UniEffect from './components/UniEffect';
|
|
|
12
12
|
import UniLottie from './components/UniLottie';
|
|
13
13
|
import UniButton from './components/UniButton';
|
|
14
14
|
import UniBarrage from './components/UniBarrage';
|
|
15
|
-
import
|
|
15
|
+
import WorkRenderH5 from './components/WorkRenderH5';
|
|
16
|
+
import WorkRenderLong from './components/WorkRenderLong';
|
|
16
17
|
import UniFormInput from './components/UniFormInput';
|
|
17
18
|
import UniFormSubmit from './components/UniFormSubmit';
|
|
18
19
|
import UniFormSelect from './components/UniFormSelect';
|
|
@@ -25,7 +26,7 @@ import UniMenuTel from './components/UniMenuTel';
|
|
|
25
26
|
import UniMenuReceipt from './components/UniMenuReceipt';
|
|
26
27
|
import UniMenuMap from './components/UniMenuMap';
|
|
27
28
|
declare const install: (app: App) => void;
|
|
28
|
-
export { UniText, UniImage, UniShape, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniEffect, UniLottie, UniButton, UniBarrage,
|
|
29
|
+
export { UniText, UniImage, UniShape, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniEffect, UniLottie, UniButton, UniBarrage, WorkRenderH5, WorkRenderLong, UniFormInput, UniFormSubmit, UniFormSelect, UniFormSingle, UniFormMultiple, UniFormContainer, UniMenu, UniMenuVideo, UniMenuTel, UniMenuReceipt, UniMenuMap, install };
|
|
29
30
|
declare const _default: {
|
|
30
31
|
install: (app: App<any>) => void;
|
|
31
32
|
};
|