@cloudbase/weda-ui 1.0.21 → 1.0.24

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.
Files changed (34) hide show
  1. package/package.json +5 -3
  2. package/src/configs/components/dataView.json +1 -1
  3. package/src/configs/components/listView.json +1 -1
  4. package/src/configs/components/lottery.json +151 -0
  5. package/src/configs/index.js +2 -0
  6. package/src/index.js +2 -0
  7. package/src/mp/components/button/index.wxml +1 -2
  8. package/src/mp/components/form/form/index.wxml +1 -2
  9. package/src/mp/components/form/select/index.js +8 -20
  10. package/src/mp/components/form/select/region/index.js +6 -3
  11. package/src/mp/components/listView/index.js +5 -16
  12. package/src/mp/components/lottery/index.js +270 -0
  13. package/src/mp/components/lottery/index.json +4 -0
  14. package/src/mp/components/lottery/index.wxml +43 -0
  15. package/src/mp/components/lottery/index.wxss +317 -0
  16. package/src/mp/components/wxOpenApi/phone/index.js +1 -1
  17. package/src/mp/index.json +4 -3
  18. package/src/mp/utils/constant.js +15 -0
  19. package/src/mp/utils/lodash.js +2 -0
  20. package/src/web/components/chart/common/config/line.js +1 -1
  21. package/src/web/components/form/checkbox/index.tsx +6 -0
  22. package/src/web/components/form/formcell/index.tsx +10 -5
  23. package/src/web/components/form/radio/index.tsx +6 -0
  24. package/src/web/components/form/select/h5.tsx +5 -24
  25. package/src/web/components/form/select/index.tsx +4 -17
  26. package/src/web/components/form/tips/index.css +4 -0
  27. package/src/web/components/form/tips/index.tsx +4 -3
  28. package/src/web/components/index.js +1 -0
  29. package/src/web/components/listView/index.tsx +4 -17
  30. package/src/web/components/lottery/index.css +327 -0
  31. package/src/web/components/lottery/index.tsx +567 -0
  32. package/src/web/components/lottery/lotteryUtil.ts +130 -0
  33. package/src/web/utils/{constant.js → constant.ts} +17 -2
  34. package/src/web/utils/lodash.ts +2 -0
