功能:完善门店能力与用户安全配置

This commit is contained in:
xiaowang
2026-05-18 10:04:57 +08:00
parent 4563dd2538
commit 3797938616
356 changed files with 24983 additions and 1858 deletions
@@ -20,6 +20,10 @@
</template>
<script setup lang="ts">
/**
* AdminResponsiveModal page script.
* Call guide: the template binds the reactive state below, and the methods are triggered by button clicks, lifecycle hooks, or router events.
*/
import type { CSSProperties } from 'vue'
import { computed } from 'vue'
import { useAdminViewport } from '@/composables/useAdminViewport'
@@ -43,7 +47,9 @@ const emit = defineEmits<{
const { isMobile } = useAdminViewport()
/** mergedWidth is a reactive state variable used by the template and event handlers. */
const mergedWidth = computed(() => (isMobile.value ? '100vw' : props.desktopWidth))
/** mergedStyle is a reactive state variable used by the template and event handlers. */
const mergedStyle = computed(() => (
isMobile.value
? {
@@ -53,6 +59,7 @@ const mergedStyle = computed(() => (
}
: undefined
))
/** mergedBodyStyle is a reactive state variable used by the template and event handlers. */
const mergedBodyStyle = computed(() => (
isMobile.value
? ({
@@ -63,15 +70,18 @@ const mergedBodyStyle = computed(() => (
: undefined
))
/** handleOpenChange is a local helper used by this page script. */
const handleOpenChange = (value: boolean) => {
emit('update:open', value)
}
/** handleCancel is a local helper used by this page script. */
const handleCancel = (event?: unknown) => {
emit('update:open', false)
emit('cancel', event)
}
/** handleOk is a local helper used by this page script. */
const handleOk = (event?: unknown) => {
emit('ok', event)
}