|
|
@ -1,5 +1,6 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import tinycolor from 'tinycolor2' |
|
|
|
import tinycolor from 'tinycolor2' |
|
|
|
|
|
|
|
import type { GlobalEvents } from '~/lib' |
|
|
|
import { |
|
|
|
import { |
|
|
|
TabType, |
|
|
|
TabType, |
|
|
|
computed, |
|
|
|
computed, |
|
|
@ -38,7 +39,7 @@ const { theme, defaultTheme } = useTheme() |
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() |
|
|
|
const { t } = useI18n() |
|
|
|
|
|
|
|
|
|
|
|
const { $e } = useNuxtApp() |
|
|
|
const { $e, $globalEventBus } = useNuxtApp() |
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
const route = useRoute() |
|
|
|
|
|
|
|
|
|
|
@ -187,7 +188,16 @@ onBeforeMount(async () => { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const FOO = (ev: GlobalEvents) => { |
|
|
|
|
|
|
|
console.log(ev) |
|
|
|
|
|
|
|
// alert('event') |
|
|
|
|
|
|
|
if (isMobileMode) { |
|
|
|
|
|
|
|
toggle(false) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
onMounted(() => { |
|
|
|
|
|
|
|
$globalEventBus.on(FOO) |
|
|
|
toggle(true) |
|
|
|
toggle(true) |
|
|
|
toggleHasSidebar(true) |
|
|
|
toggleHasSidebar(true) |
|
|
|
}) |
|
|
|
}) |
|
|
@ -575,7 +585,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => { |
|
|
|
class="hover:after:(bg-primary bg-opacity-75) group nc-sidebar-add-row flex items-center px-2" |
|
|
|
class="hover:after:(bg-primary bg-opacity-75) group nc-sidebar-add-row flex items-center px-2" |
|
|
|
:class="{ 'nc-sidebar-left-toggle-icon': !isMobileMode }" |
|
|
|
:class="{ 'nc-sidebar-left-toggle-icon': !isMobileMode }" |
|
|
|
> |
|
|
|
> |
|
|
|
<!-- <div>OUTER INDEX - isOpen: {{ isOpen }}</div> --> |
|
|
|
<!-- <div>OUTER INDEX - isOpen: {{ isOpen }}</div> --> |
|
|
|
<MdiBackburger |
|
|
|
<MdiBackburger |
|
|
|
v-e="['c:grid:toggle-navdraw']" |
|
|
|
v-e="['c:grid:toggle-navdraw']" |
|
|
|
class="cursor-pointer transform transition-transform duration-500" |
|
|
|
class="cursor-pointer transform transition-transform duration-500" |
|
|
|