杂务:新增声明级注释覆盖率

This commit is contained in:
xiaowang
2026-05-23 18:44:57 +08:00
parent 8f038894e7
commit 844516988b
234 changed files with 8356 additions and 0 deletions
@@ -29,8 +29,16 @@ import { computed, useAttrs } from 'vue'
import { useAdminViewport } from '@/composables/useAdminViewport'
import { CONFIRM_ENTER_DISABLED_CLASS } from '@/composables/useConfirmEnter'
/**
* Purpose: modalInstanceSeed supports AdminResponsiveModal.vue by holding or executing the modal instance seed page or API role.
* Usage: import, call, read, or update this let from the owning page/module while preserving the surrounding loading and permission flow.
*/
let modalInstanceSeed = 0
/**
* Purpose: props supports AdminResponsiveModal.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<{
open: boolean
title?: string
@@ -44,6 +52,10 @@ const props = withDefaults(defineProps<{
confirmOnEnter: true
})
/**
* Purpose: emit supports AdminResponsiveModal.vue by holding or executing the emit 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 emit = defineEmits<{
(event: 'update:open', value: boolean): void
(event: 'cancel', value?: unknown): void
@@ -51,7 +63,15 @@ const emit = defineEmits<{
}>()
const { isMobile } = useAdminViewport()
/**
* Purpose: attrs supports AdminResponsiveModal.vue by holding or executing the attrs 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 attrs = useAttrs()
/**
* Purpose: modalInstanceClass supports AdminResponsiveModal.vue by holding or executing the modal instance class 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 modalInstanceClass = `admin-responsive-modal-${modalInstanceSeed++}`
/** mergedWidth is a reactive state variable used by the template and event handlers. */
@@ -66,6 +86,10 @@ const mergedStyle = computed(() => (
}
: undefined
))
/**
* Purpose: mergedWrapClassName supports AdminResponsiveModal.vue by holding or executing the merged wrap class name 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 mergedWrapClassName = computed(() => (
[
attrs.wrapClassName || attrs['wrap-class-name'],