diff --git a/src/components/BaseImage/BaseImage.vue b/src/components/BaseImage/BaseImage.vue index 183f6d9..8734005 100644 --- a/src/components/BaseImage/BaseImage.vue +++ b/src/components/BaseImage/BaseImage.vue @@ -5,7 +5,7 @@ import { ref } from 'vue'; const props = withDefaults(defineProps<{ src: string | undefined, alt: string, - fit: 'cover' | 'contain' | 'inherit' + fit?: 'cover' | 'contain' | 'inherit' }>(), { fit: 'cover', }); diff --git a/src/components/common/PostItem/PostItem.vue b/src/components/common/PostItem/PostItem.vue index fa48e1a..add1df1 100644 --- a/src/components/common/PostItem/PostItem.vue +++ b/src/components/common/PostItem/PostItem.vue @@ -55,9 +55,8 @@ const route = computed(() => (props.data.route ? props.data.route : props.defaul

- {{ data.description }} -

+ v-html="data.description" + />
(props.data.route ? props.data.route : props.defaul &__excerpt color: $gray-80 + display: -webkit-box + -webkit-line-clamp: 2 + -webkit-box-orient: vertical + overflow: hidden + text-overflow: ellipsis