From d57a6d8cca922c9a701887c0403c10d663a258cb Mon Sep 17 00:00:00 2001
From: 13937891274 <kxc0822>
Date: Mon, 18 Jul 2022 17:47:56 +0800
Subject: [PATCH] 全屏功能
---
src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue | 32 +++++++++++++++++++++++++++++---
1 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue b/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue
index 724e8ef..5e9a5a4 100644
--- a/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue
+++ b/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue
@@ -1,5 +1,12 @@
<template>
- <el-dialog v-model="dialogVisible" title="选择事故名称" width="900px" draggable>
+ <el-dialog
+ v-model="dialogVisible"
+ title="选择事故名称"
+ width="900px"
+ draggable
+ :fullscreen="full"
+ >
+ <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
<el-row>
<el-col :span="18">
<el-row>
@@ -64,8 +71,15 @@
</el-dialog>
</template>
<script lang="ts">
-import { defineComponent, reactive, ref } from 'vue';
-import { Delete } from '@element-plus/icons-vue';
+import {
+ defineComponent,
+ reactive,
+ ref
+} from 'vue';
+import {
+ Delete,
+ FullScreen
+} from '@element-plus/icons-vue';
export default defineComponent({
setup() {
const dialogVisible = ref<boolean>(false);
@@ -107,6 +121,15 @@
const handleClose = (tag: string) => {
dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1);
};
+ //全屏
+ const full = ref(false);
+ const toggleFullscreen = () => {
+ if (full.value == false) {
+ full.value = true;
+ } else {
+ full.value = false;
+ }
+ };
return {
dialogVisible,
openDailog,
@@ -118,6 +141,9 @@
dynamicTags,
handleClose,
Delete,
+ toggleFullscreen,
+ FullScreen,
+ full,
};
},
});
--
Gitblit v1.9.2