@kaiyinchem/ky-uniui 1.0.39 → 1.0.40

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.
@@ -1,64 +1,344 @@
1
- <template>
2
- <view :class="{ isRelative }" class="ky-loading-box loading5">
3
- <view class="shape shape1"></view>
4
- <view class="shape shape2"></view>
5
- <view class="shape shape3"></view>
6
- </view>
7
- </template>
8
-
9
- <script>
10
- export default {
11
- props: {
12
- isRelative: {
13
- type: Boolean,
14
- default: false,
15
- }
16
- }
17
- }
18
- </script>
19
-
20
- <style scoped lang="scss">
21
- .ky-loading-box {
22
- height: 25rpx;
23
- position: absolute;
24
- top: 0;
25
- left: 0;
26
- right: 0;
27
- bottom: 0;
28
- margin: auto;
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
- z-index: 0;
33
- &.isRelative {
34
- position: relative;
35
- min-height: 100rpx;
36
- }
37
- }
38
- .shape {
39
- width: 25rpx;
40
- height: 25rpx;
41
- border-radius: 50%;
42
- background-color: var(--color-primary);
43
- margin: 0 6rpx;
44
- }
45
- .shape1 {
46
- animation: pulse .4s ease 0s infinite alternate;
47
- }
48
- .shape2 {
49
- animation: pulse .4s ease .2s infinite alternate;
50
- }
51
- .shape3 {
52
- animation: pulse .4s ease .4s infinite alternate;
53
- }
54
- @keyframes pulse {
55
- from {
56
- opacity: 1;
57
- transform: scale(1);
58
- }
59
- to {
60
- opacity: .25;
61
- transform: scale(.5);
62
- }
63
- }
64
- </style>
1
+ <template>
2
+ <view :class="{ isRelative }" class="ky-loading-box">
3
+ <image v-if="type === 1" src="https://yangpin.shop/kaiyinzhicai_app/ky-loading_202403131641.gif"
4
+ class="ky-loading1"></image>
5
+ <view v-else-if="type === 2" class="ky-loading2">
6
+ <view class="ky-loading-shape shape1"></view>
7
+ <view class="ky-loading-shape shape2"></view>
8
+ <view class="ky-loading-shape shape3"></view>
9
+ </view>
10
+ <view v-else class="ky-loading3">
11
+ <view class="ky-loading-shape shape1"></view>
12
+ <view class="ky-loading-shape shape2"></view>
13
+ <view class="ky-loading-shape shape3"></view>
14
+ </view>
15
+ </view>
16
+ </template>
17
+
18
+ <script>
19
+ export default {
20
+ props: {
21
+ isRelative: {
22
+ type: Boolean,
23
+ default: false,
24
+ },
25
+ /**
26
+ * 动画类型,1三个点,2gif,3方块
27
+ */
28
+ type: {
29
+ type: Number,
30
+ default: 1,
31
+ }
32
+ }
33
+ }
34
+ </script>
35
+
36
+ <style scoped lang="scss">
37
+ .ky-loading-box {
38
+ height: 25rpx;
39
+ position: absolute;
40
+ top: 0;
41
+ left: 0;
42
+ right: 0;
43
+ bottom: 0;
44
+ margin: auto;
45
+ display: flex;
46
+ justify-content: center;
47
+ align-items: center;
48
+ z-index: 0;
49
+
50
+ &.isRelative {
51
+ position: relative;
52
+ min-height: 100rpx;
53
+ }
54
+ }
55
+
56
+ .ky-loading1 {
57
+ width: 150rpx;
58
+ height: 150rpx;
59
+ }
60
+
61
+ .ky-loading3 {
62
+ position: relative;
63
+ width: 75px;
64
+ height: 75px;
65
+ overflow: visible;
66
+
67
+ .ky-loading-shape {
68
+ position: absolute;
69
+ width: 20px;
70
+ height: 20px;
71
+ border-radius: 0;
72
+ background-color: var(--color-primary);
73
+ display: block;
74
+ background-color: var(--color-primary);
75
+ border-radius: 3px;
76
+
77
+ &:nth-child(1) {
78
+ left: 0px;
79
+ top: 0;
80
+ animation: amove 2s infinite linear;
81
+ }
82
+ }
83
+
84
+ }
85
+
86
+ .ky-loading2 {
87
+ display: flex;
88
+ justify-content: center;
89
+ align-items: center;
90
+
91
+ .ky-loading-shape {
92
+ width: 25rpx;
93
+ height: 25rpx;
94
+ border-radius: 50%;
95
+ background-color: var(--color-primary);
96
+ margin: 0 6rpx;
97
+ }
98
+
99
+ .shape1 {
100
+ animation: pulse .4s ease 0s infinite alternate;
101
+ }
102
+
103
+ .shape2 {
104
+ animation: pulse .4s ease .2s infinite alternate;
105
+ }
106
+
107
+ .shape3 {
108
+ animation: pulse .4s ease .4s infinite alternate;
109
+ }
110
+ }
111
+
112
+ @keyframes pulse {
113
+ from {
114
+ opacity: 1;
115
+ transform: scale(1);
116
+ }
117
+
118
+ to {
119
+ opacity: .25;
120
+ transform: scale(.5);
121
+ }
122
+ }
123
+
124
+ @keyframes amove {
125
+ 0% {
126
+ left: 0px;
127
+ top: 0;
128
+ }
129
+
130
+ 8% {
131
+ left: 0px;
132
+ top: 0;
133
+ }
134
+
135
+ 16% {
136
+ left: 25px;
137
+ top: 0;
138
+ }
139
+
140
+ 24% {
141
+ left: 25px;
142
+ top: 0;
143
+ }
144
+
145
+ 32% {
146
+ left: 25px;
147
+ top: 0;
148
+ }
149
+
150
+ 40% {
151
+ left: 25px;
152
+ top: 25px;
153
+ }
154
+
155
+ 48% {
156
+ left: 25px;
157
+ top: 25px;
158
+ }
159
+
160
+ 56% {
161
+ left: 25px;
162
+ top: 25px;
163
+ }
164
+
165
+ 64% {
166
+ left: 0px;
167
+ top: 25px;
168
+ }
169
+
170
+ 72% {
171
+ left: 0px;
172
+ top: 25px;
173
+ }
174
+
175
+ 80% {
176
+ left: 0px;
177
+ top: 25px;
178
+ }
179
+
180
+ 88% {
181
+ left: 0px;
182
+ top: 0;
183
+ }
184
+
185
+ 100% {
186
+ left: 0px;
187
+ top: 0;
188
+ }
189
+ }
190
+
191
+ .ky-loading3 .ky-loading-shape:nth-child(2) {
192
+ left: 25px;
193
+ top: 0;
194
+ animation: bmove 2s infinite linear;
195
+ }
196
+
197
+ @keyframes bmove {
198
+ 0% {
199
+ left: 25px;
200
+ top: 0;
201
+ }
202
+
203
+ 8% {
204
+ left: 25px;
205
+ top: 25px;
206
+ }
207
+
208
+ 16% {
209
+ left: 25px;
210
+ top: 25px;
211
+ }
212
+
213
+ 24% {
214
+ left: 25px;
215
+ top: 25px;
216
+ }
217
+
218
+ 32% {
219
+ left: 0px;
220
+ top: 25px;
221
+ }
222
+
223
+ 40% {
224
+ left: 0px;
225
+ top: 25px;
226
+ }
227
+
228
+ 48% {
229
+ left: 0px;
230
+ top: 25px;
231
+ }
232
+
233
+ 56% {
234
+ left: 0px;
235
+ top: 0;
236
+ }
237
+
238
+ 64% {
239
+ left: 0px;
240
+ top: 0;
241
+ }
242
+
243
+ 72% {
244
+ left: 0px;
245
+ top: 0;
246
+ }
247
+
248
+ 80% {
249
+ left: 25px;
250
+ top: 0;
251
+ }
252
+
253
+ 88% {
254
+ left: 25px;
255
+ top: 0;
256
+ }
257
+
258
+ 100% {
259
+ left: 25px;
260
+ top: 0;
261
+ }
262
+ }
263
+
264
+ .ky-loading3 .ky-loading-shape:nth-child(3) {
265
+ left: 50px;
266
+ top: 0;
267
+ }
268
+
269
+ .ky-loading3 .ky-loading-shape:nth-child(3) {
270
+ left: 0px;
271
+ top: 25px;
272
+ }
273
+
274
+ .ky-loading3 .ky-loading-shape:nth-child(3) {
275
+ animation: cmove 2s infinite linear;
276
+ }
277
+
278
+ @keyframes cmove {
279
+ 0% {
280
+ left: 0px;
281
+ top: 25px;
282
+ }
283
+
284
+ 8% {
285
+ left: 0px;
286
+ top: 25px;
287
+ }
288
+
289
+ 16% {
290
+ left: 0px;
291
+ top: 25px;
292
+ }
293
+
294
+ 24% {
295
+ left: 0px;
296
+ top: 0;
297
+ }
298
+
299
+ 32% {
300
+ left: 0px;
301
+ top: 0;
302
+ }
303
+
304
+ 40% {
305
+ left: 0px;
306
+ top: 0;
307
+ }
308
+
309
+ 48% {
310
+ left: 25px;
311
+ top: 0;
312
+ }
313
+
314
+ 56% {
315
+ left: 25px;
316
+ top: 0;
317
+ }
318
+
319
+ 64% {
320
+ left: 25px;
321
+ top: 0;
322
+ }
323
+
324
+ 72% {
325
+ left: 25px;
326
+ top: 25px;
327
+ }
328
+
329
+ 80% {
330
+ left: 25px;
331
+ top: 25px;
332
+ }
333
+
334
+ 88% {
335
+ left: 25px;
336
+ top: 25px;
337
+ }
338
+
339
+ 100% {
340
+ left: 0px;
341
+ top: 25px;
342
+ }
343
+ }
344
+ </style>
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "style"
8
8
  ],
9
9
  "description": "an uniapp ui",
10
- "version": "1.0.39",
10
+ "version": "1.0.40",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"