uview-plus 3.2.10 → 3.2.11
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
|
@@ -258,18 +258,16 @@
|
|
|
258
258
|
// 更新各列的值,进行补0、格式化等操作
|
|
259
259
|
updateColumnValue(value) {
|
|
260
260
|
this.innerValue = value
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
261
|
+
this.updateColumns()
|
|
262
|
+
// 延迟执行,等待u-picker组件列数据更新完后再设置选中值索引
|
|
263
|
+
setTimeout(() => {
|
|
264
|
+
this.updateIndexs(value)
|
|
265
|
+
}, 0);
|
|
267
266
|
},
|
|
268
267
|
// 更新索引
|
|
269
268
|
updateIndexs(value) {
|
|
270
269
|
let values = []
|
|
271
270
|
const formatter = this.formatter || this.innerFormatter
|
|
272
|
-
const padZero = padZero
|
|
273
271
|
if (this.mode === 'time') {
|
|
274
272
|
// 将time模式的时间用:分隔成数组
|
|
275
273
|
const timeArr = value.split(':')
|
|
@@ -256,17 +256,17 @@
|
|
|
256
256
|
const {
|
|
257
257
|
height
|
|
258
258
|
} = size
|
|
259
|
-
const
|
|
260
|
-
const windowHeight =
|
|
259
|
+
const sysData = sys()
|
|
260
|
+
const windowHeight = sysData.windowHeight
|
|
261
261
|
let customNavHeight = 0
|
|
262
262
|
// 消除各端导航栏非原生和原生导致的差异,让索引列表字母对屏幕垂直居中
|
|
263
263
|
if (this.customNavHeight == 0) {
|
|
264
264
|
// #ifdef H5
|
|
265
|
-
customNavHeight =
|
|
265
|
+
customNavHeight = sysData.windowTop
|
|
266
266
|
// #endif
|
|
267
267
|
// #ifndef H5
|
|
268
268
|
// 在非H5中,为原生导航栏,其高度不算在windowHeight内,这里设置为负值,后面相加时变成减去其高度的一半
|
|
269
|
-
customNavHeight = -(
|
|
269
|
+
customNavHeight = -(sysData.statusBarHeight + 44)
|
|
270
270
|
// #endif
|
|
271
271
|
} else {
|
|
272
272
|
customNavHeight = getPx(this.customNavHeight)
|