Files
admin-web/src/modules/overseas-warehouse/components/ContractPendingFormDialog.vue
T
2026-08-19 16:45:51 +08:00

30 lines
931 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import AppDialog from '@/shared/components/AppDialog.vue'
withDefaults(defineProps<{
title: string
width: string
domain: string
confirmText?: string
}>(), {
confirmText: '保存',
})
const open = defineModel<boolean>({ default: false })
</script>
<template>
<AppDialog v-model="open" :title="title" :width="width" :confirm-text="confirmText" confirm-disabled>
<el-alert type="warning" :closable="false" show-icon :title="`${domain}写接口待接入`">
<p>弹框按原型保留字段与尺寸;端点、状态机和幂等契约冻结前不可提交,也不会在本地模拟保存成功。</p>
</el-alert>
<div class="pending-form"><slot /></div>
</AppDialog>
</template>
<style scoped>
.pending-form { margin-top: 16px; }
.pending-form :deep(.el-select), .pending-form :deep(.el-input-number) { width: 100%; }
.pending-form :deep(.el-alert p) { margin: 0; }
</style>