feat: bubble组件封装

This commit is contained in:
rd
2025-08-21 10:54:18 +08:00
parent 64621d9add
commit 55166ff580
26 changed files with 668 additions and 416 deletions

View File

@ -0,0 +1,94 @@
.xt-bubble-list {
gap: 8px;
display: flex;
flex-direction: column;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.xt-bubble {
display: flex;
justify-content: start;
column-gap: 12px;
@mixin cts {
color: var(--Text-1, #211f24);
font-family: $font-family-regular;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 22px;
}
&.xt-bubble-start {
flex-direction: row;
}
&.xt-bubble-end {
justify-content: end;
flex-direction: row-reverse;
}
.xt-bubble-avatar {
}
.xt-bubble-content {
display: flex;
align-items: center;
@include cts;
&-filled {
background-color: #f2f3f5;
padding: 6px 12px;
border-radius: 10px;
}
&-outlined {
background-color: #fff;
border: 1px solid #e5e6eb;
padding: 6px 12px;
border-radius: 10px;
}
&-shadow {
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
padding: 6px 12px;
border-radius: 10px;
}
&-borderless {
background-color: transparent !important;
}
// 形状样式
&-default {
border-radius: 10px;
}
&-round {
padding: 6px 12px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50px;
background-color: var(--BG-200, #f2f3f5);
}
&-corner {
border-radius: 4px;
}
}
.xt-bubble-header {
@include cts;
margin-bottom: 6px;
}
.xt-bubble-footer {
@include cts;
margin-top: 6px;
}
&.xt-bubble-typing {
display: inline-block;
min-width: 36px;
}
}