uview-plus 3.4.34 → 3.4.35

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,6 @@
1
+ ## 3.4.35(2025-05-28)
2
+ feat: 进度条支持从右往左加载
3
+
1
4
  ## 3.4.34(2025-05-28)
2
5
  feat: table2支持自定义标题和单元格样式
3
6
 
@@ -14,6 +14,7 @@ export default {
14
14
  inactiveColor: '#ececec',
15
15
  percentage: 0,
16
16
  showText: true,
17
- height: 12
17
+ height: 12,
18
+ fromRight: false,
18
19
  }
19
20
  }
@@ -25,6 +25,11 @@ export const props = defineMixin({
25
25
  height: {
26
26
  type: [String, Number],
27
27
  default: () => defProps.lineProgress.height
28
+ },
29
+ // 是否从右往左加载
30
+ fromRight: {
31
+ type: Boolean,
32
+ default: () => defProps.lineProgress.fromRight
28
33
  }
29
34
  }
30
35
  })
@@ -62,6 +62,11 @@
62
62
  style.width = this.lineWidth
63
63
  style.backgroundColor = this.activeColor
64
64
  style.height = addUnit(this.height)
65
+ if (this.fromRight) {
66
+ style.right = 0;
67
+ } else {
68
+ style.left = 0;
69
+ }
65
70
  return style
66
71
  },
67
72
  innserPercentage() {
@@ -127,7 +132,6 @@
127
132
  &__line {
128
133
  position: absolute;
129
134
  top: 0;
130
- left: 0;
131
135
  bottom: 0;
132
136
  align-items: center;
133
137
  @include flex(row);
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.34",
5
+ "version": "3.4.35",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水。",
7
7
  "keywords": [
8
8
  "uview",