2023.11.16
This commit is contained in:
@@ -46,14 +46,7 @@
|
||||
is_loading.value = false
|
||||
return
|
||||
}
|
||||
// 滚动条设置
|
||||
uni.createSelectorQuery().in(instance).select('#scroll-view-content').boundingClientRect((res)=>{
|
||||
let top = res.height-w_h.value+100;
|
||||
if(top>0){
|
||||
scrollTop.value = top;
|
||||
}
|
||||
// console.log(res.height,w_h.value)
|
||||
}).exec()
|
||||
|
||||
records.value.push({
|
||||
content:in_content.value,
|
||||
type:2
|
||||
@@ -83,6 +76,14 @@
|
||||
duration:2000
|
||||
})
|
||||
}
|
||||
// 滚动条设置
|
||||
uni.createSelectorQuery().in(instance).select('#scroll-view-content').boundingClientRect((res)=>{
|
||||
let top = res.height-w_h.value+100;
|
||||
if(top>0){
|
||||
scrollTop.value = top;
|
||||
}
|
||||
// console.log(res.height,w_h.value)
|
||||
}).exec()
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
|
Reference in New Issue
Block a user