unika-components 1.0.7 → 1.0.9

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.
@@ -0,0 +1,3 @@
1
+ export declare const swiperAnimateCache: () => void;
2
+ export declare const swiperAnimate: (a: any) => void;
3
+ export declare const clearSwiperAnimate: () => void;
@@ -9,7 +9,17 @@ declare const _default: import("vue").DefineComponent<{
9
9
  components: {
10
10
  type: PropType<ComponentData[]>;
11
11
  };
12
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }, {
13
+ componentRefs: import("vue").Ref<Map<any, any> & Omit<Map<any, any>, keyof Map<any, any>>>;
14
+ setComponentRef: (el: any) => void;
15
+ onSlideChange: (swiper: any) => void;
16
+ onSwiper: (swiper: any) => void;
17
+ modules: import("swiper/types").SwiperComponent[];
18
+ direction: string;
19
+ effect: string;
20
+ upArrow: import("vue").Ref<boolean>;
21
+ slideChangeTransitionEnd: (e: any) => void;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
23
  work: {
14
24
  type: PropType<WorkData>;
15
25
  require: boolean;
@@ -1,9 +1,30 @@
1
+ export interface Animations {
2
+ type?: string;
3
+ duration?: number;
4
+ delay?: number;
5
+ interationCount?: number;
6
+ infinite?: boolean;
7
+ }
1
8
  export interface ComponentData {
2
9
  props: {
3
10
  [key: string]: any;
4
11
  };
12
+ type?: string;
13
+ animations: Array<Animations>;
14
+ events?: Array<{
15
+ [key: string]: any;
16
+ }>;
17
+ methodList?: Array<{
18
+ [key: string]: any;
19
+ }>;
20
+ scripts?: Array<{
21
+ [key: string]: any;
22
+ }>;
5
23
  id: string;
6
24
  name: string;
25
+ groupId?: string;
26
+ groupType?: string;
27
+ buildUpStatus?: boolean;
7
28
  layerName?: string;
8
29
  isHidden?: boolean;
9
30
  isLocked?: boolean;
@@ -1,55 +1,27 @@
1
-
2
- h2.uni-text-component, p.uni-text-component {
3
- margin-bottom: 0;
4
- }
5
- button.uni-text-component {
6
- padding: 5px 10px;
7
- cursor: pointer;
8
- }
9
- .uni-text-component {
10
- box-sizing: border-box;
11
- white-space: pre-wrap;
12
- }
13
-
14
- .uni-image-component {
15
- max-width: 100%;
16
- }
17
1
 
18
- .uni-background-component {
19
- width: 100%;
20
- }
21
- .bg-img {
22
- width: 100%;
23
- height: 100%;
24
- object-fit: cover;
25
- z-index:1;
2
+ .uni-video-component {
3
+ position: relative;
4
+ text-align: center;
26
5
  }
27
- .watermark {
28
- height: 100%;
6
+ .play-pause-button {
29
7
  position: absolute;
30
- top: 0;
31
- left: 0;
32
- right: 0;
33
- bottom: 0;
8
+ top: 50%;
9
+ left: 50%;
10
+ transform: translate(-50%, -50%);
11
+ cursor: pointer;
12
+ font-size: 2rem;
13
+ color: #fff;
14
+ background: rgba(0, 0, 0, 0.6);
15
+ border-radius: 50%;
16
+ padding: 10px;
17
+ transition: background 0.3s;
34
18
  }
35
- .watermark-div {
36
- height: 100%;
37
- width:100%;
38
- position:absolute;
39
- z-index:99999999;
19
+ .play-pause-button:hover {
20
+ background: rgba(0, 0, 0, 0.8);
40
21
  }
41
22
 
42
- .slide-guide {
43
- position: absolute;
44
- bottom: 90px;
45
- left: 50%;
46
- transform: translateX(-50%);
47
- }
48
- .slide-guide img {
49
- animation: flowing 2s ease-in-out infinite;
50
- width: 33px;
51
- vertical-align: middle;
52
- border-style: none;
23
+ .uni-image-component {
24
+ max-width: 100%;
53
25
  }
54
26
 
55
27
  #audio {
@@ -108,65 +80,165 @@ button.uni-text-component {
108
80
  -webkit-animation: mrotate 5s linear infinite;
109
81
  animation: mrotate 5s linear infinite;
110
82
  }
111
- .video-play-audio {
112
- position: absolute;
113
- left: -9999px;
114
- top: -9999px;
115
- width: 0;
116
- height: 0;
117
- z-index: -1;
118
- opacity: 1;
119
- overflow: hidden;
120
- }
83
+ .video-play-audio {
84
+ position: absolute;
85
+ left: -9999px;
86
+ top: -9999px;
87
+ width: 0;
88
+ height: 0;
89
+ z-index: -1;
90
+ opacity: 1;
91
+ overflow: hidden;
92
+ }
121
93
 
122
- .music-img {
123
- position: relative;
124
- display: inline-block;
125
- width: 100%;
126
- height: 100%;
127
- }
94
+ .music-img {
95
+ position: relative;
96
+ display: inline-block;
97
+ width: 100%;
98
+ height: 100%;
99
+ }
128
100
 
129
- .uni-music-component {
130
- }
101
+ .uni-music-component {
102
+ }
131
103
 
132
- /* 无限旋转 */
133
- @keyframes mrotate {
134
- from {
135
- transform: rotate(0deg);
136
- }
137
- to {
138
- transform: rotate(360deg);
139
- }
104
+ /* 无限旋转 */
105
+ @keyframes mrotate {
106
+ from {
107
+ transform: rotate(0deg);
140
108
  }
141
- @-webkit-keyframes mrotate {
142
- from {
143
- -webkit-transform: rotate(0deg);
144
- }
145
- to {
146
- -webkit-transform: rotate(360deg);
147
- }
109
+ to {
110
+ transform: rotate(360deg);
148
111
  }
112
+ }
113
+ @-webkit-keyframes mrotate {
114
+ from {
115
+ -webkit-transform: rotate(0deg);
116
+ }
117
+ to {
118
+ -webkit-transform: rotate(360deg);
119
+ }
120
+ }
121
+
122
+ h2.uni-text-component, p.uni-text-component {
123
+ margin-bottom: 0;
124
+ }
125
+ button.uni-text-component {
126
+ padding: 5px 10px;
127
+ cursor: pointer;
128
+ }
129
+ .uni-text-component {
130
+ box-sizing: border-box;
131
+ white-space: pre-wrap;
132
+ }
149
133
 
150
- .uni-video-component {
151
- position: relative;
152
- text-align: center;
134
+ .uni-background-component {
135
+ width: 100%;
153
136
  }
154
- .play-pause-button {
137
+ .bg-img {
138
+ width: 100%;
139
+ height: 100%;
140
+ object-fit: cover;
141
+ z-index:1;
142
+ }
143
+ .watermark {
144
+ height: 100%;
155
145
  position: absolute;
156
- top: 50%;
157
- left: 50%;
158
- transform: translate(-50%, -50%);
159
- cursor: pointer;
160
- font-size: 2rem;
161
- color: #fff;
162
- background: rgba(0, 0, 0, 0.6);
163
- border-radius: 50%;
164
- padding: 10px;
165
- transition: background 0.3s;
146
+ top: 0;
147
+ left: 0;
148
+ right: 0;
149
+ bottom: 0;
166
150
  }
167
- .play-pause-button:hover {
168
- background: rgba(0, 0, 0, 0.8);
151
+ .watermark-div {
152
+ height: 100%;
153
+ width:100%;
154
+ position:absolute;
155
+ z-index:99999999;
169
156
  }
157
+ body:before{
158
+ content: '';
159
+ position: fixed;
160
+ top: 0;
161
+ bottom: 0;
162
+ left: 0;
163
+ right: 0;
164
+ z-index: -1;
165
+ background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat;
166
+ background-position: center;
167
+ opacity: 0.1;
168
+ }
169
+
170
+ .slide-guide {
171
+ position: absolute;
172
+ bottom: 90px;
173
+ left: 50%;
174
+ transform: translateX(-50%);
175
+ }
176
+ .slide-guide img {
177
+ animation: flowing 2s ease-in-out infinite;
178
+ width: 33px;
179
+ vertical-align: middle;
180
+ border-style: none;
181
+ }
182
+ body, html {
183
+ position: relative;
184
+ width: 100%;
185
+ height: 100%;
186
+ margin: 0px;
187
+ }
188
+ .swiper-container {
189
+ width: 100%;
190
+ height: 100%;
191
+ }
192
+ .swiper-slide {
193
+ width: 100%;
194
+ height: 100%;
195
+ overflow: hidden;
196
+ background-size: cover;
197
+ background-position: center;
198
+ background-repeat: no-repeat;
199
+ }
200
+ .up-arrow {
201
+ width: 2rem;
202
+ height: 2rem;
203
+ position: fixed;
204
+ bottom: 2rem;
205
+ left: 50%;
206
+ transform: translate3d(-50%, 0, 0);
207
+ z-index: 999;
208
+ background: none;
209
+ border: none;
210
+ padding: 0;
211
+ animation: upArrowAni 2s infinite linear;
212
+ }
213
+ .up-arrow img {
214
+ width: 2rem;
215
+ height: 2rem;
216
+ text-align: center;
217
+ line-height: 2rem;
218
+ color: #fff;
219
+ font-size: 1.5rem;
220
+ }
221
+ @keyframes upArrowAni {
222
+ 0% {
223
+ opacity: 0;
224
+ transform: translate3d(-50%, 30%, 0);
225
+ }
226
+
227
+ 30% {
228
+ opacity: 1;
229
+ transform: translate3d(-50%, -20%, 0);
230
+ }
231
+
232
+ 60% {
233
+ opacity: 0;
234
+ transform: translate3d(-50%, -35%, 0);
235
+ }
236
+
237
+ 100% {
238
+ opacity: 0;
239
+ transform: translate3d(-50%, -50%, 0);
240
+ }
241
+ }
170
242
  /**
171
243
  * Swiper 6.8.4
172
244
  * Most modern mobile touch slider and framework with hardware accelerated transitions