mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
build: add gen-entry.ts
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
<template>
|
||||
<section>
|
||||
<h1 @click="open=!open">
|
||||
<SidebarInset>
|
||||
<SidebarTrigger class="-ml-1" />
|
||||
<h1 @click="open = !open">
|
||||
<!-- 主体 -->
|
||||
</h1>
|
||||
</section>
|
||||
</SidebarInset>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { inject } from 'vue'
|
||||
import { inject } from 'vue'
|
||||
import { SidebarTrigger, SidebarInset } from '@memoh/ui'
|
||||
|
||||
const open=inject('sideBarIsOpen')
|
||||
const open = inject('sideBarIsOpen')
|
||||
</script>
|
||||
@@ -30,7 +30,7 @@
|
||||
</SidebarHeader>
|
||||
<SidebarContent>
|
||||
<SidebarGroup>
|
||||
<SidebarGroupLabel class="text-base">
|
||||
<SidebarGroupLabel>
|
||||
对话操作
|
||||
</SidebarGroupLabel>
|
||||
<SidebarGroupContent>
|
||||
@@ -39,17 +39,15 @@
|
||||
v-for="sidebarItem in sidebarInfo"
|
||||
:key="sidebarItem.title"
|
||||
>
|
||||
<SidebarMenuButton
|
||||
as-child
|
||||
>
|
||||
<section class="flex">
|
||||
<CollapsibleTrigger as-child>
|
||||
<SidebarMenuButton>
|
||||
<svg-icon
|
||||
type="mdi"
|
||||
:path="sidebarItem.icon"
|
||||
/>
|
||||
<span>{{ sidebarItem.title }}</span>
|
||||
</section>
|
||||
</SidebarMenuButton>
|
||||
</SidebarMenuButton>
|
||||
</CollapsibleTrigger>
|
||||
</SidebarMenuItem>
|
||||
</SidebarMenu>
|
||||
</SidebarGroupContent>
|
||||
@@ -74,11 +72,12 @@ import {
|
||||
SidebarMenuButton,
|
||||
SidebarMenuItem,
|
||||
SidebarProvider,
|
||||
SidebarRail,
|
||||
SidebarRail,
|
||||
|
||||
} from '@memoh/ui'
|
||||
import { reactive, inject } from 'vue'
|
||||
import SvgIcon from '@jamescoyle/vue-icon'
|
||||
import { mdiCogOutline, mdiChatOutline, mdiCogBox, mdiListBox } from '@mdi/js'
|
||||
import { mdiRobot, mdiChatOutline, mdiCogBox, mdiListBox } from '@mdi/js'
|
||||
|
||||
|
||||
const open=inject('sideBarIsOpen')
|
||||
@@ -90,7 +89,7 @@ const sidebarInfo = reactive([{
|
||||
}, {
|
||||
title: '模型配置',
|
||||
path: '/',
|
||||
icon: mdiCogOutline
|
||||
icon: mdiRobot
|
||||
}, {
|
||||
title: '环境设置',
|
||||
path: '/',
|
||||
|
||||
Reference in New Issue
Block a user