杂务:新增声明级注释覆盖率
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
import { computed } from 'vue'
|
||||
import { BellOutlined, ClockCircleOutlined } from '@ant-design/icons-vue'
|
||||
|
||||
/**
|
||||
* Purpose: props supports SystemMessageCard.vue by holding or executing the props page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const props = withDefaults(defineProps<{
|
||||
title?: string
|
||||
content?: string
|
||||
@@ -24,8 +28,20 @@ const props = withDefaults(defineProps<{
|
||||
footerAlign: 'between'
|
||||
})
|
||||
|
||||
/**
|
||||
* Purpose: hasImage supports SystemMessageCard.vue by holding or executing the has image page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const hasImage = computed(() => Boolean(props.imageUrl))
|
||||
/**
|
||||
* Purpose: displayTitle supports SystemMessageCard.vue by holding or executing the display title page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const displayTitle = computed(() => props.title?.trim() || '系统消息')
|
||||
/**
|
||||
* Purpose: displayContent supports SystemMessageCard.vue by holding or executing the display content page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const displayContent = computed(() => props.content?.trim() || (hasImage.value ? '' : '你收到了一条新的系统消息。'))
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user