This commit is contained in:
joylink_zhaoerwei 2023-06-07 15:44:30 +08:00
parent 3fff97ae87
commit 067afc4ddd

View File

@ -2,9 +2,7 @@
<q-layout view="hHh LpR fFf"> <q-layout view="hHh LpR fFf">
<q-header reveal class="bg-primary text-white"> <q-header reveal class="bg-primary text-white">
<q-toolbar> <q-toolbar>
<q-btn dense flat round icon="menu" @click="toggleLeftDrawer" /> <q-toolbar-title class="q-gutter-sm">
<q-toolbar-title>
<q-btn color="accent" label="功能菜单"> <q-btn color="accent" label="功能菜单">
<q-menu> <q-menu>
<q-list style="min-width: 100px"> <q-list style="min-width: 100px">
@ -143,20 +141,11 @@ import { onMounted, onUnmounted, reactive, ref } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
const route = useRoute(); const route = useRoute();
const selectUtil = ref();
const utilsOption: ControlItem[] = reactive([]);
const drawSelect = (item: string) => {
getDrawApp()?.interactionPlugin(item).resume();
};
const drawStore = useDrawStore(); const drawStore = useDrawStore();
const leftDrawerOpen = ref(false); const leftDrawerOpen = ref(false);
const rightDrawerOpen = ref(false); const rightDrawerOpen = ref(false);
function toggleLeftDrawer() {
leftDrawerOpen.value = !leftDrawerOpen.value;
onResize();
}
function toggleRightDrawer() { function toggleRightDrawer() {
rightDrawerOpen.value = !rightDrawerOpen.value; rightDrawerOpen.value = !rightDrawerOpen.value;
onResize(); onResize();
@ -164,6 +153,12 @@ function toggleRightDrawer() {
const link = ref('outbox'); const link = ref('outbox');
//
const selectUtil = ref();
const utilsOption: ControlItem[] = reactive([]);
const drawSelect = (item: string) => {
getDrawApp()?.interactionPlugin(item).resume();
};
class ControlItem { class ControlItem {
value: string; value: string;
slot: string; slot: string;