unika-components 1.0.195 → 1.0.197

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.
@@ -2,6 +2,27 @@
2
2
  .uni-image-component {
3
3
  max-width: 100%;
4
4
  }
5
+
6
+ .uni-video-component {
7
+ position: relative;
8
+ text-align: center;
9
+ }
10
+ .play-pause-button {
11
+ position: absolute;
12
+ top: 50%;
13
+ left: 50%;
14
+ transform: translate(-50%, -50%);
15
+ cursor: pointer;
16
+ font-size: 2rem;
17
+ color: #fff;
18
+ background: rgba(0, 0, 0, 0.6);
19
+ border-radius: 50%;
20
+ padding: 10px;
21
+ transition: background 0.3s;
22
+ }
23
+ .play-pause-button:hover {
24
+ background: rgba(0, 0, 0, 0.8);
25
+ }
5
26
 
6
27
  h2.uni-text-component, p.uni-text-component {
7
28
  margin-bottom: 0;
@@ -100,27 +121,31 @@ body, html {
100
121
  color: #666
101
122
  }
102
123
 
103
- .uni-video-component {
104
- position: relative;
105
- text-align: center;
106
- }
107
- .play-pause-button {
108
- position: absolute;
109
- top: 50%;
110
- left: 50%;
111
- transform: translate(-50%, -50%);
112
- cursor: pointer;
113
- font-size: 2rem;
114
- color: #fff;
115
- background: rgba(0, 0, 0, 0.6);
116
- border-radius: 50%;
117
- padding: 10px;
118
- transition: background 0.3s;
119
- }
120
- .play-pause-button:hover {
121
- background: rgba(0, 0, 0, 0.8);
124
+ .uni-build-up-component {
122
125
  }
123
126
 
127
+ .like-button {
128
+ display: flex;
129
+ flex-direction: column;
130
+ align-items: center;
131
+ cursor: pointer;
132
+ }
133
+
134
+ .icon-heart {
135
+ font-size: 24px;
136
+ color: #e74c3c;
137
+ }
138
+
139
+ .liked {
140
+ color: #f00; /* 更改颜色以示已赞 */
141
+ }
142
+
143
+ .like-count {
144
+ margin-top: 4px;
145
+ font-size: 16px;
146
+ color: #333;
147
+ }
148
+
124
149
  .ant-input-number {
125
150
  box-sizing: border-box;
126
151
  margin: 0;
@@ -156,40 +181,6 @@ body, html {
156
181
  vertical-align: top;
157
182
  }
158
183
 
159
- .effect {
160
- width: 100%;
161
- height: 100%;
162
- }
163
-
164
- .uni-build-up-component {
165
- }
166
-
167
- .uni-svg-component {
168
- display: inline-block;
169
- }
170
-
171
- .like-button {
172
- display: flex;
173
- flex-direction: column;
174
- align-items: center;
175
- cursor: pointer;
176
- }
177
-
178
- .icon-heart {
179
- font-size: 24px;
180
- color: #e74c3c;
181
- }
182
-
183
- .liked {
184
- color: #f00; /* 更改颜色以示已赞 */
185
- }
186
-
187
- .like-count {
188
- margin-top: 4px;
189
- font-size: 16px;
190
- color: #333;
191
- }
192
-
193
184
  .swiper-warp {
194
185
  width: 100%;
195
186
  height: 100%;
@@ -203,6 +194,15 @@ body, html {
203
194
  max-width: 100%;
204
195
  max-height: 100%;
205
196
  }
197
+
198
+ .effect {
199
+ width: 100%;
200
+ height: 100%;
201
+ }
202
+
203
+ .uni-svg-component {
204
+ display: inline-block;
205
+ }
206
206
  /**
207
207
  * Swiper 6.8.4
208
208
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -13048,7 +13048,7 @@ var script$h = defineComponent({
13048
13048
  if (len === 0)
13049
13049
  return;
13050
13050
  let animIdx = 0;
13051
- component.props || {};
13051
+ const oldStyle = component.props || {};
13052
13052
  const runAnimation = () => {
13053
13053
  if (animIdx < len) {
13054
13054
  const animation = animationQueue[animIdx];
@@ -13061,8 +13061,8 @@ var script$h = defineComponent({
13061
13061
  };
13062
13062
  const element = componentRefs.value.get('component-' + component.id);
13063
13063
  if (element) {
13064
- // element.style.cssText = getComputedCSSText(animationStyle) + getComputedCSSText(oldStyle);
13065
- element.style.cssText = getComputedCSSText({ ...animationStyle, width: '100%', height: '100%' });
13064
+ element.style.cssText = getComputedCSSText(animationStyle) + getComputedCSSText(oldStyle);
13065
+ // element.style.cssText = getComputedCSSText({ ...animationStyle, width: '100%', height: '100%' });
13066
13066
  animIdx++;
13067
13067
  }
13068
13068
  }
@@ -13055,7 +13055,7 @@
13055
13055
  if (len === 0)
13056
13056
  return;
13057
13057
  let animIdx = 0;
13058
- component.props || {};
13058
+ const oldStyle = component.props || {};
13059
13059
  const runAnimation = () => {
13060
13060
  if (animIdx < len) {
13061
13061
  const animation = animationQueue[animIdx];
@@ -13068,8 +13068,8 @@
13068
13068
  };
13069
13069
  const element = componentRefs.value.get('component-' + component.id);
13070
13070
  if (element) {
13071
- // element.style.cssText = getComputedCSSText(animationStyle) + getComputedCSSText(oldStyle);
13072
- element.style.cssText = getComputedCSSText({ ...animationStyle, width: '100%', height: '100%' });
13071
+ element.style.cssText = getComputedCSSText(animationStyle) + getComputedCSSText(oldStyle);
13072
+ // element.style.cssText = getComputedCSSText({ ...animationStyle, width: '100%', height: '100%' });
13073
13073
  animIdx++;
13074
13074
  }
13075
13075
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.195",
3
+ "version": "1.0.197",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",