unika-components 1.0.170 → 1.0.172

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,26 +1,6 @@
1
-
2
-
3
- .uni-calendar-component {
4
-
5
- }
6
- .slot-number {
7
- position: absolute;
8
- bottom: 2px;
9
- left: 7px;
10
- font-size: 12px;
11
- color: #666
12
- }
13
1
 
14
- h2.uni-text-component, p.uni-text-component {
15
- margin-bottom: 0;
16
- }
17
- button.uni-text-component {
18
- padding: 5px 10px;
19
- cursor: pointer;
20
- }
21
- .uni-text-component {
22
- box-sizing: border-box;
23
- white-space: pre-wrap;
2
+ .uni-image-component {
3
+ max-width: 100%;
24
4
  }
25
5
 
26
6
  .slide-guide {
@@ -96,31 +76,17 @@ body, html {
96
76
  }
97
77
  }
98
78
 
99
- .uni-image-component {
100
- max-width: 100%;
79
+ h2.uni-text-component, p.uni-text-component {
80
+ margin-bottom: 0;
81
+ }
82
+ button.uni-text-component {
83
+ padding: 5px 10px;
84
+ cursor: pointer;
85
+ }
86
+ .uni-text-component {
87
+ box-sizing: border-box;
88
+ white-space: pre-wrap;
101
89
  }
102
-
103
- .like-button {
104
- display: flex;
105
- flex-direction: column;
106
- align-items: center;
107
- cursor: pointer;
108
- }
109
-
110
- .icon-heart {
111
- font-size: 24px;
112
- color: #e74c3c;
113
- }
114
-
115
- .liked {
116
- color: #f00; /* 更改颜色以示已赞 */
117
- }
118
-
119
- .like-count {
120
- margin-top: 4px;
121
- font-size: 16px;
122
- color: #333;
123
- }
124
90
 
125
91
  .uni-video-component {
126
92
  position: relative;
@@ -143,27 +109,39 @@ body, html {
143
109
  background: rgba(0, 0, 0, 0.8);
144
110
  }
145
111
 
146
- .swiper-warp {
147
- width: 100%;
148
- height: 100%;
112
+
113
+ .uni-calendar-component {
114
+
115
+ }
116
+ .slot-number {
117
+ position: absolute;
118
+ bottom: 2px;
119
+ left: 7px;
120
+ font-size: 12px;
121
+ color: #666
149
122
  }
150
123
 
151
- .swiper-slide-component {
152
- text-align: center;
124
+ .like-button {
125
+ display: flex;
126
+ flex-direction: column;
127
+ align-items: center;
128
+ cursor: pointer;
153
129
  }
154
130
 
155
- .swiper-slide img {
156
- max-width: 100%;
157
- max-height: 100%;
131
+ .icon-heart {
132
+ font-size: 24px;
133
+ color: #e74c3c;
158
134
  }
159
135
 
160
- .effect {
161
- width: 100%;
162
- height: 100%;
136
+ .liked {
137
+ color: #f00; /* 更改颜色以示已赞 */
163
138
  }
164
139
 
165
- .uni-build-up-component {
166
- }
140
+ .like-count {
141
+ margin-top: 4px;
142
+ font-size: 16px;
143
+ color: #333;
144
+ }
167
145
 
168
146
  .ant-input-number {
169
147
  box-sizing: border-box;
@@ -199,6 +177,28 @@ body, html {
199
177
  margin-bottom: 0px;
200
178
  vertical-align: top;
201
179
  }
180
+
181
+ .swiper-warp {
182
+ width: 100%;
183
+ height: 100%;
184
+ }
185
+
186
+ .swiper-slide-component {
187
+ text-align: center;
188
+ }
189
+
190
+ .swiper-slide img {
191
+ max-width: 100%;
192
+ max-height: 100%;
193
+ }
194
+
195
+ .uni-build-up-component {
196
+ }
197
+
198
+ .effect {
199
+ width: 100%;
200
+ height: 100%;
201
+ }
202
202
  /**
203
203
  * Swiper 6.8.4
204
204
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -94344,28 +94344,28 @@ var script = defineComponent({
94344
94344
  }
94345
94345
  };
94346
94346
  // Function to update the color of the SVG
94347
- const updateSvgColor = (svg, color, width, height) => {
94348
- const parser = new DOMParser();
94349
- const svgDoc = parser.parseFromString(svg, 'image/svg+xml');
94350
- const svgElement = svgDoc.getElementsByTagName('svg')[0];
94351
- const paths = svgDoc.getElementsByTagName('path');
94352
- // Update the fill color for all paths
94353
- for (let i = 0; i < paths.length; i++) {
94354
- paths[i].setAttribute('fill', color);
94355
- }
94356
- // Set width and height for the SVG element
94357
- if (svgElement) {
94358
- svgElement.setAttribute('width', width);
94359
- svgElement.setAttribute('height', height);
94360
- }
94361
- return new XMLSerializer().serializeToString(svgDoc);
94362
- };
94347
+ // const updateSvgColor = (svg: string, color: string, width: string, height: string) => {
94348
+ // const parser = new DOMParser();
94349
+ // const svgDoc = parser.parseFromString(svg, 'image/svg+xml');
94350
+ // const svgElement = svgDoc.getElementsByTagName('svg')[0];
94351
+ // const paths = svgDoc.getElementsByTagName('path');
94352
+ //
94353
+ // // Update the fill color for all paths
94354
+ // for (let i = 0; i < paths.length; i++) {
94355
+ // paths[i].setAttribute('fill', color);
94356
+ // }
94357
+ //
94358
+ // // Set width and height for the SVG element
94359
+ // if (svgElement) {
94360
+ // svgElement.setAttribute('width', width);
94361
+ // svgElement.setAttribute('height', height);
94362
+ // }
94363
+ //
94364
+ // return new XMLSerializer().serializeToString(svgDoc);
94365
+ // };
94363
94366
  // Function to load and color the SVG
94364
94367
  const loadSvg = async () => {
94365
- const svg = await fetchSvg(props.svgSrc);
94366
- if (svg) {
94367
- svgContent.value = updateSvgColor(svg, props.color, props.width, props.height);
94368
- }
94368
+ await fetchSvg(props.svgSrc);
94369
94369
  };
94370
94370
  watch([() => props.svgSrc, () => props.color, () => props.width, () => props.height], loadSvg, { immediate: true });
94371
94371
  return {
@@ -94350,28 +94350,28 @@ summary tabindex target title type usemap value width wmode wrap`;
94350
94350
  }
94351
94351
  };
94352
94352
  // Function to update the color of the SVG
94353
- const updateSvgColor = (svg, color, width, height) => {
94354
- const parser = new DOMParser();
94355
- const svgDoc = parser.parseFromString(svg, 'image/svg+xml');
94356
- const svgElement = svgDoc.getElementsByTagName('svg')[0];
94357
- const paths = svgDoc.getElementsByTagName('path');
94358
- // Update the fill color for all paths
94359
- for (let i = 0; i < paths.length; i++) {
94360
- paths[i].setAttribute('fill', color);
94361
- }
94362
- // Set width and height for the SVG element
94363
- if (svgElement) {
94364
- svgElement.setAttribute('width', width);
94365
- svgElement.setAttribute('height', height);
94366
- }
94367
- return new XMLSerializer().serializeToString(svgDoc);
94368
- };
94353
+ // const updateSvgColor = (svg: string, color: string, width: string, height: string) => {
94354
+ // const parser = new DOMParser();
94355
+ // const svgDoc = parser.parseFromString(svg, 'image/svg+xml');
94356
+ // const svgElement = svgDoc.getElementsByTagName('svg')[0];
94357
+ // const paths = svgDoc.getElementsByTagName('path');
94358
+ //
94359
+ // // Update the fill color for all paths
94360
+ // for (let i = 0; i < paths.length; i++) {
94361
+ // paths[i].setAttribute('fill', color);
94362
+ // }
94363
+ //
94364
+ // // Set width and height for the SVG element
94365
+ // if (svgElement) {
94366
+ // svgElement.setAttribute('width', width);
94367
+ // svgElement.setAttribute('height', height);
94368
+ // }
94369
+ //
94370
+ // return new XMLSerializer().serializeToString(svgDoc);
94371
+ // };
94369
94372
  // Function to load and color the SVG
94370
94373
  const loadSvg = async () => {
94371
- const svg = await fetchSvg(props.svgSrc);
94372
- if (svg) {
94373
- svgContent.value = updateSvgColor(svg, props.color, props.width, props.height);
94374
- }
94374
+ await fetchSvg(props.svgSrc);
94375
94375
  };
94376
94376
  vue.watch([() => props.svgSrc, () => props.color, () => props.width, () => props.height], loadSvg, { immediate: true });
94377
94377
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.170",
3
+ "version": "1.0.172",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",