uview-plus 3.3.28 → 3.3.29

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,5 +1,9 @@
1
+ ## 3.3.29(2024-08-30)
2
+ fix: 修复tabs组件current参数为字符串处理逻辑
3
+
1
4
  ## 3.3.28(2024-08-26)
2
5
  fix: list组件滑动偏移量不一样取绝对值导致iOS下拉偏移量计算错误
6
+
3
7
  ## 3.3.27(2024-08-22)
4
8
  fix: 修复up-datetime-picker组件toolbarRightSlot定义缺失
5
9
 
@@ -7,8 +11,10 @@ fix: 修复FormItem的rules更新错误的问题
7
11
 
8
12
  ## 3.3.26(2024-08-22)
9
13
  fix: 批量注册全局组件优化
14
+
10
15
  ## 3.3.25(2024-08-21)
11
16
  fix: 修复slider在app-vue下样式问题
17
+
12
18
  ## 3.3.24(2024-08-19)
13
19
  fix: 修复时间选择器hasInput模式小程序不生效
14
20
 
@@ -128,7 +128,11 @@
128
128
  handler (newValue, oldValue) {
129
129
  // 内外部值不相等时,才尝试移动滑块
130
130
  if (newValue !== this.innerCurrent) {
131
- this.innerCurrent = newValue
131
+ if (typeof newValue == 'string') {
132
+ this.innerCurrent = parseInt(newValue)
133
+ } else {
134
+ this.innerCurrent = newValue
135
+ }
132
136
  this.$nextTick(() => {
133
137
  this.resize()
134
138
  })
@@ -147,7 +151,9 @@
147
151
  return index => {
148
152
  const style = {}
149
153
  // 取当期是否激活的样式
150
- const customeStyle = index === this.innerCurrent ? addStyle(this.activeStyle) : addStyle(this.inactiveStyle)
154
+ const customeStyle = (index == this.innerCurrent)
155
+ ? addStyle(this.activeStyle)
156
+ : addStyle(this.inactiveStyle)
151
157
  // 如果当前菜单被禁用,则加上对应颜色,需要在此做处理,是因为nvue下,无法在style样式中通过!import覆盖标签的内联样式
152
158
  if (this.list[index].disabled) {
153
159
  style.color = '#c8c9cc'
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.3.28",
5
+ "version": "3.3.29",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",