fix: 修复 story-card 展开失效 bug
移除 resultHasScriptReplies 条件包裹,让故事正文始终由 storyCollapsed 控制展开/收起
This commit is contained in:
@@ -189,25 +189,23 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<template v-if="!resultHasScriptReplies">
|
<scroll-view
|
||||||
<scroll-view
|
v-if="storyCollapsed"
|
||||||
v-if="storyCollapsed"
|
class="story-body-scroll"
|
||||||
class="story-body-scroll"
|
scroll-y
|
||||||
scroll-y
|
:enhanced="true"
|
||||||
:enhanced="true"
|
:show-scrollbar="true"
|
||||||
:show-scrollbar="true"
|
>
|
||||||
>
|
<text class="story-body" :selectable="true" :user-select="true">{{ displayedResultContent }}</text>
|
||||||
<text class="story-body" :selectable="true" :user-select="true">{{ displayedResultContent }}</text>
|
</scroll-view>
|
||||||
</scroll-view>
|
<text v-else class="story-body" :selectable="true" :user-select="true">{{ displayedResultContent }}</text>
|
||||||
<text v-else class="story-body" :selectable="true" :user-select="true">{{ displayedResultContent }}</text>
|
<view class="collapse-row" @click="toggleStoryCollapse">
|
||||||
<view class="collapse-row" @click="toggleStoryCollapse">
|
<text class="collapse-row-text">{{ storyCollapsed ? '展开全文' : '收起全文' }}</text>
|
||||||
<text class="collapse-row-text">{{ storyCollapsed ? '展开全文' : '收起全文' }}</text>
|
<view class="collapse-chevron" :class="{ down: storyCollapsed }">
|
||||||
<view class="collapse-chevron" :class="{ down: storyCollapsed }">
|
<view></view>
|
||||||
<view></view>
|
<view></view>
|
||||||
<view></view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</view>
|
||||||
|
|
||||||
<view class="result-actions">
|
<view class="result-actions">
|
||||||
<button class="action-btn" @click="changeDirection">换个方向</button>
|
<button class="action-btn" @click="changeDirection">换个方向</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user