unika-components 1.0.7 → 1.0.8

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;
@@ -10,10 +10,6 @@ button.uni-text-component {
10
10
  box-sizing: border-box;
11
11
  white-space: pre-wrap;
12
12
  }
13
-
14
- .uni-image-component {
15
- max-width: 100%;
16
- }
17
13
 
18
14
  .uni-background-component {
19
15
  width: 100%;
@@ -38,18 +34,21 @@ button.uni-text-component {
38
34
  position:absolute;
39
35
  z-index:99999999;
40
36
  }
37
+ body:before{
38
+ content: '';
39
+ position: fixed;
40
+ top: 0;
41
+ bottom: 0;
42
+ left: 0;
43
+ right: 0;
44
+ z-index: -1;
45
+ background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat;
46
+ background-position: center;
47
+ opacity: 0.1;
48
+ }
41
49
 
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;
50
+ .uni-image-component {
51
+ max-width: 100%;
53
52
  }
54
53
 
55
54
  #audio {
@@ -108,44 +107,117 @@ button.uni-text-component {
108
107
  -webkit-animation: mrotate 5s linear infinite;
109
108
  animation: mrotate 5s linear infinite;
110
109
  }
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
- }
110
+ .video-play-audio {
111
+ position: absolute;
112
+ left: -9999px;
113
+ top: -9999px;
114
+ width: 0;
115
+ height: 0;
116
+ z-index: -1;
117
+ opacity: 1;
118
+ overflow: hidden;
119
+ }
121
120
 
122
- .music-img {
123
- position: relative;
124
- display: inline-block;
125
- width: 100%;
126
- height: 100%;
127
- }
121
+ .music-img {
122
+ position: relative;
123
+ display: inline-block;
124
+ width: 100%;
125
+ height: 100%;
126
+ }
128
127
 
129
- .uni-music-component {
130
- }
128
+ .uni-music-component {
129
+ }
131
130
 
132
- /* 无限旋转 */
133
- @keyframes mrotate {
134
- from {
135
- transform: rotate(0deg);
136
- }
137
- to {
138
- transform: rotate(360deg);
139
- }
131
+ /* 无限旋转 */
132
+ @keyframes mrotate {
133
+ from {
134
+ transform: rotate(0deg);
135
+ }
136
+ to {
137
+ transform: rotate(360deg);
138
+ }
139
+ }
140
+ @-webkit-keyframes mrotate {
141
+ from {
142
+ -webkit-transform: rotate(0deg);
140
143
  }
141
- @-webkit-keyframes mrotate {
142
- from {
143
- -webkit-transform: rotate(0deg);
144
- }
145
- to {
146
- -webkit-transform: rotate(360deg);
147
- }
144
+ to {
145
+ -webkit-transform: rotate(360deg);
148
146
  }
147
+ }
148
+
149
+ .slide-guide {
150
+ position: absolute;
151
+ bottom: 90px;
152
+ left: 50%;
153
+ transform: translateX(-50%);
154
+ }
155
+ .slide-guide img {
156
+ animation: flowing 2s ease-in-out infinite;
157
+ width: 33px;
158
+ vertical-align: middle;
159
+ border-style: none;
160
+ }
161
+ body, html {
162
+ position: relative;
163
+ width: 100%;
164
+ height: 100%;
165
+ margin: 0px;
166
+ }
167
+ .swiper-container {
168
+ width: 100%;
169
+ height: 100%;
170
+ }
171
+ .swiper-slide {
172
+ width: 100%;
173
+ height: 100%;
174
+ overflow: hidden;
175
+ background-size: cover;
176
+ background-position: center;
177
+ background-repeat: no-repeat;
178
+ }
179
+ .up-arrow {
180
+ width: 2rem;
181
+ height: 2rem;
182
+ position: fixed;
183
+ bottom: 2rem;
184
+ left: 50%;
185
+ transform: translate3d(-50%, 0, 0);
186
+ z-index: 999;
187
+ background: none;
188
+ border: none;
189
+ padding: 0;
190
+ animation: upArrowAni 2s infinite linear;
191
+ }
192
+ .up-arrow img {
193
+ width: 2rem;
194
+ height: 2rem;
195
+ text-align: center;
196
+ line-height: 2rem;
197
+ color: #fff;
198
+ font-size: 1.5rem;
199
+ }
200
+ @keyframes upArrowAni {
201
+ 0% {
202
+ opacity: 0;
203
+ transform: translate3d(-50%, 30%, 0);
204
+ }
205
+
206
+ 30% {
207
+ opacity: 1;
208
+ transform: translate3d(-50%, -20%, 0);
209
+ }
210
+
211
+ 60% {
212
+ opacity: 0;
213
+ transform: translate3d(-50%, -35%, 0);
214
+ }
215
+
216
+ 100% {
217
+ opacity: 0;
218
+ transform: translate3d(-50%, -50%, 0);
219
+ }
220
+ }
149
221
 
150
222
  .uni-video-component {
151
223
  position: relative;