From 9f4e449a4159c9debf5520a797393bd5df2e5908 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: Mon, 18 Jul 2022 15:01:46 +0800
Subject: [PATCH] css
---
src/components/equipmentDailog/DailogS.vue | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/components/equipmentDailog/DailogS.vue b/src/components/equipmentDailog/DailogS.vue
index a1d4f24..d33f516 100644
--- a/src/components/equipmentDailog/DailogS.vue
+++ b/src/components/equipmentDailog/DailogS.vue
@@ -1,5 +1,6 @@
<template>
- <el-dialog v-model="dialogVisible" title="新建仪器仪表" width="60%">
+ <el-dialog :fullscreen="full" v-model="dialogVisible" title="新建仪器仪表" width="60%">
+ <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
<el-form :model="form" label-width="130px">
<el-row>
<el-col :span="11">
@@ -248,7 +249,7 @@
</template>
<script lang="ts">
import { defineComponent, ref, reactive } from 'vue';
-import { Search,Plus } from '@element-plus/icons-vue';
+import { Search,Plus,FullScreen } from '@element-plus/icons-vue';
import categoryDailog from './categoryDailog.vue';
import planDailog from './planDailog.vue';
import maintenanceDailog from './maintenanceDailog.vue';
@@ -375,6 +376,15 @@
}
return true;
};
+ //全屏
+ const full = ref(false);
+ const toggleFullscreen = () => {
+ if (full.value == false) {
+ full.value = true;
+ }else{
+ full.value = false;
+ }
+ };
return {
dialogVisible,
Dailogtype,
@@ -405,7 +415,10 @@
imageUrl,
handleAvatarSuccess,
beforeAvatarUpload,
- Plus
+ Plus,
+ full,
+ toggleFullscreen,
+ FullScreen,
};
},
});
--
Gitblit v1.9.2