统一打印窗口弹窗的标题颜色
This commit is contained in:
parent
5aeae0d556
commit
50d41c505f
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user