Skip to content

feat: new ui layout #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Apr 29, 2025
Merged

feat: new ui layout #132

merged 24 commits into from
Apr 29, 2025

Conversation

hahaQWQ
Copy link
Collaborator

@hahaQWQ hahaQWQ commented Apr 27, 2025

work in progress

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件已经改名了 useWebsocket.ts

Comment on lines 11 to 15
<template #default="{ changeTitle, setActions, setHidden, setCollapsed }">
<RouterView v-slot="{ Component }">
<component :is="Component" :change-title="changeTitle" :set-actions="setActions" :set-hidden="setHidden" :set-collapsed="setCollapsed" />
</RouterView>
</template>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里用 template 就好了,不需要额外写 slot,会自动处理的

Suggested change
<template #default="{ changeTitle, setActions, setHidden, setCollapsed }">
<RouterView v-slot="{ Component }">
<component :is="Component" :change-title="changeTitle" :set-actions="setActions" :set-hidden="setHidden" :set-collapsed="setCollapsed" />
</RouterView>
</template>
<RouterView />

@luoling8192
Copy link
Member

Rest LGTM

@luoling8192 luoling8192 merged commit ad69913 into v2 Apr 29, 2025
2 checks passed
@luoling8192 luoling8192 deleted the dev/v2-chat-ui branch April 29, 2025 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants