unika-components 1.0.329 → 1.0.340

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.
@@ -3,6 +3,6 @@ export declare function useElementProps(element: ElementData): {
3
3
  elementProps: import("vue").ComputedRef<{
4
4
  id: string;
5
5
  'data-element-id': string;
6
- 'data-layer-name': any;
6
+ 'data-layer-name': string;
7
7
  }>;
8
8
  };
@@ -133,6 +133,10 @@ export interface ElementData {
133
133
  pid: string;
134
134
  type: string;
135
135
  textContent: string;
136
+ layerName: string;
137
+ sign: boolean;
138
+ signSort: number;
139
+ overturnType: number;
136
140
  css: {
137
141
  fontFamily: string;
138
142
  fontSize: number;
@@ -161,6 +165,15 @@ export interface ElementData {
161
165
  animation: string;
162
166
  animation2: string;
163
167
  };
168
+ triggers: {
169
+ event: string;
170
+ link: string;
171
+ go: string;
172
+ phone: string;
173
+ musicName: string;
174
+ musicLink: string;
175
+ musicHash: string;
176
+ };
164
177
  properties: {
165
178
  visible: boolean;
166
179
  isLock: boolean;
@@ -1,4 +1,11 @@
1
1
 
2
+ .uni-image-component {
3
+ max-width: 100%;
4
+ }
5
+ .uni-image-mask-wrapper {
6
+ display: inline-block;
7
+ }
8
+
2
9
  .uni-text {
3
10
  white-space: pre-wrap;
4
11
  word-break: break-all;
@@ -58,25 +65,6 @@
58
65
  }
59
66
  }
60
67
 
61
- .uni-image-component {
62
- max-width: 100%;
63
- }
64
- .uni-image-mask-wrapper {
65
- display: inline-block;
66
- }
67
-
68
-
69
- .uni-calendar-component {
70
-
71
- }
72
- .slot-number {
73
- position: absolute;
74
- bottom: 2px;
75
- left: 7px;
76
- font-size: 12px;
77
- color: #666
78
- }
79
-
80
68
  .work-container {
81
69
  position: relative;
82
70
  overflow: hidden;
@@ -274,6 +262,18 @@
274
262
  will-change: transform;
275
263
  }
276
264
 
265
+
266
+ .uni-calendar-component {
267
+
268
+ }
269
+ .slot-number {
270
+ position: absolute;
271
+ bottom: 2px;
272
+ left: 7px;
273
+ font-size: 12px;
274
+ color: #666
275
+ }
276
+
277
277
  .uni-video-component {
278
278
  position: relative;
279
279
  text-align: center;
@@ -300,6 +300,33 @@
300
300
  height: 100%;
301
301
  }
302
302
 
303
+ .uni-lotties-component {
304
+ width: 100%;
305
+ height: 100%;
306
+ }
307
+
308
+ .like-button {
309
+ display: flex;
310
+ flex-direction: column;
311
+ align-items: center;
312
+ cursor: pointer;
313
+ }
314
+
315
+ .icon-heart {
316
+ font-size: 24px;
317
+ color: #e74c3c;
318
+ }
319
+
320
+ .liked {
321
+ color: #f00; /* 更改颜色以示已赞 */
322
+ }
323
+
324
+ .like-count {
325
+ margin-top: 4px;
326
+ font-size: 16px;
327
+ color: #333;
328
+ }
329
+
303
330
  .ant-input-number {
304
331
  box-sizing: border-box;
305
332
  margin: 0;
@@ -334,41 +361,14 @@
334
361
  margin-bottom: 0px;
335
362
  vertical-align: top;
336
363
  }
337
-
338
- .uni-build-up-component {
339
- }
340
-
341
- .like-button {
342
- display: flex;
343
- flex-direction: column;
344
- align-items: center;
345
- cursor: pointer;
346
- }
347
-
348
- .icon-heart {
349
- font-size: 24px;
350
- color: #e74c3c;
351
- }
352
-
353
- .liked {
354
- color: #f00; /* 更改颜色以示已赞 */
355
- }
356
-
357
- .like-count {
358
- margin-top: 4px;
359
- font-size: 16px;
360
- color: #333;
361
- }
362
-
363
- .uni-lotties-component {
364
- width: 100%;
365
- height: 100%;
366
- }
367
364
 
368
365
  .uni-svg-component {
369
366
  display: inline-block;
370
367
  }
371
368
 
369
+ .uni-build-up-component {
370
+ }
371
+
372
372
  .unika-calendar-box {
373
373
  position: relative;
374
374
  width: 325px !important;
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle as normalizeStyle$1, toDisplayString, createCommentVNode, ref, nextTick, withModifiers, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, normalizeProps, guardReactiveProps, watch, resolveComponent, createVNode, Transition, withCtx, withDirectives, createTextVNode, vShow, renderSlot, pushScopeId, popScopeId, toRefs, onMounted, onBeforeMount, onUnmounted, h as h$2, isVNode, Comment, Text, reactive, getCurrentInstance, onUpdated, inject, provide, unref, shallowRef, watchEffect, onBeforeUnmount, triggerRef, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$m, TransitionGroup, onBeforeUpdate, mergeProps } from 'vue';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle as normalizeStyle$1, toDisplayString, createCommentVNode, ref, nextTick, withModifiers, createElementVNode, Fragment, renderList, createBlock, resolveDynamicComponent, normalizeProps, guardReactiveProps, watch, resolveComponent, createVNode, Transition, withCtx, withDirectives, vShow, createTextVNode, renderSlot, pushScopeId, popScopeId, toRefs, onMounted, onBeforeMount, onUnmounted, h as h$2, isVNode, Comment, Text, reactive, getCurrentInstance, onUpdated, inject, provide, unref, shallowRef, watchEffect, onBeforeUnmount, triggerRef, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$m, TransitionGroup, onBeforeUpdate, mergeProps } from 'vue';
2
2
  import crypto from 'crypto';
3
3
 
4
4
  var script$k = defineComponent({
@@ -6021,15 +6021,11 @@ function render$h(_ctx, _cache, $props, $setup, $data, $options) {
6021
6021
  style: normalizeStyle$1(_ctx.getPageStyle(page))
6022
6022
  }, [
6023
6023
  (openBlock(true), createElementBlock(Fragment, null, renderList(page.elements, (element) => {
6024
- return (openBlock(), createElementBlock(Fragment, {
6025
- key: element.id
6026
- }, [
6027
- createTextVNode(toDisplayString(element) + " ", 1 /* TEXT */),
6028
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.getComponentName(element.type)), {
6029
- element: element,
6030
- onTrigger: _ctx.handleElementTrigger
6031
- }, null, 40 /* PROPS, NEED_HYDRATION */, ["element", "onTrigger"]))
6032
- ], 64 /* STABLE_FRAGMENT */))
6024
+ return (openBlock(), createBlock(resolveDynamicComponent(_ctx.getComponentName(element.type)), {
6025
+ key: element.id,
6026
+ element: element,
6027
+ onTrigger: _ctx.handleElementTrigger
6028
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["element", "onTrigger"]))
6033
6029
  }), 128 /* KEYED_FRAGMENT */))
6034
6030
  ], 6 /* CLASS, STYLE */)), [
6035
6031
  [vShow, _ctx.currentPageId === page.pageId]
@@ -6028,15 +6028,11 @@
6028
6028
  style: vue.normalizeStyle(_ctx.getPageStyle(page))
6029
6029
  }, [
6030
6030
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(page.elements, (element) => {
6031
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
6032
- key: element.id
6033
- }, [
6034
- vue.createTextVNode(vue.toDisplayString(element) + " ", 1 /* TEXT */),
6035
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.getComponentName(element.type)), {
6036
- element: element,
6037
- onTrigger: _ctx.handleElementTrigger
6038
- }, null, 40 /* PROPS, NEED_HYDRATION */, ["element", "onTrigger"]))
6039
- ], 64 /* STABLE_FRAGMENT */))
6031
+ return (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.getComponentName(element.type)), {
6032
+ key: element.id,
6033
+ element: element,
6034
+ onTrigger: _ctx.handleElementTrigger
6035
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["element", "onTrigger"]))
6040
6036
  }), 128 /* KEYED_FRAGMENT */))
6041
6037
  ], 6 /* CLASS, STYLE */)), [
6042
6038
  [vue.vShow, _ctx.currentPageId === page.pageId]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.329",
3
+ "version": "1.0.340",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",