|
@@ -99,6 +99,7 @@ export default defineComponent({
|
|
|
onMounted(() => {
|
|
|
getList()
|
|
|
})
|
|
|
+ const swipeRef = ref()
|
|
|
return () => (
|
|
|
<div
|
|
|
class={[styles.orchestraStory, !state.listState.dataShow && 'emptyRootContainer']}
|
|
@@ -128,7 +129,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
<p class={[styles.content, 'van-multi-ellipsis--l2']}>{item.content}</p>
|
|
|
|
|
|
- <Swipe class={styles.storySwipe}>
|
|
|
+ <Swipe ref={swipeRef} class={styles.storySwipe}>
|
|
|
{item.attachments &&
|
|
|
item.attachments.map((child: any) => (
|
|
|
<SwipeItem>
|
|
@@ -153,6 +154,10 @@ export default defineComponent({
|
|
|
class={styles.swipeImg}
|
|
|
ref={(el: any) => (videoRef.value[index] = el)}
|
|
|
onPlay={() => onPlay(index)}
|
|
|
+ onExitfullscreen={() => {
|
|
|
+ console.log('重新resize', swipeRef.value)
|
|
|
+ swipeRef.value?.resize()
|
|
|
+ }}
|
|
|
/>
|
|
|
)}
|
|
|
</SwipeItem>
|