@@ -0,0 +1,327 @@
1
+ /* pc style start */
2
+ .weda-lottery {
3
+ width: 326px;
4
+ height: 326px;
5
+ position: relative;
6
+ }
7
+ .weda-lottery .weda-lottery__wrap {
8
+ position: relative;
9
+ width: 100%;
10
+ height: 100%;
11
+ background: #FF465C;
12
+ border: 1px solid rgba(255, 255, 255, 0.6);
13
+ box-shadow: inset 0px 0px 4px rgba(255, 255, 255, 0.5);
14
+ border-radius: 10px;
15
+ }
16
+
17
+ .weda-lottery .weda-lottery__dot-top {
18
+ position: absolute;
19
+ top: 4px;
20
+ left: calc((100% - 217px) / 2);
21
+ }
22
+
23
+ .weda-lottery .weda-lottery__dot-bottom {
24
+ position: absolute;
25
+ bottom: 4px;
26
+ left: calc((100% - 217px) / 2);
27
+ }
28
+
29
+ .weda-lottery .weda-lottery__dot-left {
30
+ position: absolute;
31
+ left: 4px;
32
+ top: calc((100% - 217px) / 2);
33
+ }
34
+
35
+ .weda-lottery .weda-lottery__dot-right {
36
+ position: absolute;
37
+ right: 4px;
38
+ top: calc((100% - 217px) / 2);
39
+ }
40
+
41
+ .weda-lottery .weda-lottery__dot {
42
+ display: flex;
43
+ }
44
+
45
+ .weda-lottery .weda-lottery__dot-horizontal {
46
+ flex-direction: row;
47
+ }
48
+
49
+ .weda-lottery .weda-lottery__dot-vertical {
50
+ flex-direction: column;
51
+ }
52
+
53
+ .weda-lottery .weda-lottery__dot .weda-lottery__dot-item,
54
+ .weda-lottery .weda-lottery__dot-single {
55
+ width: 9px;
56
+ height: 9px;
57
+ box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.3);
58
+ border-radius: 50%;
59
+ background: #FFFFFF;
60
+ }
61
+
62
+ .weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(odd) {
63
+ background: #FFEE52;
64
+ }
65
+
66
+ .weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(even) {
67
+ background: #FFFFFF
68
+ }
69
+
70
+ .weda-lottery .weda-lottery__dot-horizontal .weda-lottery__dot-item {
71
+ margin-right: 43px;
72
+ }
73
+
74
+ .weda-lottery .weda-lottery__dot-horizontal .weda-lottery__dot-item:last-child {
75
+ margin-right: 0 !important;
76
+ }
77
+
78
+ .weda-lottery .weda-lottery__dot-vertical .weda-lottery__dot-item {
79
+ margin-bottom: 43px;
80
+ }
81
+
82
+ .weda-lottery .weda-lottery__dot-vertical .weda-lottery__dot-item:last-child {
83
+ margin-bottom: 0 !important;
84
+ }
85
+
86
+ .weda-lottery .weda-lottery__dot-left-top {
87
+ position: absolute;
88
+ top: 9px;
89
+ left: 6px;
90
+ }
91
+
92
+ .weda-lottery .weda-lottery__dot-right-top {
93
+ position: absolute;
94
+ top: 9px;
95
+ right: 6px;
96
+ }
97
+
98
+ .weda-lottery .weda-lottery__dot-left-bottom {
99
+ position: absolute;
100
+ left: 6px;
101
+ bottom: 9px;
102
+ }
103
+
104
+ .weda-lottery .weda-lottery__dot-right-bottom {
105
+ position: absolute;
106
+ right: 6px;
107
+ bottom: 9px;
108
+ }
109
+
110
+ .weda-lottery .weda-lottery__inner {
111
+ padding: 18px;
112
+ width: 100%;
113
+ height: 100%;
114
+ box-sizing: border-box;
115
+ }
116
+
117
+ .weda-lottery .weda-lottery__inner .weda-lottery__inner-wrap {
118
+ position: relative;
119
+ width: 100%;
120
+ box-sizing: border-box;
121
+ background: linear-gradient(180deg, #DD0D00 0%, #D80027 100%);
122
+ border: 1px solid rgba(255, 255, 255, 0.25);
123
+ box-shadow: inset 0px 0px 4px rgba(255, 255, 255, 0.5);
124
+ border-radius: 10px;
125
+ height: 100%;
126
+ }
127
+
128
+ .weda-lottery .weda-lottery__inner .weda-lottery__list {
129
+ position: absolute;
130
+ top: 0;
131
+ left: 0;
132
+ right: 0;
133
+ bottom: 0;
134
+ z-index: 1;
135
+ box-sizing: border-box;
136
+ }
137
+
138
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item {
139
+ position: absolute;
140
+ width: calc((100% - 32px)/ 3);
141
+ height: calc((100% - 32px)/ 3);
142
+ font-size: 0;
143
+ text-align: center;
144
+ background: #FFF8EE;
145
+ box-shadow: inset 0px -2px 0px #FFDDBD;
146
+ border-radius: 8px;
147
+ }
148
+
149
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-actived {
150
+ background: #FFF8EE;
151
+ box-shadow: 0px 0px 6px #FFFFFF;
152
+ }
153
+
154
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-selected {
155
+ background: #FF6666;
156
+ box-shadow: inset 0px -2px 0px #FFA4A4;
157
+ }
158
+
159
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:first-child {
160
+ top: 8px;
161
+ left: 8px;
162
+ }
163
+
164
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(2) {
165
+ top: 8px;
166
+ left: calc((100% - 32px)/ 3 + 16px);
167
+ }
168
+
169
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(3) {
170
+ top: 8px;
171
+ right: 8px;
172
+ }
173
+
174
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(4) {
175
+ top: calc((100% - 32px)/ 3 + 16px);
176
+ right: 8px;
177
+ }
178
+
179
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(5) {
180
+ bottom: 8px;
181
+ right: 8px;
182
+ }
183
+
184
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(6) {
185
+ bottom: 8px;
186
+ left: calc((100% - 32px)/ 3 + 16px);
187
+ }
188
+
189
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(7) {
190
+ bottom: 8px;
191
+ left: 8px;
192
+ }
193
+
194
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(8) {
195
+ bottom: calc((100% - 32px)/ 3 + 16px);
196
+ left: 8px;
197
+ }
198
+
199
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell {
200
+ width: 100%;
201
+ height: 100%;
202
+ max-width: 100%;
203
+ max-height: 100%;
204
+ box-sizing: border-box;
205
+ border-style: solid;
206
+ border-color: transparent;
207
+ border-radius: 8px;
208
+ display: flex;
209
+ flex-direction: column;
210
+ align-items: center;
211
+ }
212
+
213
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-actived .weda-lottery__turntable-cell {
214
+ border-color: #FFE05F;
215
+ }
216
+
217
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-image {
218
+ height: 40px;
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: center;
222
+ }
223
+
224
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-icon {
225
+ display: block;
226
+ width: 40px;
227
+ height: 40px;
228
+ object-fit: contain;
229
+ }
230
+
231
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-desc {
232
+ margin-top: 6px;
233
+ font-weight: 400;
234
+ font-size: 12px;
235
+ line-height: 17px;
236
+ text-align: center;
237
+ color: #BA0000;
238
+ white-space: nowrap;
239
+ text-overflow: ellipsis;
240
+ overflow: hidden;
241
+ width: 100%;
242
+ }
243
+
244
+ .weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-selected .weda-lottery__turntable-cell-desc {
245
+ color: #FFFFFF;
246
+ }
247
+
248
+ .weda-lottery .weda-lottery__turntable-btn {
249
+ z-index: 2;
250
+ position: absolute;
251
+ width: calc((100% - 32px)/ 3);
252
+ height: calc((100% - 32px)/ 3);
253
+ top: calc((100% - 32px)/ 3 + 16px);
254
+ left: calc((100% - 32px)/ 3 + 16px);
255
+ background: linear-gradient(180deg, #FFEE81 0%, #FFD646 100%);
256
+ box-shadow: inset 0px -2px 0px #FF7A00;
257
+ border-radius: 50%;
258
+ }
259
+
260
+ .weda-lottery .weda-lottery__turntable-btn.is-actived {
261
+ background: linear-gradient(180deg, #FFEE81 0%, #FFD646 100%);
262
+ box-shadow: inset 0px 2px 0px #FFFFFF;
263
+ }
264
+
265
+ .weda-lottery .weda-lottery__btn-inner {
266
+ padding: 9px;
267
+ width: 100%;
268
+ height: 100%;
269
+ }
270
+
271
+ .weda-lottery .weda-lottery__btn {
272
+ width: 100%;
273
+ height: 100%;
274
+ background: linear-gradient(180deg, #FF922D 0%, #FF3C76 100%);
275
+ box-shadow: inset 0px 0px 8px rgba(234, 27, 53, 0.5);
276
+ border-radius: 50%;
277
+ display: flex;
278
+ align-items: center;
279
+ justify-content: center;
280
+ }
281
+
282
+ .weda-lottery .weda-lottery__turntable-btn.is-actived .weda-lottery__btn {
283
+ background: linear-gradient(180deg, #FF922D 0%, #FF3C76 100%);
284
+ box-shadow: inset 0px 0px 8px rgba(234, 27, 53, 0.5);
285
+ }
286
+
287
+ .weda-lottery .weda-lottery__btn-image {
288
+ padding: 11px 15px;
289
+ width: 100%;
290
+ height: 100%;
291
+ box-sizing: border-box;
292
+ display: flex;
293
+ align-items: center;
294
+ text-decoration: none
295
+ }
296
+
297
+ .weda-lottery .weda-lottery__btn-image .weda-lottery__btn-text {
298
+ font-weight: 600;
299
+ font-size: 18px;
300
+ line-height: 22px;
301
+ text-align: center;
302
+ color: #FFFFFF;
303
+ text-shadow: 0px 0.5px 0px #E42B27;
304
+ max-height: 100%;
305
+ display: -webkit-box;
306
+ overflow: hidden;
307
+ text-overflow: ellipsis;
308
+ -webkit-box-orient: vertical;
309
+ -webkit-line-clamp: 2;
310
+ width: 100%;
311
+ }
312
+
313
+ .weda-lottery .weda-lottery__turntable-btn.is-actived .weda-lottery__btn-image {
314
+ opacity: 0.6;
315
+ }
316
+ /* pc style end */
317
+
318
+ /* mobile style start */
319
+ .weda-lottery-mobile {
320
+ width: 100%;
321
+ }
322
+
323
+ .weda-lottery-mobile .weda-lottery__wrap,
324
+ .weda-lottery-mobile .weda-lottery__content {
325
+ width: 100%;
326
+ }
327
+ /* mobile style end */