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' || folderId === 'shared' ||
from === 'systemShare' || from === 'systemShare' ||
from === 'systemManage' || from === 'systemManage' ||
folderId === 'resource-management' route.path.includes('resource-management')
) )
}) })
const { theme, user } = useStore() const { theme, user } = useStore()

View File

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

View File

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