perf: paragraph style
This commit is contained in:
parent
a67b39c87e
commit
5d99224f04
@ -3,6 +3,7 @@
|
|||||||
shadow="never"
|
shadow="never"
|
||||||
:title="index + 1 + '.' + data.title || '-'"
|
:title="index + 1 + '.' + data.title || '-'"
|
||||||
class="paragraph-source-card cursor mb-8 paragraph-source-card-height"
|
class="paragraph-source-card cursor mb-8 paragraph-source-card-height"
|
||||||
|
:style="{ 'height': data?.document_name?.trim() ? '300px' : '260px' }"
|
||||||
:class="data.is_active ? '' : 'disabled'"
|
:class="data.is_active ? '' : 'disabled'"
|
||||||
:showIcon="false"
|
:showIcon="false"
|
||||||
>
|
>
|
||||||
@ -17,7 +18,12 @@
|
|||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-card shadow="never" style="--el-card-padding: 8px" class="w-full mb-12">
|
<el-card
|
||||||
|
shadow="never"
|
||||||
|
style="--el-card-padding: 8px"
|
||||||
|
class="w-full mb-12"
|
||||||
|
v-if="data?.document_name?.trim()"
|
||||||
|
>
|
||||||
<el-text class="flex align-center item">
|
<el-text class="flex align-center item">
|
||||||
<img :src="getImgUrl(data?.document_name?.trim())" alt="" width="20" class="mr-4" />
|
<img :src="getImgUrl(data?.document_name?.trim())" alt="" width="20" class="mr-4" />
|
||||||
|
|
||||||
@ -81,9 +87,9 @@ const parsedMeta = computed(() => {
|
|||||||
const meta = computed(() => (isMetaObject.value ? props.data.meta : parsedMeta.value))
|
const meta = computed(() => (isMetaObject.value ? props.data.meta : parsedMeta.value))
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.paragraph-source-card-height {
|
// .paragraph-source-card-height {
|
||||||
height: 300px;
|
// height: 300px;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// @media only screen and (max-width: 768px) {
|
// @media only screen and (max-width: 768px) {
|
||||||
// .paragraph-source-card-height {
|
// .paragraph-source-card-height {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user