42 lines
1.0 KiB
Vue
42 lines
1.0 KiB
Vue
<template>
|
|
<SystemViewDialog
|
|
v-model:visible="innerVisible"
|
|
title="查看地磅单"
|
|
:icon="Link"
|
|
:sections="sections"
|
|
:loading="loading"
|
|
width="1200px"
|
|
modal-class="order-module-dialog-mask"
|
|
>
|
|
<template #hero-actions>
|
|
<slot name="hero-actions" />
|
|
</template>
|
|
</SystemViewDialog>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
/**
|
|
* UI 模式 P09 · 标准查看弹窗
|
|
* 参考:SystemViewDialog · src/views/system/express/index.vue
|
|
*/
|
|
import { computed } from 'vue'
|
|
import { Link } from '@element-plus/icons-vue'
|
|
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
|
|
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
|
|
|
|
const props = defineProps<{
|
|
visible: boolean
|
|
loading?: boolean
|
|
sections: ViewSection[]
|
|
}>()
|
|
|
|
const emit = defineEmits<{
|
|
(e: 'update:visible', val: boolean): void
|
|
}>()
|
|
|
|
const innerVisible = computed({
|
|
get: () => props.visible,
|
|
set: (val) => emit('update:visible', val)
|
|
})
|
|
</script>
|