Merge pull request '统一打印窗口弹窗的标题颜色' (#155) from 616036448/Admin.NET.Pro:main into main

Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/155
This commit is contained in:
zuohuaijun 2024-10-10 17:48:08 +08:00
commit fba42267a7

View File

@ -1,5 +1,12 @@
<template>
<el-dialog v-model="state.dialogVisible" draggable :close-on-click-modal="false" :width="Number(state.width) + Number(8) + 'mm'">
<template #header>
<div style="color: #fff">
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"> <ele-Printer />
</el-icon>
<span>{{ props.title }}</span>
</div>
</template>
<div id="preview_content" ref="previewContentRef"></div>
<template #footer>
<el-button :loading="state.waitShowPrinter" type="primary" icon="ele-Printer" @click.stop="print">直接打印</el-button>
@ -12,6 +19,14 @@
<script lang="ts" setup>
import { nextTick, reactive, ref } from 'vue';
//
var props = defineProps({
title: {
type: String,
default: "",
},
});
const state = reactive({
dialogVisible: false,
waitShowPrinter: false,