unika-components 1.0.122 → 1.0.123

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.
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<{
19
19
  effect: string;
20
20
  upArrow: import("vue").Ref<boolean>;
21
21
  slideChangeTransitionEnd: (e: any) => void;
22
+ slideClasses: (index: number) => string[];
22
23
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
24
  work: {
24
25
  type: PropType<WorkData>;
@@ -2,28 +2,18 @@
2
2
  .uni-image-component {
3
3
  max-width: 100%;
4
4
  }
5
-
6
- .like-button {
7
- display: flex;
8
- flex-direction: column;
9
- align-items: center;
10
- cursor: pointer;
11
- }
12
-
13
- .icon-heart {
14
- font-size: 24px;
15
- color: #e74c3c;
16
- }
17
-
18
- .liked {
19
- color: #f00; /* 更改颜色以示已赞 */
20
- }
21
-
22
- .like-count {
23
- margin-top: 4px;
24
- font-size: 16px;
25
- color: #333;
26
- }
5
+
6
+ h2.uni-text-component, p.uni-text-component {
7
+ margin-bottom: 0;
8
+ }
9
+ button.uni-text-component {
10
+ padding: 5px 10px;
11
+ cursor: pointer;
12
+ }
13
+ .uni-text-component {
14
+ box-sizing: border-box;
15
+ white-space: pre-wrap;
16
+ }
27
17
 
28
18
  .uni-video-component {
29
19
  position: relative;
@@ -46,18 +36,6 @@
46
36
  background: rgba(0, 0, 0, 0.8);
47
37
  }
48
38
 
49
- h2.uni-text-component, p.uni-text-component {
50
- margin-bottom: 0;
51
- }
52
- button.uni-text-component {
53
- padding: 5px 10px;
54
- cursor: pointer;
55
- }
56
- .uni-text-component {
57
- box-sizing: border-box;
58
- white-space: pre-wrap;
59
- }
60
-
61
39
  .slide-guide {
62
40
  position: absolute;
63
41
  bottom: 90px;
@@ -139,6 +117,28 @@ body, html {
139
117
  color: #666
140
118
  }
141
119
 
120
+ .like-button {
121
+ display: flex;
122
+ flex-direction: column;
123
+ align-items: center;
124
+ cursor: pointer;
125
+ }
126
+
127
+ .icon-heart {
128
+ font-size: 24px;
129
+ color: #e74c3c;
130
+ }
131
+
132
+ .liked {
133
+ color: #f00; /* 更改颜色以示已赞 */
134
+ }
135
+
136
+ .like-count {
137
+ margin-top: 4px;
138
+ font-size: 16px;
139
+ color: #333;
140
+ }
141
+
142
142
  .ant-input-number {
143
143
  box-sizing: border-box;
144
144
  margin: 0;
@@ -174,11 +174,6 @@ body, html {
174
174
  vertical-align: top;
175
175
  }
176
176
 
177
- .effect {
178
- width: 100%;
179
- height: 100%;
180
- }
181
-
182
177
  .swiper-warp {
183
178
  width: 100%;
184
179
  height: 100%;
@@ -192,6 +187,11 @@ body, html {
192
187
  max-width: 100%;
193
188
  max-height: 100%;
194
189
  }
190
+
191
+ .effect {
192
+ width: 100%;
193
+ height: 100%;
194
+ }
195
195
  /**
196
196
  * Swiper 6.8.4
197
197
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -1,4 +1,4 @@
1
- import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, normalizeClass, createCommentVNode, createElementVNode, renderSlot, pushScopeId, popScopeId, toRefs, onBeforeMount, onUnmounted, withDirectives, vShow, isVNode, Comment, Text, reactive, getCurrentInstance, inject, provide, unref, shallowRef, watchEffect, triggerRef, Transition, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$l, TransitionGroup, mergeProps } from 'vue';
1
+ import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, createCommentVNode, normalizeClass, createElementVNode, renderSlot, pushScopeId, popScopeId, toRefs, onBeforeMount, onUnmounted, withDirectives, vShow, isVNode, Comment, Text, reactive, getCurrentInstance, inject, provide, unref, shallowRef, watchEffect, triggerRef, Transition, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$l, TransitionGroup, mergeProps } from 'vue';
2
2
  import crypto from 'crypto';
3
3
 
4
4
  /** Detect free variable `global` from Node.js. */
@@ -13035,6 +13035,9 @@ var script$f = defineComponent({
13035
13035
  };
13036
13036
  const direction = 'vertical';
13037
13037
  const effect = 'fade';
13038
+ const slideClasses = (index) => {
13039
+ return ['swiper-slide', `slide-${index}`];
13040
+ };
13038
13041
  return {
13039
13042
  componentRefs,
13040
13043
  setComponentRef,
@@ -13044,7 +13047,8 @@ var script$f = defineComponent({
13044
13047
  direction,
13045
13048
  effect,
13046
13049
  upArrow,
13047
- slideChangeTransitionEnd
13050
+ slideChangeTransitionEnd,
13051
+ slideClasses
13048
13052
  };
13049
13053
  }
13050
13054
  });
@@ -13077,13 +13081,14 @@ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
13077
13081
  onSlideChange: _ctx.onSlideChange
13078
13082
  }, {
13079
13083
  default: withCtx(() => [
13080
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.work?.pages, (page, index) => {
13084
+ createCommentVNode(" <swiper-slide :class=\"['swiper-slide', `slide-${index}`]\" v-for=\"(page, index) in work?.pages\" :key=\"index\">"),
13085
+ createCommentVNode("<swiper-slide :class=\"['swiper-slide', `slide-${index}`]\" v-for=\"(page, index) in work?.pages\" :key=\"index\">"),
13086
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.work.pages, (page, index) => {
13081
13087
  return (openBlock(), createBlock(_component_swiper_slide, {
13082
- class: normalizeClass(['swiper-slide', `slide-${index}`]),
13088
+ class: normalizeClass(_ctx.slideClasses(index)),
13083
13089
  key: index
13084
13090
  }, {
13085
13091
  default: withCtx(() => [
13086
- createCommentVNode("<swiper-slide :class=\"['swiper-slide', `slide-${index}`]\" v-for=\"(page, index) in work?.pages\" :key=\"index\">"),
13087
13092
  createElementVNode("div", {
13088
13093
  class: "final-page",
13089
13094
  style: normalizeStyle$1({ width: _ctx.work?.width, height: _ctx.work?.height })
@@ -13042,6 +13042,9 @@
13042
13042
  };
13043
13043
  const direction = 'vertical';
13044
13044
  const effect = 'fade';
13045
+ const slideClasses = (index) => {
13046
+ return ['swiper-slide', `slide-${index}`];
13047
+ };
13045
13048
  return {
13046
13049
  componentRefs,
13047
13050
  setComponentRef,
@@ -13051,7 +13054,8 @@
13051
13054
  direction,
13052
13055
  effect,
13053
13056
  upArrow,
13054
- slideChangeTransitionEnd
13057
+ slideChangeTransitionEnd,
13058
+ slideClasses
13055
13059
  };
13056
13060
  }
13057
13061
  });
@@ -13084,13 +13088,14 @@
13084
13088
  onSlideChange: _ctx.onSlideChange
13085
13089
  }, {
13086
13090
  default: vue.withCtx(() => [
13087
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.work?.pages, (page, index) => {
13091
+ vue.createCommentVNode(" <swiper-slide :class=\"['swiper-slide', `slide-${index}`]\" v-for=\"(page, index) in work?.pages\" :key=\"index\">"),
13092
+ vue.createCommentVNode("<swiper-slide :class=\"['swiper-slide', `slide-${index}`]\" v-for=\"(page, index) in work?.pages\" :key=\"index\">"),
13093
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.work.pages, (page, index) => {
13088
13094
  return (vue.openBlock(), vue.createBlock(_component_swiper_slide, {
13089
- class: vue.normalizeClass(['swiper-slide', `slide-${index}`]),
13095
+ class: vue.normalizeClass(_ctx.slideClasses(index)),
13090
13096
  key: index
13091
13097
  }, {
13092
13098
  default: vue.withCtx(() => [
13093
- vue.createCommentVNode("<swiper-slide :class=\"['swiper-slide', `slide-${index}`]\" v-for=\"(page, index) in work?.pages\" :key=\"index\">"),
13094
13099
  vue.createElementVNode("div", {
13095
13100
  class: "final-page",
13096
13101
  style: vue.normalizeStyle({ width: _ctx.work?.width, height: _ctx.work?.height })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.122",
3
+ "version": "1.0.123",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",