uview-plus 3.4.45 → 3.4.46

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/changelog.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 3.4.46(2025-07-08)
2
+ feat: 上传组件预览视频支持videoPreviewObjectFit参数
3
+
4
+ feat: td增加多个样式props
5
+
6
+ fix: 修复noticeBar字号增大时文字遮挡
7
+
8
+ feat: 项目工程增加pinia
9
+
1
10
  ## 3.4.45(2025-07-01)
2
11
  fix: 修复picker-data组件缺少name
3
12
 
@@ -316,7 +316,7 @@
316
316
  animation: u-loop-animation 10s linear infinite both;
317
317
  /* #endif */
318
318
  @include flex(row);
319
- line-height: 100%;
319
+ // line-height: 100%;
320
320
  }
321
321
  }
322
322
 
@@ -25,6 +25,22 @@
25
25
  width: {
26
26
  type: [String],
27
27
  default: 'auto'
28
+ },
29
+ textAlign: {
30
+ type: String,
31
+ default: ''
32
+ },
33
+ fontSize: {
34
+ type: String,
35
+ default: ''
36
+ },
37
+ borderColor: {
38
+ type: String,
39
+ default: ''
40
+ },
41
+ color: {
42
+ type: String,
43
+ default: ''
28
44
  }
29
45
  },
30
46
  data() {
@@ -49,6 +65,18 @@
49
65
  style.borderBottom = `solid 1px ${this.parent.borderColor}`;
50
66
  style.borderRight = `solid 1px ${this.parent.borderColor}`;
51
67
  style.color = this.parent.color;
68
+ if (this.textAlign != '') {
69
+ style.textAlign = this.textAlign;
70
+ }
71
+ if (this.fontSize != '') {
72
+ style.fontSize = this.fontSize;
73
+ }
74
+ if (this.borderColor != '') {
75
+ style.borderColor = this.borderColor;
76
+ }
77
+ if (this.color != '') {
78
+ style.color = this.color;
79
+ }
52
80
  this.tdStyle = style;
53
81
  }
54
82
  }
@@ -168,5 +168,9 @@ export const props = defineMixin({
168
168
  type: Boolean,
169
169
  default: () => defProps.upload.customAfterAutoUpload
170
170
  },
171
+ videoPreviewObjectFit: {
172
+ type: String,
173
+ default: () => defProps.upload.videoPreviewObjectFit
174
+ },
171
175
  }
172
176
  })
@@ -174,7 +174,7 @@
174
174
  <video id="myVideo" v-if="popupShow"
175
175
  :src="currentItemIndex >= 0 ? lists[currentItemIndex].url : ''"
176
176
  @error="videoErrorCallback" show-center-play-btn
177
- object-fit='cover' show-fullscreen-btn='true'
177
+ :object-fit='videoPreviewObjectFit' show-fullscreen-btn='true'
178
178
  enable-play-gesture controls
179
179
  :autoplay="true" auto-pause-if-open-native
180
180
  @loadedmetadata="loadedVideoMetadata"
@@ -40,6 +40,7 @@ export default {
40
40
  autoUploadDriver: '',
41
41
  autoUploadHeader: {},
42
42
  getVideoThumb: false,
43
- customAfterAutoUpload: false
43
+ customAfterAutoUpload: false,
44
+ videoPreviewObjectFit: 'cover'
44
45
  }
45
46
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.45",
5
+ "version": "3.4.46",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",