uview-plus 3.3.22 → 3.3.23
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 +8 -0
- package/components/u-tabs/u-tabs.vue +3 -0
- package/libs/mixin/mixin.js +3 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -234,6 +234,9 @@
|
|
|
234
234
|
},
|
|
235
235
|
setScrollLeft() {
|
|
236
236
|
// 当前活动tab的布局信息,有tab菜单的width和left(为元素左边界到父元素左边界的距离)等信息
|
|
237
|
+
if (this.innerCurrent < 0) {
|
|
238
|
+
this.innerCurrent = 0;
|
|
239
|
+
}
|
|
237
240
|
const tabRect = this.list[this.innerCurrent]
|
|
238
241
|
// 累加得到当前item到左边的距离
|
|
239
242
|
const offsetLeft = this.list
|
package/libs/mixin/mixin.js
CHANGED
|
@@ -106,6 +106,9 @@ export const mixin = defineMixin({
|
|
|
106
106
|
// })
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
+
navTo(url = '', linkType = 'navigateTo') {
|
|
110
|
+
route({ type: this.linkType, url })
|
|
111
|
+
},
|
|
109
112
|
// 查询节点信息
|
|
110
113
|
// 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
|
|
111
114
|
// 解决办法为在组件根部再套一个没有任何作用的view元素
|