|
@@ -68,6 +68,8 @@ export default defineComponent({
|
|
|
const lottieDom = ref()
|
|
|
const lottieDom1 = ref()
|
|
|
const lottieDom2 = ref()
|
|
|
+ const mStickyBottom = ref()
|
|
|
+ const mStickyUpward = ref()
|
|
|
const state = reactive({
|
|
|
id: route.query.id,
|
|
|
deleteStatus: false,
|
|
@@ -497,6 +499,10 @@ export default defineComponent({
|
|
|
} catch {
|
|
|
//
|
|
|
}
|
|
|
+ requestAnimationFrame(()=>{
|
|
|
+ mStickyBottom.value?.onChnageHeight()
|
|
|
+ mStickyBottom.value?.onChnageHeight()
|
|
|
+ })
|
|
|
});
|
|
|
|
|
|
onUnmounted(() => {
|
|
@@ -669,13 +675,13 @@ export default defineComponent({
|
|
|
</div>
|
|
|
{
|
|
|
!isScreenScroll.value &&
|
|
|
- <MSticky position="bottom" offsetBottom={state.heightB - 1 + "px"} >
|
|
|
+ <MSticky ref={mStickyUpward} position="bottom" offsetBottom={state.heightB - 1 + "px"} >
|
|
|
<div class={styles.upward}>
|
|
|
<img src={iconUpward} />
|
|
|
</div>
|
|
|
</MSticky>
|
|
|
}
|
|
|
- <MSticky position="bottom" onBarHeight={(height: any) => {
|
|
|
+ <MSticky ref={mStickyBottom} position="bottom" onBarHeight={(height: any) => {
|
|
|
console.log(height, 'height', height)
|
|
|
state.heightB = height
|
|
|
}}>
|