fix: import paragraph scrollbar style(#3680)

This commit is contained in:
wangdan-fit2cloud 2025-07-31 14:50:23 +08:00
parent 356229c6ad
commit 6dd2e9a6b7
3 changed files with 11 additions and 9 deletions

View File

@ -40,7 +40,7 @@ const isShared = computed(() => {
folderId === 'shared' ||
from === 'systemShare' ||
from === 'systemManage' ||
folderId === 'resource-management'
route.path.includes('resource-management')
)
})
const { theme, user } = useStore()

View File

@ -19,7 +19,7 @@ const isShared = computed(() => {
folderId === 'shared' ||
from === 'systemShare' ||
from === 'systemManage' ||
folderId === 'resource-management'
route.path.includes('resource-management')
)
})
</script>

View File

@ -9,13 +9,15 @@
</div>
</template>
<div class="mb-16">
<el-text type="info"
>{{ item.content.length }} {{ $t('views.paragraph.title') }}</el-text
>
<el-text type="info">{{ item.content.length }} {{ $t('views.paragraph.title') }}</el-text>
</div>
<div class="paragraph-list" v-if="activeName == index">
<el-scrollbar>
<ParagraphList v-model="item.content" :isConnect="isConnect" :knowledge-id="knowledgeId"/>
<ParagraphList
v-model="item.content"
:isConnect="isConnect"
:knowledge-id="knowledgeId"
/>
</el-scrollbar>
</div>
</el-tab-pane>
@ -30,10 +32,10 @@ import ParagraphList from './ParagraphList.vue'
defineProps({
data: {
type: Array<any>,
default: () => []
default: () => [],
},
isConnect: Boolean,
knowledgeId: String
knowledgeId: String,
})
const activeName = ref(0)
@ -66,6 +68,6 @@ const activeName = ref(0)
}
}
.paragraph-list {
height: calc(var(--create-dataset-height) - 101px);
height: calc(100vh - 319px);
}
</style>