From 9f4e449a4159c9debf5520a797393bd5df2e5908 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期一, 18 七月 2022 15:01:46 +0800
Subject: [PATCH] css

---
 src/components/DailogSearch/DailogSearch.vue |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/components/DailogSearch/DailogSearch.vue b/src/components/DailogSearch/DailogSearch.vue
index 0a0b644..00a0464 100644
--- a/src/components/DailogSearch/DailogSearch.vue
+++ b/src/components/DailogSearch/DailogSearch.vue
@@ -1,5 +1,6 @@
 <template>
-	<el-dialog v-model="dialogVisible" title="选择安全目标指标" width="50%" draggable>
+	<el-dialog v-model="dialogVisible" :fullscreen="full" title="选择安全目标指标" width="50%" draggable>
+		<el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
 		<el-row>
 			<el-col :span="17">
 				<el-form ref="ruleFormRef" :model="ruleForm" status-icon>
@@ -74,7 +75,7 @@
 </template>
 <script lang="ts">
 import { defineComponent, reactive, ref } from 'vue';
-import { Delete } from '@element-plus/icons-vue';
+import { Delete,FullScreen } from '@element-plus/icons-vue';
 export default defineComponent({
 	setup() {
 		const dialogVisible = ref<boolean>(false);
@@ -126,6 +127,15 @@
 		const radio=(event:any)=>{
 			dynamicTags.value[0]=event
 		}
+			//全屏
+		const full = ref(false);
+		const toggleFullscreen = () => {
+			if (full.value == false) {
+				full.value = true;
+			}else{
+        full.value = false;
+      }
+		};
 		return {
 			dialogVisible,
 			openDailog,
@@ -138,7 +148,10 @@
 			handleClose,
 			radio1,
 			radio,
+			full,
+			toggleFullscreen,
 			Delete,
+			FullScreen
 		};
 	},
 });

--
Gitblit v1.9.2