Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
76903f68
authored
May 15, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【增加】Header 组件
parent
bd5262e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
src/views/ai/chat/components/Header.vue
+50
-0
No files found.
src/views/ai/chat/components/Header.vue
0 → 100644
View file @
76903f68
<!-- header -->
<
template
>
<el-header
class=
"chat-header"
>
<div
class=
"title"
>
{{
title
}}
</div>
<div
class=
"title-right"
>
<slot></slot>
</div>
</el-header>
</
template
>
<
script
setup
lang=
"ts"
>
// 设置组件属性
defineProps
({
title
:
{
type
:
String
,
required
:
true
}
})
</
script
>
<
style
scoped
lang=
"scss"
>
.chat-header
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
0
10px
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
background-color
:
#ececec
;
width
:
100%
;
.title
{
font-size
:
20px
;
font-weight
:
bold
;
overflow
:
hidden
;
color
:
#3e3e3e
;
max-width
:
220px
;
}
.title-right
{
display
:
flex
;
flex-direction
:
row
;
}
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment