增加全屏
This commit is contained in:
parent
b2aff3720c
commit
33413fbb27
|
@ -440,8 +440,6 @@
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</q-item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
|
@ -472,7 +470,7 @@
|
||||||
|
|
||||||
<q-separator vertical inset />
|
<q-separator vertical inset />
|
||||||
|
|
||||||
<q-item>
|
<q-item v-if="false">
|
||||||
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
|
<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:svgs/fan.svg" /> -->
|
||||||
<!-- <q-icon class="text-white rotate" name="img:new_icon/fan.png" /> -->
|
<!-- <q-icon class="text-white rotate" name="img:new_icon/fan.png" /> -->
|
||||||
|
@ -486,6 +484,14 @@
|
||||||
{{ $store.state.fan_temp.toFixed(1) }} ℃
|
{{ $store.state.fan_temp.toFixed(1) }} ℃
|
||||||
</q-item-section>
|
</q-item-section>
|
||||||
</q-item>
|
</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>
|
</q-toolbar>
|
||||||
</div>
|
</div>
|
||||||
<grid-setting-dialog
|
<grid-setting-dialog
|
||||||
|
@ -533,7 +539,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, ref, Ref, computed, watch, onMounted } from "vue";
|
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 FusionSettingsDialog from "src/components/FusionSettingsDialog.vue";
|
||||||
import GridSettingDialog from "src/components/GridSettingDialog.vue";
|
import GridSettingDialog from "src/components/GridSettingDialog.vue";
|
||||||
|
@ -601,7 +607,7 @@ export default defineComponent({
|
||||||
const register_dialog: Ref<any> = ref(null);
|
const register_dialog: Ref<any> = ref(null);
|
||||||
|
|
||||||
const window_rect_edit_dialog: Ref<any> = ref(null);
|
const window_rect_edit_dialog: Ref<any> = ref(null);
|
||||||
|
let isfull = ref(false);
|
||||||
const power_flag = ref(false);
|
const power_flag = ref(false);
|
||||||
watch(
|
watch(
|
||||||
() => power_flag.value,
|
() => power_flag.value,
|
||||||
|
@ -696,6 +702,7 @@ export default defineComponent({
|
||||||
show_device_list,
|
show_device_list,
|
||||||
power_flag,
|
power_flag,
|
||||||
fan,
|
fan,
|
||||||
|
isfull,
|
||||||
async backupDB() {
|
async backupDB() {
|
||||||
let client = GlobalData.getInstance().getCurrentClient();
|
let client = GlobalData.getInstance().getCurrentClient();
|
||||||
if (client) {
|
if (client) {
|
||||||
|
@ -958,6 +965,13 @@ export default defineComponent({
|
||||||
?.windowFullScreen(window.window_id, false);
|
?.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);
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue