unika-components 1.0.345 → 1.0.347

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.
@@ -13,8 +13,6 @@ export interface Animation {
13
13
  id: number;
14
14
  }
15
15
  export interface GlobalData {
16
- workId?: number;
17
- workUuid?: string;
18
16
  type?: string;
19
17
  width?: string;
20
18
  height?: string;
@@ -36,6 +34,7 @@ export interface GlobalData {
36
34
  themeColor?: string;
37
35
  viewedCount?: number;
38
36
  cat?: 'h5' | 'long';
37
+ scene_id: number;
39
38
  user?: {
40
39
  gender: string;
41
40
  nickName: string;
@@ -44,7 +43,7 @@ export interface GlobalData {
44
43
  };
45
44
  pageDot: number;
46
45
  pageLoop: boolean;
47
- SMimg: string;
46
+ smImg: string;
48
47
  receipt: {
49
48
  open: boolean;
50
49
  which: boolean;
@@ -94,20 +93,15 @@ export interface GlobalData {
94
93
  bgcolor: string;
95
94
  hash: string;
96
95
  };
97
- useFont: Record<string, {
96
+ useFont?: Record<string, {
98
97
  name: string;
99
98
  content: string;
100
99
  }>;
101
- record: {
102
- name: string[];
103
- tel: string[];
104
- map: string;
105
- time: string;
106
- };
100
+ record?: any;
107
101
  f_id: number;
108
- uid: number;
102
+ uid: string;
109
103
  scenecode: string;
110
- createFont: Record<string, Array<{
104
+ createFont?: Record<string, Array<{
111
105
  name: string;
112
106
  url: string;
113
107
  }>>;
@@ -137,7 +131,6 @@ export interface ElementData {
137
131
  sign: boolean;
138
132
  signSort: number;
139
133
  overturnType: number;
140
- eleIndex?: number;
141
134
  delay?: string;
142
135
  css: {
143
136
  fontFamily: string;
@@ -231,6 +224,9 @@ export interface PageData {
231
224
  autoPage: boolean;
232
225
  delay: string;
233
226
  bgOpacity: string;
227
+ height: number;
228
+ eleIndex?: number;
229
+ bgSign?: number;
234
230
  elements: Array<ElementData> | [];
235
231
  bgAni?: {
236
232
  aniList: Array<{
@@ -246,14 +242,11 @@ export interface PageData {
246
242
  aniType: string;
247
243
  allDelay: string;
248
244
  id: number;
249
- }>;
245
+ }> | [];
250
246
  aniCss: string;
251
- aniCss2: string;
247
+ aniCss2?: string;
252
248
  };
253
- triggers: any[];
254
- animations: any[];
255
- transitions: any[];
256
- imgMattingInfo: string;
249
+ imgMattingInfo: string | null;
257
250
  }
258
251
  export interface PersonalData {
259
252
  bridegroom: string;
@@ -263,8 +256,8 @@ export interface PersonalData {
263
256
  address: string;
264
257
  }
265
258
  export interface WorkData {
266
- personalData?: PersonalData;
267
- globalData?: GlobalData;
259
+ personalData?: PersonalData | null;
260
+ global?: GlobalData;
268
261
  pages: PageData[];
269
262
  }
270
263
  export declare const commonDefaultProps: {
@@ -271,27 +271,6 @@
271
271
  }
272
272
  }
273
273
 
274
- .uni-video-component {
275
- position: relative;
276
- text-align: center;
277
- }
278
- .play-pause-button {
279
- position: absolute;
280
- top: 50%;
281
- left: 50%;
282
- transform: translate(-50%, -50%);
283
- cursor: pointer;
284
- font-size: 2rem;
285
- color: #fff;
286
- background: rgba(0, 0, 0, 0.6);
287
- border-radius: 50%;
288
- padding: 10px;
289
- transition: background 0.3s;
290
- }
291
- .play-pause-button:hover {
292
- background: rgba(0, 0, 0, 0.8);
293
- }
294
-
295
274
  #audio {
296
275
  position: absolute;
297
276
  right: 10px;
@@ -365,6 +344,23 @@
365
344
  background: #fff;
366
345
  }
367
346
 
347
+
348
+ .uni-calendar-component {
349
+
350
+ }
351
+ .slot-number {
352
+ position: absolute;
353
+ bottom: 2px;
354
+ left: 7px;
355
+ font-size: 12px;
356
+ color: #666
357
+ }
358
+
359
+ .effect {
360
+ width: 100%;
361
+ height: 100%;
362
+ }
363
+
368
364
  .ant-input-number {
369
365
  box-sizing: border-box;
370
366
  margin: 0;
@@ -400,6 +396,32 @@
400
396
  vertical-align: top;
401
397
  }
402
398
 
399
+ .uni-lotties-component {
400
+ width: 100%;
401
+ height: 100%;
402
+ }
403
+
404
+ .uni-video-component {
405
+ position: relative;
406
+ text-align: center;
407
+ }
408
+ .play-pause-button {
409
+ position: absolute;
410
+ top: 50%;
411
+ left: 50%;
412
+ transform: translate(-50%, -50%);
413
+ cursor: pointer;
414
+ font-size: 2rem;
415
+ color: #fff;
416
+ background: rgba(0, 0, 0, 0.6);
417
+ border-radius: 50%;
418
+ padding: 10px;
419
+ transition: background 0.3s;
420
+ }
421
+ .play-pause-button:hover {
422
+ background: rgba(0, 0, 0, 0.8);
423
+ }
424
+
403
425
  .like-button {
404
426
  display: flex;
405
427
  flex-direction: column;
@@ -422,35 +444,13 @@
422
444
  color: #333;
423
445
  }
424
446
 
425
-
426
- .uni-calendar-component {
427
-
428
- }
429
- .slot-number {
430
- position: absolute;
431
- bottom: 2px;
432
- left: 7px;
433
- font-size: 12px;
434
- color: #666
435
- }
436
-
437
- .effect {
438
- width: 100%;
439
- height: 100%;
440
- }
441
-
442
- .uni-lotties-component {
443
- width: 100%;
444
- height: 100%;
445
- }
447
+ .uni-build-up-component {
448
+ }
446
449
 
447
450
  .uni-svg-component {
448
451
  display: inline-block;
449
452
  }
450
453
 
451
- .uni-build-up-component {
452
- }
453
-
454
454
 
455
455
  .no-animation__card {
456
456
  font-weight: 500;
@@ -5827,7 +5827,7 @@ var script$h = defineComponent({
5827
5827
  // 使用 computed 保持响应性
5828
5828
  const workData = computed(() => props.workData);
5829
5829
  const personalData = computed(() => workData.value.personalData || {});
5830
- const global = computed(() => workData.value.globalData || {});
5830
+ const global = computed(() => workData.value.global || {});
5831
5831
  const pages = computed(() => workData.value.pages || []);
5832
5832
  // 初始化 currentPageId
5833
5833
  watch(() => pages.value, (newPages) => {
@@ -5834,7 +5834,7 @@
5834
5834
  // 使用 computed 保持响应性
5835
5835
  const workData = vue.computed(() => props.workData);
5836
5836
  const personalData = vue.computed(() => workData.value.personalData || {});
5837
- const global = vue.computed(() => workData.value.globalData || {});
5837
+ const global = vue.computed(() => workData.value.global || {});
5838
5838
  const pages = vue.computed(() => workData.value.pages || []);
5839
5839
  // 初始化 currentPageId
5840
5840
  vue.watch(() => pages.value, (newPages) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.345",
3
+ "version": "1.0.347",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",