unika-components 1.0.178 → 1.0.179
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.
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.uni-image-component {
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
2
|
h2.uni-text-component, p.uni-text-component {
|
|
7
3
|
margin-bottom: 0;
|
|
8
4
|
}
|
|
@@ -14,6 +10,31 @@ button.uni-text-component {
|
|
|
14
10
|
box-sizing: border-box;
|
|
15
11
|
white-space: pre-wrap;
|
|
16
12
|
}
|
|
13
|
+
|
|
14
|
+
.uni-image-component {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.uni-video-component {
|
|
19
|
+
position: relative;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
.play-pause-button {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 50%;
|
|
25
|
+
left: 50%;
|
|
26
|
+
transform: translate(-50%, -50%);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
font-size: 2rem;
|
|
29
|
+
color: #fff;
|
|
30
|
+
background: rgba(0, 0, 0, 0.6);
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
padding: 10px;
|
|
33
|
+
transition: background 0.3s;
|
|
34
|
+
}
|
|
35
|
+
.play-pause-button:hover {
|
|
36
|
+
background: rgba(0, 0, 0, 0.8);
|
|
37
|
+
}
|
|
17
38
|
|
|
18
39
|
|
|
19
40
|
.uni-calendar-component {
|
|
@@ -100,68 +121,6 @@ body, html {
|
|
|
100
121
|
}
|
|
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);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.like-button {
|
|
125
|
-
display: flex;
|
|
126
|
-
flex-direction: column;
|
|
127
|
-
align-items: center;
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.icon-heart {
|
|
132
|
-
font-size: 24px;
|
|
133
|
-
color: #e74c3c;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.liked {
|
|
137
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.like-count {
|
|
141
|
-
margin-top: 4px;
|
|
142
|
-
font-size: 16px;
|
|
143
|
-
color: #333;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.swiper-warp {
|
|
147
|
-
width: 100%;
|
|
148
|
-
height: 100%;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.swiper-slide-component {
|
|
152
|
-
text-align: center;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.swiper-slide img {
|
|
156
|
-
max-width: 100%;
|
|
157
|
-
max-height: 100%;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.effect {
|
|
161
|
-
width: 100%;
|
|
162
|
-
height: 100%;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
124
|
.ant-input-number {
|
|
166
125
|
box-sizing: border-box;
|
|
167
126
|
margin: 0;
|
|
@@ -197,6 +156,47 @@ body, html {
|
|
|
197
156
|
vertical-align: top;
|
|
198
157
|
}
|
|
199
158
|
|
|
159
|
+
.effect {
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.swiper-warp {
|
|
165
|
+
width: 100%;
|
|
166
|
+
height: 100%;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.swiper-slide-component {
|
|
170
|
+
text-align: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.swiper-slide img {
|
|
174
|
+
max-width: 100%;
|
|
175
|
+
max-height: 100%;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.like-button {
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
align-items: center;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.icon-heart {
|
|
186
|
+
font-size: 24px;
|
|
187
|
+
color: #e74c3c;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.liked {
|
|
191
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.like-count {
|
|
195
|
+
margin-top: 4px;
|
|
196
|
+
font-size: 16px;
|
|
197
|
+
color: #333;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
200
|
.uni-build-up-component {
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
@@ -94361,20 +94361,19 @@ var script = defineComponent({
|
|
|
94361
94361
|
return new XMLSerializer().serializeToString(svgDoc);
|
|
94362
94362
|
};
|
|
94363
94363
|
// Function to load and color the SVG
|
|
94364
|
-
const loadSvg = async () => {
|
|
94365
|
-
const svg = await fetchSvg(
|
|
94364
|
+
const loadSvg = async (svgSrc) => {
|
|
94365
|
+
const svg = await fetchSvg(svgSrc);
|
|
94366
94366
|
if (svg) {
|
|
94367
94367
|
svgContent.value = updateSvgColor(svg, props.color, props.width, props.height);
|
|
94368
94368
|
}
|
|
94369
94369
|
};
|
|
94370
94370
|
// watch(() => props.svgSrc, loadSvg, { immediate: true })
|
|
94371
|
-
watch(() => props.color, loadSvg)
|
|
94371
|
+
// watch(() => props.color, loadSvg)
|
|
94372
94372
|
// watch(() => props.width, loadSvg)
|
|
94373
94373
|
// watch(() => props.height, loadSvg)
|
|
94374
|
-
|
|
94375
|
-
|
|
94376
|
-
|
|
94377
|
-
// }, { deep: true })
|
|
94374
|
+
watch(() => props.svgSrc, (newValue, oldValue) => {
|
|
94375
|
+
loadSvg(newValue);
|
|
94376
|
+
}, { deep: true });
|
|
94378
94377
|
return {
|
|
94379
94378
|
styleProps,
|
|
94380
94379
|
handleClick,
|
|
@@ -94367,20 +94367,19 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
94367
94367
|
return new XMLSerializer().serializeToString(svgDoc);
|
|
94368
94368
|
};
|
|
94369
94369
|
// Function to load and color the SVG
|
|
94370
|
-
const loadSvg = async () => {
|
|
94371
|
-
const svg = await fetchSvg(
|
|
94370
|
+
const loadSvg = async (svgSrc) => {
|
|
94371
|
+
const svg = await fetchSvg(svgSrc);
|
|
94372
94372
|
if (svg) {
|
|
94373
94373
|
svgContent.value = updateSvgColor(svg, props.color, props.width, props.height);
|
|
94374
94374
|
}
|
|
94375
94375
|
};
|
|
94376
94376
|
// watch(() => props.svgSrc, loadSvg, { immediate: true })
|
|
94377
|
-
|
|
94377
|
+
// watch(() => props.color, loadSvg)
|
|
94378
94378
|
// watch(() => props.width, loadSvg)
|
|
94379
94379
|
// watch(() => props.height, loadSvg)
|
|
94380
|
-
|
|
94381
|
-
|
|
94382
|
-
|
|
94383
|
-
// }, { deep: true })
|
|
94380
|
+
vue.watch(() => props.svgSrc, (newValue, oldValue) => {
|
|
94381
|
+
loadSvg(newValue);
|
|
94382
|
+
}, { deep: true });
|
|
94384
94383
|
return {
|
|
94385
94384
|
styleProps,
|
|
94386
94385
|
handleClick,
|