unika-components 1.0.182 → 1.0.183
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,27 +2,40 @@
|
|
|
2
2
|
.uni-image-component {
|
|
3
3
|
max-width: 100%;
|
|
4
4
|
}
|
|
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
|
+
}
|
|
5
17
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
.like-button {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.icon-heart {
|
|
26
|
+
font-size: 24px;
|
|
27
|
+
color: #e74c3c;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.liked {
|
|
31
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.like-count {
|
|
35
|
+
margin-top: 4px;
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
color: #333;
|
|
38
|
+
}
|
|
26
39
|
|
|
27
40
|
.slide-guide {
|
|
28
41
|
position: absolute;
|
|
@@ -96,18 +109,6 @@ body, html {
|
|
|
96
109
|
transform: translate3d(-50%, -50%, 0);
|
|
97
110
|
}
|
|
98
111
|
}
|
|
99
|
-
|
|
100
|
-
h2.uni-text-component, p.uni-text-component {
|
|
101
|
-
margin-bottom: 0;
|
|
102
|
-
}
|
|
103
|
-
button.uni-text-component {
|
|
104
|
-
padding: 5px 10px;
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
}
|
|
107
|
-
.uni-text-component {
|
|
108
|
-
box-sizing: border-box;
|
|
109
|
-
white-space: pre-wrap;
|
|
110
|
-
}
|
|
111
112
|
|
|
112
113
|
|
|
113
114
|
.uni-calendar-component {
|
|
@@ -121,6 +122,32 @@ button.uni-text-component {
|
|
|
121
122
|
color: #666
|
|
122
123
|
}
|
|
123
124
|
|
|
125
|
+
.uni-video-component {
|
|
126
|
+
position: relative;
|
|
127
|
+
text-align: center;
|
|
128
|
+
}
|
|
129
|
+
.play-pause-button {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 50%;
|
|
132
|
+
left: 50%;
|
|
133
|
+
transform: translate(-50%, -50%);
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
font-size: 2rem;
|
|
136
|
+
color: #fff;
|
|
137
|
+
background: rgba(0, 0, 0, 0.6);
|
|
138
|
+
border-radius: 50%;
|
|
139
|
+
padding: 10px;
|
|
140
|
+
transition: background 0.3s;
|
|
141
|
+
}
|
|
142
|
+
.play-pause-button:hover {
|
|
143
|
+
background: rgba(0, 0, 0, 0.8);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.effect {
|
|
147
|
+
width: 100%;
|
|
148
|
+
height: 100%;
|
|
149
|
+
}
|
|
150
|
+
|
|
124
151
|
.ant-input-number {
|
|
125
152
|
box-sizing: border-box;
|
|
126
153
|
margin: 0;
|
|
@@ -156,36 +183,6 @@ button.uni-text-component {
|
|
|
156
183
|
vertical-align: top;
|
|
157
184
|
}
|
|
158
185
|
|
|
159
|
-
.like-button {
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-direction: column;
|
|
162
|
-
align-items: center;
|
|
163
|
-
cursor: pointer;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.icon-heart {
|
|
167
|
-
font-size: 24px;
|
|
168
|
-
color: #e74c3c;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.liked {
|
|
172
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.like-count {
|
|
176
|
-
margin-top: 4px;
|
|
177
|
-
font-size: 16px;
|
|
178
|
-
color: #333;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.effect {
|
|
182
|
-
width: 100%;
|
|
183
|
-
height: 100%;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.uni-build-up-component {
|
|
187
|
-
}
|
|
188
|
-
|
|
189
186
|
.swiper-warp {
|
|
190
187
|
width: 100%;
|
|
191
188
|
height: 100%;
|
|
@@ -199,6 +196,9 @@ button.uni-text-component {
|
|
|
199
196
|
max-width: 100%;
|
|
200
197
|
max-height: 100%;
|
|
201
198
|
}
|
|
199
|
+
|
|
200
|
+
.uni-build-up-component {
|
|
201
|
+
}
|
|
202
202
|
/**
|
|
203
203
|
* Swiper 6.8.4
|
|
204
204
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -94329,10 +94329,14 @@ var script = defineComponent({
|
|
|
94329
94329
|
const handleClick = useComponentClick(props);
|
|
94330
94330
|
const svgContent = ref('');
|
|
94331
94331
|
// Function to fetch SVG content from the URL
|
|
94332
|
-
const fetchSvg =
|
|
94332
|
+
const fetchSvg = (url) => {
|
|
94333
94333
|
try {
|
|
94334
|
-
const response =
|
|
94335
|
-
|
|
94334
|
+
const response = axios$1.get(url, {
|
|
94335
|
+
headers: {
|
|
94336
|
+
Accept: 'image/svg+xml'
|
|
94337
|
+
}
|
|
94338
|
+
});
|
|
94339
|
+
return response;
|
|
94336
94340
|
}
|
|
94337
94341
|
catch (error) {
|
|
94338
94342
|
console.error('Error fetching SVG:', error);
|
|
@@ -94340,8 +94344,8 @@ var script = defineComponent({
|
|
|
94340
94344
|
}
|
|
94341
94345
|
};
|
|
94342
94346
|
// Function to load and color the SVG
|
|
94343
|
-
const loadSvg =
|
|
94344
|
-
|
|
94347
|
+
const loadSvg = (svgSrc) => {
|
|
94348
|
+
fetchSvg(svgSrc);
|
|
94345
94349
|
// if (svg) {
|
|
94346
94350
|
// svgContent.value = updateSvgColor(svg, props.color, props.width, props.height)
|
|
94347
94351
|
// }
|
|
@@ -94335,10 +94335,14 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
94335
94335
|
const handleClick = useComponentClick(props);
|
|
94336
94336
|
const svgContent = vue.ref('');
|
|
94337
94337
|
// Function to fetch SVG content from the URL
|
|
94338
|
-
const fetchSvg =
|
|
94338
|
+
const fetchSvg = (url) => {
|
|
94339
94339
|
try {
|
|
94340
|
-
const response =
|
|
94341
|
-
|
|
94340
|
+
const response = axios$1.get(url, {
|
|
94341
|
+
headers: {
|
|
94342
|
+
Accept: 'image/svg+xml'
|
|
94343
|
+
}
|
|
94344
|
+
});
|
|
94345
|
+
return response;
|
|
94342
94346
|
}
|
|
94343
94347
|
catch (error) {
|
|
94344
94348
|
console.error('Error fetching SVG:', error);
|
|
@@ -94346,8 +94350,8 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
94346
94350
|
}
|
|
94347
94351
|
};
|
|
94348
94352
|
// Function to load and color the SVG
|
|
94349
|
-
const loadSvg =
|
|
94350
|
-
|
|
94353
|
+
const loadSvg = (svgSrc) => {
|
|
94354
|
+
fetchSvg(svgSrc);
|
|
94351
94355
|
// if (svg) {
|
|
94352
94356
|
// svgContent.value = updateSvgColor(svg, props.color, props.width, props.height)
|
|
94353
94357
|
// }
|