unika-components 1.0.254 → 1.0.256
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.
- package/dist/unika-components.css +43 -43
- package/dist/unika-components.esm.js +18 -19
- package/dist/unika-components.umd.js +18 -19
- package/package.json +1 -1
|
@@ -10,6 +10,18 @@ button.uni-text-component {
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
white-space: pre-wrap;
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
.uni-calendar-component {
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
.slot-number {
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: 2px;
|
|
21
|
+
left: 7px;
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
color: #666
|
|
24
|
+
}
|
|
13
25
|
|
|
14
26
|
.slide-guide {
|
|
15
27
|
position: absolute;
|
|
@@ -91,18 +103,6 @@ body, html {
|
|
|
91
103
|
display: inline-block;
|
|
92
104
|
}
|
|
93
105
|
|
|
94
|
-
|
|
95
|
-
.uni-calendar-component {
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
.slot-number {
|
|
99
|
-
position: absolute;
|
|
100
|
-
bottom: 2px;
|
|
101
|
-
left: 7px;
|
|
102
|
-
font-size: 12px;
|
|
103
|
-
color: #666
|
|
104
|
-
}
|
|
105
|
-
|
|
106
106
|
.uni-video-component {
|
|
107
107
|
position: relative;
|
|
108
108
|
text-align: center;
|
|
@@ -124,6 +124,33 @@ body, html {
|
|
|
124
124
|
background: rgba(0, 0, 0, 0.8);
|
|
125
125
|
}
|
|
126
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
|
+
|
|
149
|
+
.effect {
|
|
150
|
+
width: 100%;
|
|
151
|
+
height: 100%;
|
|
152
|
+
}
|
|
153
|
+
|
|
127
154
|
.ant-input-number {
|
|
128
155
|
box-sizing: border-box;
|
|
129
156
|
margin: 0;
|
|
@@ -159,7 +186,10 @@ body, html {
|
|
|
159
186
|
vertical-align: top;
|
|
160
187
|
}
|
|
161
188
|
|
|
162
|
-
.
|
|
189
|
+
.uni-build-up-component {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.uni-lotties-component {
|
|
163
193
|
width: 100%;
|
|
164
194
|
height: 100%;
|
|
165
195
|
}
|
|
@@ -177,36 +207,6 @@ body, html {
|
|
|
177
207
|
max-width: 100%;
|
|
178
208
|
max-height: 100%;
|
|
179
209
|
}
|
|
180
|
-
|
|
181
|
-
.like-button {
|
|
182
|
-
display: flex;
|
|
183
|
-
flex-direction: column;
|
|
184
|
-
align-items: center;
|
|
185
|
-
cursor: pointer;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.icon-heart {
|
|
189
|
-
font-size: 24px;
|
|
190
|
-
color: #e74c3c;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.liked {
|
|
194
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.like-count {
|
|
198
|
-
margin-top: 4px;
|
|
199
|
-
font-size: 16px;
|
|
200
|
-
color: #333;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.uni-build-up-component {
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.uni-lotties-component {
|
|
207
|
-
width: 100%;
|
|
208
|
-
height: 100%;
|
|
209
|
-
}
|
|
210
210
|
|
|
211
211
|
.uni-svg-component {
|
|
212
212
|
display: inline-block;
|
|
@@ -13127,25 +13127,16 @@ var script$h = defineComponent({
|
|
|
13127
13127
|
}
|
|
13128
13128
|
});
|
|
13129
13129
|
};
|
|
13130
|
-
const
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
console.log('aaaaaaaaaa');
|
|
13138
|
-
const keyAttr = innerComponent.getAttribute('key');
|
|
13139
|
-
if (keyAttr) {
|
|
13140
|
-
console.log('bbbbbbbb');
|
|
13141
|
-
const newKey = parseInt(keyAttr) + 1;
|
|
13142
|
-
innerComponent.setAttribute('key', newKey.toString());
|
|
13143
|
-
}
|
|
13144
|
-
else {
|
|
13145
|
-
innerComponent.setAttribute('key', '1');
|
|
13130
|
+
const restartLottieAnimations = () => {
|
|
13131
|
+
componentRefs.value.forEach((el) => {
|
|
13132
|
+
const lottieComponent = el.querySelector('.uni-lotties-component');
|
|
13133
|
+
if (lottieComponent && lottieComponent.__vue__) {
|
|
13134
|
+
const vueInstance = lottieComponent.__vue__;
|
|
13135
|
+
if (vueInstance.play) {
|
|
13136
|
+
vueInstance.play();
|
|
13146
13137
|
}
|
|
13147
13138
|
}
|
|
13148
|
-
}
|
|
13139
|
+
});
|
|
13149
13140
|
};
|
|
13150
13141
|
const onSlideChange = (swiper) => {
|
|
13151
13142
|
const currentIndex = swiper.activeIndex;
|
|
@@ -13161,7 +13152,7 @@ var script$h = defineComponent({
|
|
|
13161
13152
|
const currentPage = props.work && props.work.pages[currentIndex];
|
|
13162
13153
|
currentPage && currentPage.components.forEach((component) => {
|
|
13163
13154
|
if (component.name === 'uni-lotties') {
|
|
13164
|
-
|
|
13155
|
+
restartLottieAnimations();
|
|
13165
13156
|
}
|
|
13166
13157
|
});
|
|
13167
13158
|
};
|
|
@@ -13176,7 +13167,7 @@ var script$h = defineComponent({
|
|
|
13176
13167
|
const currentPage = props.work && props.work.pages[currentIndex];
|
|
13177
13168
|
currentPage && currentPage.components.forEach((component) => {
|
|
13178
13169
|
if (component.name === 'uni-lotties') {
|
|
13179
|
-
|
|
13170
|
+
restartLottieAnimations();
|
|
13180
13171
|
}
|
|
13181
13172
|
});
|
|
13182
13173
|
};
|
|
@@ -75707,6 +75698,14 @@ var script$5 = defineComponent({
|
|
|
75707
75698
|
lottieAnimation.value.play();
|
|
75708
75699
|
}
|
|
75709
75700
|
};
|
|
75701
|
+
watch(lottieKey, () => {
|
|
75702
|
+
console.log('ssssss');
|
|
75703
|
+
if (lottieAnimation.value) {
|
|
75704
|
+
console.log('kkkkkk');
|
|
75705
|
+
lottieAnimation.value.stop();
|
|
75706
|
+
lottieAnimation.value.play();
|
|
75707
|
+
}
|
|
75708
|
+
});
|
|
75710
75709
|
return {
|
|
75711
75710
|
styleProps,
|
|
75712
75711
|
handleClick,
|
|
@@ -13134,25 +13134,16 @@
|
|
|
13134
13134
|
}
|
|
13135
13135
|
});
|
|
13136
13136
|
};
|
|
13137
|
-
const
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
console.log('aaaaaaaaaa');
|
|
13145
|
-
const keyAttr = innerComponent.getAttribute('key');
|
|
13146
|
-
if (keyAttr) {
|
|
13147
|
-
console.log('bbbbbbbb');
|
|
13148
|
-
const newKey = parseInt(keyAttr) + 1;
|
|
13149
|
-
innerComponent.setAttribute('key', newKey.toString());
|
|
13150
|
-
}
|
|
13151
|
-
else {
|
|
13152
|
-
innerComponent.setAttribute('key', '1');
|
|
13137
|
+
const restartLottieAnimations = () => {
|
|
13138
|
+
componentRefs.value.forEach((el) => {
|
|
13139
|
+
const lottieComponent = el.querySelector('.uni-lotties-component');
|
|
13140
|
+
if (lottieComponent && lottieComponent.__vue__) {
|
|
13141
|
+
const vueInstance = lottieComponent.__vue__;
|
|
13142
|
+
if (vueInstance.play) {
|
|
13143
|
+
vueInstance.play();
|
|
13153
13144
|
}
|
|
13154
13145
|
}
|
|
13155
|
-
}
|
|
13146
|
+
});
|
|
13156
13147
|
};
|
|
13157
13148
|
const onSlideChange = (swiper) => {
|
|
13158
13149
|
const currentIndex = swiper.activeIndex;
|
|
@@ -13168,7 +13159,7 @@
|
|
|
13168
13159
|
const currentPage = props.work && props.work.pages[currentIndex];
|
|
13169
13160
|
currentPage && currentPage.components.forEach((component) => {
|
|
13170
13161
|
if (component.name === 'uni-lotties') {
|
|
13171
|
-
|
|
13162
|
+
restartLottieAnimations();
|
|
13172
13163
|
}
|
|
13173
13164
|
});
|
|
13174
13165
|
};
|
|
@@ -13183,7 +13174,7 @@
|
|
|
13183
13174
|
const currentPage = props.work && props.work.pages[currentIndex];
|
|
13184
13175
|
currentPage && currentPage.components.forEach((component) => {
|
|
13185
13176
|
if (component.name === 'uni-lotties') {
|
|
13186
|
-
|
|
13177
|
+
restartLottieAnimations();
|
|
13187
13178
|
}
|
|
13188
13179
|
});
|
|
13189
13180
|
};
|
|
@@ -75714,6 +75705,14 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75714
75705
|
lottieAnimation.value.play();
|
|
75715
75706
|
}
|
|
75716
75707
|
};
|
|
75708
|
+
vue.watch(lottieKey, () => {
|
|
75709
|
+
console.log('ssssss');
|
|
75710
|
+
if (lottieAnimation.value) {
|
|
75711
|
+
console.log('kkkkkk');
|
|
75712
|
+
lottieAnimation.value.stop();
|
|
75713
|
+
lottieAnimation.value.play();
|
|
75714
|
+
}
|
|
75715
|
+
});
|
|
75717
75716
|
return {
|
|
75718
75717
|
styleProps,
|
|
75719
75718
|
handleClick,
|