css
shj
2022-07-18 9f4e449a4159c9debf5520a797393bd5df2e5908
src/views/facilityManagement/deviceType/component/Dailog.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-form :model="form" label-width="120px">
      <el-row>
         <el-col :span="11">
@@ -42,17 +43,30 @@
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
import { FullScreen } from '@element-plus/icons-vue';
export default defineComponent({
   setup() {
      const dialogVisible = ref(false);
      const form = ref({});
        const openDailog=()=>{
            dialogVisible.value=true
         dialogVisible.value = true;
      };
      //全屏
      const full = ref(false);
      const toggleFullscreen = () => {
         if (full.value == false) {
            full.value = true;
         } else {
            full.value = false;
        }
      };
      return {
         dialogVisible,
         form,
            openDailog
         openDailog,
         full,
         toggleFullscreen,
         FullScreen,
      };
   },
});