From 70d2ec3a55ade194b5473fa546410d62018dc45b Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期一, 18 七月 2022 17:55:27 +0800 Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/gtqtOut --- src/components/userSelections/index.vue | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/components/userSelections/index.vue b/src/components/userSelections/index.vue index 19458f2..9728e94 100644 --- a/src/components/userSelections/index.vue +++ b/src/components/userSelections/index.vue @@ -5,7 +5,9 @@ v-model="isShowDialog" width="1000px" draggable + :fullscreen="full" > + <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> <el-container class="layout-container-demo" style="height: 500px;overflow: auto;min-width: 960px"> <el-aside width="200px"> <el-input v-model="filterText" placeholder="请输入组织机构过滤" /> @@ -121,7 +123,9 @@ ElTree, // ElTable, } from 'element-plus' - +import { + FullScreen +} from '@element-plus/icons-vue' interface Tree { id: number label: string @@ -283,6 +287,15 @@ const handleCurrentChange = (val: number) => { console.log(`current page: ${val}`); }; + //全屏 + const full = ref(false); + const toggleFullscreen = () => { + if (full.value == false) { + full.value = true; + } else { + full.value = false; + } + }; return { openDialog, closeDialog, @@ -303,6 +316,9 @@ pageSize, radio1, radio, + toggleFullscreen, + FullScreen, + full, }; }, }); -- Gitblit v1.9.2