增加全屏

This commit is contained in:
miao 2023-02-07 19:12:43 +08:00 committed by fangxiang
parent b2aff3720c
commit 33413fbb27
1 changed files with 19 additions and 5 deletions

View File

@ -440,8 +440,6 @@
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@ -472,7 +470,7 @@
<q-separator vertical inset />
<q-item>
<q-item v-if="false">
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
<!-- <q-icon class="text-white rotate" name="img:svgs/fan.svg" /> -->
<!-- <q-icon class="text-white rotate" name="img:new_icon/fan.png" /> -->
@ -486,6 +484,14 @@
{{ $store.state.fan_temp.toFixed(1) }}
</q-item-section>
</q-item>
<q-item>
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
<q-btn
@click="isfullbtn()"
:icon="isfull ? 'fullscreen_exit' : 'fullscreen'"
/>
</q-item-section>
</q-item>
</q-toolbar>
</div>
<grid-setting-dialog
@ -533,7 +539,7 @@
<script lang="ts">
import { defineComponent, ref, Ref, computed, watch, onMounted } from "vue";
import { useStore } from "src/store";
import { IWuJieInterface, useStore } from "src/store";
import FusionSettingsDialog from "src/components/FusionSettingsDialog.vue";
import GridSettingDialog from "src/components/GridSettingDialog.vue";
@ -601,7 +607,7 @@ export default defineComponent({
const register_dialog: Ref<any> = ref(null);
const window_rect_edit_dialog: Ref<any> = ref(null);
let isfull = ref(false);
const power_flag = ref(false);
watch(
() => power_flag.value,
@ -696,6 +702,7 @@ export default defineComponent({
show_device_list,
power_flag,
fan,
isfull,
async backupDB() {
let client = GlobalData.getInstance().getCurrentClient();
if (client) {
@ -958,6 +965,13 @@ export default defineComponent({
?.windowFullScreen(window.window_id, false);
}
},
isfullbtn() {
isfull.value = !isfull.value;
if ((window as any).$wujie) {
const $wujie = (window as any).$wujie as IWuJieInterface;
$wujie?.bus.$emit("isfull", isfull.value);
}
},
};
},
});